/* NetCat premium UI fixes. Loaded after style.css. */

.hero,
.premium-hero,
.section-account,
.section-plans {
    background:
        radial-gradient(760px 420px at 16% 10%, rgba(45, 212, 191, 0.14), transparent 64%),
        radial-gradient(860px 460px at 84% 18%, rgba(47, 128, 255, 0.14), transparent 66%),
        linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.hero {
    padding: clamp(4.8rem, 7vw, 6.4rem) 0 clamp(3.5rem, 5.6vw, 5rem);
}

.hero h1 {
    max-width: 920px;
    font-size: clamp(2.2rem, 5.1vw, 4.45rem);
    line-height: 1.06;
}

.hero .badge {
    max-width: min(100%, 760px);
    color: #0f766e;
    border-color: rgba(45, 212, 191, 0.38);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 34px rgba(51, 79, 126, 0.10);
}

.hero-subtitle {
    max-width: 760px;
    margin-top: 4px;
    color: #5f6f91;
}

.hero-proof-row {
    margin-top: 16px;
}

.hero-proof-row span {
    color: #17213b;
    border-color: rgba(126, 185, 255, 0.38);
    background: rgba(255, 255, 255, 0.82);
}

.netcat-hero-stage {
    width: min(100%, 500px);
    min-height: 310px;
    margin-top: 28px;
    margin-bottom: 18px;
    border-radius: 24px;
    border-color: rgba(126, 185, 255, 0.28);
    background:
        radial-gradient(circle at 50% 56%, rgba(78, 255, 225, 0.20), transparent 9rem),
        linear-gradient(160deg, rgba(255, 255, 255, 0.90), rgba(236, 243, 255, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 24px 62px rgba(51, 79, 126, 0.14);
}

@media (min-width: 641px) {
    .hero-install {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 286px));
        gap: 14px;
        justify-content: center;
        margin-top: 22px;
    }

    .hero-install .install-btn,
    .hero-install .install-btn--android,
    .hero-install .install-btn--windows {
        width: 100%;
        max-width: none;
        min-height: 60px;
        padding: 16px 20px;
        flex: none;
        font-size: 1rem;
    }

    .hero-install .install-btn--android {
        order: 1;
    }

    .hero-install .install-btn--windows {
        order: 2;
    }
}

.section-plans {
    padding-top: clamp(4rem, 7vw, 5.5rem);
    padding-bottom: clamp(4rem, 7vw, 5.5rem);
}

.section-plans h2,
.premium-copy h1,
.account-page-hero h1 {
    color: #17213b;
    text-shadow: none;
}

.section-plans h2 {
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1.04;
}

.section-plans .section-subtitle,
.premium-copy p,
.account-page-hero .section-subtitle {
    color: #64708d;
}

.plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
    align-items: stretch;
}

.plan-card,
html[data-theme="light"] .plan-card {
    min-height: 318px;
    padding: 28px 24px 24px;
    border-radius: 22px;
    border: 1px solid rgba(102, 119, 168, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 255, 0.86)),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 20px 54px rgba(51, 79, 126, 0.12);
    transform: none;
}

.plan-card:hover,
.featured-plan:hover,
html[data-theme="light"] .plan-card:hover {
    border-color: rgba(47, 128, 255, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 24px 64px rgba(51, 79, 126, 0.16);
    transform: translateY(-2px);
}

.featured-plan,
html[data-theme="light"] .featured-plan {
    border: 1px solid rgba(47, 128, 255, 0.36);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92)),
        #ffffff;
    box-shadow:
        inset 0 3px 0 rgba(47, 128, 255, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 24px 68px rgba(47, 128, 255, 0.16);
    transform: none;
}

.plan-trial-badge {
    display: none;
}

.plan-name {
    display: block;
    min-height: 1.35em;
    color: #263866;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 850;
}

.plan-price {
    margin: 12px 0 16px;
    color: #243272;
    font-size: clamp(2.5rem, 4.2vw, 3.3rem);
    line-height: 0.98;
    font-weight: 900;
}

.plan-price small {
    color: #687293;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 750;
}

.plan-key-feature {
    min-height: 3.1em;
    margin: 0 0 18px;
    color: #687293;
    font-size: 1rem;
    line-height: 1.42;
    font-weight: 850;
}

.plan-card ul {
    flex: 1;
    margin: 0 0 22px;
    padding-left: 0;
    list-style: none;
}

.plan-card ul li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 20px;
    color: #687293;
    font-weight: 700;
}

.plan-card ul li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #21c6aa;
    box-shadow: 0 0 0 4px rgba(33, 198, 170, 0.10);
}

.plan-btn {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #5b6bff 0%, #4f46e5 100%);
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.24);
    font-size: 1rem;
    font-weight: 900;
}

.premium-page .header,
.account-page .header,
html[data-theme="light"] .header {
    background: rgba(247, 251, 255, 0.92);
    border-bottom-color: rgba(102, 119, 168, 0.18);
    box-shadow: 0 16px 38px rgba(51, 79, 126, 0.10);
}

.premium-hero {
    padding: clamp(4.2rem, 7vw, 6rem) 0 clamp(2.8rem, 5vw, 4rem);
}

.premium-copy h1 {
    max-width: 820px;
    font-size: clamp(2.25rem, 4.8vw, 4rem);
    line-height: 1.06;
}

.premium-note {
    color: #176056;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(45, 212, 191, 0.34);
    box-shadow: 0 12px 28px rgba(51, 79, 126, 0.10);
}

.premium-plans {
    padding-top: clamp(2.2rem, 4vw, 3.2rem);
}

.premium-plans .plan-card {
    min-height: 438px;
}

.premium-band {
    background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
}

.account-page-section {
    padding-top: clamp(3.6rem, 6vw, 5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.account-page-hero {
    margin-bottom: 24px;
}

.account-page-hero h1 {
    font-size: clamp(2.25rem, 5.2vw, 4.35rem);
    line-height: 1.04;
}

.account-page-hero .section-subtitle {
    max-width: 720px;
    font-weight: 650;
}

.account-cabinet-grid {
    width: min(100%, 520px);
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.account-card,
.account-tabs,
html[data-theme="light"] .account-card,
html[data-theme="light"] .account-tabs {
    border-color: rgba(102, 119, 168, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 255, 0.84)),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 20px 54px rgba(51, 79, 126, 0.12);
}

.account-card {
    border-radius: 22px;
}

.account-tabs {
    border-radius: 18px;
}

.account-tab,
.account-submit,
.account-login,
.account-link-inline {
    font-family: var(--font-body);
}

.account-tab.is-active,
.account-submit {
    color: #ffffff;
    border-color: rgba(33, 198, 170, 0.40);
    background: linear-gradient(135deg, #21c6aa 0%, #16a394 100%);
    box-shadow: 0 12px 28px rgba(33, 198, 170, 0.24);
}

.account-login {
    border-color: rgba(102, 119, 168, 0.24);
    background: rgba(255, 255, 255, 0.62);
}

.account-cabinet-grid {
    width: min(100%, 980px);
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 22px;
    align-items: start;
}

.account-guest {
    min-height: 100%;
    align-content: start;
}

.account-guest .account-status {
    padding: 16px 18px;
    color: #233257;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 249, 255, 0.72));
    border-color: rgba(102, 119, 168, 0.18);
}

.account-intro-steps {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.account-intro-steps > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(102, 119, 168, 0.18);
    border-radius: 16px;
    background: rgba(247, 251, 255, 0.78);
}

.account-intro-steps span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #0f766e;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.28);
    font-weight: 900;
}

.account-intro-steps strong {
    color: #17213b;
    font-size: 0.98rem;
    line-height: 1.25;
}

.account-intro-steps p {
    margin: 0;
    color: #64708d;
    font-size: 0.92rem;
    line-height: 1.42;
    font-weight: 650;
}

.account-auth {
    width: 100%;
    min-width: 0;
}

.account-auth .account-card,
.account-auth .account-tabs,
.account-auth .account-auth-status {
    width: 100%;
}

.account-dashboard {
    grid-column: 1 / -1;
}

.section-why {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 360px at 20% 12%, rgba(45, 212, 191, 0.12), transparent 64%),
        radial-gradient(700px 420px at 84% 22%, rgba(91, 107, 255, 0.10), transparent 68%),
        linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.section-why .container {
    position: relative;
    z-index: 1;
}

.section-why h2 {
    color: #17213b;
    font-size: clamp(2.1rem, 4.4vw, 3.7rem);
    line-height: 1.04;
    text-shadow: none;
}

.section-why .section-subtitle {
    max-width: 620px;
    color: #64708d;
    font-size: 1.08rem;
    font-weight: 650;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.why-card,
.why-card.why-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 16px;
    min-height: 270px;
    padding: 26px;
    border: 1px solid rgba(102, 119, 168, 0.20);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 255, 0.84)),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 22px 58px rgba(51, 79, 126, 0.12);
}

.why-card--wide {
    border-color: rgba(45, 212, 191, 0.30);
    background:
        radial-gradient(360px 220px at 18% 0%, rgba(45, 212, 191, 0.16), transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.88));
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #0f766e;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.26);
    font-size: 0.95rem;
    font-weight: 950;
    letter-spacing: 0;
}

.why-card:nth-child(2) .why-icon {
    color: #3451d1;
    background: rgba(91, 107, 255, 0.12);
    border-color: rgba(91, 107, 255, 0.22);
}

.why-card:nth-child(3) .why-icon {
    color: #7c4d00;
    background: rgba(255, 184, 77, 0.18);
    border-color: rgba(255, 184, 77, 0.30);
}

.why-card h3 {
    margin: 0;
    color: #17213b;
    font-size: clamp(1.14rem, 1.7vw, 1.35rem);
    line-height: 1.18;
    font-weight: 900;
}

.why-card p {
    margin: 0;
    color: #5f6f91;
    font-size: 1rem;
    line-height: 1.52;
    font-weight: 650;
}

@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
    }

    .plan-card,
    .premium-plans .plan-card {
        min-height: 0;
    }

    .plan-key-feature {
        min-height: 0;
    }

    .account-cabinet-grid {
        max-width: 620px;
        grid-template-columns: minmax(0, 1fr);
    }

    .why-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }

    .why-card,
    .why-card.why-card--wide {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container,
    .header .container.nav,
    .account-page-hero.container,
    .account-cabinet-grid.container {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        box-sizing: border-box !important;
    }

    .header .nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    .header .brand {
        max-width: 100% !important;
        justify-content: center !important;
    }

    .header .nav-right {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto;
        justify-items: center !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .header .nav-links.nav-primary,
    .header .nav-links {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .header .lang-switcher {
        grid-column: 1 !important;
        display: flex !important;
        justify-self: end !important;
        margin-top: 0 !important;
    }

    .header .header-tools {
        grid-column: 2 / 4 !important;
        display: inline-flex !important;
        justify-self: start !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    .header .lang-toggle,
    .header .theme-toggle,
    .header .header-collapse {
        min-width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
    }

    .header .header-collapse {
        display: inline-flex !important;
    }

    .header .nav-links a {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 4px !important;
        box-sizing: border-box !important;
        font-size: clamp(0.72rem, 3vw, 0.8rem) !important;
        white-space: nowrap !important;
    }

    .account-page .account-page-hero h1,
    .premium-page .premium-copy h1,
    .hero h1 {
        max-width: 100% !important;
        font-size: clamp(1.72rem, 7.2vw, 2.08rem) !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    .account-page .section-subtitle,
    .premium-page .premium-copy p,
    .hero-subtitle {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    .hero {
        padding: 36px 0 48px;
    }

    .hero-install {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .hero-install .install-btn,
    .hero-install .install-btn--android,
    .hero-install .install-btn--windows {
        width: 100% !important;
        max-width: 342px !important;
        min-height: 56px;
        padding: 15px 18px;
    }

    .hero-install .install-btn--android {
        order: 1;
    }

    .hero-install .install-btn--windows {
        order: 2;
    }

    .netcat-hero-stage {
        min-height: 210px;
        margin-top: 22px;
    }

    .section-plans,
    .account-page-section {
        padding-top: 42px;
        padding-bottom: 46px;
    }

    .section-plans h2 {
        font-size: clamp(2rem, 9vw, 2.55rem);
    }

    .plans-grid {
        gap: 14px;
        width: 100%;
        max-width: 100%;
    }

    .plan-card {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .plan-price {
        font-size: clamp(2.35rem, 12vw, 3rem);
    }

    .account-tabs {
        width: 100%;
        overflow: hidden;
    }

    .account-tab {
        min-width: 0;
        white-space: normal;
    }

    .account-cabinet-grid {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .account-intro-steps > div {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 13px;
    }

    .section-why {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .section-why h2 {
        font-size: clamp(2rem, 9vw, 2.45rem);
    }

    .section-why .section-subtitle {
        font-size: 0.98rem;
    }

    .why-grid {
        gap: 14px;
        margin-top: 24px;
    }

    .why-card,
    .why-card.why-card--wide {
        padding: 20px;
        border-radius: 20px;
    }
}

.download-page .premium-hero--download {
    min-height: 0;
    display: block;
    padding: clamp(66px, 7vw, 92px) 0 clamp(58px, 7vw, 88px);
}

.download-page .premium-hero-grid {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(340px, 430px);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    justify-content: space-between;
}

.download-page .premium-copy {
    min-width: 0;
    max-width: 640px;
}

.download-page .premium-copy h1 {
    max-width: 640px;
    margin: 16px 0 14px;
    font-size: clamp(2.55rem, 4.15vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: 0;
    text-wrap: balance;
}

.download-page .premium-copy p {
    max-width: 610px;
    font-size: 1.05rem;
    line-height: 1.58;
}

.download-page .premium-note {
    min-height: 36px;
    padding: 8px 15px;
    border-color: rgba(45, 212, 191, 0.32);
    background: rgba(255, 255, 255, 0.80);
}

.download-page .premium-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
    margin-top: 24px;
}

.download-page .premium-actions .install-btn {
    width: 100%;
    max-width: none;
    min-height: 62px;
    padding: 16px 18px;
    justify-content: center;
}

.download-page .premium-actions .install-btn-label {
    text-align: left;
}

.download-page .premium-proof-row {
    max-width: 640px;
    gap: 10px;
    margin-top: 16px;
}

.download-page .premium-device-card {
    width: 100%;
    padding: 24px;
    border-radius: 24px;
    border-color: rgba(102, 119, 168, 0.20);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.88)),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 24px 66px rgba(51, 79, 126, 0.14);
}

.download-page .premium-device-card .mini-cat {
    display: none;
}

.download-page .premium-steps {
    gap: 12px;
}

.download-page .premium-steps li {
    padding: 18px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.78));
    border-color: rgba(102, 119, 168, 0.20);
}

@media (max-width: 900px) {
    .download-page .premium-hero--download {
        min-height: 0;
        padding-top: 50px;
        padding-bottom: 56px;
    }

    .download-page .premium-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
        justify-content: center;
    }

    .download-page .premium-copy {
        max-width: 100%;
        text-align: center;
    }

    .download-page .premium-copy h1,
    .download-page .premium-copy p,
    .download-page .premium-actions,
    .download-page .premium-proof-row {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .download-page .premium-hero--download {
        padding-top: 42px;
        padding-bottom: 52px;
    }

    .download-page .premium-copy {
        text-align: left;
    }

    .download-page .premium-copy h1 {
        font-size: clamp(2rem, 8vw, 2.34rem) !important;
        line-height: 1.09 !important;
    }

    .download-page .premium-copy p {
        font-size: 0.98rem;
    }

    .download-page .premium-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 100%;
    }

    .download-page .premium-actions .install-btn {
        max-width: 100% !important;
    }

    .download-page .premium-proof-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .download-page .premium-proof-row span {
        min-height: 44px;
        justify-content: center;
        padding: 9px 8px;
        text-align: center;
        white-space: normal;
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .download-page .premium-device-card {
        padding: 20px;
        border-radius: 22px;
    }

    .download-page .premium-steps li {
        padding: 16px;
    }
}

/* Tariff cards polish: premium density, one-line period labels, no day counters. */
.section-plans .container {
    position: relative;
    z-index: 1;
}

.section-plans h2 {
    margin-bottom: 10px;
    color: #171b3e;
    letter-spacing: 0;
}

.section-plans .section-subtitle {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    font-weight: 600;
}

.plans-grid {
    width: min(100%, 1080px);
    margin: clamp(24px, 3vw, 34px) auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.plan-card,
html[data-theme="light"] .plan-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: 314px;
    padding: 30px 24px 24px;
    border-radius: 24px;
    border: 1px solid rgba(90, 107, 160, 0.20);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.92) 100%),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 18px 48px rgba(28, 41, 86, 0.10);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.plan-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 5px;
    background: linear-gradient(90deg, rgba(33, 198, 170, 0.70), rgba(91, 107, 255, 0.78), rgba(122, 74, 255, 0.68));
    opacity: 0.34;
}

.plan-card:hover,
.featured-plan:hover,
html[data-theme="light"] .plan-card:hover {
    border-color: rgba(91, 107, 255, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 24px 62px rgba(28, 41, 86, 0.15);
    transform: translateY(-2px);
}

.featured-plan,
html[data-theme="light"] .featured-plan {
    border-color: rgba(91, 107, 255, 0.46);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 248, 255, 0.96) 100%),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 1px rgba(91, 107, 255, 0.10),
        0 26px 68px rgba(79, 70, 229, 0.18);
}

.featured-plan::before {
    height: 6px;
    opacity: 0.82;
}

.plan-name {
    color: #26306b;
    font-size: 1.08rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    margin: 14px 0 18px;
    color: #271f78;
    font-size: clamp(2.65rem, 4.4vw, 3.55rem);
    line-height: 0.95;
    letter-spacing: 0;
    white-space: nowrap;
}

.plan-price small {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: baseline;
    min-width: 0;
    color: #626c92;
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
}

.plan-key-feature {
    min-height: 3.1em;
    margin-bottom: 20px;
    color: #5f698b;
    font-size: 0.98rem;
    line-height: 1.42;
}

.premium-plans .plan-card {
    min-height: 430px;
}

.plan-card ul {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.plan-card ul li {
    margin: 0;
    color: #5f698b;
    line-height: 1.35;
}

.plan-btn {
    min-height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6f58ff 0%, #5538e8 48%, #3f7cff 100%);
    box-shadow:
        0 15px 30px rgba(79, 70, 229, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    letter-spacing: 0;
}

.plan-btn:hover {
    box-shadow:
        0 18px 36px rgba(79, 70, 229, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .section-plans h2 {
    color: #f7f8ff;
}

html[data-theme="dark"] .plan-card {
    border-color: rgba(173, 185, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(24, 30, 62, 0.94) 0%, rgba(16, 22, 48, 0.92) 100%),
        #121731;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 22px 56px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .featured-plan {
    border-color: rgba(133, 148, 255, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 0 1px rgba(133, 148, 255, 0.10),
        0 26px 68px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .plan-name,
html[data-theme="dark"] .plan-price {
    color: #f4f6ff;
}

html[data-theme="dark"] .plan-price small,
html[data-theme="dark"] .plan-key-feature,
html[data-theme="dark"] .plan-card ul li {
    color: #b6c0e0;
}

@media (max-width: 900px) {
    .plans-grid {
        width: min(100%, 560px);
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-card,
    .premium-plans .plan-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .section-plans h2 {
        font-size: clamp(2rem, 9vw, 2.55rem);
    }

    .plans-grid {
        gap: 14px;
        margin-top: 22px;
    }

    .plan-card {
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .plan-price {
        gap: 8px;
        font-size: clamp(2.6rem, 13vw, 3.2rem);
    }

    .plan-price small {
        font-size: 1rem;
    }
}
