:root{
    --bg:#07111f;
    --bg2:#0b1728;
    --card:rgba(17,31,52,.82);
    --card2:rgba(20,38,63,.95);
    --line:rgba(255,255,255,.09);
    --text:#f4f7fb;
    --muted:#91a0b7;
    --accent:#6d7cff;
    --accent2:#8c6dff;
    --success:#35d39a;
    --danger:#ff647c;
    --shadow:0 24px 70px rgba(0,0,0,.28);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 10% 0%,rgba(109,124,255,.18),transparent 35%),
        radial-gradient(circle at 90% 10%,rgba(140,109,255,.14),transparent 30%),
        linear-gradient(145deg,var(--bg),var(--bg2));
}

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

button,input{font:inherit}

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

.topbar{
    padding:22px 0;
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(18px);
}

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

.brand{
    display:flex;
    align-items:center;
    gap:11px;
    font-weight:800;
    font-size:21px;
}

.logo{
    width:38px;
    height:38px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    box-shadow:0 10px 30px rgba(109,124,255,.3);
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:0 18px;
    border-radius:12px;
    border:1px solid var(--line);
    color:var(--text);
    background:rgba(255,255,255,.05);
    cursor:pointer;
    transition:.2s ease;
    font-weight:700;
}

.btn:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.09);
}

.btn-primary{
    border:0;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    box-shadow:0 12px 30px rgba(109,124,255,.24);
}

.btn-primary:hover{
    box-shadow:0 16px 36px rgba(109,124,255,.34);
}

.btn-full{width:100%}

.hero{
    padding:78px 0 55px;
    text-align:center;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 12px;
    border:1px solid var(--line);
    border-radius:999px;
    color:#b8c3d6;
    background:rgba(255,255,255,.04);
    font-size:13px;
    font-weight:700;
}

.hero h1{
    max-width:820px;
    margin:20px auto 16px;
    font-size:clamp(38px,6vw,68px);
    line-height:1.03;
    letter-spacing:-2.5px;
}

.gradient{
    background:linear-gradient(135deg,#fff 20%,#9ca9ff 80%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.hero p{
    max-width:650px;
    margin:0 auto;
    color:var(--muted);
    font-size:18px;
    line-height:1.65;
}

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

.section{
    padding:30px 0 80px;
}

.section-title{
    text-align:center;
    margin-bottom:28px;
}

.section-title h2{
    margin:0 0 9px;
    font-size:32px;
}

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

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

.card{
    border:1px solid var(--line);
    background:var(--card);
    border-radius:22px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(18px);
}

.plan{
    padding:25px;
    display:flex;
    flex-direction:column;
    min-height:330px;
}

.plan-name{
    color:#b8c3d6;
    font-weight:700;
}

.plan-price{
    margin-top:20px;
    font-size:38px;
    font-weight:850;
    letter-spacing:-1px;
}

.plan-period{
    margin-top:5px;
    color:var(--muted);
}

.plan-spacer{flex:1}

.badge{
    display:inline-flex;
    width:max-content;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(53,211,154,.12);
    color:var(--success);
    font-size:12px;
    font-weight:800;
    margin-bottom:13px;
}

.form-page{
    min-height:calc(100vh - 82px);
    display:grid;
    place-items:center;
    padding:50px 0;
}

.form-card{
    width:min(480px,100%);
    padding:32px;
}

.form-card h1{
    margin:0 0 8px;
    font-size:30px;
}

.form-subtitle{
    color:var(--muted);
    line-height:1.55;
    margin-bottom:25px;
}

.field{margin-bottom:17px}

.field label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    font-size:14px;
}

.field input{
    width:100%;
    height:50px;
    padding:0 15px;
    border:1px solid var(--line);
    border-radius:12px;
    outline:none;
    color:var(--text);
    background:rgba(255,255,255,.055);
}

.field input:focus{
    border-color:rgba(109,124,255,.8);
    box-shadow:0 0 0 4px rgba(109,124,255,.1);
}

.error{
    padding:12px 14px;
    margin-bottom:18px;
    border-radius:12px;
    color:#ff9aaa;
    background:rgba(255,100,124,.09);
    border:1px solid rgba(255,100,124,.18);
}

.muted{color:var(--muted)}

.account{
    padding:42px 0 80px;
}

.account-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:30px;
}

.account-head h1{
    margin:0 0 7px;
    font-size:38px;
    letter-spacing:-1px;
}

.stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-bottom:24px;
}

.stat{
    padding:20px;
}

.stat-label{
    color:var(--muted);
    font-size:13px;
}

.stat-value{
    margin-top:7px;
    font-size:27px;
    font-weight:800;
}

.keys{
    display:grid;
    gap:18px;
}

.key-card{
    padding:24px;
}

.key-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.key-title{
    font-size:21px;
    font-weight:800;
}

.status{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.status::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:currentColor;
}

.status.active{
    color:var(--success);
    background:rgba(53,211,154,.1);
}

.status.expired{
    color:var(--danger);
    background:rgba(255,100,124,.1);
}

.key-meta{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin:22px 0;
}

.meta{
    padding:13px;
    border-radius:13px;
    background:rgba(255,255,255,.035);
}

.meta-label{
    color:var(--muted);
    font-size:12px;
    margin-bottom:5px;
}

.meta-value{
    font-weight:700;
    word-break:break-word;
}

.connection{
    margin-top:15px;
}

.connection textarea,
.connection input{
    width:100%;
    min-height:82px;
    padding:13px;
    border-radius:12px;
    border:1px solid var(--line);
    color:#cbd5e1;
    background:rgba(0,0,0,.18);
    resize:none;
    outline:none;
}

.key-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:15px;
}

.empty{
    text-align:center;
    padding:55px 25px;
}

.empty h2{margin:0 0 8px}

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

.renew-plan{
    padding:23px;
}

.renew-plan h3{
    margin:0 0 10px;
}

.renew-price{
    font-size:30px;
    font-weight:850;
    margin-bottom:5px;
}

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

@media(max-width:900px){
    .plans{grid-template-columns:repeat(2,1fr)}
    .key-meta{grid-template-columns:1fr 1fr}
    .renew-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:620px){
    .container{width:min(100% - 22px,1120px)}
    .topbar{padding:14px 0}
    .nav-actions .btn:first-child{display:none}
    .hero{padding:55px 0 35px}
    .hero h1{letter-spacing:-1.5px}
    .hero p{font-size:16px}
    .plans{grid-template-columns:1fr}
    .section{padding-bottom:55px}
    .form-card{padding:24px}
    .account{padding:28px 0 55px}
    .account-head{
        align-items:flex-start;
        flex-direction:column;
    }
    .account-head h1{font-size:31px}
    .stats{grid-template-columns:1fr 1fr}
    .stat:last-child{grid-column:1/-1}
    .key-head{flex-direction:column}
    .key-meta{grid-template-columns:1fr}
    .key-actions .btn{width:100%}
    .renew-grid{grid-template-columns:1fr}
}



.key-card {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.key-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.20);
}

.key-card .btn {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.key-card:hover .btn {
    transform: translateY(-1px);
}

.key-expiry-date {
    display: block;
}

.key-expiry-remaining {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.65;
}

.key-expiry-remaining.is-expired {
    opacity: 1;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .key-card,
    .key-card .btn {
        transition: none;
    }
}



.plans .card.plan {
    position: relative;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .plans .card.plan:hover {
        transform: translateY(-3px);
        border-color: rgba(255,255,255,.12);
        box-shadow: 0 24px 60px rgba(0,0,0,.26);
        z-index: 2;
    }

    .plans .card.plan:hover .btn {
        transform: translateY(-1px);
    }

    .plans .card.plan .btn {
        transition:
            transform 180ms ease,
            box-shadow 180ms ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plans .card.plan,
    .plans .card.plan .btn {
        transition: none;
    }

    .plans .card.plan:hover {
        transform: none;
    }
}



:root{
    --bg:#070b14;
    --bg2:#0c1322;
    --card:rgba(18,27,44,.78);
    --card2:rgba(23,34,55,.92);
    --line:rgba(255,255,255,.075);
    --line-strong:rgba(255,255,255,.12);
    --text:#f5f7fb;
    --muted:#8f9caf;
    --accent:#7180ff;
    --accent2:#9477ff;
    --success:#39d39a;
    --danger:#ff647c;
    --shadow:0 20px 60px rgba(0,0,0,.24);
}

body{
    background:
        radial-gradient(circle at 50% -10%,rgba(113,128,255,.13),transparent 34%),
        radial-gradient(circle at 100% 25%,rgba(148,119,255,.08),transparent 28%),
        linear-gradient(145deg,var(--bg),var(--bg2));
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

.topbar{
    padding:16px 0;
    background:rgba(7,11,20,.62);
    border-bottom:1px solid rgba(255,255,255,.06);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    position:relative;
    z-index:20;
}

.brand{
    font-size:19px;
    letter-spacing:-.2px;
}

.logo{
    width:36px;
    height:36px;
    border-radius:11px;
    box-shadow:0 8px 24px rgba(113,128,255,.22);
}

.btn{
    min-height:42px;
    padding:0 16px;
    border-radius:11px;
    border-color:var(--line);
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}

.btn:hover{
    transform:translateY(-1px);
    border-color:var(--line-strong);
}

.btn:active{
    transform:translateY(0);
}

.btn-primary{
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    box-shadow:0 10px 26px rgba(113,128,255,.18);
}

.btn-primary:hover{
    box-shadow:0 14px 32px rgba(113,128,255,.28);
}

.card{
    border-color:var(--line);
    background:linear-gradient(
        145deg,
        rgba(21,32,51,.82),
        rgba(13,22,37,.82)
    );
    box-shadow:var(--shadow);
}

.plan,
.form-card,
.key-card,
.stat{
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.plan:hover,
.key-card:hover{
    transform:translateY(-2px);
    border-color:rgba(255,255,255,.12);
    box-shadow:0 24px 65px rgba(0,0,0,.28);
}

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

.hero h1{
    font-weight:800;
    letter-spacing:-2.2px;
}

.hero p{
    font-size:17px;
    line-height:1.6;
}

.section{
    padding-top:24px;
}

.section-title{
    margin-bottom:24px;
}

.section-title h2{
    letter-spacing:-.7px;
}

.plans{
    gap:16px;
}

.plan{
    min-height:310px;
    padding:23px;
}

.plan-name{
    color:#c1c9d8;
}

.plan-price{
    font-size:36px;
    letter-spacing:-1.3px;
}

.badge{
    padding:5px 9px;
}

.form-page{
    padding:42px 0 70px;
}

.form-card{
    padding:30px;
}

.form-card h1{
    letter-spacing:-.7px;
}

.field input{
    height:48px;
    border-radius:11px;
    background:rgba(255,255,255,.035);
    border-color:var(--line);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.field input:hover{
    border-color:rgba(255,255,255,.12);
}

.field input:focus{
    background:rgba(255,255,255,.045);
    border-color:rgba(113,128,255,.7);
    box-shadow:0 0 0 3px rgba(113,128,255,.11);
}

.account{
    padding-top:38px;
}

.account-head{
    margin-bottom:28px;
}

.account-head h1{
    letter-spacing:-1.2px;
}

.stats{
    gap:14px;
}

.stat{
    padding:19px;
}

.stat-label,
.meta-label{
    letter-spacing:.1px;
}

.key-card{
    overflow:hidden;
}

.key-head{
    padding-bottom:18px;
}

.status{
    border-radius:999px;
}

.connection{
    background:rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.055);
    border-radius:14px;
}

.key-actions{
    gap:9px;
}

.empty{
    padding:34px 24px;
}

.footer{
    color:#68758a;
    border-top-color:rgba(255,255,255,.055);
}

a{
    transition:color .18s ease,opacity .18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible{
    outline:2px solid rgba(113,128,255,.75);
    outline-offset:3px;
}

@media (max-width:720px){
    .container{
        width:min(100% - 24px,1120px);
    }

    .topbar{
        padding:13px 0;
    }

    .brand{
        font-size:17px;
    }

    .logo{
        width:34px;
        height:34px;
    }

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

    .hero h1{
        font-size:clamp(34px,10vw,48px);
        letter-spacing:-1.7px;
    }

    .hero p{
        font-size:16px;
    }

    .section{
        padding-bottom:42px;
    }

    .plan{
        min-height:285px;
    }

    .form-card{
        padding:23px;
    }

    .account{
        padding-top:25px;
    }
}

@media (prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        transition:none !important;
        animation:none !important;
    }
}



.account > .container > section.card:last-of-type{
    text-align:center;
    padding:30px 24px;
}

.account > .container > section.card:last-of-type .section-title{
    text-align:center !important;
    margin-bottom:22px !important;
}

.account > .container > section.card:last-of-type .section-title h2{
    margin-top:10px !important;
    margin-bottom:8px !important;
}

.account > .container > section.card:last-of-type .section-title p{
    max-width:620px;
    margin:0 auto;
}

.account > .container > section.card:last-of-type .key-actions{
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

@media (max-width:520px){
    .account > .container > section.card:last-of-type .key-actions{
        flex-direction:column;
    }

    .account > .container > section.card:last-of-type .key-actions .btn{
        width:100%;
    }
}



.plans .card.plan:nth-child(2){
    border-color:rgba(113,128,255,.28);
    box-shadow:
        0 18px 55px rgba(113,128,255,.10),
        0 20px 60px rgba(0,0,0,.20);
}

.plans .card.plan:nth-child(2) .badge{
    background:rgba(113,128,255,.12);
    color:#aeb7ff;
    border:1px solid rgba(113,128,255,.16);
}

@media (hover:hover) and (pointer:fine){
    .plans .card.plan:nth-child(2):hover{
        border-color:rgba(113,128,255,.42);
        box-shadow:
            0 22px 65px rgba(113,128,255,.14),
            0 24px 70px rgba(0,0,0,.25);
    }
}



.form-card > .eyebrow,
.form-card > h1,
.form-card > .form-subtitle{
    text-align:center;
}

.form-card > .form-subtitle{
    max-width:560px;
    margin-left:auto;
    margin-right:auto;
}

.form-card > section.card{
    text-align:center;
}

.form-card > section.card > .eyebrow,
.form-card > section.card > h2,
.form-card > section.card > p{
    text-align:center;
}

.form-card > section.card > p{
    max-width:560px;
    margin-left:auto;
    margin-right:auto;
}




.form-card > .eyebrow,
.form-card > h1,
.form-card > .form-subtitle {
    text-align: center;
}

.form-card > .eyebrow {
    margin-left: auto;
    margin-right: auto;
}

.form-card > .form-subtitle {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}


.form-card > section.card {
    text-align: center;
}

.form-card > section.card .eyebrow,
.form-card > section.card h2,
.form-card > section.card h3,
.form-card > section.card p,
.form-card > section.card .muted {
    text-align: center;
}


.form-card > section.card p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}


.form-card > section.card > div[style*="display:grid"],
.form-card > section.card > div[style*="display: flex"],
.form-card > section.card > .key-actions {
    justify-items: center;
    justify-content: center;
}

.form-card > section.card .btn {
    margin-left: auto;
    margin-right: auto;
}


.form-card > .support-contact,
.form-card > section.support-contact {
    text-align: center;
}

.form-card > .support-contact p,
.form-card > section.support-contact p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}


.form-card > div:last-child {
    text-align: center;
}

.form-card > div:last-child p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width:520px) {
    .form-card > section.card .btn,
    .form-card > .support-contact .btn,
    .form-card > section.support-contact .btn {
        width: 100%;
    }
}




.form-card > div[style*="display:grid"][style*="margin-top:26px"] {
    text-align: center;
}

.form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card {
    text-align: center;
    padding: 22px 24px;
}

.form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card strong {
    display: block;
    font-size: 17px;
    line-height: 1.4;
}

.form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card p {
    max-width: 600px;
    margin: 10px auto 0;
    line-height: 1.6;
}

.form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card .btn {
    margin-left: auto;
    margin-right: auto;
}


.form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card:last-child {
    text-align: center;
}

.form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card:last-child p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width:520px) {
    .form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card {
        padding: 20px 18px;
    }

    .form-card > div[style*="display:grid"][style*="margin-top:26px"] > .card .btn {
        width: 100%;
    }
}





.form-card > div[style*="margin-top:26px"] {
    text-align: center;
}

.form-card > div[style*="margin-top:26px"] > .card {
    text-align: center;
    padding: 22px 24px;
}

.form-card > div[style*="margin-top:26px"] > .card strong {
    display: block;
    font-size: 17px;
    line-height: 1.4;
}

.form-card > div[style*="margin-top:26px"] > .card p {
    max-width: 620px;
    margin: 10px auto 0;
    line-height: 1.6;
}

.form-card > div[style*="margin-top:26px"] > .card .btn {
    display: flex;
    width: fit-content;
    min-width: 180px;
    margin: 16px auto 0;
}


.form-card > div[style="margin-top:28px"] {
    text-align: center;
}

.form-card > div[style="margin-top:28px"] .btn {
    margin-left: auto;
    margin-right: auto;
}


.form-card > .muted[style*="white-space:pre-line"] {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


.form-card > div[style*="text-align:center"] {
    text-align: center;
}

@media (max-width:520px) {
    .form-card > div[style*="margin-top:26px"] > .card {
        padding: 20px 18px;
    }

    .form-card > div[style*="margin-top:26px"] > .card .btn {
        width: 100%;
    }
}



.form-card > .eyebrow{
    display:flex;
    width:max-content;
    margin-left:auto;
    margin-right:auto;
}


body:has(> main > .hero) .topbar .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

body:has(> main > .hero) .topbar .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    white-space: nowrap;
}

body:has(> main > .hero) .topbar .nav-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body:has(> main > .hero) .topbar .nav-actions .btn {
    display: inline-flex;
    min-height: 44px;
    white-space: nowrap;
}

body:has(> main > .hero) > .footer {
    text-align: center;
}

body:has(> main > .hero) > .footer > .container {
    line-height: 1.6;
    text-wrap: balance;
}

@media (max-width: 720px) {
    body:has(> main > .hero) .topbar .nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    body:has(> main > .hero) .topbar .brand {
        grid-column: 1;
        grid-row: 1;
    }

    body:has(> main > .hero) .topbar .nav-actions {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    body:has(> main > .hero) .topbar .nav-actions {
        display: none;
    }

    body:has(> main > .hero) .topbar .nav {
        gap: 0;
    }
}
