
.premium-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 8px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.premium-section-title {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.018em;
    margin: 0 0 6px;
}

.premium-section-sub {
    color: var(--muted);
    margin: 0 0 22px;
}

.premium-hero {
    text-align: center;
    padding: 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.premium-kicker {
    background: var(--premium-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.premium-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #c9d2e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.premium-hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text);
    max-width: 640px;
    margin: 0;
}

.premium-hero-text {
    color: var(--muted);
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
}

.premium-status-chip {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(150, 110, 240, 0.5);
    font-size: 14px;
}

.premium-status-chip.is-lifetime {
    background: var(--premium-grad);
    border-color: transparent;
    color: #fff;
}

.premium-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5bd6a0;
    box-shadow: 0 0 0 4px rgba(91, 214, 160, 0.18);
}

.premium-status-chip.is-lifetime .premium-status-dot {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.premium-status-chip a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.premium-plan-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin: 0 auto 26px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.premium-plan-tabs::-webkit-scrollbar {
    display: none;
}

.premium-plan-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: center;
    transition: background 0.18s ease, color 0.18s ease;
}

.premium-plan-tab:hover {
    color: var(--text);
}

.premium-plan-tab.is-active {
    background: var(--premium-grad);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(178, 75, 224, 0.7);
}

.premium-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.premium-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.038);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    scroll-margin-top: 90px;
}

.premium-plan:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.premium-plan.is-recommended {
    border-color: rgba(160, 110, 240, 0.7);
    box-shadow: 0 0 0 1px rgba(160, 110, 240, 0.3), 0 26px 60px -30px rgba(150, 80, 220, 0.6);
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.premium-plan.is-focus {
    border-color: rgba(160, 110, 240, 0.9);
    box-shadow: 0 0 0 2px rgba(160, 110, 240, 0.45);
}

.premium-plan-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 52px;
}

.premium-plan-badge {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--premium-grad);
}

.premium-plan.is-lifetime .premium-plan-badge {
    background: linear-gradient(95deg, #ff7a59, #ff5fa2);
}

.premium-plan-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.premium-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.premium-plan-price-rub {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.premium-plan-price-usd {
    color: var(--muted-2, #686e7a);
    font-size: 15px;
    font-weight: 600;
}

.premium-plan-duration {
    color: var(--muted);
    font-size: 13px;
    margin-top: -4px;
}

.premium-plan-savings {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #8fe0b4;
    background: rgba(91, 214, 160, 0.12);
    border: 1px solid rgba(91, 214, 160, 0.3);
}

.premium-plan-benefits {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 auto;
}

.premium-plan-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.premium-check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    color: #c6b6ff;
    background: rgba(124, 92, 255, 0.16);
}

.premium-plan-warn {
    margin: 0;
    font-size: 12.5px;
    color: #ff9db4;
}

.premium-plan-cta-form {
    margin: 4px 0 0;
}

.premium-plan-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-weight: 800;
}

.premium-plan.is-recommended .premium-plan-cta,
.premium-plan.is-lifetime .premium-plan-cta {
    background: var(--premium-grad);
    border: 0;
    color: #fff;
}

.premium-plan.is-recommended .premium-plan-cta:hover,
.premium-plan.is-lifetime .premium-plan-cta:hover {
    filter: brightness(1.08);
}

.premium-plan .premium-plan-cta-owned,
.premium-plan.is-recommended .premium-plan-cta-owned,
.premium-plan.is-lifetime .premium-plan-cta-owned {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #9fb0c9;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
    font-size: 14px;
    line-height: 1.25;
}

.premium-plan-cta-owned:hover {
    filter: none;
    transform: none;
}

.premium-promo-inner {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    text-align: center;
}

.premium-promo-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.premium-promo-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius, 8px);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.premium-promo-input:focus {
    outline: none;
    border-color: #b24be0;
    background: rgba(255, 255, 255, 0.07);
}

.premium-promo-btn {
    flex: 0 0 auto;
    min-height: 48px;
    font-weight: 800;
}

.premium-promo-msg {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: var(--radius, 8px);
    font-weight: 600;
    font-size: 14px;
}

.premium-promo-msg.is-ok {
    color: #8fe0b4;
    background: rgba(91, 214, 160, 0.12);
    border: 1px solid rgba(91, 214, 160, 0.3);
}

.premium-promo-msg.is-error {
    color: #ffb4c4;
    background: rgba(255, 90, 120, 0.1);
    border: 1px solid rgba(255, 90, 120, 0.3);
}

.premium-promo-guest {
    color: var(--muted);
    margin: 12px 0 0;
}

.premium-promo-guest a {
    color: var(--accent);
    font-weight: 700;
}

.premium-compare-table {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.premium-compare-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    align-items: center;
}

.premium-compare-row + .premium-compare-row {
    border-top: 1px solid var(--border);
}

.premium-compare-row > div {
    padding: 14px 16px;
    font-size: 14px;
}

.premium-compare-head {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
}

.premium-compare-head .premium-compare-prem {
    background: rgba(124, 92, 255, 0.12);
    color: #d9ccff;
}

.premium-compare-feature {
    font-weight: 600;
    color: var(--text);
}

.premium-compare-free {
    color: var(--muted);
}

.premium-compare-prem {
    color: var(--text);
    font-weight: 600;
}

.cmp-yes {
    color: #5bd6a0;
    font-weight: 800;
}

.cmp-no {
    color: #e98a8a;
    font-weight: 800;
}

.premium-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.premium-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
}

.premium-faq-item summary::-webkit-details-marker {
    display: none;
}

.premium-faq-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.premium-faq-item[open] .premium-faq-chevron {
    transform: rotate(-135deg);
}

.premium-faq-answer {
    padding: 0 18px 16px;
    color: var(--muted);
    line-height: 1.6;
}

.premium-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

@media (max-width: 980px) {
    .premium-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .premium-shell {
        gap: 44px;
        padding-bottom: 48px;
    }

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

    .premium-promo-form {
        flex-direction: column;
    }

    .premium-promo-input,
    .premium-promo-btn {
        width: 100%;
    }

    .premium-plan-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .premium-compare-table {
        border: 0;
        background: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .premium-compare-head {
        display: none;
    }

    .premium-compare-row {
        grid-template-columns: 1fr;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        overflow: hidden;
    }

    .premium-compare-row + .premium-compare-row {
        border-top: 1px solid var(--border);
    }

    .premium-compare-feature {
        font-weight: 800;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid var(--border);
    }

    .premium-compare-free,
    .premium-compare-prem {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .premium-compare-free::before,
    .premium-compare-prem::before {
        content: attr(data-label);
        color: var(--muted-2, #686e7a);
        font-weight: 600;
    }

    .premium-compare-row > .premium-compare-prem {
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 400px) {
    .premium-plan {
        padding: 20px;
    }
}

.premium-checkout-card {
    width: min(560px, 100%);
    margin: 24px auto;
    padding: 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.premium-checkout-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.premium-checkout-summary {
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.premium-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--muted);
}

.premium-checkout-row strong {
    color: var(--text);
}

.premium-checkout-row + .premium-checkout-row {
    border-top: 1px solid var(--border);
}

.premium-checkout-total strong {
    font-size: 22px;
}

.premium-checkout-notice {
    text-align: left;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 170, 80, 0.08);
    border: 1px solid rgba(255, 170, 80, 0.25);
}

.premium-checkout-notice > strong {
    color: #ffce8a;
}

.premium-checkout-notice p {
    color: var(--muted);
    margin: 8px 0 0;
    line-height: 1.55;
}

.premium-checkout-hint {
    font-size: 13px;
}

.premium-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-checkout-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
}

.premium-checkout-legal {
    margin: 2px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8f98aa;
}

.premium-checkout-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.premium-checkout-legal a:hover {
    color: #fff;
}

.premium-checkout-legal-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.premium-country {
    margin: 22px 0 6px;
}

.premium-country-title {
    margin: 0 0 14px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #eaf0fb;
}

.premium-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.premium-country-form {
    margin: 0;
    display: flex;
}

.premium-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius, 12px);
    border: 1px solid rgba(124, 92, 255, 0.35);
    background: rgba(124, 92, 255, 0.06);
    color: #eaf0fb;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.premium-country-card:hover:not(.is-disabled) {
    border-color: #7c5cff;
    background: rgba(124, 92, 255, 0.14);
    transform: translateY(-1px);
}

.premium-country-flag {
    font-size: 38px;
    line-height: 1;
}

.premium-country-name {
    font-size: 16px;
    font-weight: 700;
}

.premium-country-note {
    font-size: 12.5px;
    line-height: 1.4;
    color: #9aa4b8;
}

.premium-country-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    border-style: dashed;
    border-color: rgba(154, 164, 184, 0.4);
    background: rgba(154, 164, 184, 0.06);
}

@media (max-width: 480px) {
    .premium-country-grid {
        grid-template-columns: 1fr;
    }
}

.premium-bot-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius, 12px);
    border: 1px solid rgba(124, 92, 255, 0.35);
    background: rgba(124, 92, 255, 0.08);
    text-align: center;
    display: grid;
    gap: 10px;
}

.premium-bot-msg {
    margin: 0;
    color: #eaf0fb;
    font-size: 14.5px;
    line-height: 1.5;
}

.premium-bot-msg.is-error {
    color: #ff8d8d;
}

.premium-bot-msg.is-paid {
    color: #7be0a4;
    font-size: 16px;
}

.premium-bot-wait {
    margin: 0;
    color: #9aa4b8;
    font-size: 13px;
}

.premium-bot-status .button {
    width: 100%;
    justify-content: center;
}

.premium-mode-toggle {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 26px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.premium-mode-tab {
    flex: 1 1 auto;
    padding: 11px 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.premium-mode-tab:hover {
    color: var(--text);
}

.premium-mode-tab.is-active {
    background: var(--premium-grad);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(178, 75, 224, 0.7);
}

.premium-mode-panel[hidden] {
    display: none;
}

.premium-gift-intro {
    max-width: 680px;
    margin: 0 auto 22px;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}

.premium-gift-badge {
    background: linear-gradient(95deg, #ff7a59, #b24be0);
}

.premium-gift-result {
    width: min(560px, 100%);
    margin: 24px auto;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(160, 110, 240, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-gift-code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(160, 110, 240, 0.6);
    color: #fff;
    user-select: all;
    word-break: break-all;
}

.premium-gift-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.premium-gift-actions .button {
    min-height: 46px;
}

.premium-gift-link {
    font-size: 13px;
    color: var(--muted);
    word-break: break-all;
}

.premium-gift-status {
    color: #8fe0b4;
    font-weight: 700;
    min-height: 18px;
}
