:root {
    color-scheme: dark;
    --st-bg: #050a0e;
    --st-bg-soft: #081117;
    --st-surface: rgba(12, 24, 30, .86);
    --st-surface-strong: #0d1a20;
    --st-surface-muted: #091319;
    --st-border: rgba(148, 163, 184, .13);
    --st-border-strong: rgba(45, 212, 191, .24);
    --st-text: #f7fbfa;
    --st-muted: #91a5a5;
    --st-primary: #17e6ad;
    --st-primary-strong: #08b981;
    --st-primary-soft: rgba(23, 230, 173, .11);
    --st-warning: #f7c84b;
    --st-danger: #ff6377;
    --st-radius: 22px;
    --st-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.st-shell {
    position: relative;
    isolation: isolate;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 9% -8%, rgba(23, 230, 173, .13), transparent 30rem),
        radial-gradient(circle at 93% 15%, rgba(14, 116, 144, .12), transparent 28rem),
        linear-gradient(155deg, var(--st-bg) 0%, #071015 48%, #05090d 100%) !important;
    color: var(--st-text);
    font-family: 'Cairo', sans-serif !important;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1, "kern" 1;
    font-feature-settings: "kern" 1;
}

.st-shell input,
.st-shell code,
.st-shell .font-mono,
.st-shell [data-english-digits] {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

body.st-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

body.st-shell::after {
    content: "";
    position: fixed;
    width: 28rem;
    height: 28rem;
    left: -12rem;
    bottom: -16rem;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    background: rgba(23, 230, 173, .12);
    filter: blur(100px);
}

.st-admin-toast {
    position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 100;
    max-width: 24rem; padding: .9rem 1.1rem; border: 1px solid rgba(23,230,173,.35);
    border-radius: 14px; background: #0c221c; color: #7ff2d0; font-size: .78rem;
    font-weight: 800; box-shadow: 0 18px 48px rgba(0,0,0,.45);
}

::selection { background: rgba(23, 230, 173, .28); color: #fff; }

/* Shared navigation */
body.st-shell > header,
body.st-shell > nav {
    border-color: var(--st-border) !important;
    background: rgba(5, 12, 16, .78) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
}

body.st-shell > header { position: sticky; top: 0; z-index: 50; }

.st-shell header img,
.st-shell nav img { filter: drop-shadow(0 8px 20px rgba(23, 230, 173, .14)); }

.st-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .75rem;
    border: 1px solid rgba(23, 230, 173, .2);
    border-radius: 999px;
    background: rgba(23, 230, 173, .08);
    color: #65f3cb;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.st-kicker::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--st-primary);
    box-shadow: 0 0 0 5px rgba(23, 230, 173, .09), 0 0 18px var(--st-primary);
}

/* Public homepage */
.site-shell main { max-width: 72rem !important; padding-top: 3.5rem !important; }

.site-shell .st-home-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 1.5rem;
    align-items: start;
}

.site-shell .st-hero {
    position: sticky;
    top: 6.4rem;
    overflow: hidden;
    padding: 2.3rem !important;
    text-align: center !important;
    border: 1px solid var(--st-border-strong) !important;
    border-radius: 30px !important;
    background:
        radial-gradient(circle at 15% 10%, rgba(23, 230, 173, .19), transparent 40%),
        linear-gradient(145deg, rgba(14, 31, 37, .96), rgba(7, 16, 21, .9)) !important;
    box-shadow: var(--st-shadow);
}

.site-shell .st-hero::after {
    content: "USDT";
    position: absolute;
    left: -1.25rem;
    bottom: -2.2rem;
    color: rgba(255, 255, 255, .025);
    font-size: 7.5rem;
    font-weight: 900;
    letter-spacing: -.08em;
    pointer-events: none;
}

.site-shell .st-hero h1 {
    max-width: 28rem;
    margin: 1.2rem auto .8rem !important;
    font-size: clamp(2rem, 4vw, 3.55rem) !important;
    line-height: 1.18;
    letter-spacing: -.045em;
}

.site-shell .st-hero p { max-width: 30rem; margin-inline: auto; color: #aab9b9 !important; line-height: 1.9; }

.st-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1.6rem;
}

.st-trust-item {
    padding: .85rem .7rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    color: #a7b8b8;
    font-size: .68rem;
    font-weight: 700;
    text-align: center;
}

.st-trust-item strong { display: block; margin-bottom: .18rem; color: #fff; font-size: .8rem; }

.st-rate-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 1.4rem !important;
    padding: 0 !important;
    overflow: hidden;
    border-color: rgba(255,255,255,.08) !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, .22) !important;
}

.st-rate-card > div { padding: .9rem 1rem; }
.st-rate-card > div + div { border-right: 1px solid rgba(255,255,255,.08); }
.st-rate-card .w-px { display: none; }

.st-order-card,
.support-shell .st-card,
.admin-shell .st-card,
.login-shell .st-login-card {
    border: 1px solid var(--st-border) !important;
    border-radius: var(--st-radius) !important;
    background: linear-gradient(155deg, rgba(15, 29, 35, .94), rgba(8, 18, 23, .9)) !important;
    box-shadow: var(--st-shadow) !important;
}

.st-order-card { padding: clamp(1.25rem, 3vw, 2rem) !important; }

.st-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--st-border);
}

.st-card-heading h2 { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 800; }
.st-card-heading span { color: var(--st-muted); font-size: .7rem; }

/* Form system */
.st-shell label { letter-spacing: .005em; }

.st-shell input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.st-shell select,
.st-shell textarea {
    min-height: 3rem;
    border: 1px solid rgba(148, 163, 184, .15) !important;
    border-radius: 14px !important;
    background: rgba(3, 10, 14, .72) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.st-shell input::placeholder,
.st-shell textarea::placeholder { color: #536667 !important; }

.st-shell input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.st-shell select:focus,
.st-shell textarea:focus {
    border-color: rgba(23, 230, 173, .62) !important;
    outline: none !important;
    background: rgba(6, 17, 21, .92) !important;
    box-shadow: 0 0 0 4px rgba(23, 230, 173, .08), 0 14px 34px rgba(0,0,0,.18);
}

.st-shell textarea { resize: vertical; line-height: 1.75; }
.st-shell select { appearance: auto; }

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

.st-shell button { transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background .18s ease; }
.st-shell button:not(:disabled):active { transform: translateY(1px) scale(.995); }

.st-primary-button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(104, 255, 210, .28) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #08b981, #059a70) !important;
    box-shadow: 0 16px 35px rgba(5, 185, 129, .22), inset 0 1px 0 rgba(255,255,255,.2) !important;
}

.st-primary-button:hover { filter: brightness(1.1); transform: translateY(-1px); }

.site-shell .network-option {
    min-height: 5rem;
    border-color: rgba(148,163,184,.13) !important;
    border-radius: 16px !important;
    background: rgba(4, 12, 16, .66) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.site-shell .network-option:hover { border-color: rgba(23,230,173,.38) !important; transform: translateY(-2px); }
.site-shell .network-option:has(input:checked) {
    border-color: rgba(23,230,173,.64) !important;
    background: linear-gradient(145deg, rgba(23,230,173,.15), rgba(4,12,16,.86)) !important;
    box-shadow: 0 0 0 3px rgba(23,230,173,.07), inset 0 1px 0 rgba(255,255,255,.05);
}

.site-shell .network-option:has(input:checked)::after {
    content: "مختارة";
    align-self: flex-start;
    margin-top: .45rem;
    color: #65f3cb;
    font-size: .58rem;
    font-weight: 800;
}

.site-shell .st-summary {
    padding: 1rem 1.1rem !important;
    border-color: rgba(23,230,173,.14) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(23,230,173,.055), rgba(0,0,0,.18)) !important;
}

.site-shell .st-payment {
    border-color: rgba(255, 99, 119, .2) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(255, 99, 119, .08), rgba(5, 12, 16, .45)) !important;
}

.st-upload { border-radius: 16px !important; background: rgba(3,10,14,.55) !important; }
.st-upload:hover { background: rgba(23,230,173,.045) !important; }

/* Support center */
.support-shell > header { position: sticky; top: 0; z-index: 50; }
.support-shell .st-support-wrap { max-width: 56rem !important; padding-top: 3.5rem !important; }
.support-shell .st-support-intro { position: relative; padding: 2.2rem 1.25rem 1.2rem; }
.support-shell .st-support-intro::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 5rem;
    height: .22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--st-primary), transparent);
    transform: translateX(50%);
}
.support-shell .st-support-intro h1 { font-size: clamp(1.75rem, 5vw, 2.65rem) !important; letter-spacing: -.035em; }
.support-shell .st-tabs {
    padding: .4rem;
    border: 1px solid var(--st-border);
    border-radius: 18px;
    background: rgba(4, 12, 16, .56);
}
.support-shell .st-tabs a { border: 0 !important; border-radius: 13px !important; }
.support-shell .st-card { padding: clamp(1.25rem, 4vw, 2rem) !important; }

.st-thread::-webkit-scrollbar,
.admin-shell *::-webkit-scrollbar { width: 7px; height: 7px; }
.st-thread::-webkit-scrollbar-thumb,
.admin-shell *::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(148,163,184,.22); }

/* Admin */
.admin-shell > nav { padding: .85rem clamp(1rem, 4vw, 2.5rem) !important; }
.admin-shell .st-admin-wrap { max-width: 90rem !important; }
.admin-shell .st-nav-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-shell .st-stat-grid { gap: .9rem !important; }
.admin-shell .st-stat-card {
    position: relative;
    min-height: 7rem;
    overflow: hidden;
    padding: 1.15rem !important;
    border: 1px solid var(--st-border) !important;
    border-radius: 18px !important;
    background: linear-gradient(150deg, rgba(15,29,35,.92), rgba(7,16,21,.9)) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.2);
}
.admin-shell .st-stat-card::after {
    content: "";
    position: absolute;
    width: 5rem;
    height: 5rem;
    left: -2.5rem;
    bottom: -3rem;
    border-radius: 999px;
    background: var(--st-primary-soft);
    filter: blur(4px);
}
.admin-shell .st-card { padding: clamp(1rem, 3vw, 1.6rem) !important; }
.admin-shell .st-section-title { font-size: .95rem !important; letter-spacing: -.01em; }
.admin-shell table { min-width: 72rem; border-collapse: separate; border-spacing: 0; }
.admin-shell thead { position: sticky; top: 0; z-index: 2; }
.admin-shell thead tr { background: #0b171c; }
.admin-shell th { color: #98acac !important; font-weight: 700; white-space: nowrap; }
.admin-shell td { border-color: rgba(148,163,184,.08); vertical-align: middle; }
.admin-shell tbody tr:hover { background: rgba(23,230,173,.035) !important; }
.admin-shell .st-table-wrap {
    max-height: 62vh;
    border: 1px solid rgba(148,163,184,.09);
    border-radius: 16px;
    background: rgba(3,10,14,.28);
}
.admin-shell .st-filter-tabs { scrollbar-width: none; }
.admin-shell .st-filter-tabs::-webkit-scrollbar { display: none; }

/* Login */
.login-shell { display: grid !important; place-items: center; padding: 1rem; }
.login-shell .st-login-card { position: relative; overflow: hidden; width: 100%; max-width: 28rem !important; padding: 2rem !important; }
.login-shell .st-login-card::before {
    content: "";
    position: absolute;
    width: 13rem;
    height: 13rem;
    top: -9rem;
    left: -5rem;
    border-radius: 50%;
    background: rgba(23,230,173,.17);
    filter: blur(55px);
}
.login-shell .st-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 1.1rem 0 1.6rem;
    color: #89a09f;
    font-size: .72rem;
}
.login-shell .st-security-note::before { content: "●"; color: var(--st-primary); font-size: .55rem; }

/* Footer and utility */
.site-shell > footer {
    border-color: var(--st-border) !important;
    background: rgba(3, 8, 11, .72) !important;
}

.st-shell .st-alert { border-radius: 15px !important; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.st-shell :focus-visible { outline: 2px solid rgba(23,230,173,.72); outline-offset: 3px; }

@media (max-width: 980px) {
    .site-shell .st-home-grid { grid-template-columns: 1fr; }
    .site-shell .st-hero { position: relative; top: auto; }
    .admin-shell .st-nav-actions { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: .2rem; }
}

@media (max-width: 640px) {
    body.st-shell::before { background-size: 32px 32px; }
    .site-shell main,
    .support-shell .st-support-wrap,
    .admin-shell .st-admin-wrap { padding-top: 1.5rem !important; }
    .site-shell .st-hero { padding: 1.5rem !important; border-radius: 22px !important; }
    .site-shell .st-hero::after { font-size: 5rem; }
    .st-trust-grid { grid-template-columns: 1fr; }
    .st-rate-card { grid-template-columns: 1fr; }
    .st-rate-card > div + div { border-top: 1px solid rgba(255,255,255,.08); border-right: 0; }
    .st-order-card { border-radius: 20px !important; }
    .support-shell > header { padding-inline: 1rem !important; }
    .support-shell .st-tabs { grid-template-columns: 1fr !important; }
    .admin-shell > nav { position: relative !important; }
    .admin-shell .st-stat-grid { grid-template-columns: 1fr 1fr !important; }
    .admin-shell .st-stat-card { min-height: 6.4rem; }
    .admin-shell .st-table-wrap { max-height: 68vh; }
    .login-shell .st-login-card { padding: 1.45rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
