/* ============================================================
   Channel Snapshot — Card Experience Styles
   Dark theme, mobile-first, swipeable cards
   ============================================================ */

:root {
    --bg: #0f0f0f;
    --card-bg: #141414;
    --surface: #1e1e1e;
    --surface-alt: #252525;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent: #ff4444;
    --accent-soft: rgba(255, 68, 68, 0.15);
    --brand: #ffd52e;
    --brand-soft: rgba(255, 213, 46, 0.15);
    --success: #3ddc97;
    --border: rgba(255, 255, 255, 0.08);
    --card-radius: 0px;
    --transition: 300ms ease-out;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ============================================================
   Input Screen
   ============================================================ */

.input-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 24px;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.input-screen.fade-out {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.input-logo {
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: #000;
    font-weight: 800;
}

.input-headline {
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    max-width: 480px;
}

.input-subline {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 360px;
    line-height: 1.5;
}

.input-form {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-field-wrap {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

.input-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--brand);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-submit-btn:hover {
    opacity: 0.9;
}

.input-submit-btn:active {
    transform: scale(0.98);
}

.input-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-error {
    font-size: 13px;
    color: var(--accent);
    text-align: left;
    padding: 0 4px;
    min-height: 18px;
    display: none;
}

.input-error.visible {
    display: block;
}

/* ============================================================
   Loading Screen
   ============================================================ */

.loading-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 24px;
    text-align: center;
}

.loading-screen.active {
    display: flex;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 24px;
}

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

.loading-url {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: monospace;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loading-message {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================================
   Card Experience
   ============================================================ */

.card-experience {
    display: none;
    flex-direction: column;
    height: 85vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    width: 100%;
    max-width: 528px;
}

.card-experience.active {
    display: flex;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    gap: 4px;
    padding: 12px 16px 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.progress-segment .fill {
    height: 100%;
    width: 0%;
    background: var(--brand);
    border-radius: 2px;
    transition: none;
}

.progress-segment.done .fill {
    width: 100%;
}

.progress-segment.active .fill {
    transition: width linear;
}

/* Cards Container */
.cards-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 56px 20px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--card-bg);
}

.card.active {
    transform: translateX(0);
}

.card.prev {
    transform: translateX(-100%);
}

/* Card entrance animation for content */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.active .card-content {
    animation: fadeUp 0.35s ease-out forwards;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

/* Navigation tap zones */
.tap-prev, .tap-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 5;
    cursor: pointer;
}

.tap-prev { left: 0; }
.tap-next { right: 0; }

/* ============================================================
   Card 1 — The Hook
   ============================================================ */

.card-hook {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hook-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    animation: avatarEntrance 0.5s ease-out forwards;
}

@keyframes avatarEntrance {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hook-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.hook-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.hook-channel-name {
    font-size: clamp(26px, 7vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hook-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    width: 100%;
    max-width: 280px;
    margin-top: 1rem;
}

.hook-stat {
    text-align: center;
}

.hook-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hook-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
    display: block;
}

.hook-tagline {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.5;
}

/* ============================================================
   Card 2 — The Win (Best Video)
   ============================================================ */

.win-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.win-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.win-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.win-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.win-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.win-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.win-stat-icon {
    font-size: 16px;
}

.win-multiplier {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.03em;
}

.win-multiplier-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.win-insight {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 10px;
    border-left: 3px solid var(--brand);
}

/* ============================================================
   Card 3 — The Pattern
   ============================================================ */

.pattern-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pattern-headline {
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--brand);
}

.pattern-context {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pattern-visual {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pattern-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.pattern-bar-label {
    width: 90px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.pattern-bar-track {
    flex: 1;
    height: 12px;
    background: var(--surface-alt);
    border-radius: 6px;
    overflow: hidden;
}

.pattern-bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 6px;
    transition: width 0.8s ease-out;
    width: 0%;
}

.pattern-bar-fill--muted {
    background: rgba(255, 255, 255, 0.25);
}

.pattern-bar-value {
    font-size: 12px;
    color: var(--text-muted);
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* Pie / donut chart (Card 3) */
.pie-chart-wrap {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pie-chart-svg {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pie-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pie-dot--brand { background: var(--brand); }
.pie-dot--muted { background: rgba(255, 255, 255, 0.2); }

.pie-legend-label {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.pie-legend-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.pie-legend-pct {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ============================================================
   Card 4 — The Opportunity
   ============================================================ */

.opp-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.opp-niche-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brand-soft);
    border: 1px solid rgba(255, 213, 46, 0.2);
    border-radius: 100px;
    font-size: 15px;
    color: var(--brand);
    font-weight: 600;
    align-self: flex-start;
}

.opp-headline {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.opp-data-point {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 10px;
}

.opp-topic-headline {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.opp-section-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.opp-why-stats {
    font-size: 17px;
    font-weight: 600;
    color: var(--brand);
    line-height: 1.5;
}

.opp-why-context {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 3px;
}

.opp-advantage {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.opp-teaser {
    font-size: 17px;
    font-weight: 600;
    color: var(--brand);
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
    opacity: 0.9;
}

.opp-scanning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
    text-align: center;
}

.opp-scanning-spinner {
    width: 36px;
    height: 36px;
    border: 2.5px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.opp-scanning-text {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================================================
   Card 5 — The Gate
   ============================================================ */

.gate-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gate-headline {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Performance stat lines (Card 5) */
.perf-stat-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border-radius: 12px;
    padding: 14px 16px;
}

.perf-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.perf-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.perf-stat-value--accent {
    color: var(--success);
}

.perf-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.perf-stat-highlight {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Video Brief sections */
.brief-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brief-section-header {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.brief-section-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.brief-text-blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    color: var(--text-primary);
}

.brief-points {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 15px;
    line-height: 1.5;
}

.brief-points li::before {
    content: '→ ';
    color: var(--brand);
}

.gate-blur-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.gate-blur-content {
    padding: 18px 20px;
    background: var(--surface);
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.gate-blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(14, 14, 14, 0.4);
    border-radius: 14px;
}

.gate-cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.gate-cta-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.google-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.google-cta-btn:hover {
    opacity: 0.93;
}

.google-cta-btn:active {
    transform: scale(0.98);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.gate-secondary-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ============================================================
   Skeleton Loader
   ============================================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface) 25%,
        var(--surface-alt) 50%,
        var(--surface) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.full { width: 100%; }

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ============================================================
   Error Screen
   ============================================================ */

.error-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 24px;
    text-align: center;
}

.error-screen.active {
    display: flex;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.error-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 28px;
}

.error-retry-btn {
    padding: 12px 28px;
    background: var(--brand);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.error-retry-btn:hover {
    opacity: 0.9;
}

/* ============================================================
   Navigation Arrows
   ============================================================ */

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-arrow--prev {
    left: 10px;
}

.nav-arrow--next {
    right: 10px;
}

/* ============================================================
   Desktop centering
   ============================================================ */

@media (min-width: 481px) {
    .input-screen,
    .loading-screen,
    .error-screen {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    body {
        background: #0a0a0a;
    }

    .card-experience {
        box-shadow: 0 0 0 1px var(--border);
    }
}

/* ============================================================
   Sign-up Nudge (appears on cards 1–4 after Card 5 is viewed)
   ============================================================ */

.signup-nudge {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    background: var(--card-bg);
    border: 1px solid rgba(255, 213, 46, 0.4);
    border-radius: 100px;
    padding: 7px 18px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
    z-index: 7;
}

.signup-nudge.visible {
    display: block;
}

.signup-nudge:hover {
    border-color: rgba(255, 213, 46, 0.8);
    opacity: 1;
}

/* ============================================================
   Card 6 — Early Access Capture
   ============================================================ */

.card-earlyaccess {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-earlyaccess .card-content,
.card-confirmation .card-content {
    align-items: center;
    justify-content: center;
}

.ea-channel-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: var(--surface);
    border-radius: 100px;
    margin-bottom: 8px;
}

.ea-channel-chip img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ea-channel-chip span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ea-headline {
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
}

.ea-subtext {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
}

.ea-form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.ea-email-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    text-align: center;
}

.ea-email-input::placeholder {
    color: var(--text-muted);
}

.ea-email-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

.ea-error {
    font-size: 13px;
    color: var(--accent);
    min-height: 0;
    display: none;
    text-align: center;
}

.ea-error.visible {
    display: block;
    min-height: 18px;
}

.ea-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--brand);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ea-submit-btn:hover {
    opacity: 0.9;
}

.ea-submit-btn:active {
    transform: scale(0.98);
}

.ea-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ea-submit-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.ea-microcopy {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   Card 7 — Confirmation ("You're In")
   ============================================================ */

.card-confirmation {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.conf-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 4px;
}

.conf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conf-channel-name {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.conf-headline {
    font-size: clamp(32px, 9vw, 48px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    animation: confFadeIn 0.6s ease-out both;
}

.conf-subheadline {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    animation: confFadeIn 0.6s 0.15s ease-out both;
}

.conf-body {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
    animation: confFadeIn 0.6s 0.3s ease-out both;
}

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

.conf-divider {
    width: 48px;
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.conf-meantime {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.conf-actions {
    display: flex;
    gap: 12px;
}

.conf-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-primary);
}

.conf-btn:hover {
    opacity: 0.85;
}

.conf-btn:active {
    transform: scale(0.97);
}

.conf-btn--share {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.15);
}

.conf-btn--home {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Sticky Bottom Bar
   ============================================================ */

.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.35s ease-out;
    pointer-events: none;
}

.sticky-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-bar-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.sticky-bar-input {
    flex: 1;
    max-width: 220px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
}

.sticky-bar-input::placeholder {
    color: var(--text-muted);
}

.sticky-bar-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

.sticky-bar-btn {
    padding: 10px 18px;
    background: var(--brand);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.sticky-bar-btn:hover {
    opacity: 0.9;
}

.sticky-bar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile: hide desktop input+button, show mobile-only button */
.sticky-bar-btn--mobile {
    display: none;
}

@media (max-width: 639px) {
    .sticky-bar {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .sticky-bar-text,
    .sticky-bar-input,
    .sticky-bar-btn:not(.sticky-bar-btn--mobile) {
        display: none;
    }

    .sticky-bar-btn--mobile {
        display: block;
        width: 100%;
    }
}

/* ============================================================
   Count-up animation class (JS-controlled)
   ============================================================ */

.countup {
    display: inline-block;
}
