/* css/style.css - V2601R2 Visual Upgrade */

/* --- 1. 全局设置 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #F1F5F9; /* 浅灰底色 */
    color: #1E293B;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden; /* 防止背景滚动 */
    /* 确保 PC 端居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

/* --- 2. 呼吸光晕背景 (Mesh Gradient) --- */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    /* 蓝色和橙色的弥散光斑 */
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: breathe 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes breathe {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* --- 3. App Shell (手机容器) --- */
#app-root {
    width: 100%;
    max-width: 28rem; /* 448px (PC端限制宽度) */
    height: 100vh;
    height: 100dvh;
    background-color: rgba(248, 250, 252, 0.8); /* 半透明背景 */
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* PC端深投影 */
    display: flex;
    flex-direction: column;
}

/* --- 4. 高级卡片样式 (Glassmorphism) --- */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5); /* 极细白边 */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card-glass:active {
    transform: scale(0.98);
}

/* --- 5. 矢量背景类 (用于头图) --- */
/* 蓝色主题 (EPA/Home) */
.bg-vector-blue {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
}
.bg-vector-blue::after {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(40px);
}

/* 深色主题 (Exams) */
.bg-vector-dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
}
.bg-vector-dark::before {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 150px; height: 150px;
    background: rgba(249, 115, 22, 0.15); /* 橙色光 */
    border-radius: 50%;
    filter: blur(30px);
}

/* --- 6. 通用工具 --- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.safe-pb {
    padding-bottom: 20px;
    padding-bottom: env(safe-area-inset-bottom);
}
.fixed-bottom-safe {
    padding-bottom: env(safe-area-inset-bottom);
    bottom: 0;
}

.page-hidden { display: none; }
.page-visible { 
    display: flex; flex-direction: column; height: 100%; 
    animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    overflow-y: auto; 
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-active { color: #2563EB; font-weight: 600; }
.nav-active i { transform: translateY(-3px); filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2)); }

.card-spotlight,
.module-spotlight {
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.25),
        0 16px 32px -20px rgba(37, 99, 235, 0.55);
}

.card-spotlight {
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

.module-spotlight {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(239, 246, 255, 0.85) 100%);
}

.home-hero-eyebrow {
    color: rgba(219, 234, 254, 0.95);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.55rem;
}

.home-hero-title {
    margin: 0;
    max-width: none;
    padding-right: 4.75rem;
    color: #ffffff;
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.home-hero-title__line {
    display: block;
}

.home-hero-title__line--nowrap {
    white-space: nowrap;
    font-size: 0.9em;
}

.home-hero-subtitle {
    margin: 0.7rem 0 0;
    max-width: 16rem;
    color: rgba(239, 246, 255, 0.92);
    font-size: 0.82rem;
    line-height: 1.5;
    font-weight: 600;
}

.home-hero-shell {
    border-bottom-left-radius: 2.6rem;
    border-bottom-right-radius: 2.6rem;
    overflow: hidden;
}

.home-hero-top {
    position: relative;
    margin-bottom: 1rem;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
}

.home-profile-button {
    position: absolute;
    top: 0.2rem;
    right: 0;
    z-index: 50;
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 16px 28px -18px rgba(15, 23, 42, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-profile-button:active {
    transform: scale(0.96);
}

.home-profile-button__icon {
    color: white;
    font-size: 1.15rem;
}

.home-content-shell {
    background: #f8fafc;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.home-dashboard-kicker {
    margin: 0 0 0.35rem;
    color: rgba(219, 234, 254, 0.92);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-dashboard-title {
    margin: 0;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-dashboard-helper {
    margin: 0.38rem 0 0;
    color: rgba(219, 234, 254, 0.84);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.42;
}

.home-dashboard-stat-label {
    color: rgba(219, 234, 254, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
}

.home-dashboard-stat-value {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.home-dashboard-note {
    color: rgba(219, 234, 254, 0.84);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 10.5rem;
}

.home-dashboard-cta {
    min-width: 8.8rem;
}

.home-dashboard-cta-button {
    border: 0;
    min-width: 9.4rem;
    padding: 0.72rem 1.15rem;
    border-radius: 9999px;
    white-space: nowrap;
    color: white;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 55%, #fdba74 100%);
    box-shadow:
        0 18px 28px -18px rgba(249, 115, 22, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-dashboard-cta-button:active {
    transform: translateY(1px) scale(0.98);
}

.home-section-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section-link {
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.66rem;
    font-weight: 800;
    cursor: pointer;
}

.home-upgrade-banner {
    width: 100%;
    margin: 0.35rem 0 1.15rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    background:
        linear-gradient(135deg, rgba(255, 214, 102, 0.96) 0%, rgba(251, 146, 60, 0.92) 100%);
    box-shadow:
        0 18px 34px -24px rgba(249, 115, 22, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-upgrade-banner:active {
    transform: scale(0.985);
}

.home-upgrade-banner__icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.22);
    color: #7c2d12;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.home-upgrade-banner__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.home-upgrade-banner__title {
    color: #3b1f0b;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-upgrade-banner__subtitle {
    margin-top: 0.18rem;
    color: rgba(92, 40, 10, 0.86);
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-upgrade-banner__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.home-upgrade-banner__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.58rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(92, 40, 10, 0.9);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-upgrade-banner__arrow {
    color: rgba(92, 40, 10, 0.8);
    font-size: 0.82rem;
}

.home-module-card {
    min-height: 0;
    padding: 1rem 1rem 0.9rem;
    display: grid;
    gap: 0.8rem;
    box-shadow: 0 18px 34px -28px rgba(15, 23, 42, 0.22);
}

.home-module-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
}

.home-module-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-module-card__icon i {
    font-size: 1.1rem;
}

.home-module-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
}

.home-module-card__title {
    color: #1e3a5f;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.home-module-card__badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    font-size: 0.62rem;
    padding: 0.34rem 0.62rem;
    border-radius: 9999px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.home-module-card__subtitle {
    color: #7c8ca5;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.home-module-card__chevron {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: rgba(239, 246, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-module-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.home-module-card__footer-label {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-module-card__footer-link {
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.home-module-card--compact {
    padding: 0.9rem 0.82rem 0.78rem;
    gap: 0.65rem;
}

.home-module-card__compact-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
}

.home-module-card__compact-main {
    min-width: 0;
    display: grid;
    gap: 0.42rem;
}

.home-module-card__compact-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
}

.home-module-card--compact .home-module-card__title {
    font-size: 0.82rem;
    line-height: 1.18;
}

.home-module-card--compact .home-module-card__subtitle {
    font-size: 0.72rem;
    line-height: 1.35;
    min-height: 2.2rem;
}

.home-module-card--compact .home-module-card__badge {
    font-size: 0.56rem;
    padding: 0.26rem 0.46rem;
}

.home-module-card--compact .home-module-card__chevron {
    width: 2.1rem;
    height: 2.1rem;
}

.home-module-card--compact .home-module-card__footer {
    padding-top: 0.6rem;
}

.home-module-card--compact .home-module-card__footer-label,
.home-module-card--compact .home-module-card__footer-link {
    font-size: 0.64rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 0.675rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.5);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.exams-feature-card,
.exams-secondary-card,
.exams-list-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.exams-feature-card__inner {
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
    .home-dashboard-card:hover,
    .home-upgrade-banner:hover,
    .home-module-card:hover,
    .trust-pill:hover,
    .exams-feature-card:hover,
    .exams-secondary-card:hover,
    .exams-list-card:hover {
        transform: translateY(-2px);
    }

    .home-dashboard-card:hover {
        box-shadow:
            0 28px 46px -26px rgba(15, 23, 42, 0.66),
            0 16px 28px -20px rgba(37, 99, 235, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .home-upgrade-banner:hover {
        box-shadow:
            0 22px 38px -24px rgba(249, 115, 22, 0.52),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .home-module-card:hover {
        box-shadow: 0 24px 38px -24px rgba(15, 23, 42, 0.26);
        border-color: rgba(191, 219, 254, 0.95);
    }

    .home-module-card:hover .home-module-card__chevron {
        transform: translateX(2px);
        box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.95);
    }

    .trust-pill:hover {
        box-shadow: 0 14px 24px -20px rgba(15, 23, 42, 0.4);
        border-color: rgba(191, 219, 254, 0.95);
    }

    .exams-feature-card:hover {
        box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.24);
    }

    .exams-feature-card:hover .exams-feature-card__inner {
        box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.55);
        border-color: rgba(191, 219, 254, 0.95);
    }

    .exams-secondary-card:hover {
        box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.22);
        border-color: rgba(226, 232, 240, 1);
    }

    .exams-list-card:hover {
        box-shadow: 0 20px 34px -24px rgba(15, 23, 42, 0.2);
        border-color: rgba(226, 232, 240, 1);
    }

    .exams-list-card:hover .group-hover\:text-orange-600,
    .exams-list-card:hover .group-hover\:text-blue-600,
    .exams-list-card:hover .group-hover\:text-red-600 {
        opacity: 1;
    }
}

.dashboard-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(219, 234, 254, 0.08) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.home-dashboard-card {
    padding: 1rem;
    border-radius: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 24px 42px -26px rgba(15, 23, 42, 0.6),
        0 12px 24px -20px rgba(37, 99, 235, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-shell__top {
    display: grid;
    grid-template-columns: 6.6rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
}

.probability-ring {
    --probability: 12;
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    width: 6.6rem;
    height: 6.6rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.probability-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        conic-gradient(from -90deg, #fde68a 0deg, #fb923c calc(var(--probability) * 3.6deg), rgba(255, 255, 255, 0.18) calc(var(--probability) * 3.6deg), rgba(255, 255, 255, 0.08) 360deg);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 18px 36px -28px rgba(15, 23, 42, 0.9);
}

.probability-ring::after {
    content: '';
    position: absolute;
    inset: 0.62rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 18px rgba(148, 163, 184, 0.12);
}

.probability-ring__content {
    position: relative;
    z-index: 1;
    width: 4.7rem;
    min-height: 4.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.25rem;
}

.probability-ring__label {
    color: rgba(191, 219, 254, 0.88);
    font-size: 0.44rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    max-width: 3.9rem;
}

.probability-ring__value {
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 0.24rem;
}

@media (max-width: 420px) {
    .home-hero-title {
        font-size: 2rem;
        padding-right: 4.4rem;
    }

    .home-hero-subtitle {
        font-size: 0.78rem;
        max-width: 14rem;
    }

    .dashboard-shell__top {
        grid-template-columns: 5.8rem minmax(0, 1fr);
        justify-items: stretch;
        text-align: left;
        gap: 0.75rem;
    }

    .probability-ring {
        width: 5.8rem;
        height: 5.8rem;
    }

    .probability-ring::after {
        inset: 0.56rem;
    }

    .probability-ring__content {
        width: 4.05rem;
        min-height: 4.05rem;
    }

    .probability-ring__value {
        font-size: 1.12rem;
    }

    .home-dashboard-note {
        max-width: 8.6rem;
        font-size: 0.64rem;
    }

    .home-dashboard-cta {
        min-width: 7.9rem;
    }

    .home-dashboard-cta-button {
        min-width: 8.4rem;
        padding: 0.64rem 1rem;
        font-size: 0.72rem;
    }

    .home-upgrade-banner {
        margin: 0.3rem 0 1rem;
        padding: 0.82rem 0.9rem;
        gap: 0.7rem;
    }

    .home-upgrade-banner__icon {
        width: 2.55rem;
        height: 2.55rem;
    }

    .home-upgrade-banner__title {
        font-size: 0.92rem;
    }

    .home-upgrade-banner__subtitle {
        font-size: 0.68rem;
    }

    .home-upgrade-banner__chip {
        font-size: 0.54rem;
        padding: 0.28rem 0.48rem;
    }

    .home-module-card {
        padding: 0.92rem 0.92rem 0.84rem;
        gap: 0.72rem;
    }

    .home-module-card__title {
        font-size: 0.88rem;
    }

    .home-module-card__badge {
        font-size: 0.56rem;
        padding: 0.3rem 0.5rem;
    }

    .home-module-card__subtitle {
        font-size: 0.76rem;
    }

    .home-module-card__icon {
        width: 2.7rem;
        height: 2.7rem;
    }

    .home-module-card__icon i {
        font-size: 1rem;
    }

    .home-module-card__chevron {
        width: 1.8rem;
        height: 1.8rem;
    }

    .home-module-card__footer-label,
    .home-module-card__footer-link {
        font-size: 0.64rem;
    }

    .home-module-card--compact {
        padding: 0.82rem 0.74rem 0.72rem;
        gap: 0.58rem;
    }

    .home-module-card--compact .home-module-card__title {
        font-size: 0.78rem;
    }

    .home-module-card--compact .home-module-card__subtitle {
        font-size: 0.68rem;
        min-height: 2rem;
    }

    .home-module-card--compact .home-module-card__chevron {
        width: 1.9rem;
        height: 1.9rem;
    }
}

.explanation-content--blurred {
    filter: blur(6px) saturate(0.92);
    opacity: 1;
    background: rgba(248, 250, 252, 0.42) !important;
    border-color: rgba(191, 219, 254, 0.24) !important;
    user-select: none;
    pointer-events: none;
}

.explanation-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
}

.explanation-overlay__scrim {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.02) 0%, rgba(239, 246, 255, 0.08) 55%, rgba(248, 250, 252, 0.12) 100%);
    border: 1px solid rgba(191, 219, 254, 0.12);
    backdrop-filter: blur(2px) saturate(1.01);
    -webkit-backdrop-filter: blur(2px) saturate(1.01);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.gold-lock-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: min(13.5rem, 100%);
    padding: 0.82rem 0.92rem;
    border: 1px solid rgba(191, 219, 254, 0.26);
    border-radius: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(239, 246, 255, 0.12) 100%);
    color: #1e3a5f;
    backdrop-filter: blur(10px) saturate(1.03);
    -webkit-backdrop-filter: blur(10px) saturate(1.03);
    box-shadow:
        0 16px 28px -24px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gold-lock-btn__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(191, 219, 254, 0.24);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.gold-lock-btn__title {
    font-size: 0.84rem;
    font-weight: 900;
    color: #1e3a5f;
}

.gold-lock-btn__copy {
    font-size: 0.62rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    color: rgba(71, 85, 105, 0.92);
}

.locked-question-card {
    border-radius: 1.5rem;
    background:
        linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.8);
}

.locked-question-card__eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #fdba74;
    margin-bottom: 0.75rem;
}

.locked-question-card__title {
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 900;
    margin: 0 0 0.75rem;
}

.locked-question-card__copy {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.9);
    margin: 0 0 1.25rem;
}

.locked-question-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.locked-question-card__primary,
.locked-question-card__secondary {
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    border: 0;
}

.locked-question-card__primary {
    background: #f97316;
    color: white;
}

.locked-question-card__secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.locked-question-card__trust {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.5;
}

.pricing-card {
    border-radius: 1.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 16px 40px -32px rgba(15, 23, 42, 0.5);
}

.pricing-card--standard {
    border-color: rgba(251, 146, 60, 0.35);
    box-shadow: 0 16px 40px -28px rgba(249, 115, 22, 0.28);
}

.pricing-card--ultimate {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: rgba(148, 163, 184, 0.18);
    color: white;
}

.pricing-card__head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pricing-card__title-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.pricing-card__title {
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.pricing-card__subtitle {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #64748b;
}

.pricing-card--ultimate .pricing-card__subtitle {
    color: rgba(226, 232, 240, 0.82);
}

.pricing-card__price {
    font-size: 1.35rem;
    font-weight: 900;
    white-space: nowrap;
}

.pricing-card__features {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.pricing-card__feature {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.pricing-card__feature i {
    color: #f97316;
}

.pricing-card--ultimate .pricing-card__feature {
    color: rgba(241, 245, 249, 0.92);
}

.pricing-card--ultimate .pricing-card__feature i {
    color: #facc15;
}

.pricing-card__button {
    width: 100%;
    border: 0;
    border-radius: 1rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 900;
}

.pricing-card__button--standard {
    background: #f97316;
    color: white;
}

.pricing-card__button--ultimate {
    background: white;
    color: #0f172a;
}

.pricing-card__trust {
    margin: 0.6rem 0 0;
    font-size: 0.62rem;
    line-height: 1.4;
    color: #94a3b8;
}

.pricing-card--standard .pricing-card__trust {
    color: #64748b;
}

.pricing-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.pricing-modal-shell {
    max-width: 24rem;
    margin: 0 auto;
}

.pricing-modal-header {
    max-width: 19rem;
    margin-left: auto;
    margin-right: auto;
}

.pricing-tag--light {
    background: rgba(255, 255, 255, 0.16);
    color: #fed7aa;
}

.pricing-tag--dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a;
}

.paywall-screen {
    min-height: 100dvh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(248, 250, 252, 1) 24%, rgba(248, 250, 252, 1) 100%);
    overflow: hidden;
}

.paywall-page-header {
    position: relative;
    overflow: hidden;
    padding: calc(env(safe-area-inset-top) + 0.78rem) 1.05rem 0.85rem;
    border-bottom-left-radius: 2.4rem;
    border-bottom-right-radius: 2.4rem;
    box-shadow: 0 24px 48px -34px rgba(30, 64, 175, 0.52);
}

.paywall-header-back {
    position: relative;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.7);
    pointer-events: auto;
    touch-action: manipulation;
}

.paywall-page-header__glow {
    position: absolute;
    top: -3rem;
    right: -2.5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(42px);
    opacity: 0.7;
}

.paywall-page-header__copy {
    position: relative;
    z-index: 1;
    margin-top: 0.68rem;
}

.paywall-page-header__eyebrow {
    margin: 0 0 0.4rem;
    color: rgba(191, 219, 254, 0.9);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.paywall-page-header__title {
    margin: 0;
    color: white;
    font-size: 1.55rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.paywall-page-header__subtitle {
    margin: 0.35rem 0 0;
    color: rgba(239, 246, 255, 0.88);
    font-size: 0.76rem;
    line-height: 1.42;
    max-width: 19rem;
}

.paywall-page-header__spotlight {
    display: inline-flex;
    align-items: center;
    margin-top: 0.55rem;
    padding: 0.34rem 0.62rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.paywall-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0.48rem;
    padding: 0.62rem 0.9rem 0.38rem;
}

.paywall-summary-card {
    display: grid;
    gap: 0.28rem;
    padding: 0.62rem 0.74rem;
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 30px -28px rgba(15, 23, 42, 0.36);
}

.paywall-summary-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #1e3a5f;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.28;
}

.paywall-summary-item__icon {
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.66rem;
}

.paywall-mini-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.58rem 0.74rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(253, 186, 116, 0.28);
    box-shadow: 0 14px 28px -26px rgba(249, 115, 22, 0.44);
}

.paywall-mini-banner__badge {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 9999px;
    background: #fff;
    color: #f97316;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.38);
}

.paywall-mini-banner__title {
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.25;
}

.paywall-mini-banner__text {
    color: #64748b;
    font-size: 0.62rem;
    line-height: 1.25;
    margin-top: 0.04rem;
}

.paywall-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.68rem;
    min-height: 0;
    align-content: start;
    grid-auto-rows: auto;
}

.paywall-plan-grid--single {
    grid-template-columns: 1fr;
}

.paywall-plan-card {
    position: relative;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.96);
    min-height: 11rem;
    padding: 0.82rem 0.82rem 0.78rem;
    box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.paywall-plan-card.is-selected {
    transform: translateY(-1px);
}

.paywall-plan-card--standard.is-selected {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 18px 36px -26px rgba(249, 115, 22, 0.28);
}

.paywall-plan-card--ultimate {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: rgba(148, 163, 184, 0.18);
    color: white;
}

.paywall-plan-card--ultimate.is-selected {
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow: 0 20px 38px -28px rgba(15, 23, 42, 0.75);
}

.paywall-plan-card__body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 0.9rem;
    align-items: center;
}

.paywall-plan-card__select {
    position: absolute;
    top: 0.68rem;
    right: 0.68rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
}

.paywall-plan-card.is-selected .paywall-plan-card__select {
    color: white;
    background: #2563eb;
    border-color: #2563eb;
}

.paywall-plan-card__top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.7rem;
    min-height: 8.8rem;
}

.paywall-plan-card__name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.22rem;
}

.paywall-plan-card__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 900;
}

.paywall-plan-card__subtitle {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #64748b;
    max-width: 11rem;
}

.paywall-plan-card--ultimate .paywall-plan-card__subtitle {
    color: rgba(226, 232, 240, 0.82);
}

.paywall-plan-card__price {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.paywall-plan-card__features {
    display: grid;
    align-content: center;
    gap: 0.42rem;
    margin-top: 0;
    padding-top: 0;
    padding-left: 0.92rem;
    border-top: 0;
    border-left: 1px solid rgba(226, 232, 240, 0.72);
}

.paywall-plan-card__feature {
    display: flex;
    gap: 0.42rem;
    align-items: flex-start;
    font-size: 0.68rem;
    line-height: 1.28;
    font-weight: 700;
    color: #334155;
}

.paywall-plan-card__feature i {
    color: #f97316;
    margin-top: 0.1rem;
}

.paywall-plan-card--ultimate .paywall-plan-card__feature {
    color: rgba(241, 245, 249, 0.92);
}

.paywall-plan-card--ultimate .paywall-plan-card__features {
    border-left-color: rgba(148, 163, 184, 0.2);
}

.paywall-plan-card--ultimate .paywall-plan-card__feature i {
    color: #facc15;
}

.paywall-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.62rem 0.9rem calc(0.62rem + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 -16px 36px -26px rgba(15, 23, 42, 0.7);
    position: relative;
    z-index: 3;
}

.paywall-footer__meta {
    min-width: 0;
}

.paywall-footer__plan {
    color: rgba(191, 219, 254, 0.82);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.paywall-footer__price {
    color: white;
    font-size: 0.86rem;
    font-weight: 900;
    margin-top: 0.08rem;
}

.paywall-footer__restore {
    color: #94a3b8;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.14rem;
}

.paywall-footer__restore span {
    color: #93c5fd;
    font-weight: 800;
    cursor: pointer;
}

.paywall-footer__cta {
    flex: 0 0 auto;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0.72rem 1rem;
    box-shadow: 0 16px 28px -20px rgba(249, 115, 22, 0.72);
    position: relative;
    z-index: 1;
    pointer-events: auto;
    touch-action: manipulation;
}

@media (max-height: 760px) {
    .paywall-page-header {
        padding-bottom: 0.78rem;
    }

    .paywall-page-header__title {
        font-size: 1.42rem;
    }

    .paywall-page-header__subtitle {
        font-size: 0.72rem;
    }

    .paywall-body {
        gap: 0.48rem;
        padding-top: 0.6rem;
        padding-bottom: 0.35rem;
    }

    .paywall-summary-card {
        padding: 0.58rem 0.68rem;
    }

    .paywall-summary-item {
        font-size: 0.7rem;
    }

    .paywall-mini-banner {
        padding: 0.56rem 0.68rem;
    }

    .paywall-plan-card {
        min-height: 10.2rem;
        padding: 0.72rem 0.7rem;
    }

    .paywall-plan-card__body {
        gap: 0.74rem;
    }

    .paywall-plan-card__top {
        min-height: 7.8rem;
    }

    .paywall-plan-card__price {
        font-size: 1.42rem;
    }

    .paywall-plan-card__feature {
        font-size: 0.62rem;
    }

    .paywall-footer__cta {
        padding: 0.66rem 0.9rem;
    }
}

@media (max-width: 340px) {
    .paywall-page-header,
    .paywall-body,
    .paywall-footer {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .paywall-plan-card__name {
        font-size: 0.88rem;
    }

    .paywall-plan-card__price {
        font-size: 1.28rem;
    }

    .paywall-plan-card__body {
        grid-template-columns: 1fr;
        gap: 0.58rem;
    }

    .paywall-plan-card__top {
        min-height: 0;
    }

    .paywall-plan-card__features {
        align-content: start;
        padding-left: 0;
        padding-top: 0.58rem;
        border-left: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.72);
    }

    .paywall-plan-card--ultimate .paywall-plan-card__features {
        border-top-color: rgba(148, 163, 184, 0.2);
    }

    .paywall-footer__price {
        font-size: 0.88rem;
    }
}
