@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    background-color: #050505;
    color: white;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.funnel-shell {
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(1200px 640px at 10% 14%, rgba(255, 46, 46, 0.11), transparent 58%),
        radial-gradient(980px 540px at 88% 16%, rgba(255, 145, 0, 0.10), transparent 54%),
        radial-gradient(900px 520px at 50% 100%, rgba(173, 255, 47, 0.05), transparent 58%),
        linear-gradient(180deg, #080808 0%, #090909 38%, #050505 100%);
    position: relative;
}

body.funnel-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background:
        radial-gradient(70vw 70vw at -12% 42%, transparent 68%, rgba(255, 76, 61, 0.12) 68.5%, transparent 69.6%),
        radial-gradient(62vw 62vw at 112% 34%, transparent 69%, rgba(255, 153, 0, 0.12) 69.5%, transparent 70.6%);
    z-index: 0;
}

body.funnel-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 82%);
    z-index: 0;
}

.funnel-stage {
    position: relative;
    z-index: 1;
}

.funnel-header {
    width: min(100%, 760px);
    margin: 0 auto;
}

.funnel-main {
    width: min(100%, 760px);
    margin: 0 auto;
}

.funnel-hero-tight {
    margin-bottom: 0.75rem;
}

.funnel-panel {
    width: min(100%, 440px);
    margin-left: auto;
    margin-right: auto;
}

.funnel-panel-wide {
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
}

.text-neon-glow {
    text-shadow: 0 0 18px rgba(173, 255, 47, 0.18);
}

.neon-border-glow {
    box-shadow:
        0 18px 46px -28px rgba(0, 0, 0, 0.78),
        inset 0 0 0 1px rgba(173, 255, 47, 0.08),
        0 0 0 1px rgba(173, 255, 47, 0.12);
}

.soft-edge {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 22px 54px -30px rgba(0, 0, 0, 0.76),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-wordmark {
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
    font-weight: 900;
}

.header-floating {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.brand-divider {
    color: rgba(255, 255, 255, 0.84);
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
}

.balance-poster {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(255, 86, 66, 0.78), rgba(255, 156, 41, 0.82));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.balance-poster-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 28px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(11, 9, 9, 0.975), rgba(8, 8, 8, 0.985));
}

.balance-poster-inner::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.balance-poster-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.balance-poster-sep {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.balance-poster-value {
    min-width: 138px;
    text-align: right;
    color: #bfff22;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 0 10px rgba(191, 255, 34, 0.12);
}

.hero-title {
    background: linear-gradient(to bottom, #d2ff52 0%, #76b500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 4px 12px rgba(118, 181, 0, 0.2));
}

.glass-panel {
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.brand-tile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.brand-tile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}


.slanted-badge {
    transform: none;
}
.slanted-badge > * {
    transform: none;
}

@media (max-width: 767px) {
    .header-floating {
        gap: 10px;
    }

    .balance-poster-inner {
        padding: 13px 16px;
        gap: 10px;
    }

    .balance-poster-label {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .balance-poster-value {
        min-width: 96px;
        font-size: 22px;
    }

    .brand-divider {
        font-size: 24px;
    }

    .funnel-header {
        width: 100%;
    }

    .funnel-main {
        width: 100%;
    }

    .funnel-panel,
    .funnel-panel-wide {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .header-floating {
        max-width: 760px;
        gap: 12px;
    }

    .balance-poster {
        max-width: 860px;
        margin: 0 auto;
    }

    .balance-poster-inner {
        padding: 15px 24px;
    }

    .balance-poster-label {
        font-size: 10px;
    }

    .balance-poster-value {
        font-size: 24px;
    }

    body.funnel-shell {
        background:
            radial-gradient(900px 540px at 16% 16%, rgba(255, 46, 46, 0.10), transparent 56%),
            radial-gradient(860px 500px at 84% 18%, rgba(255, 145, 0, 0.09), transparent 52%),
            linear-gradient(180deg, #0a0909 0%, #090808 100%);
    }
}

@media (max-width: 420px) {
    .header-floating {
        gap: 8px;
    }

    .balance-poster-inner {
        padding: 12px 14px;
    }

    .balance-poster-value {
        min-width: 90px;
    }
}

/* YouTube-only light theme */
body.youtube-light,
body.youtube-light.poster-bg,
body.youtube-light.funnel-shell {
    background:
        radial-gradient(900px 520px at 12% 12%, rgba(229, 9, 20, 0.08), transparent 58%),
        radial-gradient(840px 480px at 88% 12%, rgba(255, 255, 255, 0.9), transparent 56%),
        linear-gradient(180deg, #ffffff 0%, #f6f7f9 48%, #eef1f5 100%) !important;
    color: #111827;
}

body.youtube-light > .fixed.inset-0.pointer-events-none,
body.youtube-light .poster-lines {
    display: none !important;
}

body.youtube-light .poster-noise {
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
}

body.youtube-light .balance-poster {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.56), rgba(229, 9, 20, 0.18));
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

body.youtube-light .balance-poster-inner,
body.youtube-light .glass-pill,
body.youtube-light .glass-panel,
body.youtube-light .poster-card-inner,
body.youtube-light .entry-bonus > div,
body.youtube-light .micro-pill > span,
body.youtube-light [class*="bg-[#0d1624]"],
body.youtube-light [class*="bg-[#070e1b]"],
body.youtube-light [class*="bg-[#0a150e]"],
body.youtube-light [class*="bg-[#050e1a]"],
body.youtube-light [class*="bg-[#050811]"],
body.youtube-light [class*="bg-[#1e2d42]"],
body.youtube-light [class*="bg-zinc-950"],
body.youtube-light [class*="bg-black/"] {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(17, 24, 39, 0.12) !important;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    color: #111827;
}

body.youtube-light .poster-card {
    background: rgba(229, 9, 20, 0.20) !important;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
}

body.youtube-light .entry-bonus {
    background: linear-gradient(135deg, rgba(16, 132, 62, 0.34), rgba(229, 9, 20, 0.18)) !important;
}

body.youtube-light .micro-pill {
    background: rgba(229, 9, 20, 0.18) !important;
}

body.youtube-light .balance-poster-label,
body.youtube-light .eyebrow-soft,
body.youtube-light .text-zinc-300,
body.youtube-light .text-zinc-400,
body.youtube-light .text-gray-300,
body.youtube-light .text-gray-400,
body.youtube-light .text-white,
body.youtube-light .text-white\/95,
body.youtube-light .text-zinc-200 {
    color: #111827 !important;
    text-shadow: none !important;
}

body.youtube-light .text-zinc-500,
body.youtube-light .text-gray-500 {
    color: #6b7280 !important;
}

body.youtube-light [class*="text-[#adff2f]"],
body.youtube-light [class*="text-[#caff35]"],
body.youtube-light [class*="text-[#d5ff2a]"],
body.youtube-light .balance-poster-value {
    color: #12863c !important;
    text-shadow: none !important;
}

body.youtube-light .hero-word {
    color: #e50914 !important;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 16px 30px rgba(229, 9, 20, 0.16) !important;
    -webkit-text-stroke: 1px rgba(145, 0, 0, 0.18) !important;
}

body.youtube-light .balance-poster-sep {
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.16), transparent) !important;
}

body.youtube-light .brand-tile {
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.10);
}

body.youtube-light header img[alt="YouTube"] {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    object-fit: contain;
}

body.youtube-light [class*="border-[#1e2d42]"],
body.youtube-light [class*="border-[#13233c]"],
body.youtube-light [class*="border-zinc-800"],
body.youtube-light [class*="border-zinc-700"],
body.youtube-light [class*="border-white/"] {
    border-color: rgba(17, 24, 39, 0.12) !important;
}

body.youtube-light input,
body.youtube-light select {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(17, 24, 39, 0.16) !important;
}

body.youtube-light input::placeholder {
    color: #8b95a5 !important;
}

body.youtube-light button.text-white,
body.youtube-light a.text-white,
body.youtube-light .plan-btn {
    color: #ffffff !important;
}

body.youtube-light .poster-cta,
body.youtube-light .poster-cta *,
body.youtube-light [class*="bg-[#17d966]"],
body.youtube-light [class*="from-[#adff2f]"] {
    color: #04100b !important;
}

/* YouTube polish: softer whites, red actions, green only for wins. */
body.youtube-light,
body.youtube-light.poster-bg,
body.youtube-light.funnel-shell {
    background:
        radial-gradient(880px 520px at 12% 12%, rgba(229, 9, 20, 0.09), transparent 58%),
        radial-gradient(760px 460px at 88% 18%, rgba(229, 9, 20, 0.035), transparent 58%),
        linear-gradient(180deg, #fff8f7 0%, #f7f3f3 48%, #edf0f4 100%) !important;
}

body.youtube-light .balance-poster-inner,
body.youtube-light .glass-pill,
body.youtube-light .glass-panel,
body.youtube-light .poster-card-inner,
body.youtube-light .entry-bonus > div,
body.youtube-light .micro-pill > span,
body.youtube-light [class*="bg-[#0d1624]"],
body.youtube-light [class*="bg-[#070e1b]"],
body.youtube-light [class*="bg-[#0a150e]"],
body.youtube-light [class*="bg-[#050e1a]"],
body.youtube-light [class*="bg-[#050811]"],
body.youtube-light [class*="bg-[#1e2d42]"],
body.youtube-light [class*="bg-zinc-950"],
body.youtube-light [class*="bg-black/"] {
    background: rgba(255, 252, 251, 0.94) !important;
}

body.youtube-light .poster-card {
    background: rgba(229, 9, 20, 0.16) !important;
}

body.youtube-light .welcome-note,
body.youtube-light [class*="text-zinc-200/"],
body.youtube-light [class*="text-white/"] {
    color: #374151 !important;
    text-shadow: none !important;
}

body.youtube-light [class*="text-[#adff2f]"],
body.youtube-light [class*="text-[#caff35]"],
body.youtube-light [class*="text-[#d5ff2a]"],
body.youtube-light .balance-poster-value,
body.youtube-light .welcome-bonus-value {
    color: #11843f !important;
}

body.youtube-light [class*="bg-[#adff2f]"] {
    background-color: #18a84f !important;
}

body.youtube-light .poster-cta {
    background: linear-gradient(180deg, #ff2430 0%, #e50914 100%) !important;
    box-shadow: 0 14px 26px rgba(229, 9, 20, 0.22), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}

body.youtube-light .poster-cta,
body.youtube-light .poster-cta * {
    color: #ffffff !important;
}

body.youtube-light .poster-cta-outline {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.30), rgba(229, 9, 20, 0.12)) !important;
}

body.youtube-light .reward-cta {
    background: linear-gradient(135deg, #13b96b 0%, #118a43 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(17, 138, 67, 0.22) !important;
}

body.youtube-light .reward-cta *,
body.youtube-light .reward-cta i {
    color: #ffffff !important;
}

body.youtube-light .reward-overlay {
    background: rgba(244, 241, 241, 0.78) !important;
}

body.youtube-light [class*="bg-[#adff2f]/10"] {
    background-color: rgba(17, 132, 63, 0.10) !important;
}

body.youtube-light .question-badge {
    background: #e50914 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.18) !important;
}

body.youtube-light .question-badge *,
body.youtube-light .question-badge svg {
    color: #ffffff !important;
    stroke: currentColor !important;
}

body.youtube-light .reward-chip {
    background: rgba(17, 132, 63, 0.10) !important;
    border-color: rgba(17, 132, 63, 0.24) !important;
    color: #11843f !important;
    box-shadow: none !important;
}

body.youtube-light .reward-chip *,
body.youtube-light .reward-chip svg {
    color: #11843f !important;
    stroke: currentColor !important;
}

body.youtube-light .survey-option {
    background: rgba(255, 252, 251, 0.96) !important;
    border-color: rgba(17, 24, 39, 0.26) !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.095) !important;
}

body.youtube-light .survey-option:hover {
    background: #fff5f4 !important;
    border-color: rgba(229, 9, 20, 0.48) !important;
}

body.youtube-light .survey-option-selected {
    background: linear-gradient(90deg, #fff6f5 0%, #ffffff 100%) !important;
    border-color: rgba(229, 9, 20, 0.46) !important;
    box-shadow:
        inset 4px 0 0 #e50914,
        0 12px 28px rgba(229, 9, 20, 0.10) !important;
}

body.youtube-light .survey-option-selected span[id^="text-"] {
    color: #111827 !important;
}

body.youtube-light .survey-check-selected {
    background: #118a43 !important;
    border-color: #118a43 !important;
}

body.youtube-light .survey-check-selected i {
    color: #ffffff !important;
}

body.youtube-light input,
body.youtube-light select {
    background: #fffdfc !important;
}

/* Plan page: YouTube-forward layout with readable warm surfaces. */
body.youtube-light.plan-page {
    justify-content: flex-start !important;
    padding-top: 2rem !important;
    padding-bottom: 2.25rem !important;
    background:
        radial-gradient(900px 420px at 50% -12%, rgba(229, 9, 20, 0.12), transparent 62%),
        linear-gradient(180deg, #fff6f4 0%, #f5f1f1 50%, #edf0f4 100%) !important;
}

body.youtube-light.plan-page > .fixed.inset-0.pointer-events-none {
    display: none !important;
}

body.youtube-light.plan-page .plan-header {
    margin-bottom: 1.5rem !important;
}

body.youtube-light.plan-page .plan-hero {
    max-width: 24rem;
}

body.youtube-light.plan-page .plan-eyebrow {
    color: #5f6876 !important;
}

body.youtube-light.plan-page .plan-title {
    color: #e50914 !important;
    text-shadow: 0 10px 24px rgba(229, 9, 20, 0.16) !important;
}

body.youtube-light.plan-page .plan-subtitle {
    color: #111827 !important;
    line-height: 1.25 !important;
}

body.youtube-light.plan-page .plan-header .rounded-full {
    color: #e50914 !important;
    border-color: rgba(229, 9, 20, 0.22) !important;
}

body.youtube-light.plan-page .plan-warning {
    background: #fff0e7 !important;
    border-color: rgba(234, 88, 12, 0.28) !important;
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.08) !important;
}

body.youtube-light.plan-page .plan-warning-text {
    color: #7c2d12 !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
}

body.youtube-light.plan-page .plan-warning svg {
    color: #c2410c !important;
    stroke: currentColor !important;
}

body.youtube-light.plan-page .plan-card {
    background: rgba(255, 252, 251, 0.96) !important;
    border-color: rgba(17, 24, 39, 0.11) !important;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.11) !important;
}

body.youtube-light.plan-page .plan-card-featured {
    border-color: rgba(229, 9, 20, 0.34) !important;
    box-shadow: 0 22px 52px rgba(229, 9, 20, 0.13) !important;
}

body.youtube-light.plan-page .plan-ribbon {
    background: #e50914 !important;
    color: #ffffff !important;
}

body.youtube-light.plan-page .plan-card [class*="text-white"],
body.youtube-light.plan-page .plan-card [class*="text-zinc-400"],
body.youtube-light.plan-page .plan-card [class*="text-zinc-450"] {
    color: #111827 !important;
}

body.youtube-light.plan-page .plan-card p[class*="text-zinc"],
body.youtube-light.plan-page footer p {
    color: #4b5563 !important;
}

body.youtube-light.plan-page .plan-card span[class*="text-[#adff2f]"],
body.youtube-light.plan-page .plan-card i[class*="text-[#adff2f]"] {
    color: #11843f !important;
}

body.youtube-light.plan-page .plan-card-featured .leading-none > span:first-child {
    color: #e50914 !important;
}

body.youtube-light.plan-page .plan-card-featured span.rounded-full {
    background: rgba(229, 9, 20, 0.08) !important;
    border-color: rgba(229, 9, 20, 0.18) !important;
    color: #e50914 !important;
}

body.youtube-light.plan-page .plan-card .rounded-xl[class*="bg-[#adff2f]"],
body.youtube-light.plan-page .plan-card .rounded-full[class*="bg-[#adff2f]"] {
    background-color: rgba(17, 132, 63, 0.10) !important;
    border-color: rgba(17, 132, 63, 0.24) !important;
}

body.youtube-light.plan-page .plan-btn {
    background: linear-gradient(180deg, #ff2430 0%, #e50914 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(229, 9, 20, 0.20) !important;
}

body.youtube-light.plan-page .plan-btn:hover {
    background: linear-gradient(180deg, #ff3b45 0%, #d90412 100%) !important;
}

body.youtube-light.plan-page .plan-card .plan-btn,
body.youtube-light.plan-page .plan-btn,
body.youtube-light.plan-page .plan-card .plan-btn *,
body.youtube-light.plan-page .plan-btn * {
    color: #ffffff !important;
}

@media (max-width: 767px) {
    body.youtube-light.plan-page {
        padding-top: 1.5rem !important;
    }

    body.youtube-light.plan-page .plan-header {
        margin-bottom: 1.25rem !important;
    }

    body.youtube-light.plan-page .plan-card {
        padding: 1.35rem !important;
    }
}
