/* ===== assets/css/style.css ===== */
/* MetodoDePagoSeguro · Jorge Sandoval · 2026 */

/* ============================================
   VARIABLES & RESET
============================================ */
:root {
    --red:        #d4002a;
    --red-dark:   #9b001f;
    --red-glow:   rgba(212,0,42,0.35);
    --red-soft:   rgba(212,0,42,0.12);
    --bg:         #06060b;
    --bg2:        #0d0d15;
    --glass-bg:   rgba(12,12,22,0.72);
    --glass-bdr:  rgba(212,0,42,0.22);
    --text:       #f0f0f0;
    --text-muted: rgba(255,255,255,0.45);
    --success:    #00e676;
    --gold:       #e4c580;
    --gold-light: #f8e3b0;
    --radius-lg:  28px;
    --radius-md:  18px;
    --radius-sm:  12px;
    --shadow-card: 0 40px 70px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(212,0,42,0.25) inset;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    /* Imagen local: descarga cualquier imagen oscura/tech y nómbrala bg.jpg en assets/img/ */
    background-image: url('../img/bg.jpg'),
                      url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Capa oscura encima de la imagen para mantener legibilidad */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 11, 0.82);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   ANIMATED BACKGROUND
============================================ */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,0,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,0,42,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

@keyframes drift {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(30px,-20px) scale(1.05); }
    66%      { transform: translate(-20px,30px) scale(0.97); }
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: drift 18s ease-in-out infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,0,42,0.15) 0%, transparent 70%);
    top: -10%; left: -5%;
    animation-duration: 22s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,0,42,0.10) 0%, transparent 70%);
    bottom: 0; right: -5%;
    animation-duration: 18s;
    animation-delay: -6s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,60,60,0.06) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation-duration: 26s;
    animation-delay: -12s;
}

/* ============================================
   NAVBAR
============================================ */
.MetodoDePagoSeguro-navbar {
    background: rgba(6,6,11,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-bdr);
    box-shadow: 0 4px 24px rgba(212,0,42,0.12);
    z-index: 1000;
    padding: 0.8rem 0;
}

.brand-icon-wrap {
    width: 38px; height: 38px;
    background: var(--red);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px var(--red-glow);
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}
.brand-accent { color: var(--red); }

.nav-dev-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0 0.5rem;
}

.dev-chip {
    display: inline-flex;
    align-items: center;
    background: var(--red-soft);
    border: 1px solid rgba(212,0,42,0.3);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 0.9rem;
    border-radius: 100px;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.dev-chip:hover {
    background: rgba(212,0,42,0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--red-glow);
}
.dev-chip--year { opacity: 0.8; }

.navbar-toggler {
    border: 1px solid var(--glass-bdr);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    background: var(--red-soft);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--red-glow); }

/* ============================================
   MAIN LAYOUT
============================================ */
.main-content {
    position: relative;
    z-index: 10;
    padding: 3rem 0 2rem;
    min-height: calc(100vh - 66px - 120px);
}

/* ============================================
   PAGE HEADER
============================================ */
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}
.animate-up {
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: var(--delay, 0s);
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    background: var(--red-soft);
    border: 1px solid rgba(212,0,42,0.3);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0.5rem 0 0.6rem;
}

.text-highlight {
    color: var(--red);
    position: relative;
}
.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    border-radius: 2px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* ============================================
   TARJETA 3D
============================================ */
.card-scene {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.card-3d {
    perspective: 1400px;
    width: 100%;
}

@keyframes cardFloat {
    0%,100% { transform: translateY(0) rotateX(2deg); }
    50%      { transform: translateY(-8px) rotateX(2deg); }
}

/* (card-flip-inner-wrap defined below — this block intentionally removed) */

/* Both faces share same container approach */
.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Glassmorphism card surface */
.card-front {
    background: linear-gradient(145deg, #1e1e2e 0%, #14141f 100%);
    border: 1px solid rgba(212,0,42,0.35);
    box-shadow: var(--shadow-card);
}

.card-back {
    background: linear-gradient(145deg, #191922 0%, #101018 100%);
    border: 1px solid rgba(212,0,42,0.25);
    box-shadow: var(--shadow-card);
    transform: rotateY(180deg);
}

/* Holographic shimmer overlay */
@keyframes holoShift {
    0%   { background-position: 0% 50%; opacity: 0.25; }
    50%  { background-position: 100% 50%; opacity: 0.4; }
    100% { background-position: 0% 50%; opacity: 0.25; }
}
.holo-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        125deg,
        rgba(255,0,80,0.08) 0%,
        rgba(255,100,50,0.12) 20%,
        rgba(212,0,42,0.06) 40%,
        rgba(255,50,50,0.1) 60%,
        rgba(180,0,40,0.08) 80%,
        rgba(255,0,80,0.06) 100%
    );
    background-size: 300% 300%;
    animation: holoShift 5s ease infinite;
    pointer-events: none;
    z-index: 1;
}

/* Card bg decorative pattern */
.card-bg-pattern {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(212,0,42,0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Chip */
.chip-emu {
    width: 52px; height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    border-radius: 9px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.5), 0 4px 10px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.chip-lines {
    width: 34px; height: 26px;
    background:
        linear-gradient(#b8982a 1px, transparent 1px) 0 0 / 100% 5px,
        linear-gradient(90deg, #b8982a 1px, transparent 1px) 0 0 / 8px 100%;
    opacity: 0.5;
    border-radius: 3px;
}

/* Brand on card */
.brand-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,0,42,0.85);
    border-radius: 10px;
    padding: 6px 14px;
    min-width: 90px;
    box-shadow: 0 4px 14px rgba(212,0,42,0.5);
    z-index: 2;
    transition: transform 0.3s;
}
.brand-display:hover { transform: scale(1.05); }
#brandLabel {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    letter-spacing: 1px;
}

/* Card number */
.card-number-wrap {
    text-align: center;
    z-index: 2;
    padding: 0.6rem 0;
}
.card-number-display {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
    text-shadow: 0 0 14px rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.45);
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(212,0,42,0.3);
    display: inline-block;
}

/* Card bottom row */
.card-row-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.card-row-bottom { display: flex; align-items: flex-end; gap: 1rem; position: relative; z-index: 2; }

.card-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
}
.card-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.card-holder-block { flex: 1; min-width: 0; }
.card-expiry-block { flex-shrink: 0; }
.card-type-block   { flex-shrink: 0; }

.type-badge {
    background: rgba(212,0,42,0.2);
    border: 1px solid rgba(212,0,42,0.5);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

/* Card back */
.mag-strip {
    height: 52px;
    background: linear-gradient(to right, #1a1a22 0%, #2a2a35 50%, #1a1a22 100%);
    border-radius: 6px;
    margin-top: 1rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.cvv-row { margin-top: 1.2rem; }

.sig-strip {
    background: repeating-linear-gradient(
        -55deg,
        rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 6px,
        rgba(255,255,255,0.08) 6px, rgba(255,255,255,0.08) 12px
    );
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.cvv-panel {
    background: white;
    color: var(--red);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 3px;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    border: 1px solid rgba(212,0,42,0.3);
}

.back-brand-row {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}
.back-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
}

/* Card shadow plane */
.card-shadow-plane {
    position: absolute;
    bottom: -30px; left: 5%; right: 5%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(212,0,42,0.25) 0%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

.card-flip-inner-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 63%;
    transform-style: preserve-3d;
    transition: transform 0.82s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardFloat 6s ease-in-out infinite;
}
.card-3d.flipped .card-flip-inner-wrap {
    transform: rotateY(180deg) !important;
    animation-play-state: paused;
}

/* ============================================
   GLASS FORM
============================================ */
.form-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-bdr);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,0,42,0.15) inset;
    position: relative;
    overflow: hidden;
}
.form-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,0,42,0.5), transparent);
}

/* Stepper */
.form-stepper {
    display: flex;
    align-items: center;
    gap: 0;
}
.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}
.step span {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition);
}
.step.active {
    color: white;
}
.step.active span {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}
.step.done span {
    background: var(--success);
    border-color: var(--success);
    color: #000;
}
.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.5rem;
}

/* Form body */
.form-body { display: flex; flex-direction: column; gap: 1.1rem; }

/* Fields */
.field-group { display: flex; flex-direction: column; gap: 0.4rem; }

.field-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding-left: 0.25rem;
}

.input-wrap {
    position: relative;
}

.smart-input {
    width: 100%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(212,0,42,0.3);
    border-radius: 100px;
    padding: 0.82rem 3rem 0.82rem 1.3rem;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(4px);
}
.smart-input::placeholder { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }
.smart-input:focus {
    border-color: var(--red);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 3px rgba(212,0,42,0.2), 0 6px 20px rgba(212,0,42,0.15);
    transform: translateY(-1px);
}
.smart-input.is-invalid {
    border-color: #ff4d6a;
    box-shadow: 0 0 0 3px rgba(255,77,106,0.2);
}
.smart-input.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(0,230,118,0.15);
}

/* Card number mono font */
#cardNumberInput { font-family: 'Space Mono', monospace; letter-spacing: 2px; }
#cvvInput        { font-family: 'Space Mono', monospace; }

.input-icon {
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color var(--transition);
}
.cvv-toggle { pointer-events: all; cursor: pointer; }
.cvv-toggle:hover { color: var(--red); }

.amount-input { padding-right: 4.5rem; }
.amount-currency {
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--red);
    pointer-events: none;
}

.field-error {
    font-size: 0.75rem;
    color: #ff4d6a;
    padding-left: 0.5rem;
    min-height: 1rem;
    display: block;
    font-weight: 500;
}

/* ============================================
   PAY BUTTON
============================================ */
.btn-pay {
    width: 100%;
    background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
    border: none;
    border-radius: 100px;
    padding: 1rem 1.5rem;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px -4px rgba(212,0,42,0.5), 0 0 0 1px rgba(255,255,255,0.08) inset;
    margin-top: 0.4rem;
}
.btn-pay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -4px rgba(212,0,42,0.65), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.btn-pay:hover::after { transform: translateX(100%); }
.btn-pay:active { transform: translateY(0); box-shadow: 0 4px 12px -2px rgba(212,0,42,0.4); }

.btn-pay-arrow { font-size: 1.2rem; }
.btn-pay-loading { display: flex; align-items: center; }

/* Security row */
.security-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.sec-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Secondary btn */
.btn-secondary-action {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 0.9rem 1.4rem;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-secondary-action:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ============================================
   CONFIRM BOX
============================================ */
.confirm-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-bdr);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.confirm-icon {
    font-size: 2rem;
    color: var(--red);
    text-align: center;
}
.confirm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-align: center;
}
.confirm-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}
.confirm-detail:last-child { border-bottom: none; padding-bottom: 0; }
.confirm-detail strong { color: white; font-weight: 600; }
.confirm-amount-value { color: var(--red) !important; font-size: 1.1rem; }

/* ============================================
   SUCCESS BOX
============================================ */
.success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    gap: 0.8rem;
}
.success-icon-wrap {
    position: relative;
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.5rem;
}

@keyframes ringPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes checkDraw {
    from { opacity: 0; transform: scale(0.5) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.success-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 3px solid var(--success);
    animation: ringPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    box-shadow: 0 0 20px rgba(0,230,118,0.4);
}
.success-check {
    font-size: 2.4rem;
    color: var(--success);
    animation: checkDraw 0.4s 0.3s ease-out both;
}
.success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}
.success-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.success-ref {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-bdr);
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--red);
    letter-spacing: 1px;
}

/* ============================================
   FOOTER
============================================ */
.MetodoDePagoSeguro-footer {
    position: relative;
    z-index: 10;
    background: rgba(6,6,11,0.9);
    border-top: 1px solid var(--glass-bdr);
    padding: 1.5rem 0 1rem;
    backdrop-filter: blur(12px);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}
.footer-brand strong { color: white; }
.footer-sep { color: var(--glass-bdr); }
.footer-dev { color: var(--text-muted); font-size: 0.82rem; }
.text-accent { color: var(--red); }

.footer-links { display: flex; gap: 1.2rem; }
.footer-link {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex; align-items: center;
}
.footer-link:hover { color: var(--red); transform: translateY(-2px); }

.footer-bottom { text-align: center; }
.footer-secure {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* ============================================
   SHAKE ANIMATION (validation)
============================================ */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease-out; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 991px) {
    .main-content { padding: 2rem 0 1.5rem; }
    .card-scene { max-width: 420px; margin-bottom: 0.5rem; }
}

@media (max-width: 767px) {
    .main-content { padding: 1.5rem 0 1rem; }
    .page-title { font-size: 1.7rem; }
    .form-glass { padding: 1.5rem; }
    .card-scene { max-width: 380px; }
    .card-number-display { font-size: 1rem; letter-spacing: 3px; }
    .dev-chip { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .card-scene { max-width: 100%; }
    .card-face { padding: 1.2rem; }
    .card-number-display { font-size: 0.9rem; letter-spacing: 2px; padding: 0.5rem 0.8rem; }
    .form-glass { padding: 1.2rem; }
    .smart-input { padding: 0.75rem 3rem 0.75rem 1.1rem; font-size: 0.9rem; }
    .btn-pay { font-size: 0.9rem; padding: 0.9rem 1.2rem; }
    .form-stepper { gap: 0; }
    .step { font-size: 0.7rem; }
}