/* ============================================
   DESIGN SYSTEM — Eleições 2026
   Temas Dinâmicos:
   - Padrão Inicial: Preto e Branco (Monocromático)
   - Lula: Vermelho e Branco
   - Flávio Bolsonaro: Cores da Bandeira do Brasil (Verde, Amarelo, Azul, Branco)
   ============================================ */

/* --- TEMA PADRÃO: PRETO E BRANCO (PÁGINA INICIAL) --- */
:root,
body.theme-neutral {
    --bg-dark: #08090d;
    --bg-card: rgba(18, 20, 26, 0.85);
    --bg-card-solid: #111318;
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #ffffff;
    --accent-secondary: #cbd5e1;
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    --btn-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    --btn-color: #090a0f;
    --btn-hover: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);

    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.15);
    --body-bg-gradient: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
                        radial-gradient(ellipse at 80% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    --logo-filter: drop-shadow(0 6px 22px rgba(255, 255, 255, 0.35));

    /* Hold bar & quiz colors */
    --hold-track-bg: rgba(20, 22, 28, 0.7);
    --hold-track-border: rgba(255, 255, 255, 0.15);
    --hold-fill: linear-gradient(90deg, #52525b 0%, #a1a1aa 50%, #ffffff 100%);
    --hold-mascot-border: #ffffff;
    --hold-mascot-glow: rgba(255, 255, 255, 0.7);
    --badge-bg: rgba(255, 255, 255, 0.08);
    --badge-border: rgba(255, 255, 255, 0.2);
    --badge-color: #ffffff;
    --option-active-border: #ffffff;
    --option-active-bg: rgba(255, 255, 255, 0.15);
    --option-active-glow: 0 0 25px rgba(255, 255, 255, 0.3);

    /* Shipping box */
    --shipping-box-bg: linear-gradient(145deg, rgba(28, 32, 40, 0.8) 0%, rgba(16, 18, 24, 0.95) 100%);
    --shipping-box-border: rgba(255, 255, 255, 0.25);
    --shipping-price-color: #ffffff;
    --shipping-badge-bg: linear-gradient(90deg, #ffffff, #94a3b8);
    --shipping-badge-text: #090a0f;
}

/* --- TEMA LULA: VERMELHO E BRANCO --- */
body.theme-lula {
    --bg-dark: #120204;
    --bg-card: rgba(38, 8, 12, 0.82);
    --bg-card-solid: #200407;
    --glass-border: rgba(220, 38, 38, 0.28);
    --glass-border-hover: rgba(239, 68, 68, 0.55);
    --text-primary: #ffffff;
    --text-secondary: #fca5a5;
    --text-muted: #f87171;

    --accent-primary: #ef4444;
    --accent-secondary: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ef4444 0%, #fca5a5 50%, #ffffff 100%);
    --btn-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --btn-color: #ffffff;
    --btn-hover: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);

    --shadow-glow: 0 0 35px rgba(220, 38, 38, 0.4);
    --body-bg-gradient: radial-gradient(ellipse at 20% 0%, rgba(220, 38, 38, 0.16) 0%, transparent 65%),
                        radial-gradient(ellipse at 80% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    --logo-filter: drop-shadow(0 8px 24px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));

    /* Hold bar & quiz colors */
    --hold-track-bg: rgba(25, 4, 7, 0.8);
    --hold-track-border: rgba(220, 38, 38, 0.35);
    --hold-fill: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #ffffff 100%);
    --hold-mascot-border: #ffffff;
    --hold-mascot-glow: rgba(239, 68, 68, 0.85);
    --badge-bg: rgba(220, 38, 38, 0.18);
    --badge-border: rgba(220, 38, 38, 0.4);
    --badge-color: #ffffff;
    --option-active-border: #ef4444;
    --option-active-bg: rgba(220, 38, 38, 0.25);
    --option-active-glow: 0 0 28px rgba(220, 38, 38, 0.5);

    /* Shipping box */
    --shipping-box-bg: linear-gradient(145deg, rgba(50, 10, 16, 0.85) 0%, rgba(28, 5, 9, 0.95) 100%);
    --shipping-box-border: rgba(239, 68, 68, 0.45);
    --shipping-price-color: #ffffff;
    --shipping-badge-bg: linear-gradient(90deg, #dc2626, #ffffff);
    --shipping-badge-text: #1a0306;
}

/* --- TEMA FLÁVIO BOLSONARO: CORES DA BANDEIRA DO BRASIL (VERDE, AMARELO, AZUL, BRANCO) --- */
body.theme-flavio {
    --bg-dark: #001a0e;
    --bg-card: rgba(0, 40, 22, 0.78);
    --bg-card-solid: #002816;
    --glass-border: rgba(0, 156, 59, 0.22);
    --glass-border-hover: rgba(0, 156, 59, 0.5);
    --text-primary: #f0f5f2;
    --text-secondary: #8fbfa3;
    --text-muted: #5a8a6e;

    --accent-primary: #009c3b;
    --accent-secondary: #ffdf00;
    --accent-gradient: linear-gradient(135deg, #009c3b 0%, #ffdf00 100%);
    --btn-gradient: linear-gradient(135deg, #009c3b 0%, #006f2c 100%);
    --btn-color: #ffffff;
    --btn-hover: linear-gradient(135deg, #00b845 0%, #009c3b 100%);

    --shadow-glow: 0 0 32px rgba(0, 156, 59, 0.35);
    --body-bg-gradient: radial-gradient(ellipse at 20% 0%, rgba(0, 156, 59, 0.14) 0%, transparent 60%),
                         radial-gradient(ellipse at 80% 100%, rgba(0, 39, 118, 0.14) 0%, transparent 60%);
    --logo-filter: drop-shadow(0 8px 24px rgba(0, 156, 59, 0.5)) drop-shadow(0 0 16px rgba(255, 223, 0, 0.3));

    /* Hold bar & quiz colors */
    --hold-track-bg: rgba(0, 20, 10, 0.75);
    --hold-track-border: rgba(0, 156, 59, 0.3);
    --hold-fill: linear-gradient(90deg, #009c3b 0%, #00b845 50%, #ffdf00 100%);
    --hold-mascot-border: #ffdf00;
    --hold-mascot-glow: rgba(255, 223, 0, 0.8);
    --badge-bg: rgba(255, 223, 0, 0.1);
    --badge-border: rgba(255, 223, 0, 0.25);
    --badge-color: #ffdf00;
    --option-active-border: #009c3b;
    --option-active-bg: rgba(0, 156, 59, 0.25);
    --option-active-glow: 0 0 28px rgba(0, 156, 59, 0.45);

    /* Shipping box */
    --shipping-box-bg: linear-gradient(145deg, rgba(0, 50, 25, 0.75) 0%, rgba(0, 32, 16, 0.9) 100%);
    --shipping-box-border: rgba(255, 223, 0, 0.35);
    --shipping-price-color: #ffdf00;
    --shipping-badge-bg: linear-gradient(90deg, #009c3b, #ffdf00);
    --shipping-badge-text: #002816;
}

/* Sizing & Transitions */
:root {
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    background-image: var(--body-bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport for mobile browsers */
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, background-image 0.5s ease, color 0.4s ease;
}

/* Safe area support is handled in .container above */


/* --- Animated Background Particles --- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.14;
    animation: float-particle linear infinite;
    transition: background 0.5s ease;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.14; }
    90% { opacity: 0.14; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* --- Header --- */
header {
    text-align: center;
    margin-bottom: 32px;
    animation: slideDown 0.7s var(--transition-smooth) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.logo {
    width: 135px;
    height: auto;
    margin-bottom: 14px;
    filter: var(--logo-filter);
    animation: pulse-logo 3.5s ease-in-out infinite;
    transition: transform 0.25s ease, filter 0.5s ease;
    cursor: pointer;
    user-select: none;
}

.logo-link:hover .logo,
.logo:hover {
    transform: scale(1.06);
}

.logo-link:active .logo,
.logo:active {
    transform: scale(0.95);
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.4s ease;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* --- Card (Glass) --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* --- Section Titles --- */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 28px;
}

/* ============================================
   CHARACTER SELECT (INICIAL: PRETO E BRANCO)
   ============================================ */
.character-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.character-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s, transform 0.3s;
    width: 180px;
}

.character-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Selecionado Lula */
.character-card[data-character="lula"].selected {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
}

/* Selecionado Flávio */
.character-card[data-character="flavio"].selected {
    border-color: #ffdf00;
    background: rgba(0, 156, 59, 0.12);
    box-shadow: 0 0 30px rgba(255, 223, 0, 0.35);
}

.character-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid var(--glass-border);
    transition: var(--transition-smooth);
    flex-shrink: 0;
    animation: char-bounce 2s ease-in-out infinite;
}

.character-card[data-character="flavio"] .character-img-wrapper {
    animation-delay: 1s;
}

@keyframes char-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
    50% { transform: translateY(-4px); }
    70% { transform: translateY(-8px); }
}

.character-card[data-character="lula"].selected .character-img-wrapper {
    border-color: #ef4444;
    animation: char-bounce-selected 1.2s ease-in-out infinite;
}

.character-card[data-character="flavio"].selected .character-img-wrapper {
    border-color: #ffdf00;
    animation: char-bounce-selected 1.2s ease-in-out infinite;
}

@keyframes char-bounce-selected {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.character-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-smooth);
}

.character-card:hover .character-img-wrapper img {
    transform: scale(1.05);
}

.character-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.character-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: #ffffff;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-bounce);
}

.character-card[data-character="lula"] .character-check {
    background: #ef4444;
    color: #ffffff;
}

.character-card[data-character="flavio"] .character-check {
    background: #ffdf00;
    color: #002816;
}

.character-card.selected .character-check {
    opacity: 1;
    transform: scale(1);
}

.vs-badge {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    user-select: none;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    transition: color 0.4s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.btn-primary {
    background: var(--btn-gradient);
    color: var(--btn-color);
    box-shadow: var(--shadow-glow);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
}

.btn-primary:hover:not(:disabled) {
    background: var(--btn-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: none;
}

.btn, .btn-primary, .btn-cta, .btn-copy, .btn-text-back {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    color: #71717a;
    box-shadow: none;
}

#character-select .btn-primary {
    margin-top: 4px;
}

/* ============================================
   KIT EXPLANATION SCREEN (PRE-QUIZ)
   ============================================ */
.kit-exp-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid var(--badge-border);
    box-shadow: 0 0 16px var(--shadow-glow);
    margin-bottom: 12px;
}

.kit-exp-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.kit-exp-lead strong {
    color: var(--badge-color);
}

.kit-showcase-box {
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid var(--hold-mascot-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--hold-mascot-glow);
    text-align: left;
}

.kit-showcase-photo-frame {
    position: relative;
    width: 100%;
    height: 270px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.kit-showcase-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.kit-showcase-box:hover .kit-showcase-img {
    transform: scale(1.03);
}

.kit-showcase-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--shipping-badge-bg);
    color: var(--shipping-badge-text);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.kit-showcase-info {
    padding: 22px 20px;
}

.kit-showcase-header {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.kit-showcase-cand-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--badge-color);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.kit-showcase-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.kit-showcase-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.kit-items-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kit-items-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.item-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-color);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.item-check.firework-check {
    background: rgba(251, 191, 36, 0.18);
    border-color: #fbbf24;
    font-size: 0.85rem;
}

.firework-item strong {
    color: #fbbf24;
}

/* How to get card */
.kit-how-to-get-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: left;
}

.how-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.how-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.how-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.how-text strong {
    color: var(--badge-color);
}

.btn-text-back {
    display: inline-block;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 14px;
    transition: color 0.2s ease;
    padding: 4px 10px;
}

.btn-text-back:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ============================================
   QUIZ
   ============================================ */
.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.question-counter {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--badge-color);
}

.hold-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--badge-color);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.hold-tip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--badge-color);
    box-shadow: 0 0 8px var(--badge-color);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.question h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--text-primary);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   HOLD-TO-CONFIRM OPTION BUTTON
   ============================================ */
.option-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 16px 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    outline: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.option-btn:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.option-btn.holding {
    transform: scale(0.985);
    border-color: var(--hold-mascot-border);
    background: var(--option-active-bg);
    box-shadow: var(--option-active-glow);
}

.option-btn.confirmed {
    border-color: var(--option-active-border);
    background: var(--option-active-bg);
    box-shadow: var(--option-active-glow);
    transform: scale(1);
}

.option-btn.faded {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(40%);
    transform: scale(0.98);
}

/* Top Row: Letter + Text + Hold Status Badge */
.option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--badge-bg);
    border: 1.5px solid var(--badge-border);
    color: var(--badge-color);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-btn.holding .option-letter {
    background: var(--hold-mascot-border);
    color: #090a0f;
    border-color: var(--hold-mascot-border);
}

.option-btn.confirmed .option-letter {
    background: var(--option-active-border);
    color: #ffffff;
    border-color: var(--option-active-border);
}

.option-text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    text-align: left;
}

.option-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--badge-bg);
    color: var(--badge-color);
    border: 1px solid var(--badge-border);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-status-badge.is-holding {
    background: var(--badge-bg);
    color: #ffffff;
    border-color: var(--hold-mascot-border);
    box-shadow: 0 0 12px var(--hold-mascot-glow);
}

.option-status-badge.is-confirmed {
    background: var(--option-active-border);
    color: #ffffff;
    border-color: var(--option-active-border);
    box-shadow: 0 0 14px var(--option-active-glow);
}

/* ============================================
   A BARRA COM O PERSONAGEM DENTRO
   ============================================ */
.option-track {
    position: relative;
    width: 100%;
    height: 28px;
    background: var(--hold-track-bg);
    border: 1px solid var(--hold-track-border);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.option-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--hold-fill);
    border-radius: 100px;
    box-shadow: 0 0 12px var(--hold-mascot-glow);
    will-change: width;
}

.option-mascot-runner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--hold-mascot-border);
    background: var(--bg-card-solid);
    box-shadow: 0 0 10px var(--hold-mascot-glow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    will-change: left, transform;
}

.option-mascot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
}

.option-goal {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

/* Animação do boneco enquanto a pessoa segura */
.option-btn.holding .option-mascot-runner {
    animation: mascot-jog 0.2s infinite alternate ease-in-out;
    box-shadow: 0 0 14px var(--hold-mascot-glow);
}

@keyframes mascot-jog {
    0% { transform: translateY(-50%) rotate(-8deg) scale(1.1); }
    100% { transform: translateY(-50%) rotate(8deg) scale(1.1); }
}

.option-mascot-runner.celebrating {
    animation: mascot-victory 0.4s ease-in-out forwards;
}

@keyframes mascot-victory {
    0% { transform: translateY(-50%) scale(1.1); }
    50% { transform: translateY(-50%) scale(1.4) rotate(15deg); }
    100% { transform: translateY(-50%) scale(1.25) rotate(0deg); }
}

/* --- Progress Bar --- */
#progress-bar-wrapper {
    margin-top: 20px;
    padding: 0 4px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ============================================
   RESULTS — AGRADECIMENTO & KIT FRETE FIXO
   ============================================ */
#result-container {
    text-align: center;
    padding: 36px 22px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    border: 1px solid var(--badge-border);
    box-shadow: 0 0 16px var(--shadow-glow);
}

/* --- Pôster Oficial de Agradecimento --- */
.thankyou-banner-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 22px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--hold-mascot-border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 26px var(--hold-mascot-glow);
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thankyou-banner-wrapper:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 32px var(--hold-mascot-glow);
}

.thankyou-banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.result-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.result-thankyou-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.result-thankyou-desc strong {
    color: var(--badge-color);
}

/* --- Box Frete Fixo R$ 29,90 --- */
.shipping-notice-box {
    background: var(--shipping-box-bg);
    border: 1.5px solid var(--shipping-box-border);
    border-radius: var(--radius-md);
    padding: 24px 20px 20px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    position: relative;
    text-align: center;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.shipping-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--shipping-badge-bg);
    color: var(--shipping-badge-text);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.shipping-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 16px;
    flex-wrap: wrap;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-tag-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.price-striked {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    font-weight: 600;
}

.tag-free {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-color);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.price-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
}

.price-item-highlight {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
}

.price-item-highlight .price-tag-label {
    color: var(--text-primary);
}

.price-main {
    font-size: 2rem;
    font-weight: 900;
    color: var(--shipping-price-color);
    line-height: 1.1;
    text-shadow: 0 0 20px var(--hold-mascot-glow);
}

.tag-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.shipping-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.shipping-text strong {
    color: var(--badge-color);
}

.shipping-perks {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.perk-icon {
    font-size: 1rem;
}

/* --- Kit Selection Heading & Options (FOTOS GRANDES E VISÍVEIS) --- */
.kit-section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    text-align: center;
}

.kit-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.kit-option {
    position: relative;
    text-align: center;
    cursor: pointer;
    padding: 16px 14px 14px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kit-option:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.kit-option.selected {
    border-color: var(--hold-mascot-border);
    background: var(--badge-bg);
    box-shadow: 0 0 28px var(--hold-mascot-glow);
    transform: translateY(-2px);
}

.kit-tag-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    z-index: 2;
}

/* FOTOS DOS KITS GRANDES E TOTALMENTE VISÍVEIS */
.kit-img-frame {
    width: 100%;
    height: 190px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.kit-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kit-option:hover .kit-img-frame img {
    transform: scale(1.08);
}

.kit-option.selected .kit-img-frame {
    border-color: var(--badge-border);
    background: rgba(0, 0, 0, 0.6);
}

.kit-option h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.kit-includes {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.kit-radio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.radio-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.kit-option.selected .kit-radio-badge {
    background: var(--hold-mascot-border);
    border-color: var(--hold-mascot-border);
    color: var(--shipping-badge-text);
    font-weight: 700;
}

.kit-option.selected .radio-circle {
    border-color: var(--shipping-badge-text);
    background: var(--shipping-badge-text);
    box-shadow: inset 0 0 0 2px var(--hold-mascot-border);
}

/* CTA Button */
.btn-cta {
    font-size: 1.05rem;
    padding: 16px 36px;
    max-width: 440px;
    width: 100%;
    margin: 8px auto 14px;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-glow);
    background: var(--btn-gradient);
    color: var(--btn-color);
}

.btn-cta:hover {
    background: var(--btn-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.security-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 12px;
}

#selection-result {
    margin-top: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--badge-color);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s var(--transition-bounce) both;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   CHECKOUT & PAYMENT STYLES
   ============================================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-item {
    color: var(--text-muted);
}

.step-done {
    color: var(--text-secondary);
}

.step-active {
    color: #ffffff;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 3px 10px;
    border-radius: 100px;
}

.step-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

/* --- Resumo do Pedido --- */
.order-summary-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin-bottom: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.summary-kit-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.summary-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.summary-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.summary-details {
    text-align: left;
}

.summary-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--badge-color);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.summary-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.summary-items {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.summary-costs {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.cost-free {
    color: var(--badge-color);
    font-weight: 800;
}

.cost-donation {
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.cost-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2px 0;
}

.cost-row.cost-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--shipping-price-color);
    text-shadow: 0 0 16px var(--hold-mascot-glow);
}

/* --- Form Sections --- */
.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin-bottom: 22px;
    text-align: left;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.section-icon {
    font-size: 1.15rem;
}

.form-section-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid var(--glass-border);
    color: #ffffff;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--hold-mascot-border);
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 14px var(--hold-mascot-glow);
}

.form-group select option {
    background: #181a20;
    color: #ffffff;
}

.form-group.has-error input {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.cep-input-wrapper {
    position: relative;
}

.cep-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--badge-color);
}

/* --- Upsell Doação de Campanha --- */
.upsell-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.45));
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.upsell-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--badge-color);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.upsell-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.upsell-avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--hold-mascot-border);
    box-shadow: 0 0 14px var(--hold-mascot-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.upsell-avatar-box img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.upsell-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upsell-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Donation Chips Grid */
.donation-chips-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.donation-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.donation-chip:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.donation-chip.selected {
    border-color: var(--hold-mascot-border);
    background: var(--badge-bg);
    box-shadow: 0 0 16px var(--hold-mascot-glow);
    font-weight: 800;
}

.donation-chip-tag {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 800;
    background: var(--hold-mascot-border);
    color: #000000;
    padding: 1px 6px;
    border-radius: 100px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.donation-chip-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.donation-chip.selected .donation-chip-val {
    color: var(--badge-color);
}

.donation-chip-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.custom-donation-box {
    margin: 8px 0 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--glass-border);
}

.custom-donation-box label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.custom-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
}

.custom-input-wrap .currency-prefix {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--badge-color);
    margin-right: 8px;
}

.custom-input-wrap input {
    border: none;
    background: transparent;
    padding: 10px 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    outline: none;
}

.upsell-optout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: background 0.2s ease;
}

.upsell-optout:hover {
    background: rgba(0, 0, 0, 0.35);
}

.upsell-optout input[type="radio"] {
    accent-color: var(--hold-mascot-border);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- Payment Tabs --- */
.payment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    outline: none;
}

.payment-tab:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.payment-tab.active {
    border-color: var(--hold-mascot-border);
    background: var(--badge-bg);
    box-shadow: 0 0 16px var(--hold-mascot-glow);
}

.tab-icon {
    font-size: 1.4rem;
}

.tab-text-group {
    display: flex;
    flex-direction: column;
}

.tab-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tab-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.payment-tab.active .tab-tag {
    color: var(--badge-color);
}

.payment-method-box {
    margin-top: 14px;
}

.pix-info-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
}

.pix-info-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pix-bullet {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.pix-info-header strong {
    font-size: 0.92rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.pix-info-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pix-steps-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Modal Pix --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: var(--bg-card-solid);
    border: 2px solid var(--hold-mascot-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 30px 22px 24px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    /* Minimum 44px touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.pix-modal-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--badge-color);
    border: 1px solid var(--badge-border);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.pix-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pix-modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pix-qr-container {
    margin: 16px 0;
}

.pix-qr-box {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pix-timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.pix-timer-box strong {
    color: var(--badge-color);
    font-size: 0.95rem;
}

.pix-copy-section {
    margin-bottom: 20px;
    text-align: left;
}

.pix-copy-section label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.pix-code-field {
    display: flex;
    gap: 8px;
}

.pix-code-field input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.78rem;
    font-family: monospace;
    outline: none;
}

.btn-copy {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: var(--hold-mascot-border);
    color: #000;
}

.pix-copied-msg {
    font-size: 0.78rem;
    color: #22c55e;
    font-weight: 700;
    margin-top: 6px;
}

/* --- Success / Tracking Container --- */
.success-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #4ade80;
    margin-bottom: 14px;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

.success-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 20px;
    line-height: 1.55;
}

.success-intro strong {
    color: var(--badge-color);
}

.tracking-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin-bottom: 22px;
}

.tracking-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.tracking-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 16px;
}

.tracking-code {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--shipping-price-color);
    text-shadow: 0 0 16px var(--hold-mascot-glow);
}

.btn-copy-mini {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-mini:hover {
    background: var(--badge-color);
    color: #000;
}

.tracking-status-bar {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.status-step.step-done {
    color: var(--text-primary);
    font-weight: 600;
}

.step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-step.step-done .step-dot {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.delivery-confirmed-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: left;
    margin-bottom: 18px;
}

.delivery-confirmed-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.delivery-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-top: 12px;
}

.delivery-item {
    display: flex;
    flex-direction: column;
}

.delivery-item.full {
    grid-column: span 2;
}

.del-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.delivery-item strong {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.updates-notice {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    line-height: 1.45;
}

.updates-notice strong {
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE — Mobile-First Overhaul
   ============================================ */

/* --- Tablet / Phablet (max 640px) --- */
@media (max-width: 640px) {
    .container {
        padding: 14px 12px 40px;
    }

    header {
        margin-bottom: 22px;
    }

    header h1 {
        font-size: 1.55rem;
    }

    .subtitle {
        font-size: 0.87rem;
    }

    .logo {
        width: 105px;
        margin-bottom: 10px;
    }

    .card {
        padding: 22px 16px;
        border-radius: var(--radius-md);
    }

    /* --- Character Select --- */
    .character-grid {
        flex-direction: row;
        gap: 10px;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .character-card {
        width: calc(50% - 20px);
        flex: 1;
        padding: 14px 10px 12px;
        min-width: 0;
    }

    .character-img-wrapper {
        width: 82px;
        height: 82px;
    }

    .character-card h3 {
        font-size: 0.82rem;
    }

    .vs-badge {
        font-size: 0.9rem;
        align-self: center;
        flex-shrink: 0;
    }

    /* --- Kit Explanation Page --- */
    .kit-showcase-photo-frame {
        height: 230px;
    }

    .kit-showcase-info {
        padding: 16px 14px;
    }

    .kit-showcase-header h3 {
        font-size: 1.15rem;
    }

    .kit-items-checklist li {
        font-size: 0.85rem;
        gap: 10px;
    }

    .kit-how-to-get-card {
        padding: 14px 14px;
        gap: 10px;
    }

    .how-text h4 {
        font-size: 0.88rem;
    }

    .how-text p {
        font-size: 0.8rem;
    }

    /* --- Quiz --- */
    .question h3 {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    .option-btn {
        padding: 12px 12px 10px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .option-text {
        font-size: 0.88rem;
    }

    .option-track {
        height: 26px;
    }

    .hold-tip {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    /* --- Results (Agradecimento + Kit) --- */
    #result-container {
        padding: 22px 14px;
    }

    .result-title {
        font-size: 1.3rem;
    }

    .result-thankyou-desc {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    .thankyou-banner-wrapper {
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .shipping-notice-box {
        padding: 22px 14px 16px;
        margin-bottom: 22px;
    }

    .shipping-price-wrapper {
        gap: 10px;
        margin: 8px 0 12px;
    }

    .price-main {
        font-size: 1.75rem;
    }

    .shipping-perks {
        gap: 10px;
    }

    .perk-item {
        font-size: 0.73rem;
    }

    /* Kit options → single column */
    .kit-options {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .kit-option {
        width: 100%;
        max-width: 100%;
        padding: 16px 14px 14px;
    }

    .kit-img-frame {
        height: 195px;
    }

    .kit-section-heading {
        font-size: 1.05rem;
    }

    /* --- CTA Buttons --- */
    .btn-cta {
        padding: 15px 18px;
        font-size: 0.93rem;
        max-width: 100%;
    }

    .btn-primary {
        max-width: 100%;
    }

    /* --- Checkout --- */
    .checkout-steps {
        font-size: 0.7rem;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .order-summary-card {
        padding: 14px 12px;
    }

    .summary-kit-info {
        gap: 12px;
    }

    .summary-img-wrapper {
        width: 68px;
        height: 68px;
    }

    .summary-details h4 {
        font-size: 0.95rem;
    }

    /* Form → single column */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    /* Bigger touch targets for inputs */
    .form-group input,
    .form-group select {
        padding: 13px 14px;
        font-size: 1rem; /* Prevents iOS zoom on focus */
        min-height: 48px;
    }

    .form-section {
        padding: 16px 14px;
        margin-bottom: 16px;
    }

    .form-section-title h3 {
        font-size: 0.95rem;
    }

    /* Upsell donation */
    .donation-chips-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .donation-chip {
        padding: 10px 6px;
        font-size: 0.82rem;
    }

    .upsell-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .upsell-candidate-avatar {
        margin: 0 auto;
    }

    /* Payment method box */
    .payment-tabs {
        grid-template-columns: 1fr;
    }

    .payment-method-box {
        padding: 14px 12px;
    }

    .pix-info-header {
        gap: 10px;
    }

    .pix-steps-list {
        font-size: 0.82rem;
        gap: 8px;
    }

    /* Security seal → wrap */
    .security-seal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        font-size: 0.72rem;
        line-height: 1.5;
    }

    /* --- PIX Modal --- */
    .modal-overlay {
        padding: 10px 6px;
        align-items: flex-end;
    }

    .modal-card {
        padding: 22px 14px 18px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    .pix-modal-header h3 {
        font-size: 1.1rem;
    }

    .pix-modal-header p {
        font-size: 0.85rem;
    }

    .pix-code-field {
        flex-direction: column;
        gap: 8px;
    }

    .pix-code-field input {
        width: 100%;
        font-size: 0.78rem;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
    }

    /* --- Success Screen --- */
    .tracking-card {
        padding: 16px 14px;
    }

    .tracking-code {
        font-size: 1.25rem;
        word-break: break-all;
    }

    .delivery-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .delivery-item.full {
        grid-column: span 1;
    }

    .delivery-item strong {
        font-size: 0.82rem;
        word-break: break-word;
    }

    .updates-notice {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* --- Small phones (max 430px) --- */
@media (max-width: 430px) {
    .container {
        padding: 12px 10px 36px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .logo {
        width: 96px;
    }

    .character-grid {
        gap: 8px;
    }

    .character-card {
        padding: 12px 8px 10px;
    }

    .character-img-wrapper {
        width: 74px;
        height: 74px;
    }

    .kit-img-frame {
        height: 185px;
    }

    .kit-showcase-photo-frame {
        height: 210px;
    }

    .donation-chips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .price-main {
        font-size: 1.6rem;
    }

    .btn-cta {
        font-size: 0.88rem;
        padding: 14px 14px;
    }

    /* PIX modal full bottom-sheet */
    .modal-card {
        padding: 20px 12px 16px;
    }

    .pix-modal-badge {
        font-size: 0.72rem;
    }

    .pix-qr-img {
        width: 155px;
        height: 155px;
    }

    .tracking-code {
        font-size: 1.1rem;
    }

    .result-title {
        font-size: 1.2rem;
    }

    .option-text {
        font-size: 0.84rem;
    }

    .question h3 {
        font-size: 0.97rem;
    }

    .kit-option h4 {
        font-size: 0.95rem;
    }

    .kit-includes {
        font-size: 0.74rem;
    }
}

/* --- Very small (max 380px) --- */
@media (max-width: 380px) {
    header h1 {
        font-size: 1.28rem;
    }

    .logo {
        width: 86px;
    }

    .character-img-wrapper {
        width: 66px;
        height: 66px;
    }

    .kit-img-frame {
        height: 170px;
    }

    .kit-showcase-photo-frame {
        height: 190px;
    }

    .shipping-notice-box {
        padding: 20px 12px 14px;
    }

    .price-main {
        font-size: 1.45rem;
    }

    .btn-cta {
        font-size: 0.84rem;
        padding: 13px 12px;
    }

    .form-group input,
    .form-group select {
        font-size: 0.95rem;
    }

    .modal-card {
        padding: 18px 10px 14px;
    }

    .pix-qr-img {
        width: 140px;
        height: 140px;
    }

    .tracking-code {
        font-size: 1rem;
    }

    .option-btn {
        padding: 10px 10px 8px;
    }

    .donation-chips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PIX MODAL — Loading, QR Real, Fallback
   ============================================ */
.pix-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pix-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary, #fff);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pix-qr-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.pix-qr-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.pix-qr-fallback span {
    font-size: 2rem;
}

/* Button loading state */
.btn.btn-loading {
    opacity: 0.75;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Status Indicator Box */
.pix-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--text-secondary, #a0aec0);
}

.pix-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #eab308;
}

.pix-status-dot.pulse {
    animation: statusPulse 1.5s infinite ease-in-out;
}

.pix-status-dot.success {
    background: #10b981;
}

.pix-status-dot.error {
    background: #ef4444;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px currentColor; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.pix-feedback-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.pix-feedback-msg.warning {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
}

.pix-feedback-msg.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.pix-feedback-msg.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #86efac;
}

/* ============================================
   SVG ICONS STYLING
   ============================================ */
.perk-icon,
.section-icon,
.security-seal span svg,
.how-icon,
.timer-icon,
.step-dot svg,
.badge-icon,
.notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.how-icon svg {
    color: var(--accent-primary, #ffffff);
}

.perk-icon svg {
    color: var(--accent-primary, #ffffff);
    opacity: 0.9;
}

.section-icon svg {
    color: var(--accent-primary, #ffffff);
    margin-right: 6px;
}

.security-seal span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.security-seal span svg {
    opacity: 0.8;
}

.timer-icon svg {
    margin-right: 5px;
    opacity: 0.85;
}

.step-dot svg {
    width: 14px;
    height: 14px;
}

.updates-notice p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.updates-notice svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-primary, #ffffff);
}