/* =========================================================
   Premium page
   ========================================================= */

.premium-page{
    width: 100%;
    max-width: 980px;

    margin: 0 auto;
    padding: 78px 24px 110px;
}

/* ---------- Hero ---------- */

.premium-hero{
    max-width: 900px;
    margin: 0 auto 42px;
}

.premium-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
    padding: 10px 18px;

    border-radius: 999px;

    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(14, 165, 233, 0.06));

    border: 1px solid rgba(56, 189, 248, 0.30);

    color: #67e8f9;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;

    box-shadow:
        0 12px 32px rgba(56, 189, 248, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-title{
    max-width: 880px;

    margin: 0 0 24px;

    font-size: clamp(54px, 5.4vw, 82px);
    line-height: 0.94;
    letter-spacing: -3px;
    font-weight: 900;

    background: linear-gradient(135deg, #ffffff, #cbd5e1 48%, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-subtitle{
    max-width: 820px;

    margin: 0;

    color: rgba(226, 232, 240, 0.82);

    font-size: 19px;
    line-height: 1.75;
}

/* ---------- Main PRO card ---------- */

.premium-card{
    max-width: 900px;

    margin: 42px auto 0;
    padding: 48px;

    border-radius: 36px;

    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.16), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(250, 204, 21, 0.10), transparent 28%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));

    border: 1px solid rgba(148, 163, 184, 0.16);

    box-shadow:
        0 34px 100px rgba(2, 6, 23, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(14px);
}

.premium-card h2,
.premium-teacher-block h2{
    margin: 0 0 20px;

    color: #f8fafc;

    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -1.2px;
    font-weight: 900;
}

.premium-card p,
.premium-teacher-block p{
    margin: 0 0 26px;

    color: rgba(226, 232, 240, 0.82);

    font-size: 17px;
    line-height: 1.75;
}

/* ---------- Features ---------- */

.premium-features{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin: 30px 0 34px;
}

.premium-features div{
    display: flex;
    align-items: center;

    min-height: 64px;

    padding: 0 20px;

    border-radius: 20px;

    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.80), rgba(30, 41, 59, 0.56));

    border: 1px solid rgba(148, 163, 184, 0.16);

    color: #f8fafc;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 28px rgba(2, 6, 23, 0.20);
}

/* ---------- Price ---------- */

.premium-price{
    margin: 34px 0 8px;

    font-size: 68px;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -2px;

    background: linear-gradient(135deg, #ffffff, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-price-note{
    margin-bottom: 30px;

    color: rgba(226, 232, 240, 0.72);

    font-size: 17px;
    font-weight: 700;
}

.premium-small-note{
    margin-top: 24px !important;
    margin-bottom: 0 !important;

    color: rgba(226, 232, 240, 0.68) !important;

    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* ---------- Buttons ---------- */

.premium-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 28px;
}

.premium-actions a{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 0 30px;

    border-radius: 18px;

    text-decoration: none;

    font-size: 16px;
    font-weight: 900;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.premium-primary-btn{
    background: linear-gradient(135deg, #38bdf8, #7c3aed);

    color: #ffffff !important;

    box-shadow:
        0 18px 46px rgba(56, 189, 248, 0.24),
        0 12px 34px rgba(124, 58, 237, 0.22);
}

.premium-secondary-btn{
    background: rgba(15, 23, 42, 0.82);

    border: 1px solid rgba(148, 163, 184, 0.18);

    color: #f8fafc !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 34px rgba(2, 6, 23, 0.20);
}

.premium-actions a:hover{
    transform: translateY(-2px);
}

.premium-primary-btn:hover{
    box-shadow:
        0 24px 54px rgba(56, 189, 248, 0.32),
        0 14px 40px rgba(124, 58, 237, 0.28);
}

.premium-secondary-btn:hover{
    border-color: rgba(56, 189, 248, 0.34);
}

/* ---------- Teacher block ---------- */

.premium-teacher-block{
    max-width: 900px;

    margin: 28px auto 0;
    padding: 40px 44px;

    border-radius: 32px;

    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 34%),
        rgba(15, 23, 42, 0.78);

    border: 1px solid rgba(148, 163, 184, 0.14);

    box-shadow:
        0 28px 80px rgba(2, 6, 23, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(14px);
}

.premium-teacher-block p{
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .premium-page{
        padding: 52px 18px 84px;
    }

    .premium-hero{
        margin-bottom: 32px;
    }

    .premium-title{
        font-size: 48px;
        line-height: 0.98;
        letter-spacing: -1.8px;
    }

    .premium-subtitle{
        font-size: 17px;
        line-height: 1.65;
    }

    .premium-card,
    .premium-teacher-block{
        padding: 28px 22px;
        border-radius: 28px;
    }

    .premium-card h2,
    .premium-teacher-block h2{
        font-size: 30px;
    }

    .premium-features{
        grid-template-columns: 1fr;
    }

    .premium-price{
        font-size: 52px;
    }

    .premium-actions{
        flex-direction: column;
        align-items: stretch;
    }

    .premium-actions a{
        width: 100%;
    }
}

/* ---------- Premium centering fix ---------- */

main:has(.premium-page){
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

.premium-page{
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.premium-hero,
.premium-card,
.premium-teacher-block{
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.premium-title{
    max-width: 840px;
}

.premium-subtitle{
    max-width: 760px;
}

.premium-active-box {
    margin: 30px 0 22px;
    padding: 20px 22px;

    border-radius: 24px;

    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.88));

    border: 1px solid rgba(125, 211, 252, 0.32);

    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.22),
        0 0 34px rgba(56, 189, 248, 0.12);
}

.premium-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;
    padding: 8px 14px;

    border-radius: 999px;

    background: linear-gradient(135deg, #0ea5e9, #67e8f9);
    color: #02131f;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.22);
}

.premium-active-badge::before {
    content: "✦";
    margin-right: 7px;
}

.premium-active-box p {
    margin: 0;

    color: #bae6fd;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.premium-legal-note {
    position: relative;

    max-width: 560px;
    margin: 18px 0 0;
    padding: 15px 18px 15px 46px;

    border-radius: 18px;

    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.36));

    border: 1px solid rgba(148, 163, 184, 0.16);

    color: rgba(226, 232, 240, 0.66);

    font-size: 13px;
    line-height: 1.65;
    text-align: left;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 38px rgba(2, 6, 23, 0.18);
}

.premium-legal-note::before {
    content: "✓";

    position: absolute;
    left: 16px;
    top: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 999px;

    background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(56, 189, 248, 0.95));
    color: #020617;

    font-size: 12px;
    font-weight: 900;

    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.18);
}

.premium-legal-note a {
    color: rgba(125, 211, 252, 0.92);

    font-weight: 900;
    text-decoration: none;

    border-bottom: 1px solid rgba(125, 211, 252, 0.32);
}

.premium-legal-note a:hover {
    color: #e0f2fe;
    border-bottom-color: rgba(224, 242, 254, 0.72);
}

.premium-buy-row {
    display: flex;
    align-items: flex-end;
    gap: 28px;

    margin-top: 34px;
}

.premium-buy-main {
    flex: 0 0 auto;
}

.premium-buy-row .premium-price {
    margin-top: 0;
}

.premium-buy-row .premium-price-note {
    margin-bottom: 22px;
}

.premium-buy-row .premium-actions {
    margin-top: 0;
}

.premium-buy-row .premium-legal-note {
    flex: 1;
    max-width: 430px;
    margin: 0 0 2px;
}

@media (max-width: 760px) {
    .premium-buy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .premium-buy-row .premium-legal-note {
        max-width: 100%;
    }
}

