
/* ==========================================================
   SHAINVPN UI SYSTEM
   ========================================================== */

:root {
    --bg: #061019;
    --surface: #0c1821;
    --surface-2: #101f29;
    --surface-3: #13242f;

    --border: rgba(255,255,255,.075);
    --border-strong: rgba(255,255,255,.12);

    --text: #f2f8fa;
    --muted: #8fa5b1;
    --muted-2: #718995;

    --accent: #28cec5;
    --accent-hover: #41ddd4;
    --accent-soft: rgba(40,206,197,.12);

    --success: #55dfa6;
    --warning: #ffc36b;
    --danger: #ff8888;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow:
        0 18px 50px rgba(0,0,0,.18);
}


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    line-height: 1.1;
    margin-top: 0;
}

p {
    line-height: 1.65;
}

strong,
.price,
.stat-card strong {
    font-variant-numeric: tabular-nums;
}


/* ==========================================================
   LOGO
   ========================================================== */

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;

    min-height: 34px;

    font-size: 20px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -.35px;
}

.logo-mark {
    width: 8px;

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

    overflow: hidden;

    color: var(--accent);

    font-size: 26px;
    line-height: 1;
    letter-spacing: -5px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.button,
.action-btn,
.renew-btn,
.tab {
    appearance: none;

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

    gap: 8px;

    border-radius: var(--radius-sm);

    font-weight: 750;
    line-height: 1;

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

    cursor: pointer;

    white-space: nowrap;
}

.button {
    min-height: 44px;

    padding: 0 18px;

    border: 1px solid transparent;

    background: var(--accent);
    color: #031513;

    font-size: 14px;

    box-shadow:
        0 7px 22px
        rgba(40,206,197,.10);
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

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

.button-small {
    min-height: 40px !important;
    padding: 0 15px !important;

    font-size: 13px !important;
}

.button-secondary {
    background: rgba(255,255,255,.055) !important;
    color: var(--text) !important;

    border:
        1px solid
        var(--border-strong) !important;

    box-shadow: none !important;
}

.button-secondary:hover {
    background:
        rgba(255,255,255,.09) !important;

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

.button-full {
    width: 100%;
}


/* ==========================================================
   COMMON SURFACES
   ========================================================== */

.card,
.step,
.plan,
.region,
.card-box,
.panel,
.checkout-box,
.login-card,
.login-box,
.hero-card,
.stat-card {
    border-color: var(--border) !important;

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

.card,
.step,
.plan,
.card-box,
.checkout-box,
.login-card,
.login-box {
    border-radius: var(--radius-lg) !important;
}

.muted {
    color: var(--muted) !important;
}

.hidden {
    display: none !important;
}


/* ==========================================================
   HOME
   ========================================================== */

.page-home .header {
    border-bottom:
        1px solid var(--border);

    background:
        rgba(6,16,25,.88);
}

.page-home .nav {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 24px;
}

.page-home .nav nav {
    align-items: center;
}

.page-home .nav nav a {
    display: inline-flex;
    align-items: center;

    min-height: 40px;

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

    color: var(--muted);
}

.page-home .nav nav a:hover {
    color: var(--text);
}

.page-home h1 {
    max-width: 750px;

    letter-spacing: -2.8px;
}

.page-home .hero-text {
    color: var(--muted);
}

.page-home .hero-actions {
    align-items: center;
}

.page-home .hero-features {
    align-items: center;

    color: var(--muted);
}

.page-home .hero-card {
    padding: 28px;
}

.page-home .connection {
    min-height: 130px;
}

.page-home .connection-icon {
    flex: 0 0 60px;

    width: 60px;
    height: 60px;

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

.page-home .stats > div {
    min-height: 74px;

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

.page-home .card {
    min-height: 205px;

    display: flex;
    flex-direction: column;
}

.page-home .card-icon {
    width: 48px;
    height: 48px;

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

    margin-bottom: 5px;

    border-radius: 14px;

    background: var(--accent-soft);

    font-size: 23px;
    line-height: 1;
}

.page-home .card h3 {
    margin-top: 12px;
}

.page-home .card p {
    margin-top: auto;
}

.page-home .plans {
    align-items: stretch;
}

.page-home .plan {
    min-height: 355px;

    display: flex;
    flex-direction: column;
}

.page-home .plan ul {
    flex: 1;
}

.page-home .price {
    line-height: 1;
}

.page-home .region {
    min-height: 82px;
}

.page-home .region > span {
    width: 40px;

    display: flex;
    justify-content: center;

    line-height: 1;
}

.page-home .step {
    min-height: 195px;
}

.page-home .step-number {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

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


/* ==========================================================
   CABINET
   ========================================================== */

.page-cabinet .account-page {
    padding-top: 42px;
}

.page-cabinet .account-top {
    min-height: 64px;
}

.page-cabinet .account-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.page-cabinet .dashboard {
    align-items: start;
}

.page-cabinet .card-box {
    padding: 26px !important;
}

.page-cabinet .subscription-card {
    min-height: 340px;
}

.page-cabinet .status-line {
    min-height: 28px;

    margin-bottom: 22px;
}

.page-cabinet .status-dot-account {
    flex: 0 0 10px;
}

.page-cabinet .plan-title {
    line-height: 1.12;
}

.page-cabinet .info-grid {
    align-items: stretch;
}

.page-cabinet .info-item {
    min-height: 76px;

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

.page-cabinet .buttons {
    align-items: center;
}

.page-cabinet .profile-row {
    min-height: 64px;

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

.page-cabinet .order-item {
    min-height: 76px;
}

.page-cabinet .order-status {
    min-height: 28px;

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


/* ==========================================================
   ADMIN
   ========================================================== */

.page-admin .admin-page {
    padding-top: 42px;
}

.page-admin .admin-header {
    min-height: 74px;

    align-items: center !important;
}

.page-admin .admin-header > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    flex-wrap: wrap;
}

.page-admin .admin-title {
    margin: 8px 0 0 !important;

    font-size: 34px !important;
    line-height: 1 !important;
    letter-spacing: -1.4px;
}

.page-admin .stats {
    align-items: stretch;
}

.page-admin .stat-card {
    min-height: 96px;

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

    padding: 18px !important;
}

.page-admin .stat-card strong {
    margin-bottom: 4px;

    font-size: 28px !important;
    line-height: 1;
}

.page-admin .stat-card span {
    line-height: 1.25;

    text-align: center;
}

.page-admin .tabs {
    align-items: center;

    gap: 8px !important;
}

.page-admin .tab {
    min-height: 40px;

    padding: 0 16px !important;

    border: 1px solid transparent !important;

    font-size: 13px;
}

.page-admin .panel {
    border-radius: var(--radius-lg) !important;
}

.page-admin .panel-head {
    min-height: 78px;

    padding:
        16px
        20px !important;
}

.page-admin .panel-head > strong {
    font-size: 15px;
}

.page-admin .search {
    min-height: 42px;

    padding: 0 14px !important;

    outline: none;

    border-color:
        var(--border-strong) !important;

    font-size: 13px;
}

.page-admin .search:focus {
    border-color:
        rgba(40,206,197,.55) !important;

    box-shadow:
        0 0 0 3px
        rgba(40,206,197,.08);
}

.page-admin table {
    border-collapse: collapse;
}

.page-admin th {
    height: 48px;

    padding:
        0
        17px !important;

    vertical-align: middle;

    letter-spacing: .25px;

    white-space: nowrap;
}

.page-admin td {
    min-height: 66px;

    padding:
        14px
        17px !important;

    vertical-align: middle !important;
}

.page-admin tbody tr {
    transition: background .15s ease;
}

.page-admin tbody tr:hover {
    background:
        rgba(255,255,255,.018);
}

.page-admin .user-name {
    line-height: 1.25;
}

.page-admin .small {
    margin-top: 4px;

    line-height: 1.3;
}

.page-admin .badge-admin {
    min-height: 28px;

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

    padding:
        0
        10px !important;

    line-height: 1;
}

.page-admin .renew-actions {
    display: grid !important;

    grid-template-columns:
        repeat(4, 46px);

    gap: 6px !important;
}

.page-admin .renew-btn {
    width: 46px;
    min-width: 46px;
    height: 36px;

    padding: 0 !important;

    border-radius: 9px !important;

    line-height: 1 !important;
}

.page-admin .action-btn {
    min-height: 36px;

    padding:
        0
        12px !important;

    line-height: 1 !important;
}

.page-admin .early-btn {
    background:
        var(--accent) !important;

    color: #031513 !important;
}

.page-admin .standard-btn {
    background:
        rgba(255,255,255,.065) !important;

    border:
        1px solid
        var(--border) !important;
}


/* ==========================================================
   CHECKOUT
   ========================================================== */

.page-checkout .checkout-page {
    display: flex;
    align-items: flex-start;

    padding-top: 80px !important;
}

.page-checkout .checkout-box {
    width: 100%;

    padding: 30px !important;
}

.page-checkout .checkout-box h2 {
    margin:
        28px 0
        22px;

    font-size: 28px;
}

.page-checkout .checkout-row {
    min-height: 68px;

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

    margin: 10px 0 !important;

    padding:
        13px
        16px !important;
}

.page-checkout .checkout-row .muted {
    margin-bottom: 3px;

    font-size: 12px;
}

.page-checkout .payment-btn {
    min-height: 46px;

    margin-top: 18px !important;
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

* {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,.15)
        transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background:
        rgba(255,255,255,.13);

    border-radius: 20px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 900px) {

    .page-admin .admin-header {
        align-items:
            flex-start !important;
    }

    .page-admin .admin-header
    > div:last-child {
        justify-content:
            flex-start;
    }

    .page-admin .renew-actions {
        grid-template-columns:
            repeat(2, 46px);
    }

    .page-cabinet .account-actions {
        justify-content:
            flex-start;
    }
}


@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    .container {
        width:
            min(
                100% - 28px,
                1180px
            ) !important;
    }

    .button {
        min-height: 43px;
    }

    .page-home .hero {
        padding-top: 55px;
    }

    .page-home h1 {
        letter-spacing: -2px;
    }

    .page-cabinet .account-page,
    .page-admin .admin-page {
        padding-top: 25px;
    }

    .page-cabinet .account-actions,
    .page-admin .admin-header
    > div:last-child {
        width: 100%;
    }

    .page-cabinet .account-actions
    .button,
    .page-admin .admin-header
    .button {
        flex: 1 1 auto;
    }

    .page-admin .stats {
        grid-template-columns:
            repeat(2,1fr) !important;
    }

    .page-admin .stat-card {
        min-height: 88px;
    }

    .page-admin .panel-head {
        align-items:
            stretch !important;
    }

    .page-admin .search {
        width: 100% !important;
    }

    .page-checkout .checkout-page {
        padding-top:
            30px !important;
    }

    .page-checkout .checkout-box {
        padding:
            22px !important;
    }
}

