:root {
    --bg: #0a0c10;
    --surface: #12151b;
    --surface-2: #181c24;
    --text: #f5f7fa;
    --muted: #9299a6;
    --line: rgba(255,255,255,.08);
    --accent: #ffffff;
    --success: #39d98a;
    --radius: 22px;
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(10,12,16,.82);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.logo span { opacity: .55; }

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #090b0f;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
}

.hero {
    padding: 96px 0 72px;
}

.hero-grid {
    display: block;
}

.kicker {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}

h1 {
    max-width: 720px;
    margin: 14px 0 18px;
    font-size: clamp(48px, 8vw, 86px);
    line-height: .96;
    letter-spacing: -.055em;
}

.hero p {
    max-width: 600px;
    color: var(--muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-panel,
.card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
}

.hero-panel {
    padding: 22px;
}

.metric {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.metric:last-child { border-bottom: 0; }

.metric strong {
    display: block;
    font-size: 20px;
}

.metric span {
    color: var(--muted);
    font-size: 14px;
}

.section {
    padding: 72px 0;
}

.section-head {
    max-width: 650px;
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 8px 0;
    font-size: clamp(32px, 5vw, 50px);
    letter-spacing: -.04em;
}

.section-head p {
    color: var(--muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    padding: 24px;
}

.server-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flag { font-size: 28px; }

.status {
    font-size: 13px;
    color: var(--success);
}

.status-soon { color: var(--muted); }

.card h3 {
    margin: 18px 0 4px;
    font-size: 22px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.platform {
    padding: 18px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    font-weight: 700;
}

.price {
    font-size: 38px;
    font-weight: 800;
    margin: 14px 0;
}

.popular {
    outline: 1px solid rgba(255,255,255,.35);
}

.faq details {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq p {
    color: var(--muted);
}

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.auth-card {
    width: min(100%, 480px);
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
}

.auth-card h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.auth-card p {
    color: var(--muted);
}

.field {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
}

.auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.error {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(220,53,69,.12);
    margin: 16px 0;
}

@media (max-width: 780px) {
    .nav-links a:not(.nav-login):not(.btn) {
        display: none;
    }

    .nav { gap: 12px; }

    .hero {
        padding-top: 64px;
    }

    .hero-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        margin-top: 8px;
    }

    .platforms {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 54px 0;
    }
}


/* ==========================================================
   HERO V2 — clean layout + moving server rail
   ========================================================== */

.hero-copy {
    max-width: 760px;
}

.hero-copy h1 {
    max-width: 720px;
}

.servers-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 44px;
    padding: 4px 0 10px;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 7%,
            #000 93%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 7%,
            #000 93%,
            transparent 100%
        );
}

.servers-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: serverRail 28s linear infinite;
}

.servers-marquee:hover .servers-track {
    animation-play-state: paused;
}

.server-set {
    display: flex;
    gap: 14px;
    flex: none;
    padding-right: 14px;
}

.server-pill {
    width: 280px;
    min-width: 280px;
    min-height: 96px;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 18px 20px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    transition:
        transform .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.server-pill:hover {
    transform:
        translateY(-3px)
        rotate(-.35deg);

    border-color:
        rgba(255,255,255,.18);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.025)
        );
}

.server-code {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.055);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.server-pill strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.server-pill span {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--muted);
    font-size: 13px;
}

.server-pill.online span {
    color: #63dda0;
}

.server-pill.online i {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: #39d98a;

    box-shadow:
        0 0 14px rgba(57,217,138,.55);
}

.server-pill.soon {
    opacity: .62;
}

@keyframes serverRail {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 780px) {

    .hero-copy {
        max-width: 100%;
    }

    .servers-marquee {
        margin-top: 34px;

        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent,
                #000 4%,
                #000 96%,
                transparent
            );

        mask-image:
            linear-gradient(
                to right,
                transparent,
                #000 4%,
                #000 96%,
                transparent
            );
    }

    .server-pill {
        width: 235px;
        min-width: 235px;
        min-height: 88px;
        padding: 15px 17px;
    }

    .servers-track {
        animation-duration: 23s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .servers-track {
        animation: none;
    }

    .servers-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* JTEAM_SERVER_RAIL_V2 */

.servers-marquee {
    margin-top: 46px;
    padding: 6px 0 12px;

    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-y;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 3%,
            #000 97%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 3%,
            #000 97%,
            transparent 100%
        );
}

.servers-marquee.is-dragging {
    cursor: grabbing;
}

.servers-track {
    animation: none !important;
    transform: translate3d(0, 0, 0);
}

.servers-marquee:hover .servers-track {
    animation-play-state: initial;
}

.server-set {
    gap: 16px;
    padding-right: 16px;
}

.server-pill {
    width: 320px;
    min-width: 320px;
    min-height: 110px;

    padding: 20px 22px;
    gap: 17px;

    border-radius: 22px;

    cursor: inherit;
}

.server-pill.soon {
    display: none;
}

.server-pill:hover {
    transform: translateY(-2px);
}

.server-code {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    font-size: 13px;
}

.server-copy {
    flex: 1;
    min-width: 0;
}

.server-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 10px;
}

.server-title-row strong {
    margin: 0;

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

.server-recommended {
    display: inline-flex;
    align-items: center;

    flex: none;

    padding: 5px 8px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 999px;

    background:
        rgba(255,255,255,.045);

    color:
        rgba(255,255,255,.72);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: .01em;
}

.server-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
}

.server-pill .server-online,
.server-pill .server-load {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 13px;
    line-height: 1.2;
}

.server-pill.online .server-online {
    color: #63dda0;
}

.server-pill .server-load {
    color: var(--muted);
}

.server-pill .server-load.load-medium {
    color: #e8c979;
}

.server-pill .server-load.load-high {
    color: #e89a9a;
}

.server-pill.online .server-online i {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #39d98a;
}

.servers-soon-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;

    margin-top: 9px;
    padding: 0 4px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}

.servers-soon-note span {
    color:
        rgba(255,255,255,.42);

    font-weight: 600;
}

.servers-soon-note strong {
    color:
        rgba(255,255,255,.62);

    font-weight: 500;
}

@media (max-width: 640px) {

    .servers-marquee {
        margin-top: 36px;

        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent 0,
                #000 2%,
                #000 98%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                to right,
                transparent 0,
                #000 2%,
                #000 98%,
                transparent 100%
            );
    }

    .server-pill {
        width: 282px;
        min-width: 282px;
        min-height: 104px;

        padding: 18px;
    }

    .server-recommended {
        font-size: 9px;
    }

    .servers-soon-note {
        padding: 0 2px;
    }
}

/* JTEAM_SERVER_RAIL_EDGE_FIX */

.servers-marquee {
    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0,0,0,.18) 3%,
            #000 11%,
            #000 89%,
            rgba(0,0,0,.18) 97%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0,0,0,.18) 3%,
            #000 11%,
            #000 89%,
            rgba(0,0,0,.18) 97%,
            transparent 100%
        );
}

@media (max-width: 640px) {
    .servers-marquee {
        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                #000 8%,
                #000 92%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                #000 8%,
                #000 92%,
                transparent 100%
            );
    }
}

/* JTEAM_START_SCREEN */

.auth-kicker {
    margin: 30px 0 10px;

    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-card > h1 {
    margin-bottom: 14px;
}

.auth-card > p {
    max-width: 470px;
}

.auth-note {
    margin-top: 22px !important;

    color:
        rgba(255,255,255,.42) !important;

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

@media (max-width: 640px) {
    .auth-kicker {
        margin-top: 24px;
    }

    .auth-actions {
        width: 100%;
    }

    .auth-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* JTEAM_AUTH_FLOW */

.auth-card form {
    margin-top: 26px;
}

.auth-main-button {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 24px;

    color: var(--muted);
    font-size: 13px;
}

.auth-switch a,
.auth-help a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-weight: 650;
}

.auth-switch a:hover,
.auth-help a:hover {
    color: #fff;
}

.auth-help {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 32px;
    padding-top: 20px;

    border-top: 1px solid var(--line);

    color: rgba(255,255,255,.42);
    font-size: 12px;
    line-height: 1.5;
}

.auth-help a {
    width: fit-content;
    font-size: 12px;
}

.error {
    margin-top: 20px;
    padding: 13px 15px;

    border: 1px solid rgba(255,100,100,.16);
    border-radius: 14px;

    background: rgba(255,80,80,.07);

    color: #f0a1a1;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .auth-switch {
        flex-wrap: wrap;
    }
}

/* JTEAM_BUY_V2 */

.buy-v2-page {
    min-height: 100vh;
    padding: 54px 22px 80px;
}

.buy-v2-shell {
    width: min(880px, 100%);
    margin: 0 auto;
}

.buy-v2-shell > h1 {
    max-width: 620px;
    margin: 8px 0 14px;

    font-size: clamp(38px, 6vw, 64px);
    line-height: .98;
    letter-spacing: -.045em;
}

.buy-v2-lead {
    max-width: 580px;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.buy-v2-tariffs {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;

    margin-top: 38px;
}

.buy-v2-tariff {
    position: relative;

    min-height: 126px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        rgba(255,255,255,.025);

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.buy-v2-tariff:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,.18);
}

.buy-v2-tariff.selected {
    border-color:
        rgba(255,255,255,.32);

    background:
        rgba(255,255,255,.075);
}

.buy-v2-tariff input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.buy-v2-period {
    color: var(--muted);
    font-size: 13px;
}

.buy-v2-tariff strong {
    font-size: 22px;
    line-height: 1.2;
}

.buy-v2-tariff small {
    color: #63dda0;
    font-size: 11px;
}

.buy-v2-payment {
    margin-top: 42px;
    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 24px;

    background:
        rgba(255,255,255,.025);
}

.buy-v2-payment-head > span {
    color: rgba(255,255,255,.42);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.buy-v2-payment-head h2 {
    margin: 7px 0 0;

    font-size: 24px;
    letter-spacing: -.025em;
}

.buy-v2-payment-buttons {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 22px;
}

.buy-v2-payment-buttons form {
    margin: 0;
}

.buy-v2-pay-button {
    width: 100%;
    min-height: 78px;

    padding: 16px 18px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;

    border: 1px solid var(--line);
    border-radius: 17px;

    background:
        rgba(255,255,255,.035);

    color: #fff;

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.buy-v2-pay-button:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,.20);

    background:
        rgba(255,255,255,.065);
}

.buy-v2-pay-button.primary {
    background: #fff;
    color: #090909;
}

.buy-v2-pay-button.primary:hover {
    background: rgba(255,255,255,.92);
}

.buy-v2-pay-button span {
    font-size: 15px;
    font-weight: 750;
}

.buy-v2-pay-button small {
    opacity: .62;
    font-size: 11px;
}

.buy-v2-secure {
    margin: 20px 0 0;

    max-width: 620px;

    color: rgba(255,255,255,.38);

    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 760px) {

    .buy-v2-page {
        padding:
            34px 18px 60px;
    }

    .buy-v2-tariffs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .buy-v2-tariff:last-child {
        grid-column: 1 / -1;
    }

    .buy-v2-payment {
        padding: 20px;
    }

    .buy-v2-payment-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {

    .buy-v2-tariffs {
        gap: 9px;
    }

    .buy-v2-tariff {
        min-height: 108px;
        padding: 15px;
    }

    .buy-v2-tariff strong {
        font-size: 20px;
    }
}

/* ==========================================================
   JTEAM AUTH FINAL
   ========================================================== */

.auth-page {
    min-height: 100vh;
    padding: 48px 20px;

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

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255,255,255,.035),
            transparent 34%
        );
}

.auth-page .container {
    width: 100%;
    max-width: none;

    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(100%, 520px);

    padding: 42px 44px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 26px;

    background:
        rgba(255,255,255,.035);

    box-shadow:
        0 30px 80px rgba(0,0,0,.18);
}

.auth-card .logo {
    font-size: 22px;
}

.auth-card .auth-kicker {
    margin: 34px 0 10px;

    font-size: 11px;
    letter-spacing: .11em;
}

.auth-card h1 {
    max-width: none;

    margin: 0 0 14px;

    font-size: clamp(38px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -.045em;
}

.auth-card > p {
    max-width: 430px;

    margin: 0;

    color: var(--muted);

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

.auth-card form {
    margin-top: 30px;
}

.auth-card .field {
    display: grid;
    gap: 9px;

    margin: 0 0 19px;
}

.auth-card .field > span {
    color: rgba(255,255,255,.82);

    font-size: 13px;
    font-weight: 650;
}

.auth-card .field input {
    width: 100%;
    height: 54px;

    box-sizing: border-box;

    padding: 0 16px;

    border:
        1px solid rgba(255,255,255,.11);

    border-radius: 14px;

    outline: none;

    background:
        rgba(255,255,255,.045);

    color: #f5f7fb;

    font: inherit;
    font-size: 15px;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.auth-card .field input::placeholder {
    color: rgba(255,255,255,.28);
}

.auth-card .field input:focus {
    border-color:
        rgba(255,255,255,.34);

    background:
        rgba(255,255,255,.065);

    box-shadow:
        0 0 0 3px rgba(255,255,255,.035);
}

/* Chrome / Edge autofill */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active {
    -webkit-text-fill-color: #f5f7fb !important;

    -webkit-box-shadow:
        0 0 0 1000px #171a20 inset !important;

    box-shadow:
        0 0 0 1000px #171a20 inset !important;

    caret-color: #f5f7fb;

    border:
        1px solid rgba(255,255,255,.14) !important;

    transition:
        background-color 9999s ease-out 0s;
}

.auth-main-button {
    width: 100%;
    min-height: 54px;

    margin-top: 4px;

    border-radius: 14px;

    font-size: 14px;
}

.auth-switch {
    margin-top: 25px;

    font-size: 13px;
}

.auth-help {
    margin-top: 30px;
    padding-top: 20px;
}

.auth-card .error {
    margin: 22px 0 0;
}

@media (max-width: 600px) {

    .auth-page {
        align-items: flex-start;

        padding:
            22px 14px 36px;
    }

    .auth-card {
        padding: 28px 22px;

        border-radius: 22px;
    }

    .auth-card .auth-kicker {
        margin-top: 28px;
    }

    .auth-card h1 {
        font-size: 38px;
    }

    .auth-card .field input {
        height: 52px;
    }
}

/* JTEAM_AUTH_INPUT_EXTRAS */

.auth-password-wrap {
    position: relative;
    width: 100%;
}

.auth-password-wrap input {
    padding-right: 54px !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;

    width: 38px;
    height: 38px;

    transform: translateY(-50%);

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: rgba(255,255,255,.50);

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease;
}

.auth-password-toggle:hover {
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.06);
}

.auth-password-toggle:focus-visible {
    outline:
        2px solid rgba(255,255,255,.32);

    outline-offset: 1px;
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================
   JTEAM ACCOUNT V2
   ========================================================== */

.account-v2-page {
    min-height: 100vh;
    padding: 34px 22px 70px;
}

.account-v2-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.account-v2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 54px;
}

.account-v2-logo {
    color: var(--text);
    text-decoration: none;
}

.account-v2-logout {
    padding: 9px 13px;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: transparent;
    color: var(--muted);

    font: inherit;
    font-size: 12px;

    cursor: pointer;
}

.account-v2-heading {
    margin-top: 58px;
}

.account-v2-heading .auth-kicker {
    margin: 0 0 10px;
}

.account-v2-heading h1 {
    margin: 0;

    font-size: clamp(46px, 7vw, 72px);
    line-height: .98;
}

.account-v2-heading > p {
    margin: 15px 0 0;

    color: var(--muted);
    font-size: 15px;
}

.account-v2-telegram {
    display: inline-flex;

    margin-top: 10px;

    color: rgba(255,255,255,.48);
    font-size: 12px;
}

.account-v2-overview {
    display: grid;
    grid-template-columns: 1.65fr .85fr;
    gap: 15px;

    margin-top: 38px;
}

.account-v2-subscription,
.account-v2-device-summary {
    border: 1px solid var(--line);
    border-radius: 24px;

    background:
        rgba(255,255,255,.025);
}

.account-v2-subscription {
    padding: 30px;
}

.account-v2-device-summary {
    padding: 28px;
}

.account-v2-card-kicker {
    color: rgba(255,255,255,.40);

    font-size: 11px;
    font-weight: 750;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.account-v2-status {
    margin-top: 17px;

    font-size: 28px;
    font-weight: 760;
    letter-spacing: -.035em;
}

.account-v2-status.active {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-v2-status.active i {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #39d98a;
}

.account-v2-status.inactive {
    color: rgba(255,255,255,.76);
}

.account-v2-expire {
    margin-top: 13px;

    color: var(--muted);
    font-size: 14px;
}

.account-v2-expire strong {
    margin-left: 4px;
    color: var(--text);
}

.account-v2-card-text {
    max-width: 500px;

    margin: 13px 0 0;

    color: var(--muted);
    line-height: 1.55;
}

.account-v2-main-action {
    margin-top: 25px;
}

.account-v2-device-number {
    margin-top: 16px;

    font-size: 46px;
    font-weight: 780;
    letter-spacing: -.05em;
}

.account-v2-device-number span {
    color: rgba(255,255,255,.28);
    font-size: 24px;
}

.account-v2-device-summary p {
    margin: 8px 0 18px;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.account-v2-text-link {
    color: rgba(255,255,255,.82);

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;
}

.account-v2-section {
    margin-top: 62px;
}

.account-v2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 21px;
}

.account-v2-section-head h2 {
    margin: 7px 0 0;

    font-size: clamp(27px, 4vw, 36px);
    letter-spacing: -.035em;
}

.account-v2-apps {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.account-v2-app {
    min-height: 120px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 20px;

    border: 1px solid var(--line);
    border-radius: 19px;

    background:
        rgba(255,255,255,.022);
}

.account-v2-app strong,
.account-v2-app span {
    display: block;
}

.account-v2-app strong {
    font-size: 15px;
}

.account-v2-app span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.account-v2-app small {
    color: rgba(255,255,255,.43);
}

.account-v2-add-device {
    margin-bottom: 16px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background:
        rgba(255,255,255,.018);
}

.account-v2-add-device summary {
    padding: 17px 19px;

    cursor: pointer;
    font-weight: 650;

    list-style: none;
}

.account-v2-add-device summary::-webkit-details-marker {
    display: none;
}

.account-v2-add-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;

    padding: 0 14px 14px;
}

.account-v2-add-grid form {
    margin: 0;
}

.account-v2-add-grid button {
    width: 100%;
    min-height: 76px;

    padding: 13px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background:
        rgba(255,255,255,.025);

    color: var(--text);

    text-align: left;
    cursor: pointer;
}

.account-v2-add-grid strong,
.account-v2-add-grid span {
    display: block;
}

.account-v2-add-grid span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 10px;
}

.account-v2-devices {
    display: grid;
    gap: 12px;
}

.account-v2-device-card {
    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        rgba(255,255,255,.022);
}

.account-v2-device-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.account-v2-device-slot {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(255,255,255,.05);

    color: rgba(255,255,255,.56);

    font-size: 12px;
    font-weight: 750;
}

.account-v2-device-info h3 {
    margin: 0;

    font-size: 17px;
}

.account-v2-device-status {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.account-v2-device-status span {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #63dda0;
}

.account-v2-device-status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #39d98a;
}

.account-v2-device-meta {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;

    margin-top: 20px;
}

.account-v2-device-meta div {
    padding: 12px 14px;

    border-radius: 13px;

    background:
        rgba(255,255,255,.025);
}

.account-v2-device-meta span,
.account-v2-device-meta strong {
    display: block;
}

.account-v2-device-meta span {
    color: var(--muted);
    font-size: 10px;
}

.account-v2-device-meta strong {
    margin-top: 4px;

    font-size: 12px;
    font-weight: 650;
}

.account-v2-connect {
    margin-top: 18px;
}

.account-v2-device-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 12px;
}

.account-v2-small-button {
    min-height: 36px;

    padding: 0 12px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background:
        rgba(255,255,255,.025);

    color: rgba(255,255,255,.72);

    font: inherit;
    font-size: 11px;

    cursor: pointer;
}

.account-v2-small-button.danger {
    color: #dc9292;
}

.account-v2-rename-form {
    display: flex;
    gap: 7px;

    margin-top: 8px;
}

.account-v2-rename-form input {
    height: 38px;

    padding: 0 11px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: rgba(255,255,255,.04);
    color: var(--text);
}

.account-v2-rename-form button {
    padding: 0 12px;

    border: 0;
    border-radius: 10px;

    background: #fff;
    color: #090909;

    font-weight: 700;
}

.account-v2-payments {
    display: grid;
    gap: 9px;
}

.account-v2-payments article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 18px;

    border: 1px solid var(--line);
    border-radius: 15px;

    background:
        rgba(255,255,255,.018);
}

.account-v2-payments strong,
.account-v2-payments span {
    display: block;
}

.account-v2-payments span {
    margin-top: 5px;

    color: var(--muted);
    font-size: 11px;
}

.account-v2-payments b {
    white-space: nowrap;
    font-size: 14px;
}

.account-v2-empty {
    padding: 22px;

    border: 1px dashed var(--line);
    border-radius: 16px;

    color: var(--muted);
    font-size: 13px;
}

.account-v2-renew-tariffs {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.account-v2-renew-card {
    position: relative;

    min-height: 110px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    padding: 17px;

    border: 1px solid var(--line);
    border-radius: 17px;

    background:
        rgba(255,255,255,.02);

    cursor: pointer;
}

.account-v2-renew-card.selected {
    border-color:
        rgba(255,255,255,.32);

    background:
        rgba(255,255,255,.07);
}

.account-v2-renew-card input {
    position: absolute;
    opacity: 0;
}

.account-v2-renew-card span {
    color: var(--muted);
    font-size: 11px;
}

.account-v2-renew-card strong {
    font-size: 20px;
}

.account-v2-renew-card small {
    color: #63dda0;
    font-size: 9px;
}

.account-v2-renew-payment {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 16px;
}

.account-v2-renew-payment form {
    margin: 0;
}

.account-v2-footer {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

    margin-top: 68px;
    padding-top: 22px;

    border-top: 1px solid var(--line);
}

.account-v2-footer a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 820px) {

    .account-v2-overview {
        grid-template-columns: 1fr;
    }

    .account-v2-apps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .account-v2-add-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .account-v2-device-meta {
        grid-template-columns: 1fr;
    }

    .account-v2-renew-tariffs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .account-v2-renew-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {

    .account-v2-page {
        padding: 22px 14px 50px;
    }

    .account-v2-heading {
        margin-top: 38px;
    }

    .account-v2-heading h1 {
        font-size: 44px;
    }

    .account-v2-subscription,
    .account-v2-device-summary {
        padding: 22px;
    }

    .account-v2-apps,
    .account-v2-add-grid,
    .account-v2-renew-payment {
        grid-template-columns: 1fr;
    }

    .account-v2-section {
        margin-top: 48px;
    }

    .account-v2-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-v2-payments article {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* JTEAM DEVICE ACTIONS ALIGNMENT */

.account-v2-connect {
    display: inline-flex;
    width: auto;
    margin-top: 18px;
}

.account-v2-device-actions {
    display: grid;
    grid-template-columns:
        repeat(3, max-content);
    align-items: center;
    justify-content: start;
    gap: 8px;

    margin-top: 14px;
}

.account-v2-device-actions > .device-rename {
    display: contents;
}

.account-v2-device-actions form {
    margin: 0;
}

.account-v2-small-button {
    min-height: 38px;
    padding: 0 14px;
}

.account-v2-rename-form {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns:
        minmax(220px, 340px)
        max-content;
    gap: 8px;

    margin-top: 2px;
}

.account-v2-rename-form[hidden] {
    display: none !important;
}

.account-v2-rename-form input {
    width: 100%;
    box-sizing: border-box;
}

.account-v2-rename-form button {
    min-height: 38px;
}

@media (max-width: 560px) {

    .account-v2-device-actions {
        grid-template-columns:
            repeat(2, max-content);
    }

    .account-v2-rename-form {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* JTEAM DEVICE ACTIONS FULL WIDTH */

.account-v2-connect {
    display: flex;
    width: 100%;
    min-height: 50px;

    box-sizing: border-box;
    margin-top: 18px;

    justify-content: center;
}

.account-v2-device-actions {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    width: 100%;
    gap: 9px;

    margin-top: 10px;
}

.account-v2-device-actions > .device-rename {
    display: contents;
}

.account-v2-device-actions form {
    margin: 0;
}

.account-v2-small-button {
    width: 100%;
    min-height: 44px;

    padding: 0 15px;

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

    white-space: nowrap;
}

.account-v2-rename-form {
    grid-column: 1 / -1;

    width: 100%;
    margin-top: 2px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        max-content;

    gap: 9px;
}

.account-v2-rename-form[hidden] {
    display: none !important;
}

.account-v2-rename-form input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.account-v2-rename-form button {
    min-height: 44px;
    padding: 0 18px;
}

@media (max-width: 560px) {

    .account-v2-connect {
        min-height: 52px;
    }

    .account-v2-device-actions {
        grid-template-columns: 1fr 1fr;
    }

    .account-v2-small-button {
        min-height: 48px;
        white-space: normal;
        text-align: center;
    }

    .account-v2-rename-form {
        grid-template-columns: 1fr;
    }

    .account-v2-rename-form button {
        width: 100%;
    }
}

/* ==========================================================
   JTEAM ACCOUNT SETUP
   ========================================================== */

.setup-v2-page {
    min-height: 100vh;
    padding: 34px 22px 70px;
}

.setup-v2-shell {
    width: min(900px, 100%);
    margin: 0 auto;
}

.setup-v2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.setup-v2-topbar .logo {
    color: var(--text);
    text-decoration: none;
}

.setup-v2-hero {
    margin-top: 76px;
}

.setup-v2-hero .auth-kicker {
    margin: 0 0 12px;
}

.setup-v2-hero h1 {
    margin: 0;

    font-size: clamp(46px, 7vw, 72px);
    line-height: .98;
}

.setup-v2-hero p {
    max-width: 650px;

    margin: 18px 0 0;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.65;
}

.setup-v2-main-card {
    margin-top: 36px;
    padding: 30px;

    border: 1px solid var(--line);
    border-radius: 24px;

    background:
        rgba(255,255,255,.025);
}

.setup-v2-status {
    color: #63dda0;

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

.setup-v2-main-card h2 {
    max-width: 600px;

    margin: 12px 0;

    font-size: clamp(27px, 4vw, 36px);
    letter-spacing: -.035em;
}

.setup-v2-main-card p {
    max-width: 650px;

    color: var(--muted);
    line-height: 1.6;
}

.setup-v2-main-card small {
    display: block;

    max-width: 650px;

    margin-top: 20px;

    color: rgba(255,255,255,.38);
    line-height: 1.5;
}

.setup-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 25px;
}

.setup-v2-platforms {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 36px;
}

.setup-v2-platforms a {
    min-height: 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        rgba(255,255,255,.025);

    color: var(--text);
    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.setup-v2-platforms a:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,.20);

    background:
        rgba(255,255,255,.05);
}

.setup-v2-platforms strong {
    font-size: 17px;
}

.setup-v2-platforms span {
    margin-top: 6px;

    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 600px) {

    .setup-v2-page {
        padding: 22px 14px 50px;
    }

    .setup-v2-hero {
        margin-top: 48px;
    }

    .setup-v2-platforms {
        grid-template-columns: 1fr;
    }

    .setup-v2-main-card {
        padding: 22px;
    }

    .setup-v2-actions .btn {
        width: 100%;
    }
}

/* ==========================================================
   JTEAM MAIN HEADER V2
   ========================================================== */

.site-header-v2 {
    position: relative;
    z-index: 20;

    border-bottom:
        1px solid rgba(255,255,255,.075);

    background:
        rgba(9,11,15,.86);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-v2 {
    min-height: 72px;

    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        auto
        minmax(180px, 1fr);

    align-items: center;
    gap: 28px;
}

.nav-v2-logo {
    justify-self: start;

    color: var(--text);
    text-decoration: none;
}

.nav-v2-center {
    justify-self: center;

    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-v2-center a,
.nav-v2-login {
    color:
        rgba(255,255,255,.64);

    font-size: 13px;
    font-weight: 550;

    text-decoration: none;

    transition:
        color .18s ease;
}

.nav-v2-center a:hover,
.nav-v2-login:hover {
    color: #fff;
}

.nav-v2-actions {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-v2-connect {
    min-height: 46px;
    padding: 0 21px;

    border-radius: 13px;
}

.nav-v2-account {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 0 16px;

    border:
        1px solid rgba(255,255,255,.11);

    border-radius: 13px;

    background:
        rgba(255,255,255,.035);

    color:
        rgba(255,255,255,.88);

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.nav-v2-account:hover {
    background:
        rgba(255,255,255,.065);

    border-color:
        rgba(255,255,255,.18);
}

.nav-v2-account i {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #39d98a;

    box-shadow:
        0 0 0 4px rgba(57,217,138,.08);
}

@media (max-width: 820px) {

    .nav-v2 {
        grid-template-columns:
            1fr auto;

        gap: 18px;
    }

    .nav-v2-center {
        display: none;
    }

    .nav-v2-actions {
        gap: 12px;
    }
}

@media (max-width: 520px) {

    .nav-v2 {
        min-height: 64px;

        grid-template-columns:
            auto 1fr;

        gap: 12px;
    }

    .nav-v2-logo {
        font-size: 18px;
    }

    .nav-v2-actions {
        justify-self: end;
    }

    .nav-v2-login {
        font-size: 12px;
    }

    .nav-v2-connect {
        min-height: 40px;

        padding: 0 14px;

        font-size: 12px;
    }

    .nav-v2-account {
        min-height: 40px;

        padding: 0 13px;

        font-size: 12px;
    }
}

/* JTEAM HEADER CLEAN FINAL */

.nav-v2 {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.nav-v2-logo {
    flex: none;
}

.nav-v2-center {
    display: none !important;
}

.nav-v2-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-v2-login {
    padding: 10px 4px;

    color: rgba(255,255,255,.64);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.nav-v2-login:hover {
    color: #fff;
}

.nav-v2-connect {
    min-height: 44px;
    padding: 0 20px;
}

.nav-v2-account {
    min-height: 44px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;

    background: rgba(255,255,255,.035);

    color: rgba(255,255,255,.88);

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;
}

.nav-v2-account i {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #39d98a;
}

@media (max-width: 560px) {

    .nav-v2 {
        min-height: 64px;
        gap: 12px;
    }

    .nav-v2-logo {
        font-size: 18px;
    }

    .nav-v2-actions {
        gap: 12px;
    }

    .nav-v2-login {
        font-size: 12px;
    }

    .nav-v2-connect,
    .nav-v2-account {
        min-height: 40px;
        padding: 0 13px;

        font-size: 12px;
    }
}

/* ==========================================================
   JTEAM RENEW POLISH
   ========================================================== */

#renew {
    padding: 30px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.015)
        );
}

#renew .account-v2-section-head {
    margin-bottom: 26px;
}

#renew .account-v2-section-head h2 {
    font-size: 32px;
}


/* ---------- Тарифы ---------- */

#renew .account-v2-renew-tariffs {
    gap: 12px;
}

#renew .account-v2-renew-card {
    min-height: 118px;

    padding: 18px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    background:
        rgba(255,255,255,.018);

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

#renew .account-v2-renew-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,.17);

    background:
        rgba(255,255,255,.035);
}

#renew .account-v2-renew-card.selected {
    border-color:
        rgba(255,255,255,.34);

    background:
        rgba(255,255,255,.075);

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.025);
}

#renew .account-v2-renew-card.selected::after {
    content: "✓";

    position: absolute;
    top: 12px;
    right: 12px;

    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.10);

    color: rgba(255,255,255,.88);

    font-size: 11px;
    font-weight: 800;
}

#renew .account-v2-renew-card span {
    margin-bottom: 3px;

    color:
        rgba(255,255,255,.50);

    font-size: 11px;
}

#renew .account-v2-renew-card strong {
    font-size: 22px;
    letter-spacing: -.025em;
}

#renew .account-v2-renew-card small {
    margin-top: 3px;

    color: #63dda0;

    font-size: 10px;
    font-weight: 650;
}


/* ---------- Оплата ---------- */

#renew .account-v2-renew-payment {
    gap: 12px;

    margin-top: 18px;
    padding-top: 18px;

    border-top:
        1px solid rgba(255,255,255,.07);
}

#renew .buy-v2-pay-button,
#renew .buy-v2-pay-button.primary {
    min-height: 72px;

    padding: 15px 18px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 16px;

    background:
        rgba(255,255,255,.025);

    color: var(--text);

    box-shadow: none;
}

#renew .buy-v2-pay-button.primary {
    border-color:
        rgba(255,255,255,.20);

    background:
        rgba(255,255,255,.075);
}

#renew .buy-v2-pay-button:hover,
#renew .buy-v2-pay-button.primary:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,.22);

    background:
        rgba(255,255,255,.07);
}

#renew .buy-v2-pay-button span {
    font-size: 14px;
}

#renew .buy-v2-pay-button small {
    margin-top: 2px;

    color:
        rgba(255,255,255,.42);

    opacity: 1;
}


/* ---------- Mobile ---------- */

@media (max-width: 820px) {

    #renew {
        padding: 22px;
    }

    #renew .account-v2-renew-card {
        min-height: 104px;
    }
}

@media (max-width: 560px) {

    #renew {
        padding: 20px 16px;
        border-radius: 20px;
    }

    #renew .account-v2-section-head h2 {
        font-size: 28px;
    }

    #renew .account-v2-renew-tariffs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    #renew .account-v2-renew-card {
        min-height: 100px;
    }

    #renew .account-v2-renew-payment {
        grid-template-columns: 1fr;
    }

    #renew .buy-v2-pay-button {
        min-height: 62px;
    }
}

/* ==========================================================
   JTEAM BUY SESSION CONTEXT
   ========================================================== */

.buy-v2-topbar {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 38px;
}

.buy-v2-logo {
    color: var(--text);
    text-decoration: none;
}

.buy-v2-app-context {
    padding: 9px 13px;

    border: 1px solid var(--line);
    border-radius: 11px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 650;
}

.buy-v2-account-context {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 17px;
    padding: 9px 12px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 999px;

    background:
        rgba(255,255,255,.025);

    color:
        rgba(255,255,255,.55);

    font-size: 11px;
    font-weight: 600;
}

.buy-v2-account-context i {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #39d98a;
}


/* ==========================================================
   JTEAM PAYMENT RETURN V2
   ========================================================== */

.payment-v2-page {
    min-height: 100vh;

    padding: 34px 22px 70px;
}

.payment-v2-shell {
    width: min(760px, 100%);

    margin: 0 auto;
}

.payment-v2-topbar {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.payment-v2-logo {
    color: var(--text);
    text-decoration: none;
}

.payment-v2-card {
    margin-top: 84px;
    padding: 38px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.018)
        );
}

.payment-v2-card .auth-kicker {
    margin: 0 0 12px;
}

.payment-v2-card h1 {
    max-width: 620px;

    margin: 0;

    font-size:
        clamp(38px, 7vw, 58px);

    line-height: 1;

    letter-spacing: -.045em;
}

.payment-v2-card p {
    max-width: 580px;

    margin: 17px 0 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.65;
}

.payment-v2-loader {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 28px;

    color:
        rgba(255,255,255,.48);

    font-size: 12px;
}

.payment-v2-loader i {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    border:
        2px solid rgba(255,255,255,.14);

    border-top-color:
        rgba(255,255,255,.80);

    border-radius: 50%;

    animation:
        jteamPaymentSpin
        .8s linear infinite;
}

@keyframes jteamPaymentSpin {
    to {
        transform:
            rotate(360deg);
    }
}

.payment-v2-success-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    border-radius: 50%;

    background:
        rgba(57,217,138,.10);

    color: #63dda0;

    font-size: 21px;
    font-weight: 800;
}

.payment-v2-main-button {
    margin-top: 28px;
}

.payment-v2-note {
    display: block;

    max-width: 500px;

    margin-top: 18px;

    color:
        rgba(255,255,255,.38);

    line-height: 1.5;
}

.payment-v2-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 26px;
}

@media (max-width: 600px) {

    .buy-v2-topbar,
    .payment-v2-topbar {
        min-height: 44px;
    }

    .payment-v2-page {
        padding:
            22px 14px 50px;
    }

    .payment-v2-card {
        margin-top: 54px;

        padding: 26px 22px;

        border-radius: 22px;
    }

    .payment-v2-error-actions
    .btn {
        width: 100%;
    }
}

/* JTEAM DEVICE SUBSCRIPTION LOCK */

.account-v2-device-locked {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    margin-bottom: 16px;
    padding: 20px 22px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    background:
        rgba(255,255,255,.018);
}

.account-v2-device-locked strong,
.account-v2-device-locked span {
    display: block;
}

.account-v2-device-locked strong {
    color:
        rgba(255,255,255,.88);

    font-size: 14px;
}

.account-v2-device-locked span {
    max-width: 580px;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}

.account-v2-device-locked .btn {
    flex: none;
}


@media (max-width: 600px) {

    .account-v2-device-locked {
        align-items: stretch;
        flex-direction: column;

        padding: 18px;
    }

    .account-v2-device-locked .btn {
        width: 100%;
    }
}


/* JTEAM AUTORENEW UI */

.account-v2-autorenew-card,
.account-v2-autorenew-off {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,.025);
}

.account-v2-autorenew-off {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-v2-autorenew-off strong {
    font-size: 16px;
}

.account-v2-autorenew-off span {
    color: #8f98aa;
    font-size: 14px;
}

.account-v2-autorenew-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.account-v2-autorenew-top > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-v2-autorenew-top strong {
    font-size: 18px;
}

.account-v2-autorenew-top span {
    color: #8f98aa;
    font-size: 14px;
}

.account-v2-autorenew-badge {
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(55, 211, 126, .10);
    border: 1px solid rgba(55, 211, 126, .20);
    color: #55dc91;
    font-size: 13px;
    font-weight: 700;
}

.account-v2-autorenew-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.account-v2-autorenew-info > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
}

.account-v2-autorenew-info span,
.account-v2-dialog-payment span {
    color: #8f98aa;
    font-size: 12px;
}

.account-v2-autorenew-disable {
    margin-top: 18px;
    min-height: 44px;
    padding: 0 17px;
    border-radius: 12px;
    border: 1px solid rgba(255, 94, 94, .28);
    background: transparent;
    color: #ff7a7a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-v2-autorenew-disable:hover {
    background: rgba(255, 94, 94, .07);
}

.account-v2-autorenew-dialog {
    width: min(460px, calc(100vw - 32px));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 30px;
    background: #15171c;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.account-v2-autorenew-dialog::backdrop {
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(5px);
}

.account-v2-dialog-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #aeb5c2;
    font-size: 22px;
    cursor: pointer;
}

.account-v2-dialog-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255, 83, 83, .10);
    border: 1px solid rgba(255, 83, 83, .20);
    color: #ff6666;
    font-size: 24px;
    font-weight: 800;
}

.account-v2-autorenew-dialog h3 {
    margin: 0;
    text-align: center;
    font-size: 24px;
}

.account-v2-autorenew-dialog > p {
    margin: 12px 0 0;
    text-align: center;
    color: #9ca5b5;
    line-height: 1.55;
}

.account-v2-dialog-payment {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding: 15px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
}

.account-v2-autorenew-dialog
.account-v2-dialog-note {
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    text-align: left;
    background: rgba(255, 83, 83, .055);
    border: 1px solid rgba(255, 83, 83, .11);
    color: #b9c0cc;
    font-size: 13px;
}

.account-v2-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.account-v2-dialog-actions form {
    margin: 0;
}

.account-v2-dialog-danger,
.account-v2-dialog-back {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-v2-dialog-danger {
    border: 0;
    background: #e64d4d;
    color: #fff;
}

.account-v2-dialog-back {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
    color: #fff;
}

@media (max-width: 640px) {
    .account-v2-autorenew-top {
        flex-direction: column;
    }

    .account-v2-autorenew-info {
        grid-template-columns: 1fr;
    }

    .account-v2-dialog-actions {
        grid-template-columns: 1fr;
    }

    .account-v2-autorenew-dialog {
        padding: 26px 20px 20px;
    }
}


/* JTEAM TOP AUTORENEW BUTTON */

.account-v2-subscription-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.account-v2-subscription-actions
.account-v2-main-action {
    margin: 0;
}

.account-v2-top-autorenew-disable {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 13px;
    border: 1px solid rgba(255, 94, 94, .30);
    background: transparent;
    color: #ff7a7a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-v2-top-autorenew-disable:hover {
    background: rgba(255, 94, 94, .07);
}

@media (max-width: 640px) {
    .account-v2-subscription-actions {
        flex-direction: column;
    }

    .account-v2-top-autorenew-disable {
        width: 100%;
    }
}

/* FIX SUBSCRIPTION ACTIONS SPACING */
.account-v2-subscription-actions {
    margin-top: 24px;
}
