:root {
    --bg: #071312;
    --surface: #0d1d1b;
    --surface-strong: #132724;
    --surface-soft: rgba(255, 255, 255, 0.055);
    --text: #f4f8f7;
    --muted: #90a5a1;
    --green: #29a8ff;
    --green-deep: #0878c9;
    --orange: #e8b94f;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --tg-safe-top: var(--tg-content-safe-area-inset-top, 0px);
    --tg-safe-bottom: var(--tg-content-safe-area-inset-bottom, 0px);
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 90% -10%, rgba(41, 168, 255, 0.15), transparent 35%),
        radial-gradient(circle at -15% 35%, rgba(232, 185, 79, 0.08), transparent 30%),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

body.sheet-open, body.account-menu-open { overflow: hidden; }

button { font: inherit; }
button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.app-shell {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(12px + var(--tg-safe-top)) 18px calc(102px + var(--tg-safe-bottom));
}

.app-shell.without-nav { padding-bottom: calc(32px + var(--tg-safe-bottom)); }
.app-shell.guest-mode .bottom-nav { grid-template-columns: repeat(3, 1fr); }
.app-shell.guest-mode .nav-item[data-go="cart"] { display: none; }

.topbar {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
}

.brand-emblem {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(23, 138, 255, 0.24));
}

.brand-name {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 5px;
    align-items: baseline;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: 0.015em;
}

.brand-name b {
    color: #e7bb55;
    font-size: 0.85em;
    letter-spacing: 0.12em;
}

.brand-name small {
    grid-column: 1 / -1;
    margin-top: -1px;
    color: #69bfff;
    font-size: 0.48em;
    font-style: italic;
    font-weight: 650;
    letter-spacing: 0.16em;
}

.topbar-actions { display: flex; align-items: center; gap: 9px; }
.live-status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(0, 0, 0, 0.12); font-size: 0.56rem; font-weight: 900; letter-spacing: 0.04em; }
.live-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.live-status.is-live { color: #70ccff; border-color: rgba(41, 168, 255, 0.22); background: rgba(41, 168, 255, 0.07); }
.live-status.is-syncing { color: #ffe2a1; border-color: rgba(232, 185, 79, 0.22); }
.live-status.is-syncing::before { animation: live-pulse 900ms ease-in-out infinite alternate; }
.live-status.is-offline { color: #ff9b7c; border-color: rgba(255, 116, 72, 0.24); background: rgba(255, 116, 72, 0.07); }
.live-status.is-paused { color: var(--muted); }
@keyframes live-pulse { to { opacity: 0.28; transform: scale(0.75); } }

.avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(232, 185, 79, 0.55);
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, #168ee2, #063c79);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 112, 0.36), 0 8px 20px rgba(0, 94, 180, 0.25);
    font-weight: 800;
    cursor: pointer;
}

.view { display: none; animation: view-in 240ms ease both; }
.view.is-active { display: block; }

@keyframes view-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    padding: 46px 24px 30px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(41, 168, 255, 0.12), transparent 48%),
        linear-gradient(155deg, #0d2031 0%, #08131c 70%);
    box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(41, 168, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.home-install-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(41, 168, 255, 0.3);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(41, 168, 255, 0.12), rgba(232, 185, 79, 0.06));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}
.home-install-card img { width: 54px; height: 54px; object-fit: contain; }
.home-install-card span { display: block; color: #69bfff; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.home-install-card h2 { margin: 4px 0; font-size: 1.05rem; }
.home-install-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.home-install-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-radius: 17px;
    color: #061411;
    background: linear-gradient(115deg, #e7bb55, #55baff);
    box-shadow: 0 12px 28px rgba(25, 144, 225, 0.2);
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.3;
    cursor: pointer;
}

.hero::before { width: 260px; height: 260px; right: -100px; top: -88px; }
.hero::after { width: 180px; height: 180px; right: -60px; top: -48px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

h1, h2, p { margin-top: 0; }

.hero h1 {
    max-width: 510px;
    margin-bottom: 16px;
    font-size: clamp(2rem, 9vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy {
    max-width: 380px;
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.55;
}

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 160ms ease, filter 160ms ease;
}

.primary-button {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    padding: 15px 19px;
    color: #052017;
    background: linear-gradient(135deg, #f0c765 0%, #29a8ff 100%);
    box-shadow: 0 12px 32px rgba(41, 168, 255, 0.22);
}

.secondary-button { padding: 13px 20px; color: var(--text); background: var(--surface-strong); }
.primary-button:active, .secondary-button:active { transform: scale(0.97); }

.signal {
    position: absolute;
    right: 24px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    opacity: 0.48;
}

.signal span { width: 3px; border-radius: 4px; background: var(--green); animation: signal 1.2s ease-in-out infinite; }
.signal span:nth-child(1), .signal span:nth-child(5) { height: 10px; }
.signal span:nth-child(2), .signal span:nth-child(4) { height: 22px; animation-delay: 120ms; }
.signal span:nth-child(3) { height: 34px; animation-delay: 240ms; }
@keyframes signal { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }

.news-card {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 17px;
    border: 1px solid rgba(232, 185, 79, 0.20);
    border-radius: 18px;
    background: rgba(232, 185, 79, 0.07);
}

.news-card p { margin: 1px 0 0; color: #d8e2e0; line-height: 1.45; white-space: pre-line; }
.news-pill { flex: 0 0 auto; padding: 5px 8px; border-radius: 8px; color: #ffe2a0; background: rgba(232, 185, 79, 0.16); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.is-hidden { display: none !important; }

.section-block { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2, .page-title h1 { margin-bottom: 0; letter-spacing: -0.035em; }
.text-button { padding: 8px 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font-weight: 700; }

.featured-grid, .catalog-grid { display: grid; gap: 14px; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-grid { grid-template-columns: 1fr; }

.product-card {
    position: relative;
    overflow: hidden;
    min-height: 196px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.product-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -46px;
    bottom: -46px;
    border: 18px solid rgba(41, 168, 255, 0.055);
    border-radius: 50%;
}

.product-kind { color: var(--green); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.product-card h3 { margin: 11px 0 8px; font-size: 1.1rem; line-height: 1.2; }
.product-description { min-height: 42px; margin-bottom: 18px; color: var(--muted); font-size: 0.83rem; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.product-price small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 0.66rem; }
.product-price strong { font-size: 1.25rem; }
.round-button { position: relative; z-index: 1; width: 36px; height: 36px; border: 1px solid rgba(41, 168, 255, 0.32); border-radius: 50%; color: var(--green); background: rgba(41, 168, 255, 0.08); cursor: pointer; font-size: 1.15rem; }

.page-title { padding: 34px 4px 20px; }
.page-title h1 { margin-bottom: 8px; font-size: clamp(2rem, 8vw, 3.2rem); }
.page-title > p:last-child { color: var(--muted); line-height: 1.5; }

.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 18px; padding: 0 18px 5px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-soft); cursor: pointer; }
.filter-button.is-active { border-color: rgba(41, 168, 255, 0.35); color: #021a2b; background: var(--green); font-weight: 800; }

.auth-hero { padding: 48px 5px 24px; }
.auth-hero h1 { max-width: 560px; margin-bottom: 14px; font-size: clamp(2.25rem, 10vw, 4rem); line-height: 0.98; letter-spacing: -0.055em; }
.auth-hero > p:last-child { max-width: 510px; color: var(--muted); line-height: 1.55; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, 0.035); }
.auth-tab { padding: 12px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.auth-tab.is-active { color: #071b28; background: linear-gradient(135deg, #e9be58, #29a8ff); }
.auth-form { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, var(--surface-strong), var(--surface)); box-shadow: var(--shadow); }
.auth-form label { display: grid; gap: 7px; color: #c8d5d3; font-size: 0.78rem; font-weight: 800; }
.auth-form input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--text); background: rgba(0, 0, 0, 0.18); font: inherit; }
.auth-form input:focus { border-color: rgba(41, 168, 255, 0.58); box-shadow: 0 0 0 3px rgba(41, 168, 255, 0.1); }
.auth-submit { justify-content: center; width: 100%; margin-top: 3px; }
.auth-submit:disabled { cursor: wait; opacity: 0.65; }
.form-note { margin: -2px 0 2px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.form-error { margin: 13px 0 0; padding: 12px 14px; border: 1px solid rgba(255, 116, 72, 0.25); border-radius: 13px; color: #ffb199; background: rgba(255, 116, 72, 0.07); font-size: 0.8rem; line-height: 1.45; }
.recovery-result { gap: 16px; border-color: rgba(157, 189, 243, .35); }
.recovery-result-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(157, 189, 243, .16); color: #b9d1ff; font-size: 1.5rem; font-weight: 800; }
.recovery-result h2 { margin: 0; font-size: 1.2rem; }
.recovery-password-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.recovery-password-row input { min-width: 0; flex: 1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.05rem; letter-spacing: .035em; user-select: text; -webkit-user-select: text; }
.recovery-copy { flex: 0 0 auto; padding: 0 16px; border: 1px solid rgba(157, 189, 243, .3); border-radius: 13px; background: rgba(157, 189, 243, .13); color: #c6daff; font: inherit; font-weight: 800; cursor: pointer; }
.recovery-copy:focus-visible { outline: 2px solid #a7c5fa; outline-offset: 3px; }
.recovery-delivery { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(157, 189, 243, .07); color: var(--muted); font-size: .78rem; line-height: 1.5; }

.admin-welcome { padding: 25px; border: 1px solid rgba(232, 185, 79, 0.25); border-radius: 25px; background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, 0.13), transparent 36%), linear-gradient(150deg, #142635, #0a1716); box-shadow: var(--shadow); }
.admin-welcome h2 { margin: 14px 0 10px; font-size: 1.55rem; }
.admin-welcome p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.admin-badge { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #ffe3a2; background: rgba(232, 185, 79, 0.13); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em; }
.admin-test-button { justify-content: center; width: 100%; margin-top: 22px; }
.admin-dashboard { margin-top: 18px; }
.admin-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 0 -18px 16px; padding: 0 18px 5px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: 0 0 auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: 0.72rem; font-weight: 850; }
.admin-tab.is-active { border-color: rgba(232, 185, 79, 0.38); color: #071312; background: #e7bb55; }
.admin-tab-content { min-width: 0; }
.admin-status { display: grid; gap: 4px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; }
.admin-status span { font-weight: 850; }
.admin-status small { color: var(--muted); }
.admin-status.is-ok { border-color: rgba(41, 168, 255, 0.24); background: rgba(41, 168, 255, 0.07); }
.admin-status.is-warning { border-color: rgba(232, 185, 79, 0.3); background: rgba(232, 185, 79, 0.08); }
.admin-section-title { margin: 24px 2px 11px; font-size: 1rem; }
.admin-metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-metric { min-height: 93px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.admin-metric.is-action { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; appearance: none; }
.admin-metric.is-action:active { transform: translateY(1px); }
.admin-metric.is-action::after { content: 'Apri →'; display: block; margin-top: 7px; color: #70ccff; font-size: .58rem; font-weight: 850; }
.admin-metric span { display: block; color: var(--muted); font-size: 0.7rem; line-height: 1.3; }
.admin-metric strong { display: block; margin-top: 10px; color: var(--green); font-size: 1.35rem; overflow-wrap: anywhere; }
.admin-metric.is-alert { border-color: rgba(232, 185, 79, 0.24); background: rgba(232, 185, 79, 0.055); }
.admin-metric.is-alert strong, .admin-metric.is-money strong { color: #e7bb55; }
.admin-payments { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.admin-payments h2 { margin-bottom: 10px; font-size: 1rem; }
.admin-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.78rem; }
.admin-payment-row strong { text-align: right; }
.admin-payment-row .is-enabled { color: #70ccff; }
.admin-payment-row .is-disabled { color: #ff9b7c; }
.admin-skeleton { height: 320px; }
.admin-data-section { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.admin-data-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.admin-data-heading h2 { margin: 0; font-size: 1rem; }
.admin-data-heading span { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #ffe2a1; background: rgba(232, 185, 79, 0.1); font-size: 0.64rem; font-weight: 850; }
.admin-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.admin-search input { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--text); background: rgba(3, 14, 16, 0.62); font: inherit; font-size: 0.76rem; }
.admin-search input:focus { border-color: rgba(232, 185, 79, 0.42); box-shadow: 0 0 0 3px rgba(232, 185, 79, 0.07); }
.admin-search button, .admin-search-reset { padding: 11px 13px; border: 0; border-radius: 12px; color: #071312; background: #e7bb55; cursor: pointer; font-size: 0.72rem; font-weight: 900; }
.admin-search button:disabled, .admin-search-reset:disabled { cursor: wait; opacity: 0.6; }
.admin-search-reset { width: 100%; margin-top: 9px; border: 1px solid rgba(232, 185, 79, 0.2); color: #ffe2a1; background: rgba(232, 185, 79, 0.065); }
.admin-client-list, .admin-wallet-list { display: grid; gap: 10px; margin-top: 14px; }
.admin-wallet-sections { display: grid; gap: 14px; }
.admin-wallet-group { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.admin-client-card, .admin-wallet-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.1); }
.admin-client-top, .admin-wallet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-client-top h3, .admin-wallet-top h3 { margin: 0; font-size: 0.84rem; overflow-wrap: anywhere; }
.admin-client-top small, .admin-wallet-top small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.64rem; overflow-wrap: anywhere; }
.admin-client-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; font-size: 0.57rem; font-weight: 900; }
.admin-client-status.is-active { color: #061724; background: var(--green); }
.admin-client-status.is-inactive { color: var(--muted); background: rgba(255, 255, 255, 0.055); }
.admin-client-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.admin-client-data > div { min-width: 0; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.admin-client-data span { display: block; color: var(--muted); font-size: 0.57rem; }
.admin-client-data strong { display: block; margin-top: 4px; font-size: 0.68rem; overflow-wrap: anywhere; }
.admin-client-open { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(232, 185, 79, 0.22); border-radius: 11px; color: #ffe2a1; background: rgba(232, 185, 79, 0.07); cursor: pointer; font-size: 0.69rem; font-weight: 900; }
.admin-client-open:disabled { cursor: wait; opacity: 0.6; }
.admin-client-detail { display: grid; gap: 13px; }
.admin-client-detail-back { justify-self: start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-soft); cursor: pointer; font-size: 0.7rem; font-weight: 850; }
.admin-client-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding: 18px; border: 1px solid rgba(232, 185, 79, 0.2); border-radius: 19px; background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, 0.1), transparent 45%), var(--surface); }
.admin-client-detail-hero > div { min-width: 0; }
.admin-client-detail-hero span { color: #e7bb55; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.12em; }
.admin-client-detail-hero h2 { margin: 7px 0 4px; font-size: 1rem; overflow-wrap: anywhere; }
.admin-client-detail-hero p { margin: 0; color: var(--muted); font-size: 0.67rem; overflow-wrap: anywhere; }
.admin-client-detail-hero > strong { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; font-size: 0.6rem; }
.admin-client-detail-hero > strong.is-active { color: #061724; background: var(--green); }
.admin-client-detail-hero > strong.is-inactive { color: var(--muted); background: rgba(255, 255, 255, 0.055); }
.admin-client-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-client-detail-metrics > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.admin-client-detail-metrics span { display: block; color: var(--muted); font-size: 0.58rem; }
.admin-client-detail-metrics strong { display: block; margin-top: 6px; color: #e7bb55; font-size: 0.72rem; overflow-wrap: anywhere; }
.admin-client-actions { padding: 16px; border: 1px solid rgba(41, 168, 255, 0.18); border-radius: 18px; background: radial-gradient(circle at 100% 0%, rgba(41, 168, 255, 0.07), transparent 38%), var(--surface); }
.admin-client-action-grid { display: grid; gap: 10px; }
.admin-client-action-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.11); }
.admin-client-action-card h4 { margin: 0; font-size: 0.78rem; }
.admin-client-action-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 0.61rem; line-height: 1.45; }
.admin-client-action-card input,
.admin-client-action-card textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--text); background: rgba(3, 14, 16, 0.7); font: inherit; font-size: 0.7rem; }
.admin-client-action-card textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.admin-client-action-card input:focus,
.admin-client-action-card textarea:focus { border-color: rgba(41, 168, 255, 0.5); box-shadow: 0 0 0 3px rgba(41, 168, 255, 0.08); }
.admin-client-action-card input:disabled,
.admin-client-action-card textarea:disabled { opacity: 0.48; cursor: not-allowed; }
.admin-client-action-card button { width: 100%; margin-top: auto; padding: 11px 12px; border-radius: 11px; font-size: 0.67rem; font-weight: 900; }
.admin-client-action-card button:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-client-detail-group { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-client-danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid rgba(255, 96, 96, 0.32); border-radius: 16px; background: rgba(120, 20, 25, 0.13); }
.admin-client-danger-zone > div { min-width: 0; }
.admin-client-danger-zone strong { color: #ff9b9b; font-size: 0.72rem; }
.admin-client-danger-zone p { margin: 5px 0 0; color: #bfa3a3; font-size: 0.61rem; line-height: 1.45; }
.admin-client-danger-zone button { flex: 0 0 auto; padding: 10px 12px; border: 1px solid rgba(255, 96, 96, 0.42); border-radius: 11px; color: #fff; background: #9c2931; cursor: pointer; font-size: 0.64rem; font-weight: 900; }
.admin-client-danger-zone button:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-client-detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-client-detail-row > div:first-child { min-width: 0; }
.admin-client-detail-row h4 { margin: 0; font-size: 0.75rem; overflow-wrap: anywhere; }
.admin-client-detail-row p { margin: 5px 0 0; color: var(--muted); font-size: 0.59rem; line-height: 1.45; overflow-wrap: anywhere; }
.admin-client-detail-row > div:last-child { display: grid; justify-items: end; flex: 0 0 auto; gap: 6px; }
.admin-client-detail-row > div:last-child strong { color: #e7bb55; font-size: 0.76rem; }
.admin-client-detail-row > div:last-child span { padding: 5px 7px; border-radius: 8px; font-size: 0.56rem; font-weight: 900; }
.admin-client-detail-row .is-paid { color: #061724; background: var(--green); }
.admin-client-detail-row .is-unpaid { color: #ffb39b; background: rgba(255, 116, 72, 0.09); }
.admin-wallet-top > strong { flex: 0 0 auto; color: #e7bb55; font-size: 1rem; }
.admin-wallet-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; color: var(--muted); font-size: 0.63rem; }
.admin-wallet-meta span { padding: 5px 7px; border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, 0.035); font-weight: 900; }
.admin-wallet-card.is-paid { border-color: rgba(41, 168, 255, 0.16); }
.admin-wallet-card.is-pending { border-color: rgba(232, 185, 79, 0.2); }
.admin-wallet-card.is-mismatch { border-color: rgba(255, 106, 92, .55); background: radial-gradient(circle at 100% 0%, rgba(255, 90, 73, .14), transparent 44%), rgba(42, 10, 8, .28); box-shadow: 0 0 0 1px rgba(255, 100, 83, .08); }
.admin-wallet-card.is-ticket-target { border-color: #5fc8ff; background: radial-gradient(circle at 100% 0%, rgba(63, 180, 255, .24), transparent 48%), linear-gradient(145deg, rgba(14, 69, 92, .72), rgba(8, 42, 34, .86)); box-shadow: 0 0 0 2px rgba(95, 200, 255, .22), 0 18px 45px rgba(0, 95, 151, .24); }
.admin-wallet-ticket-target-label { display: inline-flex; width: max-content; margin-top: 8px; padding: 5px 8px; border-radius: 999px; color: #071b25; background: #6bd0ff; font-size: .52rem; font-weight: 950; letter-spacing: .07em; }
.admin-edge-pagination { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.admin-edge-pagination strong { color: var(--muted); font-size: .66rem; text-align: center; }
@media (max-width: 520px) { .admin-edge-pagination { grid-template-columns: 1fr 1fr; } .admin-edge-pagination strong { grid-column: 1 / -1; grid-row: 1; } }
.admin-wallet-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.admin-wallet-amounts span { display: grid; gap: 3px; padding: 9px; border: 1px solid rgba(255, 139, 124, .18); border-radius: 10px; color: var(--muted); font-size: .58rem; }
.admin-wallet-amounts strong { color: #ffd0c8; font-size: .75rem; }
.admin-wallet-card.is-stale, .admin-operation-card.is-stale { border-color: rgba(255, 116, 72, 0.3); background: radial-gradient(circle at 100% 0%, rgba(255, 116, 72, 0.07), transparent 42%), rgba(0, 0, 0, 0.1); }
.admin-wallet-meta span.is-paid { color: #061724; background: var(--green); }
.admin-wallet-meta span.is-pending { color: #2b1b02; background: #e7bb55; }
.admin-wallet-card > p { margin: 9px 0 0; color: var(--muted); font-size: 0.66rem; overflow-wrap: anywhere; }
.admin-wallet-card > .admin-wallet-note { padding: 8px 9px; border-radius: 9px; color: #ffe0a1; background: rgba(232, 185, 79, 0.065); }
.admin-wallet-confirm { width: 100%; min-height: 43px; margin-top: 12px; border: 1px solid rgba(68, 221, 157, .28); border-radius: 13px; color: var(--accent); background: rgba(68, 221, 157, .08); font: inherit; font-size: .75rem; font-weight: 850; }
.admin-wallet-confirm:disabled { border-color: var(--line); color: var(--muted); background: rgba(255, 255, 255, .025); opacity: .55; }
.admin-recent-payments { display: grid; gap: 14px; }
.admin-payments-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px; border: 1px solid rgba(41, 168, 255, 0.2); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(41, 168, 255, 0.1), transparent 46%), var(--surface); }
.admin-payments-hero > div { min-width: 0; }
.admin-payments-hero span { color: #e7bb55; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.11em; }
.admin-payments-hero h2 { margin: 7px 0 5px; font-size: 1.02rem; }
.admin-payments-hero p { margin: 0; color: var(--muted); font-size: 0.66rem; line-height: 1.45; }
.admin-payments-hero > strong { flex: 0 0 auto; color: #8fd8ff; font-size: 1.12rem; }
.admin-payment-history { display: grid; gap: 9px; }
.admin-payment-history-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-payment-history-card > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.admin-payment-history-card > div:first-child > div { min-width: 0; }
.admin-payment-history-card small { color: #e7bb55; font-size: 0.55rem; font-weight: 850; }
.admin-payment-history-card h3 { margin: 6px 0 4px; font-size: 0.8rem; overflow-wrap: anywhere; }
.admin-payment-history-card p { margin: 0; color: var(--muted); font-size: 0.62rem; overflow-wrap: anywhere; }
.admin-payment-history-card > div:first-child > strong { flex: 0 0 auto; color: #8fd8ff; font-size: 0.95rem; }
.admin-sales-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-sales-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.admin-sales-summary span { display: block; color: var(--muted); font-size: 0.61rem; }
.admin-sales-summary strong { display: block; margin-top: 7px; color: #e7bb55; font-size: 1rem; }
.admin-sales-summary small { display: block; margin-top: 5px; color: #7e9691; font-size: 0.57rem; }
.admin-sales-methods { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.admin-sales-methods h3 { margin: 0 0 13px; font-size: 0.86rem; }
.admin-sales-methods > div { margin-top: 10px; }
.admin-sales-methods > div > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 0.62rem; }
.admin-sales-methods > div > div:first-child strong { color: #8fd8ff; font-size: 0.61rem; text-align: right; }
.admin-sales-methods > div > div:last-child { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.admin-sales-methods > div > div:last-child i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #29a8ff, #5ae7a4); }
.admin-operations { display: grid; gap: 14px; }
.admin-operation-group { padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.admin-operation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.admin-operation-heading h3 { margin: 0; font-size: 0.95rem; }
.admin-operation-heading span { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 999px; color: #071312; background: #e7bb55; font-size: 0.65rem; font-weight: 900; }
.admin-operation-card { margin-top: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(0, 0, 0, 0.1); }
.admin-operation-card.is-order { border-color: rgba(41, 168, 255, 0.17); }
.admin-operation-card.is-suspended { border-color: rgba(255, 116, 72, 0.2); }
.admin-operation-card.is-expiring { border-color: rgba(232, 185, 79, 0.22); }
.admin-operation-card.is-invoice { border-color: rgba(232, 185, 79, 0.18); }
.admin-operation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.admin-operation-top > div { min-width: 0; }
.admin-operation-top small { color: var(--muted); font-size: 0.58rem; }
.admin-operation-top h4 { margin: 5px 0 0; font-size: 0.8rem; overflow-wrap: anywhere; }
.admin-operation-top p { margin: 5px 0 0; color: var(--muted); font-size: 0.64rem; overflow-wrap: anywhere; }
.admin-operation-top > span { flex: 0 0 auto; padding: 5px 7px; border-radius: 8px; color: #061724; background: var(--green); font-size: 0.57rem; font-weight: 900; }
.admin-operation-card.is-suspended .admin-operation-top > span { color: #ffb39b; background: rgba(255, 116, 72, 0.09); }
.admin-operation-card.is-expiring .admin-operation-top > span { color: #2b1b02; background: #e7bb55; }
.admin-operation-top > strong { flex: 0 0 auto; color: #e7bb55; font-size: 0.95rem; }
.admin-operation-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.admin-operation-meta span { padding: 5px 7px; border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, 0.035); font-size: 0.59rem; }
.admin-operation-meta span.is-stale, .admin-wallet-meta span.is-stale { color: #ffb39b; background: rgba(255, 116, 72, 0.09); }
.admin-operation-details { margin-top: 11px; border-top: 1px solid var(--line); }
.admin-operation-details summary { padding: 10px 0 5px; color: #8fd8ff; cursor: pointer; font-size: 0.62rem; font-weight: 850; }
.admin-operation-details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.admin-operation-details > div > div { min-width: 0; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.admin-operation-details span { display: block; color: var(--muted); font-size: 0.54rem; }
.admin-operation-details strong { display: block; margin-top: 4px; font-size: 0.62rem; overflow-wrap: anywhere; }
.admin-operation-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.admin-operation-actions button { min-height: 38px; padding: 9px 10px; border: 1px solid rgba(41, 168, 255, 0.22); border-radius: 10px; color: #9cdcff; background: rgba(41, 168, 255, 0.07); cursor: pointer; font: inherit; font-size: 0.62rem; font-weight: 900; }
.admin-operation-actions button:only-child { grid-column: 1 / -1; }
.admin-operation-actions button.is-danger { border-color: rgba(255, 96, 96, 0.32); color: #ffaaa8; background: rgba(120, 20, 25, 0.14); }
.admin-operation-actions button:disabled { cursor: not-allowed; opacity: 0.42; }
.admin-system { display: grid; gap: 14px; }
.admin-system-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.admin-system-status.is-current { border-color: rgba(41, 168, 255, 0.24); background: radial-gradient(circle at 100% 0%, rgba(41, 168, 255, 0.1), transparent 42%), var(--surface); }
.admin-system-status.is-delayed { border-color: rgba(255, 116, 72, 0.26); background: radial-gradient(circle at 100% 0%, rgba(255, 116, 72, 0.09), transparent 42%), var(--surface); }
.admin-system-status > div { min-width: 0; }
.admin-system-status span { color: #e7bb55; font-size: 0.57rem; font-weight: 900; letter-spacing: 0.12em; }
.admin-system-status h2 { margin: 7px 0 6px; font-size: 1rem; }
.admin-system-status p { margin: 0; color: var(--muted); font-size: 0.66rem; line-height: 1.5; }
.admin-system-status > strong { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 50%; font-size: 0.72rem; }
.admin-system-status.is-current > strong { color: #061724; background: var(--green); }
.admin-system-status.is-delayed > strong { color: #2a0d05; background: #ff7448; }
.admin-system-group { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }

.admin-communications { display: grid; gap: 16px; }
.communication-safety { padding: 16px; border: 1px solid rgba(68, 221, 157, .28); border-radius: 18px; background: linear-gradient(135deg, rgba(68, 221, 157, .11), rgba(10, 36, 31, .45)); }
.communication-safety strong { display: block; margin-bottom: 5px; color: var(--accent); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.communication-safety p, .communication-install p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.communication-install { padding: 18px; border: 1px dashed rgba(231, 187, 85, .4); border-radius: 18px; background: rgba(231, 187, 85, .06); }
.communication-install h3 { margin: 0 0 7px; font-size: 1rem; }
.communication-form, .communication-history, .communication-news { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.communication-form textarea { width: 100%; min-height: 126px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(4, 19, 17, .76); font: inherit; line-height: 1.5; outline: none; }
.communication-form textarea:focus { border-color: rgba(68, 221, 157, .55); box-shadow: 0 0 0 3px rgba(68, 221, 157, .08); }
.communication-audience-title { display: block; margin: 12px 0 8px; color: #c9dcd8; font-size: .72rem; }
.communication-audiences { display: grid; gap: 8px; margin-bottom: 12px; }
.communication-audience { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 19, 17, .58); cursor: pointer; }
.communication-audience:has(input:checked) { border-color: rgba(68, 221, 157, .48); background: rgba(68, 221, 157, .075); box-shadow: 0 0 0 2px rgba(68, 221, 157, .045); }
.communication-audience input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.communication-audience > span { min-width: 0; }
.communication-audience > span strong { display: block; color: var(--text); font-size: .76rem; }
.communication-audience > span small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.4; }
.communication-audience > b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid rgba(136, 255, 205, .38); border-radius: 999px; color: #fff; background: #167a58; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); font-size: .72rem; font-weight: 950; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.communication-audience:has(input:checked) > b { color: #fff; background: #0d9362; border-color: rgba(189, 255, 226, .55); }
.communication-submit { width: 100%; margin-top: 11px; }
.communication-metrics { margin: 0; }
.communication-history, .communication-news { display: grid; gap: 10px; }
.communication-card, .communication-news-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 24, 21, .68); }
.communication-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.communication-card > div > div { display: grid; gap: 2px; }
.communication-card p, .communication-news-card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; line-height: 1.55; }
.communication-card small { color: var(--muted); font-size: .69rem; }
.communication-card .communication-card-audience { color: #82d7ad; font-weight: 800; }
.communication-state { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .06); font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.communication-state.is-sent { color: var(--accent); background: rgba(68, 221, 157, .1); }
.communication-state.is-queued, .communication-state.is-sending { color: #e7bb55; background: rgba(231, 187, 85, .1); }
.communication-state.is-failed, .communication-state.is-partial { color: #ff8267; background: rgba(255, 102, 75, .1); }
.communication-cancel { justify-self: start; padding: 0; color: #ff8267; }
.communication-news-card strong { color: var(--muted); font-size: .64rem; letter-spacing: .08em; }
.communication-news-card.is-current { border-color: rgba(68, 221, 157, .32); background: rgba(68, 221, 157, .06); }
.communication-news-card.is-current strong { color: var(--accent); }

.free-trial-card { grid-column: 1 / -1; padding: 22px; border: 1px solid rgba(68, 221, 157, .28); border-radius: 24px; background: radial-gradient(circle at 100% 0%, rgba(68, 221, 157, .13), transparent 36%), var(--surface); box-shadow: 0 18px 45px rgba(0, 0, 0, .16); }
.free-trial-card h2 { margin: 10px 0 8px; font-size: 1.25rem; }
.free-trial-card > p { margin: 0 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.free-trial-badge { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(68, 221, 157, .3); border-radius: 999px; color: #76f0b8; background: rgba(68, 221, 157, .08); font-size: .59rem; font-weight: 950; letter-spacing: .12em; }
.free-trial-status { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: #c8ddd8; background: rgba(3, 19, 16, .55); font-size: .76rem; line-height: 1.5; }
.free-trial-status.is-active { border-color: rgba(68, 221, 157, .34); color: #8ff4c4; background: rgba(68, 221, 157, .08); }
.free-trial-status.is-expired, .free-trial-status.is-blocked, .free-trial-status.is-error { border-color: rgba(255, 111, 79, .34); color: #ffad98; background: rgba(255, 91, 60, .07); }
.free-trial-warning { margin: 14px 0; padding: 12px 14px; border-left: 3px solid #e7bb55; color: #e9d399; background: rgba(231, 187, 85, .07); font-size: .74rem; line-height: 1.5; }
.free-trial-request { width: 100%; }
.free-trial-refresh { width: 100%; margin-top: 12px; }
.free-trial-value { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 15, 13, .58); }
.free-trial-value > div { min-width: 0; flex: 1; }
.free-trial-value span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .59rem; font-weight: 800; text-transform: uppercase; }
.free-trial-value code { display: block; overflow: hidden; color: #eafff7; font-size: .7rem; overflow-wrap: anywhere; white-space: normal; }
.free-trial-value button { flex: 0 0 auto; padding: 9px 11px; border: 0; border-radius: 10px; color: #041812; background: var(--accent); cursor: pointer; font-size: .66rem; font-weight: 900; }
.free-trial-event { display: grid; gap: 4px; margin-top: 8px; padding: 11px 13px; border: 1px solid rgba(255, 130, 103, .2); border-radius: 13px; background: rgba(255, 91, 60, .045); }
.free-trial-event strong { color: #ffe0d8; font-size: .73rem; }
.free-trial-event span { color: #c99c91; font-size: .62rem; }
.guest-support-intro { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(68, 221, 157, .24); border-radius: 18px; background: rgba(68, 221, 157, .06); }
.guest-support-intro strong { color: #83efbd; font-size: .8rem; }
.guest-support-intro p { margin: 6px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.admin-controls { display: grid; gap: 16px; }
.admin-control-guard { padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.admin-control-guard strong { display: block; margin-bottom: 5px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-control-guard p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.admin-control-guard.is-enabled { border-color: rgba(68, 221, 157, .3); background: rgba(68, 221, 157, .07); }
.admin-control-guard.is-enabled strong { color: var(--accent); }
.admin-control-guard.is-locked { border-color: rgba(231, 187, 85, .33); background: rgba(231, 187, 85, .06); }
.admin-control-guard.is-locked strong { color: #e7bb55; }
.admin-control-card, .admin-control-group { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.edge-director-form { display: grid; gap: 14px; }
.admin-edge-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-edge-fields .field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: .68rem; font-weight: 800; }
.admin-edge-fields input, .admin-edge-fields select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--text); background: rgba(0, 0, 0, .18); font: inherit; }
.admin-edge-fields input:focus, .admin-edge-fields select:focus { border-color: rgba(68, 221, 157, .55); }
.edge-director-form > small { color: var(--muted); font-size: .66rem; line-height: 1.5; }
.edge-director-form .admin-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.edge-director-form button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 620px) { .admin-edge-fields { grid-template-columns: 1fr; } .edge-director-form .admin-actions > button { width: 100%; justify-content: center; } }
.admin-control-card { display: grid; gap: 15px; }
.admin-control-card > div { display: grid; gap: 5px; }
.admin-control-card span { color: var(--muted); font-size: .65rem; font-weight: 850; letter-spacing: .09em; }
.admin-control-card h3, .admin-control-card p { margin: 0; }
.admin-control-card p { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.admin-control-card.is-warning { border-color: rgba(255, 130, 103, .35); background: rgba(255, 102, 75, .06); }
.admin-control-card.is-ok { border-color: rgba(68, 221, 157, .24); }
.danger-button { min-height: 46px; padding: 0 17px; border: 1px solid rgba(255, 130, 103, .36); border-radius: 14px; color: #ff9b85; background: rgba(255, 102, 75, .09); font: inherit; font-weight: 800; }
.danger-button:disabled, .control-switch:disabled { cursor: not-allowed; opacity: .4; }
.admin-data-maintenance { display: grid; gap: 15px; }
.admin-maintenance-intro, .admin-maintenance-report, .admin-maintenance-waiting { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.admin-maintenance-intro h2 { margin: 0 0 8px; font-size: 1.05rem; }
.admin-maintenance-intro p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.admin-maintenance-intro small { display: block; margin-top: 10px; color: #8fd8ff; font-size: .68rem; line-height: 1.45; }
.admin-maintenance-analyze { width: 100%; cursor: pointer; }
.admin-maintenance-waiting { color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.admin-maintenance-report.has-issues { border-color: rgba(255, 116, 72, .35); background: rgba(255, 116, 72, .045); }
.admin-maintenance-report.is-clean { border-color: rgba(90, 231, 164, .28); background: rgba(90, 231, 164, .045); }
.admin-maintenance-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-maintenance-report-heading strong { color: #ff9b7c; font-size: .92rem; }
.admin-maintenance-report.is-clean .admin-maintenance-report-heading strong { color: var(--green); }
.admin-maintenance-report-heading time { flex: 0 0 auto; color: var(--muted); font-size: .64rem; }
.admin-maintenance-report > p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.admin-maintenance-list { display: grid; gap: 8px; max-height: 520px; margin-top: 15px; overflow: auto; }
.admin-maintenance-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(0, 0, 0, .16); }
.admin-maintenance-row > div:first-child { display: grid; gap: 4px; min-width: 0; }
.admin-maintenance-row > div:first-child strong { color: #f4f7f6; font-size: .75rem; }
.admin-maintenance-row > div:first-child span { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-maintenance-row small { color: #78938e; font-size: .62rem; }
.admin-maintenance-row > div:last-child { display: grid; flex: 0 0 auto; gap: 4px; justify-items: end; }
.admin-maintenance-row > div:last-child strong { color: #e7bb55; font-size: .76rem; }
.admin-maintenance-row > div:last-child span { color: #ff9b7c; font-size: .62rem; font-weight: 800; }
.admin-maintenance-cleanup { width: 100%; margin-top: 16px; cursor: pointer; }
.admin-maintenance-limited, .admin-maintenance-locked { display: block; margin-top: 11px; color: #e7bb55; font-size: .66rem; line-height: 1.45; text-align: center; }
.admin-iptv-maintenance { display: grid; gap: 14px; margin-top: 8px; padding: 18px; border: 1px solid rgba(41, 168, 255, .22); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(41, 168, 255, .08), transparent 38%), var(--surface); }
.admin-iptv-maintenance > .admin-maintenance-report-heading > strong { color: #8fd8ff; }
.admin-iptv-maintenance > .admin-maintenance-report-heading > span { padding: 5px 8px; border-radius: 999px; color: #8fd8ff; background: rgba(41, 168, 255, .09); font-size: .55rem; font-weight: 900; letter-spacing: .08em; }
.admin-iptv-maintenance > p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.admin-iptv-run { width: 100%; cursor: pointer; }
.admin-iptv-run-history { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }
.admin-iptv-run-choice { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, .025); cursor: pointer; font-size: .64rem; font-weight: 800; }
.admin-iptv-run-choice.is-active { border-color: rgba(41, 168, 255, .35); color: #8fd8ff; background: rgba(41, 168, 255, .08); }
.admin-iptv-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-iptv-summary .admin-metric { min-height: 88px; padding: 13px; }
.admin-iptv-summary .admin-metric:first-child { grid-column: 1 / -1; }
.admin-iptv-error { padding: 12px; border: 1px solid rgba(255, 116, 72, .35); border-radius: 13px; color: #ffad96; background: rgba(255, 116, 72, .08); font-size: .72rem; line-height: 1.45; }
.admin-iptv-logs { display: grid; gap: 10px; }
.admin-iptv-log { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .13); }
.admin-iptv-log.is-error { border-color: rgba(255, 116, 72, .35); }
.admin-iptv-log.is-warning { border-color: rgba(231, 187, 85, .32); }
.admin-iptv-log.is-success { border-color: rgba(90, 231, 164, .28); }
.admin-iptv-log.is-info { border-color: rgba(41, 168, 255, .24); }
.admin-iptv-log > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-iptv-log > div:first-child strong { font-size: .76rem; }
.admin-iptv-log > div:first-child time { flex: 0 0 auto; color: var(--muted); font-size: .61rem; }
.admin-iptv-log > p { margin: 0; color: #d8e4e1; font-size: .73rem; line-height: 1.48; }
.admin-iptv-log-states { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-iptv-log-states span { padding: 6px 8px; border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .045); font-size: .62rem; font-weight: 750; }
.admin-iptv-log-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.admin-iptv-log-actions button { min-width: 0; padding: 10px; border: 1px solid rgba(41, 168, 255, .24); border-radius: 11px; color: #8fd8ff; background: rgba(41, 168, 255, .07); cursor: pointer; font-size: .67rem; font-weight: 850; }
.admin-iptv-log-actions button:only-child { grid-column: 1 / -1; }
.admin-control-payment { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.admin-control-payment:nth-child(2) { border-top: 0; }
.admin-control-payment > div { display: grid; gap: 3px; min-width: 0; }
.admin-control-payment strong { overflow: hidden; text-overflow: ellipsis; }
.admin-control-payment small { color: var(--muted); font-size: .69rem; }
.control-switch { flex: 0 0 auto; min-width: 88px; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .69rem; font-weight: 850; }
.control-switch.is-on { border-color: rgba(68, 221, 157, .3); color: var(--accent); background: rgba(68, 221, 157, .09); }
.control-switch.is-off { color: var(--muted); background: rgba(255, 255, 255, .035); }
.admin-news-editor textarea { width: 100%; min-height: 140px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(4, 19, 17, .76); font: inherit; line-height: 1.5; outline: none; }
.admin-news-editor textarea:focus { border-color: rgba(68, 221, 157, .55); box-shadow: 0 0 0 3px rgba(68, 221, 157, .08); }
.admin-news-editor textarea:disabled { opacity: .48; }
.admin-news-counter { display: block; margin-top: 6px; color: var(--muted); text-align: right; }
.admin-news-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.admin-news-actions > :only-child { grid-column: 1 / -1; }
.admin-audit-log { display: grid; gap: 0; }
.admin-audit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-audit-row:nth-child(2) { border-top: 0; }
.admin-audit-row > div { display: grid; gap: 3px; min-width: 0; }
.admin-audit-row strong { font-size: .79rem; }
.admin-audit-row small, .admin-audit-row time { color: var(--muted); font-size: .66rem; }
.admin-audit-row time { flex: 0 0 auto; text-align: right; }
.admin-online-row, .admin-cron-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-online-row > div { min-width: 0; }
.admin-online-row h4 { margin: 0; font-size: 0.75rem; overflow-wrap: anywhere; }
.admin-online-row p { margin: 5px 0 0; color: var(--muted); font-size: 0.6rem; overflow-wrap: anywhere; }
.admin-online-side { display: grid; justify-items: end; gap: 7px; flex: 0 0 auto; }
.admin-online-row time { color: #70ccff; font-size: 0.58rem; text-align: right; }
.admin-online-profile { padding: 7px 9px; border: 1px solid rgba(112, 204, 255, .28); border-radius: 9px; color: #9bdcff; background: rgba(41, 168, 255, .08); cursor: pointer; font-size: .58rem; font-weight: 850; }
.admin-online-guest { padding: 5px 8px; border-radius: 999px; color: #ffe2a1; background: rgba(232, 185, 79, .1); font-size: .54rem; font-weight: 900; letter-spacing: .06em; }
.admin-cron-row > div:first-child { min-width: 105px; }
.admin-cron-row > div:first-child span { display: block; color: var(--muted); font-size: 0.54rem; font-weight: 850; letter-spacing: 0.08em; }
.admin-cron-row > div:first-child strong { display: block; margin-top: 5px; font-size: 0.71rem; }
.admin-cron-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.admin-cron-row > div:last-child span { padding: 5px 7px; border-radius: 8px; color: #ffe2a1; background: rgba(232, 185, 79, 0.065); font-size: 0.56rem; }

.tester-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; padding: 9px 11px; border: 1px solid rgba(232, 185, 79, 0.25); border-radius: 12px; color: #ffe3a2; background: rgba(232, 185, 79, 0.08); font-size: 0.7rem; font-weight: 800; }
.tester-banner button { padding: 7px 9px; border: 1px solid rgba(232, 185, 79, 0.25); border-radius: 9px; color: #ffe3a2; background: rgba(0, 0, 0, 0.14); cursor: pointer; font-size: 0.67rem; font-weight: 800; }

.catalog-menu { display: grid; gap: 12px; margin-bottom: 15px; }
.catalog-menu:empty { display: none; }
.catalog-menu-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); background: linear-gradient(145deg, var(--surface-strong), var(--surface)); cursor: pointer; text-align: left; }
.catalog-menu-card > span { display: grid; gap: 6px; }
.catalog-menu-card strong { font-size: 1rem; }
.catalog-menu-card small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.catalog-menu-card > b { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border: 1px solid rgba(41, 168, 255, 0.28); border-radius: 50%; color: var(--green); background: rgba(41, 168, 255, 0.07); font-size: 1.1rem; }
.catalog-menu-card:active { transform: scale(0.985); }
.catalog-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.catalog-breadcrumb button { flex: 0 0 auto; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-soft); cursor: pointer; font-size: 0.74rem; font-weight: 800; }
.catalog-breadcrumb span { overflow: hidden; color: var(--muted); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }

.catalog-grid .product-card { min-height: 180px; }
.account-summary { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 12px; }
.account-summary-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-summary-three .balance-card { grid-column: 1 / -1; }
.balance-card, .stat-card, .account-section, .empty-state { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.balance-card, .stat-card { width: 100%; padding: 20px; color: var(--text); font: inherit; text-align: left; appearance: none; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease; }
.balance-card:hover, .stat-card:hover { border-color: rgba(90, 231, 164, 0.34); background: var(--surface-strong); }
.balance-card:active, .stat-card:active { transform: scale(0.98); }
.balance-card:focus-visible, .stat-card:focus-visible { outline: 3px solid rgba(90, 231, 164, 0.32); outline-offset: 2px; }
.balance-card span, .stat-card span { color: var(--muted); font-size: 0.75rem; }
.balance-card strong { display: block; margin-top: 8px; font-size: 2rem; letter-spacing: -0.04em; }
.stat-card strong { display: block; margin-top: 12px; color: var(--green); font-size: 1.6rem; }
.account-section { margin-top: 14px; padding: 20px; }
.account-section h2 { margin-bottom: 14px; font-size: 1rem; }
.service-card { border-top: 1px solid var(--line); }
.service-card:first-of-type { border-top: 0; }
.account-list-section .service-card.is-separated-service { position: relative; margin-top: 15px; padding: 15px; border: 1px solid rgba(90, 231, 164, .24); border-left: 4px solid hsl(calc(151 + (var(--service-index) * 36)) 62% 53%); border-radius: 17px; background: linear-gradient(145deg, rgba(13, 48, 40, .78), rgba(6, 26, 24, .92)); box-shadow: 0 13px 28px rgba(0, 0, 0, .17); }
.account-list-section .service-card.is-separated-service:first-of-type { margin-top: 0; border-top: 1px solid rgba(90, 231, 164, .24); }
.service-sequence-label { display: inline-flex; margin-bottom: 8px; padding: 5px 8px; border-radius: 999px; color: #a8f0d4; background: rgba(70, 211, 158, .11); font-size: .56rem; font-weight: 950; letter-spacing: .11em; }
.service-card { min-width: 0; max-width: 100%; }
.service-client-note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; margin: 0 0 5px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.service-client-note label { font-size: .78rem; font-weight: 800; }
.service-client-note textarea { display: block; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--bg); font: inherit; font-size: 1rem; line-height: 1.4; resize: vertical; }
.service-client-note textarea::placeholder { color: var(--muted); }
.service-client-note textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.service-client-note-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; }
.service-client-note-footer span { color: var(--muted); font-size: .68rem; }
.service-client-note-footer button { min-height: 40px; padding: 7px 12px; font-size: .74rem; }
.service-client-note-footer button:disabled { opacity: .55; cursor: default; }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 13px 0; }
.service-row-info { min-width: 0; overflow-wrap: anywhere; }
.service-row > .status-pill { max-width: 100%; white-space: normal; text-align: center; }
.service-row p { margin: 0 0 4px; font-weight: 700; }
.service-row small { display: block; margin-top: 3px; color: var(--muted); }
.service-row .service-card-identifier { margin: 0 0 5px; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.service-row-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 13px; }
.service-row-actions > button { min-height: 40px; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.service-invoice-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 13px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.service-invoice-notice > div { min-width: 0; }
.service-invoice-notice small { display: block; color: var(--muted); font-size: .7rem; }
.service-invoice-notice strong { display: block; margin-top: 4px; font-size: .95rem; }
.service-invoice-button { min-width: 0; max-width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #4d6588; border-radius: 10px; color: #c6dbfa; background: #263a56; cursor: pointer; font-size: .72rem; font-weight: 850; white-space: normal; overflow-wrap: anywhere; }
.service-details-button { padding: 7px 9px; border: 1px solid rgba(41, 168, 255, 0.2); border-radius: 10px; color: #8fd8ff; background: rgba(41, 168, 255, 0.07); cursor: pointer; font-size: 0.68rem; font-weight: 850; }
.service-details-button:disabled { opacity: 0.55; cursor: wait; }
.service-upgrade-button { padding: 7px 9px; border: 1px solid rgba(232, 185, 79, 0.24); border-radius: 10px; color: #ffe1a0; background: rgba(232, 185, 79, 0.075); cursor: pointer; font-size: 0.68rem; font-weight: 850; }
.service-upgrade-button:disabled { opacity: 0.55; cursor: wait; }
.service-details-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 0 0 14px; padding: 15px; border: 1px solid rgba(90, 231, 164, 0.17); border-radius: 16px; background: rgba(5, 23, 22, 0.72); }
.service-details-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 3px; }
.service-details-heading strong { font-size: 0.86rem; }
.service-details-heading span { padding: 5px 7px; border-radius: 999px; color: #67e8ac; background: rgba(90, 231, 164, 0.08); font-size: 0.52rem; font-weight: 900; letter-spacing: 0.08em; }
.service-secret-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.service-secret-row > div:first-child { min-width: 0; }
.service-secret-row span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.62rem; }
.service-secret-row code { display: block; overflow-wrap: anywhere; color: #eaf7f3; font-size: 0.72rem; line-height: 1.35; }
.service-secret-row > div:last-child { display: flex; gap: 5px; flex: 0 0 auto; }
.service-secret-row button { padding: 6px 7px; border: 0; border-radius: 8px; color: #9edcff; background: rgba(41, 168, 255, 0.09); cursor: pointer; font-size: 0.6rem; font-weight: 850; }
.service-details-panel h3 { margin: 9px 0 0; font-size: 0.78rem; }
.service-upgrade-panel { display: grid; gap: 12px; margin: 0 0 15px; padding: 15px; border: 1px solid rgba(232, 185, 79, 0.22); border-radius: 17px; background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, 0.09), transparent 40%), rgba(5, 23, 22, 0.78); }
.service-upgrade-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-upgrade-heading span { color: #e7bb55; font-size: .53rem; font-weight: 900; letter-spacing: .09em; }
.service-upgrade-heading h3 { margin: 5px 0 0; font-size: .92rem; }
.service-upgrade-heading > strong { display: grid; place-items: center; min-width: 43px; height: 33px; padding: 0 8px; border-radius: 999px; color: #2b1b02; background: #e7bb55; font-size: .65rem; }
.service-upgrade-current { display: grid; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .13); }
.service-upgrade-explanation { margin: 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.service-upgrade-options { display: grid; gap: 9px; }
.service-upgrade-option { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(41, 168, 255, .14); border-radius: 14px; background: rgba(4, 18, 20, .72); }
.service-upgrade-option > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.service-upgrade-option > div:first-child > div { min-width: 0; }
.service-upgrade-option strong { display: block; font-size: .76rem; overflow-wrap: anywhere; }
.service-upgrade-option small { display: block; margin-top: 4px; color: var(--muted); font-size: .6rem; }
.service-upgrade-option > div:first-child > b { flex: 0 0 auto; color: #71e9ad; font-size: .8rem; }
.service-upgrade-option-figures { display: grid; gap: 7px; padding-top: 9px; border-top: 1px solid var(--line); }
.service-upgrade-option button { width: 100%; padding: 10px 11px; border: 0; border-radius: 11px; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); cursor: pointer; font-size: .68rem; font-weight: 900; }
.service-upgrade-option button:disabled { cursor: wait; opacity: .58; }
.service-upgrade-pending { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 12px; border: 1px solid rgba(232, 185, 79, .24); border-radius: 13px; background: rgba(232, 185, 79, .075); }
.service-upgrade-pending.is-paid { border-color: rgba(41, 168, 255, .22); background: rgba(41, 168, 255, .07); }
.service-upgrade-pending > div { min-width: 0; }
.service-upgrade-pending strong { display: block; font-size: .7rem; }
.service-upgrade-pending small { display: block; margin-top: 5px; color: var(--muted); font-size: .6rem; overflow-wrap: anywhere; }
.service-upgrade-pending button { flex: 0 0 auto; padding: 8px 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; color: #d7ebe6; background: rgba(255, 255, 255, .055); cursor: pointer; font-size: .62rem; font-weight: 850; }
.status-pill { padding: 5px 8px; border-radius: 999px; color: var(--green); background: rgba(41, 168, 255, 0.1); font-size: 0.7rem; font-weight: 800; }
.status-pill.is-paid { color: #7ed8ff; background: rgba(41, 168, 255, 0.1); }
.status-pill.is-unpaid { color: #ffb18f; background: rgba(255, 116, 72, 0.1); }
.status-pill.is-processing { color: #f3cf75; background: rgba(232, 185, 79, 0.12); }
.status-pill.is-cancelled, .status-pill.is-neutral { color: #a8b8b4; background: rgba(168, 184, 180, 0.1); }
.status-pill.is-refunded { color: #d7b7ff; background: rgba(170, 112, 255, 0.12); }
.is-notification-focus { outline: 2px solid rgba(231, 187, 85, 0.82); outline-offset: 3px; animation: notification-focus 2.4s ease; }
@keyframes notification-focus {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 187, 85, 0); }
    25% { box-shadow: 0 0 0 7px rgba(231, 187, 85, 0.18); }
}
.empty-state { padding: 30px 22px; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--text); }
.account-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 0 -14px 16px; padding: 0 14px 5px; scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab { flex: 0 0 auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: 0.74rem; font-weight: 800; }
.account-tab.is-active { border-color: rgba(41, 168, 255, 0.35); color: #061724; background: var(--green); }
.account-panel { width: 100%; max-width: 100%; min-width: 0; min-height: 220px; }
.client-alert-center { margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.client-alert-center.has-alerts { border-color: rgba(232, 185, 79, 0.22); background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, 0.1), transparent 44%), var(--surface); }
.client-alert-center.is-clear { border-color: rgba(41, 168, 255, 0.18); background: radial-gradient(circle at 100% 0%, rgba(41, 168, 255, 0.08), transparent 44%), var(--surface); }
.client-alert-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.client-alert-heading > span { min-width: 0; }
.client-alert-heading > span > span { color: #e7bb55; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.11em; }
.client-alert-heading h2 { margin: 6px 0 0; font-size: 0.95rem; }
.client-alert-heading > strong { display: grid; place-items: center; flex: 0 0 auto; min-width: 29px; height: 29px; padding: 0 7px; border-radius: 999px; color: #2b1b02; background: #e7bb55; font-size: 0.65rem; font-weight: 900; }
.client-alert-center.is-clear .client-alert-heading > strong { color: #061724; background: var(--green); }
.client-alert-list { display: grid; gap: 8px; margin-top: 13px; }
.client-alert-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(0, 0, 0, 0.1); cursor: pointer; text-align: left; }
.client-alert-row > span { min-width: 0; }
.client-alert-row strong { display: block; font-size: 0.75rem; overflow-wrap: anywhere; }
.client-alert-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.62rem; line-height: 1.45; overflow-wrap: anywhere; }
.client-alert-row > b { flex: 0 0 auto; color: #e7bb55; font-size: 0.85rem; font-weight: 900; }
.client-alert-row.is-channel { border-color: rgba(255, 116, 72, .24); background: rgba(255, 116, 72, .055); }
.client-alert-row.is-channel > b { color: #ff9b82; }
.client-alert-more { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(232, 185, 79, 0.2); border-radius: 11px; color: #ffe2a1; background: rgba(232, 185, 79, 0.06); cursor: pointer; font-size: 0.68rem; font-weight: 900; }
.client-alert-center > p { margin: 12px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.notification-center { margin-bottom: 14px; padding: 18px; border: 1px solid rgba(41, 168, 255, 0.19); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(41, 168, 255, 0.09), transparent 44%), var(--surface); }
.notification-center-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.notification-center-heading > div { min-width: 0; }
.notification-center-heading span { color: #8fd8ff; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.11em; }
.notification-center-heading h2 { margin: 6px 0 0; font-size: 0.96rem; }
.notification-center-heading > strong { display: grid; place-items: center; flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; color: #061724; background: var(--green); font-size: 0.65rem; }
.notification-read-all, .notification-more { width: 100%; margin-top: 11px; padding: 9px 11px; border: 1px solid rgba(41, 168, 255, 0.2); border-radius: 11px; color: #8fd8ff; background: rgba(41, 168, 255, 0.06); cursor: pointer; font-size: 0.65rem; font-weight: 900; }
.notification-read-all:disabled { cursor: wait; opacity: 0.6; }
.admin-notification-preferences { margin-top: 15px; padding: 14px; border: 1px solid rgba(68, 221, 157, .18); border-radius: 16px; background: rgba(68, 221, 157, .035); }
.admin-notification-preferences-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-notification-preferences-heading > div { min-width: 0; }
.admin-notification-preferences-heading span { color: var(--accent); font-size: .52rem; font-weight: 900; letter-spacing: .1em; }
.admin-notification-preferences-heading h3 { margin: 5px 0 0; font-size: .86rem; }
.admin-notification-preferences-heading p { margin: 6px 0 0; color: var(--muted); font-size: .59rem; line-height: 1.45; }
.admin-notification-preferences-heading > strong { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; color: var(--accent); background: rgba(68, 221, 157, .1); font-size: .58rem; }
.admin-notification-preferences-list { display: grid; gap: 8px; margin-top: 12px; }
.admin-notification-preference { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0, 0, 0, .11); }
.admin-notification-preference > div { min-width: 0; }
.admin-notification-preference h4 { margin: 0; font-size: .68rem; }
.admin-notification-preference p { margin: 4px 0 0; color: var(--muted); font-size: .56rem; line-height: 1.4; }
.admin-notification-preference.is-disabled { opacity: .72; }
.admin-notification-preference-toggle { flex: 0 0 auto; min-width: 78px; padding: 8px 9px; border: 1px solid rgba(255, 116, 72, .24); border-radius: 10px; color: #ffad93; background: rgba(255, 116, 72, .065); cursor: pointer; font: inherit; font-size: .58rem; font-weight: 900; }
.admin-notification-preference.is-disabled .admin-notification-preference-toggle { border-color: rgba(68, 221, 157, .24); color: var(--accent); background: rgba(68, 221, 157, .065); }
.admin-notification-preference-toggle:disabled { cursor: wait; opacity: .58; }
.notification-list { display: grid; gap: 8px; margin-top: 12px; }
.notification-card { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: flex-start; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(0, 0, 0, 0.12); cursor: pointer; text-align: left; }
.notification-card.is-unread { border-color: rgba(41, 168, 255, 0.23); background: rgba(41, 168, 255, 0.045); }
.notification-card.is-read { opacity: 0.66; }
.notification-card > i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #29a8ff; box-shadow: 0 0 0 3px rgba(41, 168, 255, 0.1); }
.notification-card.is-invoice > i, .notification-card.is-expiring > i { background: #e7bb55; box-shadow: 0 0 0 3px rgba(232, 185, 79, 0.1); }
.notification-card.is-suspended > i { background: #ff7448; box-shadow: 0 0 0 3px rgba(255, 116, 72, 0.1); }
.notification-card.is-ticket > i { background: #b98cff; box-shadow: 0 0 0 3px rgba(185, 140, 255, 0.1); }
.notification-card > span { min-width: 0; }
.notification-card strong { display: block; font-size: 0.73rem; overflow-wrap: anywhere; }
.notification-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.61rem; line-height: 1.42; overflow-wrap: anywhere; }
.notification-card time { display: block; margin-top: 6px; color: #718985; font-size: 0.54rem; }
.notification-card > b { color: #8fd8ff; font-size: 0.82rem; }
.notification-empty-copy, .notification-setup-copy { margin: 12px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.notification-setup-copy { color: #ffe0a1; }
.profile-section { margin-top: 14px; }
.telegram-channel-card { margin-top: 14px; padding: 18px; border: 1px solid rgba(232, 185, 79, .25); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, .1), transparent 45%), var(--surface); }
.telegram-channel-card.is-member { border-color: rgba(90, 231, 164, .28); background: radial-gradient(circle at 100% 0%, rgba(90, 231, 164, .1), transparent 45%), var(--surface); }
.telegram-channel-card.is-missing { border-color: rgba(255, 116, 72, .34); background: radial-gradient(circle at 100% 0%, rgba(255, 116, 72, .12), transparent 45%), var(--surface); }
.telegram-channel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.telegram-channel-heading > div { min-width: 0; }
.telegram-channel-heading span { color: #e7bb55; font-size: .54rem; font-weight: 950; letter-spacing: .11em; }
.telegram-channel-card.is-member .telegram-channel-heading span { color: #65e9aa; }
.telegram-channel-card.is-missing .telegram-channel-heading span { color: #ff9b82; }
.telegram-channel-heading h2 { margin: 6px 0 0; font-size: .98rem; }
.telegram-channel-heading > strong { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; color: #342304; background: #e7bb55; font-size: .52rem; font-weight: 950; letter-spacing: .06em; }
.telegram-channel-card.is-member .telegram-channel-heading > strong { color: #052019; background: #65e9aa; }
.telegram-channel-card.is-missing .telegram-channel-heading > strong { color: #3a0e0a; background: #ff8e76; }
.telegram-channel-card > p { margin: 13px 0 0; color: #b8cac5; font-size: .71rem; line-height: 1.55; }
.telegram-channel-actions { display: grid; grid-template-columns: 1.35fr .85fr; gap: 8px; margin-top: 14px; }
.telegram-channel-actions button { min-width: 0; padding: 11px 10px; border-radius: 12px; cursor: pointer; font-size: .66rem; font-weight: 900; line-height: 1.25; }
.telegram-channel-actions button:disabled { cursor: not-allowed; opacity: .48; }
.telegram-channel-open { border: 0; color: #052019; background: linear-gradient(135deg, #65e9aa, #35d68f); }
.telegram-channel-card.is-missing .telegram-channel-open { color: #35100b; background: linear-gradient(135deg, #ff9d86, #ff765f); }
.telegram-channel-verify { border: 1px solid rgba(255, 255, 255, .13); color: #dcece8; background: rgba(255, 255, 255, .055); }
@media (max-width: 420px) {
    .telegram-channel-actions { grid-template-columns: 1fr; }
}
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.profile-row span { color: var(--muted); font-size: 0.75rem; }
.profile-row strong { overflow-wrap: anywhere; text-align: right; font-size: 0.82rem; }
.account-list-section { margin-top: 0; }
.account-empty-copy { margin: 16px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.invoice-section { margin-top: 18px; }
.invoice-section:first-child { margin-top: 0; }
.invoice-section > h2 { margin: 0 0 11px; font-size: 1rem; }
.invoice-card { margin-top: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--surface-strong), var(--surface)); }
.invoice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.invoice-top small { color: var(--muted); font-size: 0.68rem; }
.invoice-top h3 { margin: 5px 0 0; font-size: 0.92rem; line-height: 1.35; }
.invoice-upgrade-label { display: inline-flex; margin-top: 7px; padding: 4px 6px; border-radius: 7px; color: #ffe1a0; background: rgba(232, 185, 79, .09); font-size: .5rem; font-weight: 900; letter-spacing: .07em; }
.invoice-top > strong { flex: 0 0 auto; color: #e7bb55; }
.invoice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 0.7rem; }
.invoice-pay-button { width: 100%; margin-top: 15px; padding: 12px 14px; border: 1px solid rgba(90, 231, 164, 0.22); border-radius: 13px; color: #75e9b2; background: rgba(90, 231, 164, 0.07); cursor: pointer; font-weight: 850; }
.invoice-pay-button:disabled { cursor: wait; opacity: 0.62; }
.invoice-payment-box { margin-top: 16px; padding: 15px; border: 1px solid rgba(90, 231, 164, 0.2); border-radius: 16px; background: rgba(2, 17, 16, 0.5); }
.invoice-payment-verified { display: inline-flex; padding: 5px 7px; border-radius: 999px; color: #69e8ad; background: rgba(90, 231, 164, 0.08); font-size: 0.54rem; font-weight: 900; letter-spacing: 0.08em; }
.invoice-payment-figures { display: grid; gap: 10px; margin-top: 14px; }
.invoice-payment-status { margin: 14px 0 0; padding: 11px 12px; border-radius: 12px; font-size: 0.72rem; font-weight: 750; line-height: 1.45; }
.invoice-payment-status.is-ready { color: #81efb9; background: rgba(47, 216, 141, 0.09); }
.invoice-payment-status.is-insufficient { color: #ffac90; background: rgba(255, 116, 72, 0.09); }
.invoice-payment-actions { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 8px; margin-top: 12px; }
.invoice-payment-actions button { min-width: 0; padding: 12px 9px; border-radius: 12px; cursor: pointer; font-size: 0.7rem; font-weight: 900; }
.invoice-payment-cancel { border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.025); }
.invoice-payment-confirm { border: 0; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); }
.invoice-payment-confirm:disabled { border: 1px solid rgba(255, 255, 255, 0.06); color: #708985; background: rgba(255, 255, 255, 0.035); cursor: not-allowed; }
.account-actions { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.logout-button { width: 100%; padding: 13px 15px; border: 1px solid rgba(255, 116, 72, 0.25); border-radius: 13px; color: #ffad93; background: rgba(255, 116, 72, 0.07); cursor: pointer; font-weight: 800; }
.logout-button:disabled { cursor: wait; opacity: 0.6; }

.wallet-view { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; }
.wallet-view > * { min-width: 0; }
.wallet-hero {
    padding: 22px;
    border: 1px solid rgba(41, 168, 255, 0.25);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(41, 168, 255, 0.16), transparent 42%),
        linear-gradient(145deg, #102432, #0b1917);
    box-shadow: var(--shadow);
}
.wallet-hero > span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.wallet-hero > strong { display: block; margin-top: 8px; color: var(--green); font-size: clamp(2rem, 10vw, 3rem); letter-spacing: -0.045em; }
.wallet-hero p { margin: 10px 0 16px; color: var(--muted); font-size: 0.78rem; }
.wallet-recharge-preview { width: 100%; padding: 12px 14px; border: 1px solid rgba(90, 231, 164, 0.22); border-radius: 13px; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); cursor: pointer; font-weight: 900; }
.wallet-recharge-preview:disabled { border-color: var(--line); color: #7e9691; background: rgba(255, 255, 255, 0.045); cursor: not-allowed; }
.wallet-recharge-form { padding: 19px; border: 1px solid rgba(90, 231, 164, 0.2); border-radius: 21px; background: linear-gradient(145deg, rgba(14, 43, 37, 0.96), rgba(7, 24, 23, 0.98)); }
.wallet-recharge-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-recharge-form-heading span { color: #64e7aa; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.09em; }
.wallet-recharge-form-heading h2 { margin: 6px 0 0; font-size: 1.08rem; }
.wallet-recharge-form-heading > button { padding: 7px 8px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.wallet-recharge-amount { display: grid; gap: 7px; margin-top: 18px; color: #dcece8; font-size: 0.75rem; font-weight: 850; }
.wallet-recharge-amount input { width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--text); background: rgba(3, 14, 16, 0.7); font: inherit; }
.wallet-recharge-amount input:focus { border-color: rgba(90, 231, 164, 0.5); box-shadow: 0 0 0 3px rgba(90, 231, 164, 0.08); }
.wallet-recharge-amount small { color: var(--muted); font-size: 0.64rem; font-weight: 500; }
.wallet-recharge-form > h3 { margin: 18px 0 10px; font-size: 0.8rem; }
.wallet-recharge-methods { display: grid; gap: 8px; }
.wallet-recharge-methods button { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255, 255, 255, 0.025); cursor: pointer; text-align: left; }
.wallet-recharge-methods button.is-selected { border-color: rgba(90, 231, 164, 0.48); background: rgba(90, 231, 164, 0.09); box-shadow: inset 3px 0 #5ae7a4; }
.wallet-recharge-methods strong { font-size: 0.8rem; }
.wallet-recharge-methods small { overflow-wrap: anywhere; color: var(--muted); font-size: 0.64rem; line-height: 1.4; }
.wallet-recharge-verify { width: 100%; margin-top: 13px; padding: 13px; border: 0; border-radius: 13px; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); cursor: pointer; font-weight: 900; }
.wallet-recharge-verify:disabled { border: 1px solid var(--line); color: #718984; background: rgba(255, 255, 255, 0.035); cursor: not-allowed; }
.wallet-recharge-quote { margin-top: 15px; padding: 14px; border: 1px solid rgba(90, 231, 164, 0.18); border-radius: 15px; background: rgba(2, 17, 16, 0.5); }
.wallet-recharge-verified { display: inline-flex; padding: 5px 7px; border-radius: 999px; color: #69e8ad; background: rgba(90, 231, 164, 0.08); font-size: 0.53rem; font-weight: 900; letter-spacing: 0.08em; }
.wallet-recharge-figures { display: grid; gap: 10px; margin-top: 14px; }
.wallet-recharge-status { margin: 13px 0 0; padding: 11px 12px; border-radius: 12px; font-size: 0.7rem; line-height: 1.45; }
.wallet-recharge-status.is-ready { color: #81efb9; background: rgba(47, 216, 141, 0.09); }
.wallet-recharge-status.is-blocked { color: #ffac90; background: rgba(255, 116, 72, 0.09); }
.wallet-recharge-actions { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 8px; margin-top: 12px; }
.wallet-recharge-actions button { min-width: 0; padding: 12px 9px; border-radius: 12px; cursor: pointer; font-size: 0.68rem; font-weight: 900; }
.wallet-recharge-edit { border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.025); }
.wallet-recharge-create { border: 0; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); }
.wallet-recharge-create:disabled { border: 1px solid rgba(255, 255, 255, 0.06); color: #708985; background: rgba(255, 255, 255, 0.035); cursor: not-allowed; }
.wallet-section { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.wallet-section h2 { margin-bottom: 10px; font-size: 1rem; }
.wallet-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wallet-section-heading h2 { margin: 0; }
.wallet-status-refresh { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(41, 168, 255, 0.2); border-radius: 9px; color: #8bd2f8; background: rgba(41, 168, 255, 0.055); cursor: pointer; font-size: 0.62rem; font-weight: 850; }
.wallet-status-refresh:disabled { cursor: wait; opacity: 0.62; }
.wallet-section-copy, .affiliate-card > p { margin: 0 0 13px; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.wallet-warning { margin: 0 0 12px; padding: 10px 11px; border-radius: 11px; color: #ffe0a1; background: rgba(232, 185, 79, 0.075); font-size: 0.7rem; line-height: 1.45; }
.wallet-request { margin-top: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(0, 0, 0, 0.1); }
.wallet-request.is-pending { border-color: rgba(232, 185, 79, 0.19); }
.wallet-request-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-request-top small { display: block; color: var(--muted); font-size: 0.63rem; }
.wallet-request-top strong { display: block; margin-top: 4px; font-size: 0.82rem; }
.wallet-request-top > b { color: #e7bb55; font-size: 1rem; }
.wallet-request-meta { display: flex; align-items: center; gap: 9px; margin-top: 11px; color: var(--muted); font-size: 0.64rem; }
.wallet-request > p { margin: 10px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.wallet-request-details-toggle { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(41, 168, 255, 0.2); border-radius: 11px; color: #8bd2f8; background: rgba(41, 168, 255, 0.055); cursor: pointer; font-size: 0.7rem; font-weight: 850; }
.wallet-payment-loading { margin-top: 10px; padding: 13px; border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.025); font-size: 0.7rem; text-align: center; }
.wallet-payment-details { display: grid; gap: 10px; min-width: 0; margin-top: 11px; padding: 13px; border: 1px solid rgba(41, 168, 255, 0.16); border-radius: 13px; background: rgba(2, 15, 18, 0.58); }
.wallet-payment-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-payment-details-heading strong { font-size: 0.76rem; }
.wallet-payment-details-heading span { flex: 0 0 auto; padding: 4px 6px; border-radius: 999px; color: #70cfff; background: rgba(41, 168, 255, 0.08); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.07em; }
.wallet-payment-instruction { max-height: 220px; margin: 0 !important; overflow: auto; white-space: pre-line; color: #bdd0cc !important; font-size: 0.68rem !important; line-height: 1.52 !important; }
.wallet-payment-html { min-width: 0; overflow-wrap: anywhere; color: #bdd0cc; font-size: 0.68rem; line-height: 1.52; }
.wallet-payment-html > :first-child { margin-top: 0; }
.wallet-payment-html > :last-child { margin-bottom: 0; }
.wallet-payment-html p, .wallet-payment-html div, .wallet-payment-html blockquote { margin: 0 0 8px; }
.wallet-payment-html h1, .wallet-payment-html h2, .wallet-payment-html h3, .wallet-payment-html h4, .wallet-payment-html h5, .wallet-payment-html h6 { margin: 0 0 8px; line-height: 1.25; }
.wallet-payment-html ul, .wallet-payment-html ol { margin: 0 0 8px; padding-left: 20px; }
.wallet-payment-html code { overflow-wrap: anywhere; color: #e5f4f0; }
.wallet-payment-html hr { margin: 10px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.wallet-payment-address { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-width: 0; padding: 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.035); }
.wallet-payment-address > div { min-width: 0; }
.wallet-payment-address span { display: block; color: var(--muted); font-size: 0.57rem; }
.wallet-payment-address code { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #dcefea; font-size: 0.65rem; }
.wallet-payment-address button { flex: 0 0 auto; padding: 7px 8px; border: 0; border-radius: 8px; color: #061724; background: var(--green); cursor: pointer; font-size: 0.6rem; font-weight: 900; }
.wallet-payment-expiry, .wallet-payment-pending { margin: 0 !important; padding: 10px !important; border-radius: 10px; color: #ffe0a1 !important; background: rgba(232, 185, 79, 0.075); font-size: 0.64rem !important; line-height: 1.45 !important; }
.wallet-payment-expiry.is-expired { color: #ffad93 !important; background: rgba(255, 116, 72, 0.08); }
.wallet-payment-link { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); cursor: pointer; font-family: inherit; font-size: 0.7rem; font-weight: 900; text-align: center; text-decoration: none; }
.wallet-payment-ticket { color: #f7f2ff; background: linear-gradient(135deg, #7953ce, #9a68e8); box-shadow: 0 8px 22px rgba(121, 83, 206, .18); }
.wallet-payment-initialize { width: 100%; padding: 11px 12px; border: 1px solid rgba(41, 168, 255, 0.32); border-radius: 11px; color: #d8f3ff; background: linear-gradient(135deg, rgba(19, 118, 185, 0.9), rgba(21, 85, 134, 0.92)); cursor: pointer; font-family: inherit; font-size: 0.7rem; font-weight: 900; }
.wallet-payment-initialize:disabled { opacity: 0.62; cursor: wait; }
.wallet-payment-cancel { width: 100%; padding: 10px 12px; border: 1px solid rgba(255, 116, 72, 0.22); border-radius: 11px; color: #ffad93; background: rgba(255, 116, 72, 0.07); cursor: pointer; font-size: 0.68rem; font-weight: 850; }
.wallet-payment-cancel:disabled { border-color: var(--line); color: #708985; background: rgba(255, 255, 255, 0.025); cursor: not-allowed; }
.bitcoin-checkout-open { overflow: hidden; }
.bitcoin-checkout {
    width: min(560px, calc(100% - 20px));
    height: min(690px, calc(100% - var(--tg-safe-top) - var(--tg-safe-bottom) - 20px));
    max-width: none;
    max-height: none;
    inset: var(--tg-safe-top) 0 var(--tg-safe-bottom);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}
.bitcoin-checkout[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.bitcoin-checkout::backdrop { background: rgba(5, 10, 18, .78); }
.bitcoin-checkout-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 16px; }
.bitcoin-checkout-heading span { color: var(--muted); font-size: .66rem; font-weight: 800; }
.bitcoin-checkout-heading h2 { margin: 2px 0 0; font-size: 1rem; }
.bitcoin-checkout-heading form button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-soft); font-size: 1.45rem; cursor: pointer; }
.bitcoin-wallet-action { grid-column: 1 / -1; }
.bitcoin-wallet-action [hidden] { display: none; }
.bitcoin-wallet-picker { display: grid; gap: 5px; margin-bottom: 8px; }
.bitcoin-wallet-picker select {
    width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); background: var(--surface-strong); font: inherit; font-size: .85rem;
}
.bitcoin-wallet-official-link { display: block; margin-top: 8px; color: var(--green); font-size: .75rem; text-align: center; }
.bitcoin-wallet-action small { display: block; margin: 5px 0 0; color: var(--muted); font-size: .65rem; text-align: center; }
.bitcoin-wallet-action small:empty { display: none; }
.bitcoin-wallet-copy { margin-top: 7px; font-size: .7rem; }
.bitcoin-wallet-copy summary { padding: 8px 2px; color: var(--text); cursor: pointer; }
.bitcoin-wallet-copy .wallet-payment-address { margin-bottom: 5px; }
.bitcoin-checkout-content { position: relative; min-height: 0; }
.bitcoin-checkout-content p { position: absolute; inset: 16px 14px auto; z-index: 1; background: var(--surface); }
.bitcoin-checkout-content iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
.wallet-cancellation-reason { margin: 0 !important; color: var(--muted) !important; font-size: 0.61rem !important; line-height: 1.45 !important; }
.wallet-methods { display: grid; gap: 8px; }
.wallet-method { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.025); }
.wallet-method strong { font-size: 0.82rem; }
.wallet-method .wallet-method-discount { display: inline-flex; margin-left: 8px; padding: 4px 6px; border-radius: 7px; color: #061724; background: var(--green); font-size: 0.58rem; font-weight: 900; }
.wallet-method small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.payment-method-copy { display: block; min-width: 0; }
.payment-method-copy strong { display: inline; overflow-wrap: anywhere; }
.payment-method-copy small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.payment-method-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(111, 178, 157, .22); border-radius: 13px; color: #b9dbcf; background: linear-gradient(145deg, rgba(30, 75, 63, .9), rgba(13, 43, 36, .95)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 7px 18px rgba(0,0,0,.15); font-size: 18px; font-weight: 950; line-height: 1; }
.payment-method-icon.is-card { border-color: rgba(86, 202, 255, .34); color: #a7e3ff; background: linear-gradient(145deg, rgba(25, 102, 145, .75), rgba(13, 58, 85, .9)); }
.payment-method-icon.is-bitcoin { border-color: rgba(247, 177, 66, .35); color: #ffc565; background: linear-gradient(145deg, rgba(126, 79, 16, .72), rgba(67, 44, 13, .9)); }
.payment-method-icon.is-paypal { border-color: rgba(75, 161, 255, .38); color: #86c7ff; background: linear-gradient(145deg, rgba(20, 80, 150, .78), rgba(12, 49, 100, .92)); font-family: Arial, sans-serif; font-style: italic; }
.payment-method-icon.is-bank { color: #9ee5c5; }
.payment-method-icon.is-crypto { color: #c6b5ff; background: linear-gradient(145deg, rgba(77, 54, 139, .7), rgba(38, 29, 79, .9)); }
.payment-method-icon.is-cash { color: #8ff0bd; }
.affiliate-card { border-color: rgba(232, 185, 79, 0.2); background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, 0.08), transparent 35%), var(--surface); }
.affiliate-link { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.13); }
.affiliate-link code { min-width: 0; flex: 1; overflow: hidden; color: #9dc8e1; font-size: 0.65rem; text-overflow: ellipsis; white-space: nowrap; }
.affiliate-link button { flex: 0 0 auto; padding: 9px 11px; border: 0; border-radius: 9px; color: #061724; background: var(--green); cursor: pointer; font-weight: 850; }
.affiliate-referrals-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.affiliate-referrals-heading h3 { margin: 0; font-size: 0.83rem; }
.affiliate-referrals-heading span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; color: #2b1b02; background: #e7bb55; font-size: 0.6rem; font-weight: 900; }
.affiliate-referrals { display: grid; gap: 8px; margin-top: 10px; }
.affiliate-referrals article { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.1); }
.affiliate-referrals article > div { min-width: 0; }
.affiliate-referrals strong { display: block; font-size: 0.7rem; overflow-wrap: anywhere; }
.affiliate-referrals small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.56rem; }
.affiliate-referrals article > span { flex: 0 0 auto; padding: 5px 7px; border-radius: 8px; font-size: 0.55rem; font-weight: 900; }
.affiliate-referrals article > span.is-active { color: #061724; background: var(--green); }
.affiliate-referrals article > span.is-inactive { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.renewal-center { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.renewal-center-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.renewal-center-heading > div > span { color: #e7bb55; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.11em; }
.renewal-center-heading h2 { margin: 6px 0 0; font-size: 0.98rem; }
.renewal-center-heading > strong { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 7px; border-radius: 999px; color: #061724; background: var(--green); font-size: 0.64rem; }
.renewal-list { display: grid; gap: 8px; margin-top: 14px; }
.renewal-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0, 0, 0, 0.1); }
.renewal-row.is-soon { border-color: rgba(232, 185, 79, 0.22); }
.renewal-row.is-expired { border-color: rgba(255, 116, 72, 0.24); }
.renewal-row > div:first-child { min-width: 0; }
.renewal-row h3 { margin: 0; font-size: 0.74rem; overflow-wrap: anywhere; }
.renewal-row p { margin: 5px 0 0; color: var(--muted); font-size: 0.59rem; }
.renewal-row > div:last-child { display: grid; justify-items: end; flex: 0 0 auto; gap: 5px; }
.renewal-row > div:last-child strong { color: #8fd8ff; font-size: 0.7rem; }
.renewal-row.is-soon > div:last-child strong { color: #e7bb55; }
.renewal-row.is-expired > div:last-child strong { color: #ff9f82; }
.renewal-row > div:last-child span { color: var(--muted); font-size: 0.54rem; text-align: right; }
.renewal-more { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(41, 168, 255, 0.2); border-radius: 11px; color: #8fd8ff; background: rgba(41, 168, 255, 0.06); cursor: pointer; font-size: 0.66rem; font-weight: 900; }

.security-section { padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); }
.security-section h2 { margin-bottom: 8px; font-size: 1.05rem; }
.security-section > p { margin: 0 0 17px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.security-form { display: grid; gap: 12px; }
.security-form label { display: grid; gap: 6px; color: #bfd0cd; font-size: 0.7rem; font-weight: 800; }
.security-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--text); background: rgba(3, 14, 16, 0.65); font: inherit; }
.security-form input:focus { border-color: rgba(41, 168, 255, 0.5); box-shadow: 0 0 0 3px rgba(41, 168, 255, 0.08); }
.security-form > small { color: var(--muted); font-size: 0.65rem; }
.marketing-preference { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.12); }
.marketing-preference > div { min-width: 0; }
.marketing-preference > div > span { color: #e7bb55; font-size: 0.54rem; font-weight: 900; letter-spacing: 0.1em; }
.marketing-preference h3 { margin: 6px 0 5px; font-size: 0.84rem; }
.marketing-preference p { margin: 0; color: var(--muted); font-size: 0.66rem; line-height: 1.45; }
.marketing-toggle { flex: 0 0 auto; min-width: 76px; padding: 9px 10px; border: 1px solid rgba(41, 168, 255, 0.22); border-radius: 11px; color: #86d4ff; background: rgba(41, 168, 255, 0.075); cursor: pointer; font-size: 0.62rem; font-weight: 900; }
.marketing-preference.is-disabled .marketing-toggle { border-color: rgba(255, 116, 72, 0.2); color: #ffad93; background: rgba(255, 116, 72, 0.06); }
.marketing-toggle:disabled { cursor: wait; opacity: 0.6; }
.client-activity { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.client-activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.client-activity-heading > div > span { color: #e7bb55; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.11em; }
.client-activity-heading h2 { margin: 6px 0 0; font-size: 1rem; }
.client-activity-heading > strong { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; color: #061724; background: var(--green); font-size: 0.64rem; }
.client-activity-timeline { display: grid; gap: 0; margin-top: 16px; }
.client-activity-row { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.client-activity-row > i { width: 9px; height: 9px; margin-top: 4px; border: 2px solid #091917; border-radius: 50%; background: #e7bb55; box-shadow: 0 0 0 2px rgba(232, 185, 79, 0.16); }
.client-activity-row.is-payment > i, .client-activity-row.is-recharge > i { background: var(--green); box-shadow: 0 0 0 2px rgba(41, 168, 255, 0.16); }
.client-activity-row > div { min-width: 0; }
.client-activity-row h3 { margin: 0; font-size: 0.76rem; overflow-wrap: anywhere; }
.client-activity-row p { margin: 5px 0; color: var(--muted); font-size: 0.63rem; line-height: 1.4; overflow-wrap: anywhere; }
.client-activity-row small { color: #728985; font-size: 0.56rem; }
.client-activity-row > span { align-self: start; padding: 5px 7px; border-radius: 8px; color: #ffe2a1; background: rgba(232, 185, 79, 0.08); font-size: 0.55rem; font-weight: 900; }
.client-activity-row.is-payment > span, .client-activity-row.is-recharge > span { color: #8fd8ff; background: rgba(41, 168, 255, 0.08); }
.security-error { margin: 0; padding: 10px 11px; border: 1px solid rgba(255, 116, 72, 0.18); border-radius: 11px; color: #ffad93; background: rgba(255, 116, 72, 0.06); font-size: 0.7rem; }
.security-submit { padding: 13px 15px; border: 0; border-radius: 13px; color: #061724; background: var(--green); cursor: pointer; font-weight: 900; }
.security-submit:disabled { cursor: wait; opacity: 0.6; }

.ticket-section { display: grid; gap: 14px; }
.ticket-intro, .ticket-card, .admin-tickets { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.ticket-intro { padding: 19px; }
.ticket-intro h2 { margin-bottom: 8px; font-size: 1.05rem; }
.ticket-intro p { margin: 0 0 15px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.ticket-intro textarea, .ticket-compose textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(3, 14, 16, 0.62);
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.5;
}
.ticket-intro textarea:focus, .ticket-compose textarea:focus { border-color: rgba(41, 168, 255, 0.5); box-shadow: 0 0 0 3px rgba(41, 168, 255, 0.08); }
.ticket-primary, .ticket-secondary, .ticket-close { border-radius: 13px; cursor: pointer; font-weight: 850; }
.ticket-primary { padding: 12px 15px; border: 0; color: #061724; background: var(--green); }
.ticket-intro > .ticket-primary { width: 100%; margin-top: 10px; }
.ticket-secondary { padding: 12px 14px; border: 1px solid rgba(41, 168, 255, 0.28); color: #91d4ff; background: rgba(41, 168, 255, 0.08); }
.ticket-close { width: 100%; margin-top: 11px; padding: 10px 13px; border: 1px solid rgba(255, 116, 72, 0.2); color: #ffad93; background: rgba(255, 116, 72, 0.055); }
.ticket-primary:disabled, .ticket-secondary:disabled, .ticket-close:disabled { cursor: wait; opacity: 0.55; }
.ticket-card { overflow: hidden; padding: 17px; }
.ticket-card.is-closed { opacity: 0.72; }
.ticket-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ticket-header h2, .ticket-header h3 { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.ticket-header small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.65rem; line-height: 1.4; overflow-wrap: anywhere; }
.ticket-state { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; font-size: 0.61rem; font-weight: 900; }
.ticket-state.is-reply { color: #061724; background: var(--green); }
.ticket-state.is-waiting { color: #ffe1a0; background: rgba(232, 185, 79, 0.13); }
.ticket-state.is-read { color: #baf7d9; background: rgba(66, 217, 155, 0.18); }
.ticket-state.is-closed { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.ticket-thread { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(255, 255, 255, 0.055); border-radius: 15px; background: rgba(0, 0, 0, 0.12); }
.ticket-message { max-width: 91%; padding: 11px 12px; border-radius: 14px; }
.ticket-message.is-client { justify-self: end; border-bottom-right-radius: 4px; background: rgba(41, 168, 255, 0.13); }
.ticket-message.is-admin { justify-self: start; border: 1px solid rgba(232, 185, 79, 0.16); border-bottom-left-radius: 4px; background: rgba(232, 185, 79, 0.075); }
.ticket-message strong { display: block; color: #a8dfff; font-size: 0.62rem; }
.ticket-message.is-admin strong { color: #e7bb55; }
.ticket-message p { margin: 5px 0 7px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.78rem; line-height: 1.45; }
.ticket-message p a { color: #7fd0ff; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ticket-url-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 9px; }
.ticket-url-actions button, .ticket-wallet-request-action { min-height: 32px; padding: 6px 9px; border: 1px solid rgba(53, 174, 255, .3); border-radius: 9px; color: #a7ddff; background: rgba(28, 100, 146, .2); cursor: pointer; font-size: .62rem; font-weight: 900; }
.ticket-wallet-request-action { border-color: rgba(232, 185, 79, .32); color: #ffe09b; background: rgba(123, 90, 20, .2); }
.ticket-message time { display: block; color: var(--muted); font-size: 0.58rem; }
.ticket-message.has-trial-details { width: 100%; max-width: 100%; }
.ticket-trial-details { display: grid; gap: 8px; width: 100%; min-width: 0; margin: 10px 0 8px; padding: 11px; border: 1px solid rgba(78, 224, 167, .22); border-radius: 14px; background: rgba(4, 24, 21, .78); }
.ticket-trial-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(109, 188, 160, .14); }
.ticket-trial-heading span { color: #68e5ad; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.ticket-trial-heading h4 { margin: 4px 0 0; color: #f0fff9; font-size: 13px; }
.ticket-trial-heading > strong { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #073222 !important; background: #61dfa9; font-size: 9px !important; letter-spacing: .05em; }
.ticket-trial-details > h5 { margin: 8px 0 0; color: #dff9ee; font-size: 12px; }
.ticket-trial-details .service-secret-row { padding: 9px 10px; }
.ticket-trial-details .device-instruction-card { margin-top: 3px; }
.ticket-attachment { display: block; width: min(100%, 360px); max-height: 320px; margin: 9px 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px; object-fit: contain; cursor: zoom-in; background: rgba(0, 0, 0, 0.2); }
.ticket-attachments { display: grid; gap: 8px; width: min(100%, 520px); margin: 9px 0; }
.ticket-attachments .ticket-attachment { width: 100%; margin: 0; }
.ticket-attachments.is-multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticket-attachments.is-multiple .ticket-attachment { height: clamp(120px, 24vw, 220px); object-fit: cover; }
.ticket-attachment.is-loading { min-height: 90px; opacity: 0.38; }
.ticket-attachment-error { max-width: 360px; margin: 9px 0; padding: 9px 10px; border: 1px solid rgba(255, 118, 100, 0.24); border-radius: 10px; color: #ff9c90; background: rgba(255, 118, 100, 0.07); font-size: 0.63rem; line-height: 1.4; overflow-wrap: anywhere; }
body.has-image-zoom { overflow: hidden; }
.ticket-image-zoom { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 70px 16px 92px; background: rgba(1, 9, 12, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ticket-image-zoom-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.ticket-image-zoom-stage img { display: block; max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55); object-fit: contain; transform-origin: center; transition: transform 180ms ease; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.ticket-image-zoom-stage.is-zoomed img { cursor: zoom-out; }
.ticket-image-zoom-controls { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 1; display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(7, 27, 30, 0.94); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4); transform: translateX(-50%); }
.ticket-image-zoom-controls button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #f5fbfa; background: rgba(255, 255, 255, 0.08); font-size: 1.25rem; font-weight: 800; }
.ticket-image-zoom-controls button:disabled { opacity: 0.32; }
.ticket-image-zoom-controls .ticket-image-zoom-value { width: 62px; border-radius: 999px; color: #6ce6ae; font-size: 0.7rem; }
.ticket-image-zoom-controls .ticket-image-zoom-close { color: #071718; background: #54dfa0; }
.ticket-read-receipt { display: block; margin-top: 6px; font-size: 0.56rem; font-weight: 800; }
.ticket-read-receipt.is-read { color: #72e7ad; }
.ticket-read-receipt.is-unread { color: #dbb45e; }
.ticket-attachment-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px 10px; padding: 10px; border: 1px dashed rgba(41, 168, 255, 0.24); border-radius: 12px; background: rgba(41, 168, 255, 0.035); cursor: pointer; }
.ticket-attachment-field > span { padding: 7px 9px; border-radius: 9px; color: #9cdcff; background: rgba(41, 168, 255, 0.09); font-size: 0.62rem; font-weight: 900; }
.ticket-attachment-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ticket-attachment-field small { min-width: 0; color: var(--muted); font-size: 0.59rem; overflow-wrap: anywhere; }
.ticket-attachment-field small.is-error { color: #ff9c90; }
.ticket-compose { display: grid; gap: 9px; margin-top: 12px; }
.ticket-voucher-diagnostics { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ticket-voucher-diagnostics > summary { padding: 11px 2px 2px; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 700; }
.ticket-voucher-diagnostics[open] > summary { color: var(--text); }
.ticket-voucher-diagnostics > div { padding-top: 10px; }
.ticket-template-picker { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(41, 168, 255, .2); border-radius: 15px; background: rgba(9, 35, 42, .72); }
.ticket-template-picker label { display: grid; gap: 7px; color: #9ab6b0; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ticket-template-picker select { width: 100%; padding: 11px 12px; border: 1px solid rgba(41, 168, 255, .25); border-radius: 11px; color: #eafff8; background: #0a211f; outline: 0; }
.ticket-template-picker select:focus { border-color: rgba(41, 168, 255, .65); box-shadow: 0 0 0 3px rgba(41, 168, 255, .08); }
.ticket-template-preview { max-height: 115px; margin: 0; overflow: auto; color: #b7cbc5; font-size: .75rem; line-height: 1.55; white-space: pre-wrap; }
.ticket-template-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-clear-text { padding: 10px 12px; border: 1px solid rgba(255, 116, 72, .3); border-radius: 11px; color: #ffad92; background: rgba(255, 116, 72, .08); cursor: pointer; font-weight: 850; }
.admin-ticket-templates { display: grid; gap: 15px; }
.admin-template-eyebrow { display: block; margin-bottom: 4px; color: #5ae7a4; font-size: .58rem; font-weight: 950; letter-spacing: .16em; }
.admin-template-install { padding: 18px; border: 1px solid rgba(239, 189, 79, .28); border-radius: 18px; color: #d6c99e; background: rgba(88, 67, 21, .18); }
.admin-template-install p { margin: 8px 0; }
.admin-template-install code { display: block; overflow-wrap: anywhere; color: #ffe095; }
.admin-template-form { display: grid; gap: 13px; padding: 18px; border: 1px solid rgba(90, 231, 164, .2); border-radius: 20px; background: linear-gradient(145deg, rgba(11, 43, 35, .95), rgba(7, 27, 24, .97)); }
.admin-template-form h3 { margin: 0; }
.admin-template-form label { display: grid; gap: 7px; color: #91aaa5; font-size: .7rem; font-weight: 850; }
.admin-template-form input, .admin-template-form textarea { width: 100%; padding: 12px 13px; border: 1px solid rgba(90, 231, 164, .2); border-radius: 12px; color: #edf9f4; background: rgba(3, 19, 16, .78); outline: 0; }
.admin-template-form textarea { resize: vertical; }
.admin-template-form input:focus, .admin-template-form textarea:focus { border-color: rgba(90, 231, 164, .55); box-shadow: 0 0 0 3px rgba(90, 231, 164, .08); }
.admin-template-form-actions, .admin-template-card > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-template-list { display: grid; gap: 11px; }
.admin-template-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(10, 31, 27, .82); }
.admin-template-card h3 { margin: 0 0 7px; font-size: .95rem; }
.admin-template-card p { max-height: 130px; margin: 0; overflow: auto; color: #a9bfba; font-size: .75rem; line-height: 1.55; white-space: pre-wrap; }
@media (max-width: 620px) { .admin-template-card { grid-template-columns: 1fr; } .admin-template-card > div:last-child button { flex: 1; } .ticket-template-actions button { flex: 1; } }
.ticket-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.ticket-trial-button { min-height: 42px; border: 1px solid rgba(88, 224, 174, .32); border-radius: 12px; color: #08231b; background: linear-gradient(135deg, #72e7b8, #3bce99); font-size: .66rem; font-weight: 900; }
.ticket-trial-button:disabled { opacity: .38; }
.ticket-waiting-copy { margin: 12px 0 0; padding: 11px 12px; border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.035); font-size: 0.72rem; line-height: 1.45; }
.ticket-auto-close-notice { margin: 12px 0 0; padding: 12px 14px; border: 1px solid rgba(232, 185, 79, 0.42); border-radius: 12px; color: #ffe09a; background: rgba(232, 185, 79, 0.1); font-size: 0.72rem; font-weight: 800; line-height: 1.45; }
.admin-tickets { margin-top: 20px; padding: 18px; }
.admin-tickets-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-tickets-heading h2 { margin: 0; font-size: 1rem; }
.admin-tickets-heading span { padding: 6px 9px; border-radius: 999px; color: #8fd8ff; background: rgba(41, 168, 255, 0.08); font-size: 0.65rem; font-weight: 850; }
.admin-ticket-card { margin-top: 11px; background: rgba(255, 255, 255, 0.018); }
.ticket-client-profile-action { min-height: 42px; padding: 9px 13px; border: 1px solid rgba(72, 205, 255, .28); border-radius: 12px; color: #a9e8ff; background: linear-gradient(135deg, rgba(24, 105, 136, .25), rgba(23, 72, 94, .18)); font-size: .66rem; font-weight: 900; letter-spacing: .015em; }
.ticket-client-profile-action:disabled { cursor: wait; opacity: .55; }
.ticket-closed-actions { margin-top: 13px; }

.cart-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(150deg, var(--surface-strong), var(--surface));
    box-shadow: var(--shadow);
}

.cart-card-main { padding: 22px; }
.cart-card-top { display: flex; justify-content: space-between; gap: 18px; }
.cart-card h2 { margin: 8px 0; font-size: 1.25rem; }
.cart-card-description { margin-bottom: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.cart-price { flex: 0 0 auto; color: #e7bb55; font-size: 1.35rem; }
.cart-period { display: inline-flex; margin-top: 18px; padding: 7px 10px; border: 1px solid rgba(41, 168, 255, 0.22); border-radius: 10px; color: #8ecfff; background: rgba(41, 168, 255, 0.07); font-size: 0.76rem; font-weight: 800; }
.cart-expiry { margin: 16px 0 0; color: var(--muted); font-size: 0.75rem; }
.cart-actions { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.1); }
.danger-button { padding: 14px; border: 1px solid rgba(255, 116, 72, 0.25); border-radius: 14px; color: #ff9b7c; background: rgba(255, 116, 72, 0.07); cursor: pointer; font-weight: 800; }
.checkout-preview { padding: 14px; border: 0; border-radius: 14px; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); cursor: pointer; font-weight: 900; box-shadow: 0 10px 24px rgba(47, 216, 141, 0.16); }
.checkout-preview:disabled { opacity: 0.62; cursor: wait; }
.cart-empty-action { margin-top: 18px; }

.checkout-review { margin-top: 16px; padding: 20px; border: 1px solid rgba(90, 231, 164, 0.22); border-radius: 24px; background: linear-gradient(145deg, rgba(14, 43, 37, 0.96), rgba(7, 24, 23, 0.98)); box-shadow: var(--shadow); }
.checkout-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.checkout-review-heading h2 { margin: 8px 0 0; font-size: 1.2rem; }
.checkout-verified { display: inline-flex; padding: 6px 8px; border: 1px solid rgba(90, 231, 164, 0.24); border-radius: 999px; color: #64e7aa; background: rgba(90, 231, 164, 0.08); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.09em; }
.checkout-edit { padding: 8px 10px; border: 0; color: #91aaa5; background: transparent; cursor: pointer; font-weight: 800; }
.checkout-review-product { display: flex; flex-direction: column; gap: 5px; margin-top: 20px; padding: 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
.checkout-review-product strong { font-size: 0.96rem; }
.checkout-review-product span { color: var(--muted); font-size: 0.76rem; }
.checkout-review-figures { display: grid; gap: 11px; margin-top: 18px; }
.checkout-review-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.8rem; }
.checkout-review-row strong { color: #e7f5f1; font-size: 0.86rem; }
.checkout-review-row.is-emphasis { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #e7f5f1; }
.checkout-review-row.is-emphasis strong { color: #e7bb55; font-size: 1.05rem; }
.checkout-status { margin-top: 18px; padding: 13px 14px; border-radius: 14px; font-size: 0.78rem; font-weight: 750; line-height: 1.45; }
.checkout-status.is-ready { color: #81efb9; background: rgba(47, 216, 141, 0.09); }
.checkout-status.is-insufficient { color: #ffac90; background: rgba(255, 116, 72, 0.09); }
.checkout-confirmation { width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 14px; color: #061714; background: linear-gradient(135deg, #5ae7a4, #2fd88d); cursor: pointer; font-weight: 900; }
.checkout-confirmation:disabled { border: 1px solid rgba(255, 255, 255, 0.06); color: #708985; background: rgba(255, 255, 255, 0.035); cursor: not-allowed; }
.checkout-confirmation-reason { margin: 14px 2px 0; color: var(--muted); font-size: 0.73rem; line-height: 1.45; }
.telegram-stars-cost-notice { margin: 14px 0 0; padding: 12px 13px; border: 1px solid rgba(232, 185, 79, .27); border-radius: 13px; color: #ffe3a5; background: rgba(232, 185, 79, .075); font-size: .7rem; font-weight: 700; line-height: 1.5; }
.checkout-panel-field { display: grid; gap: 8px; margin-top: 16px; padding: 15px; border: 1px solid rgba(41, 168, 255, 0.16); border-radius: 16px; background: rgba(41, 168, 255, 0.045); text-align: left; }
.checkout-panel-field > span { color: #dcece8; font-size: 0.8rem; font-weight: 850; }
.checkout-panel-field input { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; outline: none; color: #effaf7; background: rgba(3, 15, 17, 0.72); font: inherit; }
.checkout-panel-field input:focus { border-color: rgba(90, 231, 164, 0.55); box-shadow: 0 0 0 3px rgba(90, 231, 164, 0.08); }
.checkout-panel-field small { color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.checkout-coupon-field, .checkout-device-field { display: grid; gap: 10px; margin-top: 16px; padding: 15px; border: 1px solid rgba(232, 185, 79, 0.18); border-radius: 16px; background: rgba(232, 185, 79, 0.04); text-align: left; }
.checkout-coupon-field > div:first-child strong, .checkout-device-field label > span { display: block; color: #f1e3be; font-size: 0.78rem; font-weight: 850; }
.checkout-coupon-field > div:first-child small, .checkout-device-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.65rem; line-height: 1.4; }
.checkout-coupon-field > div:last-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.checkout-coupon-field input, .checkout-device-field input, .checkout-device-field select { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px; outline: none; color: var(--text); background: rgba(3, 15, 17, 0.72); font: inherit; font-size: 0.72rem; }
.checkout-coupon-field button { padding: 11px 13px; border: 0; border-radius: 11px; color: #071312; background: #e7bb55; cursor: pointer; font: inherit; font-size: 0.68rem; font-weight: 900; }
.checkout-coupon-field button:disabled { cursor: wait; opacity: 0.6; }
.checkout-device-field { border-color: rgba(41, 168, 255, 0.18); background: rgba(41, 168, 255, 0.04); }
.checkout-device-field label { display: grid; gap: 7px; }
.checkout-mac-field { margin-top: 2px; }

.purchase-success { padding: 26px 20px; border: 1px solid rgba(90, 231, 164, 0.24); border-radius: 26px; text-align: center; background: linear-gradient(145deg, rgba(14, 43, 37, 0.98), rgba(7, 24, 23, 0.98)); box-shadow: var(--shadow); }
.purchase-success-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; color: #062018; background: linear-gradient(135deg, #72efb5, #2fd88d); font-size: 2rem; font-weight: 950; box-shadow: 0 14px 32px rgba(47, 216, 141, 0.22); }
.purchase-success h2 { margin: 8px 0 0; font-size: 1.55rem; }
.purchase-success-copy { margin: 14px auto 0; max-width: 440px; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.purchase-success-details { display: grid; gap: 11px; margin-top: 22px; padding: 17px; border-radius: 17px; text-align: left; background: rgba(255, 255, 255, 0.035); }
.purchase-success-action { width: 100%; margin-top: 18px; }

.sheet-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: calc(40px + var(--tg-safe-top));
    background: rgba(1, 8, 12, 0.72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.product-sheet {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100vh - 38px - var(--tg-safe-top));
    overflow-y: auto;
    padding: 34px 22px calc(24px + var(--tg-safe-bottom));
    border: 1px solid rgba(41, 168, 255, 0.2);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(41, 168, 255, 0.12), transparent 32%),
        linear-gradient(160deg, #102435, #081512 72%);
    box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.5);
    animation: sheet-in 220ms ease both;
}

@keyframes sheet-in {
    from { transform: translateY(26px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sheet-handle { position: absolute; top: 10px; left: 50%; width: 38px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.sheet-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, 0.055); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.product-sheet h2 { max-width: calc(100% - 50px); margin-bottom: 10px; font-size: clamp(1.55rem, 7vw, 2.2rem); letter-spacing: -0.035em; }
.sheet-description { color: var(--muted); line-height: 1.55; white-space: pre-line; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.meta-chip { padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; color: #c2d2cf; background: var(--surface-soft); font-size: 0.75rem; }
.period-section { padding-top: 20px; border-top: 1px solid var(--line); }
.period-label { margin-bottom: 11px; color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.period-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.period-option { padding: 13px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: var(--surface-soft); cursor: pointer; text-align: left; }
.period-option span { display: block; color: var(--muted); font-size: 0.72rem; }
.period-option strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.period-option.is-selected { border-color: rgba(41, 168, 255, 0.58); background: rgba(41, 168, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(41, 168, 255, 0.12); }
.sheet-total { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 14px; color: var(--muted); }
.sheet-total strong { color: #e7bb55; font-size: 1.45rem; }
.sheet-add-button { width: 100%; justify-content: center; }
.sheet-add-button:disabled { cursor: not-allowed; filter: grayscale(0.55); opacity: 0.55; }

.toast {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 13px;
    width: min(calc(100% - 32px), 540px);
    max-height: min(70vh, 440px);
    transform: translate(-50%, -50%);
    padding: 17px;
    border: 1px solid transparent;
    border-radius: 19px;
    color: #f7fffb;
    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.62), 0 0 0 9999px rgba(0, 9, 9, 0.34);
    text-align: left;
    animation: toast-appear .2s ease-out both;
}
.toast.is-success { border-color: rgba(99, 244, 171, .58); background: linear-gradient(145deg, rgba(13, 76, 55, .99), rgba(5, 43, 34, .99)); }
.toast.is-error { border-color: rgba(255, 124, 112, .68); background: linear-gradient(145deg, rgba(111, 28, 31, .99), rgba(67, 17, 22, .99)); }
.toast-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #062018; background: #67efae; font-size: 1.4rem; font-weight: 950; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.toast.is-error .toast-icon { color: #390b0d; background: #ff8b7e; }
.toast-copy { min-width: 0; min-height: 0; max-height: 60vh; overflow-y: auto; line-height: 1.45; }
.toast-copy strong { display: block; margin-bottom: 4px; color: #ffffff; font-size: .88rem; font-weight: 950; }
.toast-copy > span { display: block; color: rgba(255, 255, 255, .92); font-size: .76rem; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast-close { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .14); cursor: pointer; font-size: 1.25rem; line-height: 1; }
.toast-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes toast-appear {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.97); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 420px) {
    .toast { grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 10px; padding: 14px; }
    .toast-icon { width: 42px; height: 42px; font-size: 1.2rem; }
    .toast-close { width: 30px; height: 30px; }
}

.error-panel { padding: 72px 24px; text-align: center; }
.error-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; color: #071312; background: var(--orange); font-size: 1.4rem; font-weight: 900; }
.error-panel p { color: var(--muted); }
.error-panel.is-maintenance .error-mark { color: #071312; background: #e7bb55; box-shadow: 0 0 0 10px rgba(231, 187, 85, .07); }
.error-panel.is-maintenance h2 { max-width: 360px; margin-right: auto; margin-left: auto; }

.bottom-nav {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: calc(12px + var(--tg-safe-bottom));
    width: min(calc(100% - 28px), 724px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(10, 25, 23, 0.88);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.nav-item { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 8px 4px; border: 0; border-radius: 15px; color: #718783; background: transparent; cursor: pointer; font-size: 0.65rem; }
.nav-item.is-active { color: var(--green); background: rgba(41, 168, 255, 0.07); }
.nav-icon { height: 20px; font-size: 1.35rem; line-height: 17px; }
.grid-icon { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; align-content: center; }
.grid-icon i { width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 2px; }
.user-icon { position: relative; width: 18px; border: 1.5px solid currentColor; border-radius: 9px 9px 5px 5px; border-top-color: transparent; }
.user-icon::before { content: ""; position: absolute; width: 7px; height: 7px; left: 4px; top: -5px; border: 1.5px solid currentColor; border-radius: 50%; }
.cart-icon { position: relative; width: 20px; border-bottom: 1.5px solid currentColor; }
.cart-icon::before { content: ""; position: absolute; width: 13px; height: 9px; left: 3px; top: 1px; border: 1.5px solid currentColor; border-top: 0; transform: skewX(-8deg); }
.cart-icon::after, .cart-icon i::after { content: ""; position: absolute; width: 3px; height: 3px; bottom: -5px; border: 1.5px solid currentColor; border-radius: 50%; }
.cart-icon::after { left: 4px; }
.cart-icon i::after { right: 2px; }
.cart-badge { position: absolute; top: 3px; right: calc(50% - 23px); display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #091917; border-radius: 999px; color: #06131b; background: #e7bb55; font-size: 0.58rem; font-weight: 900; }

.skeleton { overflow: hidden; position: relative; border-radius: 20px; background: rgba(255,255,255,.045); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.4s infinite; }
.product-skeleton { height: 196px; }
.catalog-skeleton { height: 180px; }
.account-skeleton { height: 270px; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

@media (min-width: 640px) {
    .app-shell { padding-left: 28px; padding-right: 28px; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-client-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-row { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 390px) {
    .app-shell { padding-left: 14px; padding-right: 14px; }
    .hero { min-height: 350px; padding: 38px 20px 26px; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-grid .product-card:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.section-navigator {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 74px);
    z-index: 30;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    border: 1px solid rgba(92, 222, 176, .26);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(12, 43, 38, .98), rgba(6, 24, 22, .98));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .025);
    backdrop-filter: blur(16px);
    overflow: hidden;
}
.section-navigator[open] { overflow: visible; box-shadow: 0 24px 70px rgba(0, 0, 0, .52); }
.section-navigator summary, .section-navigator-trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 11px 14px; cursor: pointer; list-style: none; user-select: none; }
.section-navigator summary::-webkit-details-marker { display: none; }
.section-navigator-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.section-navigator-identity > i { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid rgba(75, 224, 166, .32); border-radius: 15px; color: #071c17; background: linear-gradient(135deg, #58e3aa, #26b982); box-shadow: 0 8px 22px rgba(38, 185, 130, .2); font-style: normal; font-size: 22px; font-weight: 950; }
.section-navigator-identity > span { display: grid; gap: 2px; min-width: 0; }
.section-navigator-identity small { color: #6fdcb4; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.section-navigator-identity strong { overflow: hidden; color: #f5fffb; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.section-navigator-side { display: flex; align-items: center; gap: 9px; color: #89a89f; }
.section-navigator-side small { font-size: 11px; font-weight: 750; }
.section-navigator-side b { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(132, 190, 173, .2); border-radius: 11px; color: #d8eee7; font-size: 20px; transition: transform .2s ease; }
.section-navigator[open] .section-navigator-side b { transform: rotate(180deg); }
.section-navigator-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 15px; border: 1px solid rgba(86, 221, 170, .26); border-radius: 22px; background: rgba(6, 25, 22, .99); box-shadow: 0 24px 70px rgba(0, 0, 0, .58); }
.section-navigator-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.section-navigator-heading strong { color: #f3fff9; font-size: 15px; }
.section-navigator-heading small { color: #76958c; font-size: 10px; }
.section-navigator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: min(54vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.section-navigator-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 9px; min-height: 54px; padding: 8px 10px; border: 1px solid rgba(121, 173, 157, .14); border-radius: 15px; color: #c6ddd6; background: rgba(17, 48, 42, .62); text-align: left; }
.section-navigator-option i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #7eddb9; background: rgba(52, 166, 124, .13); font-style: normal; font-weight: 900; }
.section-navigator-option span { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.section-navigator-option b { color: #65857b; text-align: right; }
.section-navigator-option.is-active { border-color: rgba(68, 224, 163, .42); color: #f5fffb; background: linear-gradient(135deg, rgba(35, 130, 96, .7), rgba(18, 70, 58, .72)); }
.section-navigator-option.is-active i { color: #062119; background: #54dfa7; }
.section-navigator-option:active { transform: scale(.985); }
.section-navigator.is-account .section-navigator-trigger {
    width: 100%;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}
.client-menu-portal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
}
.client-menu-portal.is-open { visibility: visible; pointer-events: auto; }
.client-menu-portal .section-navigator-scrim {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .2s ease;
}
.client-menu-portal.is-open .section-navigator-scrim { opacity: 1; }
.client-menu-portal .section-navigator-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(86vw, 340px);
    max-width: 340px;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-right: 1px solid rgba(86, 221, 170, .28);
    border-radius: 0 24px 24px 0;
    background: linear-gradient(180deg, #0a211c, #061713);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .58);
    opacity: .65;
    transform: translateX(-104%);
    transition: transform .22s ease, opacity .22s ease;
}
.client-menu-portal.is-open .section-navigator-panel { opacity: 1; transform: none; }
.client-menu-portal .section-navigator-heading {
    position: sticky;
    top: calc(-20px - env(safe-area-inset-top, 0px));
    z-index: 2;
    align-items: center;
    margin: calc(-20px - env(safe-area-inset-top, 0px)) -14px 12px;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 14px 13px;
    border-bottom: 1px solid rgba(100, 173, 149, .17);
    background: rgba(8, 31, 26, .97);
    backdrop-filter: blur(14px);
}
.client-menu-portal .section-navigator-heading > span { display: grid; gap: 3px; min-width: 0; }
.client-menu-portal .section-navigator-heading > span small { color: #78998e; font-size: 10px; }
.section-navigator-close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(126, 187, 166, .22);
    border-radius: 12px;
    color: #e8f8f2;
    background: rgba(18, 57, 47, .78);
    font-size: 25px;
    line-height: 1;
}
.client-menu-portal .section-navigator-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
}
.client-menu-portal .section-navigator-option { min-height: 58px; }
@media (max-width: 430px) {
    .section-navigator-side small { display: none; }
    .section-navigator-panel { padding: 12px; }
    .section-navigator-grid { grid-template-columns: 1fr; max-height: 58vh; }
}

body[data-admin-web="1"] {
    overscroll-behavior: auto;
}
body[data-admin-web="1"] .app-shell {
    width: min(100%, 1480px);
    padding-right: clamp(16px, 3vw, 46px);
    padding-left: clamp(16px, 3vw, 46px);
}
body[data-admin-web="1"] .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 76px;
    margin: 0 calc(clamp(16px, 3vw, 46px) * -1) 4px;
    padding: 0 clamp(16px, 3vw, 46px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(7, 19, 18, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
body[data-admin-web="1"] .admin-web-logout {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 129, 104, .28);
    border-radius: 12px;
    color: #ffb39f;
    background: rgba(97, 34, 29, .28);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}
body[data-admin-web="1"] .admin-web-logout-form { margin: 0; }
body[data-admin-web="1"] #view-admin > .page-title,
body[data-admin-web="1"] #view-admin > .admin-welcome {
    max-width: 980px;
}
body[data-admin-web="1"] .admin-tab-content {
    min-width: 0;
}
@media (min-width: 980px) {
    body[data-admin-web="1"] #admin-dashboard {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
    body[data-admin-web="1"] .section-navigator.is-admin {
        top: 94px;
        margin: 0;
        overflow: hidden;
    }
    body[data-admin-web="1"] .section-navigator.is-admin > summary {
        min-height: 76px;
        cursor: default;
        pointer-events: none;
    }
    body[data-admin-web="1"] .section-navigator.is-admin .section-navigator-side {
        display: none;
    }
    body[data-admin-web="1"] .section-navigator.is-admin .section-navigator-panel {
        position: static;
        display: block;
        padding: 12px;
        border: 0;
        border-top: 1px solid rgba(86, 221, 170, .13);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    body[data-admin-web="1"] .section-navigator.is-admin .section-navigator-heading {
        display: none;
    }
    body[data-admin-web="1"] .section-navigator.is-admin .section-navigator-grid {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 218px);
    }
    body[data-admin-web="1"] .admin-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    body[data-admin-web="1"] .topbar {
        height: 66px;
    }
    body[data-admin-web="1"] .brand-name {
        font-size: .9rem;
    }
    body[data-admin-web="1"] .admin-web-logout {
        padding: 7px 10px;
        font-size: 11px;
    }
    body[data-admin-web="1"] .avatar {
        display: none;
    }
}
.app-version { display: block; margin-top: 14px; color: #83a19a; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.auth-recover-toggle, .auth-recover-back { justify-self: center; margin-top: 4px; }
.admin-managed-entity { padding: 10px 0; border-bottom: 1px solid rgba(126, 177, 164, .12); }
.admin-affiliate-credits { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.admin-affiliate-credits summary { display: list-item; cursor: pointer; font-weight: 800; }
.admin-affiliate-credits summary strong { display: inline-block; margin-inline-start: .65em; color: var(--green); white-space: nowrap; }
.admin-affiliate-credits ul { margin: 10px 0 0; padding: 0; list-style: none; }
.admin-affiliate-credits li { display: flex; justify-content: space-between; align-items: start; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-affiliate-credits li strong { flex-shrink: 0; white-space: nowrap; }
.admin-affiliate-credits small, .admin-affiliate-credits p { display: block; color: var(--muted); font-size: .8em; }
.admin-affiliate-credits p { margin: 10px 0 0; }
.admin-service-client-note { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-size: .8rem; }
.admin-service-client-note p { margin: 5px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-managed-service.is-separated-service { margin: 13px 0; padding: 14px; border: 1px solid rgba(75, 211, 161, .2); border-left: 4px solid hsl(calc(151 + (var(--service-index) * 36)) 62% 53%); border-radius: 16px; background: linear-gradient(145deg, rgba(12, 45, 38, .84), rgba(6, 27, 24, .9)); box-shadow: 0 12px 26px rgba(0, 0, 0, .15); }
.admin-service-credentials { display: grid; gap: 7px; margin: 9px 0 2px; padding: 10px; border: 1px solid rgba(69, 204, 155, .17); border-radius: 13px; background: rgba(7, 31, 27, .58); }
.admin-service-credential { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.admin-service-credential > div { display: grid; min-width: 0; gap: 2px; }
.admin-service-credential span { color: #7f9e95; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.admin-service-credential code { overflow: hidden; color: #e9fff7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-service-credential button { flex: 0 0 auto; min-height: 32px; padding: 6px 9px; border: 1px solid rgba(78, 220, 167, .24); border-radius: 9px; color: #a9f2d4; background: rgba(32, 105, 82, .38); font-size: 10.5px; font-weight: 900; }
.admin-entity-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 2px; }
.admin-entity-actions button { min-height: 38px; padding: 8px 11px; border: 1px solid rgba(80, 213, 165, .25); border-radius: 11px; color: #dffcf2; background: rgba(24, 70, 59, .55); font-weight: 800; }
.admin-entity-actions button.is-danger { border-color: rgba(255, 112, 91, .36); color: #ffad9b; background: rgba(96, 38, 31, .34); }
.admin-free-upgrade-control { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; border: 1px solid rgba(66, 217, 155, .28); border-radius: 12px; background: rgba(19, 62, 49, .48); }
.admin-free-upgrade-control label { grid-column: 1 / -1; color: #92b9aa; font-size: .68rem; font-weight: 800; }
.admin-free-upgrade-control select { min-width: 0; padding: 9px 10px; border: 1px solid rgba(80, 213, 165, .28); border-radius: 9px; color: #eafff7; background: #0b241d; }
.admin-free-upgrade-control button.is-upgrade { color: #062016; background: var(--green); }
@media (max-width: 620px) { .admin-free-upgrade-control { grid-template-columns: 1fr; } }
.admin-entity-actions button:disabled { opacity: .38; }
.admin-invoice-protected { margin: 8px 0 2px; padding: 9px 11px; border: 1px solid rgba(86, 202, 161, .15); border-radius: 11px; color: #91aaa2; background: rgba(11, 42, 36, .46); font-size: 11px; font-weight: 750; }
@media (max-width: 430px) {
    .admin-service-credential code { max-width: 54vw; }
}
.admin-trial-card { display: grid; gap: 11px; margin-bottom: 20px; padding: 18px; border: 1px solid rgba(49, 216, 154, .25); border-radius: 20px; background: linear-gradient(145deg, rgba(11, 48, 41, .95), rgba(7, 28, 26, .96)); }
.admin-trial-card span { color: #50dda4; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.admin-trial-card h3 { margin: 5px 0; color: #f2fff9; }
.admin-trial-card p { margin: 0; color: #9ab3ac; }
.admin-trial-card input { min-height: 46px; padding: 0 13px; border: 1px solid rgba(129, 187, 171, .22); border-radius: 13px; color: #fff; background: rgba(4, 20, 18, .8); }
.guest-account-access { display: grid; gap: 18px; margin-bottom: 18px; padding: 20px; border: 1px solid rgba(61, 222, 160, .28); border-radius: 22px; background: linear-gradient(145deg, rgba(13, 52, 44, .96), rgba(7, 27, 25, .98)); box-shadow: 0 18px 42px rgba(0, 0, 0, .22); }
.guest-account-access span { color: #50dda4; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.guest-account-access h2 { margin: 6px 0 7px; color: #f4fff9; }
.guest-account-access p { margin: 0; color: #9fb8b1; line-height: 1.55; }
.guest-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guest-account-actions button { min-height: 48px; }
@media (max-width: 420px) { .guest-account-actions { grid-template-columns: 1fr; } }
.device-instruction-card { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 100%; min-width: 0; margin-top: 9px; padding: 12px 13px; overflow: hidden; border: 1px solid rgba(84, 192, 157, .2); border-radius: 15px; background: rgba(5, 26, 23, .72); }
.device-instruction-card + .device-instruction-card { margin-top: 12px; }
.device-description-html { order: 1; width: 100%; padding-bottom: 8px; border-bottom: 1px solid rgba(112, 179, 158, .14); font-size: 13px; font-weight: 700; }
.device-template-content { order: 2; display: block; width: 100%; max-width: 100%; overflow: hidden; font-size: 12.5px; white-space: normal; word-break: break-word; }
.device-description-html, .device-template-content { min-width: 0; color: #c2d8d1; line-height: 1.55; overflow-wrap: anywhere; }
.device-description-html > :first-child, .device-template-content > :first-child { margin-top: 0; }
.device-description-html > :last-child, .device-template-content > :last-child { margin-bottom: 0; }
.device-template-content > ol { padding-inline-start: 0; list-style-position: inside; }
.device-template-content > ol > li + li { margin-top: 7px; }
.device-open-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin: 3px 2px; padding: 6px 11px; border: 1px solid rgba(77, 227, 169, .38); border-radius: 10px; color: #062018; background: linear-gradient(135deg, #5ce3ae, #35c88f); box-shadow: 0 6px 16px rgba(45, 195, 137, .14); font-size: 11.5px; font-weight: 900; line-height: 1; vertical-align: middle; }
.device-copy-value { display: inline-flex; align-items: center; gap: 5px; width: auto; max-width: calc(100% - 6px); min-width: 0; margin: 3px 2px; padding: 4px 4px 4px 8px; border: 1px solid rgba(119, 183, 163, .22); border-radius: 10px; background: rgba(10, 42, 36, .88); vertical-align: middle; }
.device-copy-value code { min-width: 0; max-width: min(54vw, 260px); overflow: hidden; color: #eefbf6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.device-template-content > ol .device-copy-value code { white-space: normal; overflow-wrap: anywhere; }
.device-copy-value button { flex: 0 0 auto; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 8px; color: #0a2a20; background: #55dda8; font-size: 10.5px; font-weight: 900; line-height: 1; }
@media (max-width: 420px) {
    .device-instruction-card { padding: 11px; }
    .device-description-html { font-size: 12.5px; }
    .device-template-content { font-size: 12px; }
    .device-copy-value code { max-width: 48vw; }
}
.service-app-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 18px; padding: 15px; border: 1px solid rgba(76, 218, 166, .24); border-radius: 18px; background: linear-gradient(145deg, rgba(9, 43, 36, .96), rgba(5, 26, 24, .98)); }
.service-app-tools-heading { display: grid; gap: 5px; }
.service-app-tools-heading span { color: #58dfa9; font-size: 9.5px; font-weight: 900; letter-spacing: .15em; }
.service-app-tools-heading h3 { margin: 3px 0 0; color: #f1fff9; font-size: 17px; }
.service-app-tools-heading p { margin: 0; color: #91aaa2; font-size: 12px; line-height: 1.45; }
.service-app-tool-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.service-app-tool-button { min-height: 43px; padding: 9px 12px; border: 1px solid rgba(81, 223, 171, .28); border-radius: 12px; color: #dffbf1; background: rgba(22, 78, 63, .58); font-size: 12px; font-weight: 900; }
.service-app-tool-button.is-instructions { border-color: rgba(83, 172, 235, .3); color: #b9e3ff; background: rgba(22, 65, 93, .48); }
.service-app-tool-button:active { transform: translateY(1px); }
.app-instructions-open { overflow: hidden; }
.app-instructions-overlay { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: rgba(1, 10, 9, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-instructions-dialog { width: min(760px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(76, 218, 166, .28); border-radius: 22px; background: linear-gradient(155deg, #0a211c, #061512 62%); box-shadow: 0 28px 90px rgba(0, 0, 0, .58); }
.app-instructions-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid rgba(92, 171, 144, .18); background: rgba(7, 27, 23, .94); backdrop-filter: blur(12px); }
.app-instructions-head div { display: grid; gap: 3px; }
.app-instructions-head span { color: #55dda8; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.app-instructions-head h2 { margin: 0; color: #f3fff9; font-size: 19px; }
.app-instructions-head button { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(142, 190, 174, .24); border-radius: 11px; color: #fff; background: rgba(20, 57, 47, .72); font-size: 23px; }
.app-instructions-body { display: grid; gap: 14px; padding: 16px; }
.app-instructions-intro, .app-guide-help { margin: 0; color: #9eb8af; font-size: 12.5px; line-height: 1.55; }
.app-guide-section { display: grid; gap: 12px; padding: 15px; border: 1px solid rgba(69, 205, 154, .22); border-radius: 17px; background: rgba(7, 35, 29, .78); }
.app-guide-section.is-firestick { border-color: rgba(241, 183, 66, .25); background: rgba(41, 33, 15, .36); }
.app-guide-title { display: grid; gap: 4px; }
.app-guide-title b { color: #61e1ad; font-size: 9px; letter-spacing: .15em; }
.app-guide-section.is-firestick .app-guide-title b { color: #f0c45c; }
.app-guide-title h3 { margin: 0; color: #f0fff9; font-size: 15px; }
.app-guide-steps { display: grid; gap: 9px; margin: 0; padding-left: 22px; color: #c7dbd4; font-size: 12.5px; line-height: 1.55; }
.app-guide-steps li::marker { color: #55dda8; font-weight: 900; }
.app-guide-section img { display: block; width: 100%; max-height: 330px; border: 1px solid rgba(127, 179, 162, .18); border-radius: 13px; background: #0b1714; object-fit: contain; }
.app-guide-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 7px 7px 11px; border: 1px solid rgba(78, 218, 165, .3); border-radius: 12px; background: rgba(9, 48, 39, .9); }
.app-guide-copy code { min-width: 0; overflow: hidden; color: #edfff8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-guide-copy button { min-height: 34px; padding: 6px 11px; border: 0; border-radius: 9px; color: #062218; background: #55dda8; font-size: 10.5px; font-weight: 900; }
.app-guide-help { padding: 12px; border: 1px solid rgba(79, 154, 207, .22); border-radius: 12px; color: #b8d9ee; background: rgba(20, 55, 78, .32); }
@media (max-width: 440px) {
    .app-instructions-overlay { padding-inline: 7px; }
    .app-instructions-dialog { border-radius: 18px; }
    .app-instructions-head, .app-instructions-body { padding: 13px; }
    .app-guide-section { padding: 12px; }
    .app-guide-section img { max-height: 230px; }
}
.service-app-form-host:empty { display: none; }

.admin-mismatch-modal { position: fixed; inset: 0; z-index: 15000; display: grid; place-items: center; padding: 18px; background: rgba(3, 8, 8, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.admin-mismatch-dialog { width: min(470px, 100%); padding: 24px; border: 1px solid rgba(255, 112, 92, .58); border-radius: 23px; background: radial-gradient(circle at 100% 0, rgba(185, 50, 35, .24), transparent 46%), #10201d; box-shadow: 0 28px 90px rgba(0,0,0,.64); }
.admin-mismatch-dialog > span { color: #ff897a; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.admin-mismatch-dialog h2 { margin: 10px 0; color: #fff; font-size: 23px; }
.admin-mismatch-dialog p { margin: 0; color: #bdcec8; line-height: 1.55; }
.admin-mismatch-dialog p strong { color: #fff1ed; }
.admin-mismatch-dialog > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; margin-top: 20px; }
.admin-mismatch-dialog button { min-height: 46px; border: 1px solid rgba(139, 185, 171, .24); border-radius: 12px; color: #d8e7e2; background: rgba(28, 59, 51, .72); font-weight: 850; }
.admin-mismatch-dialog [data-mismatch-open] { border-color: rgba(255, 125, 105, .4); color: #2b0905; background: linear-gradient(135deg, #ff9b86, #ff6f5d); }
@media (max-width: 520px) { .admin-wallet-amounts { grid-template-columns: 1fr; } }

body.targeted-news-open { overflow: hidden; }
.targeted-news-overlay { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); background: rgba(1, 10, 9, .92); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); animation: targeted-news-in .22s ease-out both; }
.targeted-news-overlay.is-closing { pointer-events: none; animation: targeted-news-out .22s ease-in both; }
.targeted-news-dialog { width: min(560px, 100%); max-height: min(82vh, 700px); overflow: auto; overscroll-behavior: contain; padding: clamp(22px, 5vw, 38px); border: 1px solid rgba(79, 226, 169, .38); border-radius: 26px; background: radial-gradient(circle at 100% 0, rgba(35, 143, 108, .22), transparent 42%), linear-gradient(155deg, #0c2a23, #061713 68%); box-shadow: 0 30px 100px rgba(0, 0, 0, .68), inset 0 1px rgba(255,255,255,.04); }
.targeted-news-audience { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(84, 225, 172, .28); border-radius: 999px; color: #65e2b1; background: rgba(31, 117, 89, .22); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.targeted-news-dialog h2 { margin: 18px 0 12px; color: #f5fff9; font-size: clamp(25px, 6vw, 38px); line-height: 1.08; }
.targeted-news-message { color: #c5d9d2; font-size: clamp(15px, 3.6vw, 18px); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.targeted-news-countdown { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 13px; margin-top: 25px; padding: 13px; border: 1px solid rgba(241, 188, 70, .25); border-radius: 17px; color: #d8c99d; background: rgba(76, 57, 15, .24); }
.targeted-news-countdown strong { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid #efbd4d; border-radius: 50%; color: #ffd66f; font-size: 24px; font-variant-numeric: tabular-nums; }
.targeted-news-countdown span { font-size: 12.5px; font-weight: 750; line-height: 1.4; }
@keyframes targeted-news-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes targeted-news-out { to { opacity: 0; transform: scale(.985); } }

.admin-targeted-news { display: grid; gap: 16px; padding: 18px; border: 1px solid rgba(84, 203, 160, .22); border-radius: 20px; background: rgba(5, 27, 23, .78); }
.admin-targeted-news-eyebrow { display: block; margin-bottom: 5px; color: #5cdfac; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.admin-targeted-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-targeted-news-card { display: grid; align-content: start; gap: 12px; padding: 15px; border: 1px solid rgba(120, 181, 161, .18); border-radius: 16px; background: rgba(8, 37, 31, .8); }
.admin-targeted-news-card > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-targeted-news-card h4 { margin: 0; color: #effcf7; font-size: 16px; }
.admin-targeted-news-card p { margin: 5px 0 0; color: #91aaa2; font-size: 11.5px; line-height: 1.45; }
.admin-targeted-news-card > div:first-child > span { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #8aa099; background: rgba(104, 130, 121, .16); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.admin-targeted-news-card > div:first-child > span.is-active { color: #6fe5b5; background: rgba(39, 143, 104, .25); }
.admin-targeted-news-card label { display: grid; gap: 6px; color: #c6d9d2; font-size: 11px; font-weight: 800; }
.admin-targeted-news-card input, .admin-targeted-news-card textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid rgba(119, 179, 159, .22); border-radius: 11px; color: #effcf7; background: rgba(3, 20, 17, .88); font: inherit; }
.admin-targeted-news-card textarea { resize: vertical; line-height: 1.5; }
.admin-targeted-duration { display: grid; grid-template-columns: 100px auto; align-items: center; gap: 10px; }
.admin-targeted-duration span { color: #93aba3; }
@media (max-width: 680px) { .admin-targeted-news-grid { grid-template-columns: 1fr; } }
.service-app-load-form { display: grid; gap: 11px; padding: 13px; border: 1px solid rgba(117, 188, 165, .18); border-radius: 14px; background: rgba(3, 21, 18, .72); }
.service-app-load-form label { display: grid; gap: 6px; color: #e6faf3; font-size: 12px; }
.service-app-load-form label strong { font-size: 13px; }
.service-app-load-form label small { color: #91aaa2; font-weight: 500; line-height: 1.45; }
.service-app-load-form input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid rgba(123, 184, 166, .25); border-radius: 11px; color: #f1fff9; background: rgba(7, 29, 26, .95); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-transform: none; }
.service-app-load-form input:focus { border-color: rgba(82, 224, 171, .65); outline: 2px solid rgba(82, 224, 171, .12); }
.service-app-load-controls { display: grid; grid-template-columns: minmax(90px, .55fr) 1fr; gap: 8px; }
.service-app-load-controls button { min-height: 41px; padding: 8px 10px; border-radius: 11px; font-size: 11.5px; font-weight: 900; }
.service-app-load-cancel { border: 1px solid rgba(129, 174, 161, .2); color: #a3b8b2; background: rgba(17, 43, 37, .62); }
.service-app-load-submit { border: 1px solid rgba(78, 225, 168, .42); color: #06231a; background: linear-gradient(135deg, #5de2ae, #34c98e); }
.service-app-load-controls button:disabled { opacity: .55; }
.service-app-load-result { margin: 0; padding: 9px 11px; border-radius: 10px; font-size: 11.5px; font-weight: 750; line-height: 1.45; }
.service-app-load-result.is-success { border: 1px solid rgba(74, 229, 165, .3); color: #8af0c3; background: rgba(21, 91, 67, .32); }
.service-app-load-result.is-error { border: 1px solid rgba(255, 107, 91, .35); color: #ffad9f; background: rgba(105, 34, 29, .32); }
@media (min-width: 620px) {
    .service-app-tool-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.affiliate-view { display: grid; width: 100%; max-width: 100%; min-width: 0; gap: 14px; overflow: hidden; }
.affiliate-view > * { width: 100%; max-width: 100%; min-width: 0; }
.affiliate-hero, .affiliate-rules, .affiliate-invited { padding: 18px; border: 1px solid rgba(232, 185, 79, .22); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(232, 185, 79, .09), transparent 34%), var(--surface); }
.affiliate-hero > span { color: #f0bd51; font-size: .59rem; font-weight: 950; letter-spacing: .16em; }
.affiliate-hero h2, .affiliate-rules h2, .affiliate-invited h2 { margin: 7px 0 8px; color: #f5fff9; }
.affiliate-hero > p { margin: 0 0 16px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.affiliate-main-link { margin-top: 8px; }
.affiliate-eligibility { padding: 15px 17px; border-radius: 17px; }
.affiliate-eligibility strong { display: block; margin-bottom: 5px; font-size: .88rem; }
.affiliate-eligibility p { margin: 0; font-size: .72rem; line-height: 1.55; }
.affiliate-eligibility.is-eligible { border: 1px solid rgba(80, 222, 165, .32); color: #8ff1c7; background: rgba(25, 103, 76, .24); }
.affiliate-eligibility.is-ineligible { border: 1px solid rgba(255, 112, 92, .4); color: #ffc0b5; background: rgba(113, 38, 31, .28); }
.affiliate-rules ol { display: grid; gap: 10px; margin: 13px 0 0; padding-left: 22px; color: #b8ccc5; font-size: .73rem; line-height: 1.52; }
.affiliate-rules li::marker { color: #f0bd51; font-weight: 900; }
.affiliate-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.affiliate-metrics article { display: grid; gap: 7px; min-width: 0; padding: 14px; border: 1px solid rgba(108, 178, 155, .19); border-radius: 15px; background: rgba(7, 33, 28, .82); }
.affiliate-metrics span { color: var(--muted); font-size: .62rem; }
.affiliate-metrics strong { color: #f5fff9; font-size: 1rem; overflow-wrap: anywhere; }
.affiliate-detailed-list article { align-items: center; gap: 12px; }
.affiliate-referral-details { display: grid; justify-items: end; gap: 3px; text-align: right; }
.affiliate-referral-details > strong { color: #f0bd51; font-size: .9rem; }
.affiliate-referral-details > small { color: var(--muted); font-size: .58rem; }
.affiliate-referral-details > span { padding: 4px 7px; border-radius: 999px; font-size: .55rem; font-weight: 900; }
@media (max-width: 560px) {
    .affiliate-hero, .affiliate-rules, .affiliate-invited { padding: 15px; }
    .affiliate-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; max-width: 100%; min-width: 0; }
    .affiliate-link button { padding-inline: 10px; }
    .affiliate-rules ol { margin-right: 0; padding-left: 19px; }
    .affiliate-metrics { grid-template-columns: 1fr; }
    .affiliate-referral-details { justify-items: start; text-align: left; }
    .affiliate-detailed-list article { display: grid; grid-template-columns: minmax(0, 1fr); align-items: flex-start; }
}

/* Fatture del profilo cliente admin: stato, servizio e numero sempre espliciti. */
.invoice-admin-list { display: grid; gap: 16px; min-width: 0; }
.invoice-admin-group { padding: 16px; border: 1px solid #526276; border-radius: 14px; background: #142131; color: #f1f5f9; min-width: 0; }
.invoice-admin-group.is-unpaid { border: 2px solid #f3b64d; }
.invoice-admin-group > h3, .invoice-admin-group > summary { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.5; }
.invoice-admin-group > summary { cursor: pointer; }
.invoice-admin-group > p { font-size: 13px; color: #cbd5e1; }
.invoice-admin-card { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid #425166; margin-top: 14px; min-width: 0; overflow-wrap: anywhere; }
.invoice-admin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.invoice-admin-status { padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 900; }
.invoice-admin-status.is-unpaid { background: #f3b64d; color: #201504; }
.invoice-admin-status.is-paid { background: #a7f3d0; color: #064e3b; }
.invoice-admin-status.is-other { background: #cbd5e1; color: #172033; }
.invoice-admin-card > strong { font-size: 14px; }
.invoice-admin-card > .invoice-admin-amount { font-size: 22px; }
.invoice-admin-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.invoice-admin-card .invoice-admin-meta { color: #cbd5e1; font-size: 12px; }
.invoice-admin-card > button { justify-self: start; padding: 9px 12px; border: 1px solid #94a3b8; border-radius: 8px; background: #233449; color: #f8fafc; cursor: pointer; font-size: 13px; }

.admin-wallet-secondary-actions { display: flex; gap: 8px; }
.admin-wallet-secondary-actions > button { flex: 1; }
.admin-wallet-secondary-actions .is-danger { color: #ffb4ab; border-color: rgba(255, 106, 92, .35); background: rgba(255, 106, 92, .08); }
.admin-wallet-amount-editor { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin-wallet-amount-editor label { display: grid; gap: 8px; }
.admin-wallet-amount-editor input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.admin-wallet-amount-editor p { margin: 0; font-size: .75rem; color: var(--muted); }
.admin-wallet-amount-editor [role="alert"] { color: #ffb4ab; }
.admin-wallet-amount-editor .admin-wallet-confirm { margin-top: 0; }

/* Voucher upload guidance and immediate validation feedback. */
.azteco-photo-requirements{padding:16px 18px;border:1px solid rgba(255,190,90,.55);border-radius:12px;background:rgba(255,190,90,.09);color:#f6dfb5;line-height:1.65;font-size:14px}.azteco-photo-feedback{grid-column:1/-1;display:block;line-height:1.6;overflow-wrap:anywhere;color:#b7cbe8}.azteco-photo-feedback.azteco-upload-error{color:#ffb8b1}
