/* ===== tokens.css ===== */
/* Общая тема Storm */
:root{
    color-scheme: dark;
    --bg-primary: #0b1118;
    --bg-secondary: #0e1721;
    --bg-card: #131e2a;
    --bg-card-hover: #182634;
    --border-color: #263544;
    --border-hover: #425b6d;
    --text-primary: #edf3f8;
    --text-secondary: #b4c2d0;
    --text-muted: #8fa2b5;
    --accent: #69e4c3;
    --accent-purple: #69e4c3;
    --accent-green: #69e4c3;
    --accent-blue: #89bbff;
    --accent-orange: #f5c375;
    --accent-red: #ff9c9c;
    --accent-primary: var(--accent);
    --accent-secondary: var(--accent-blue);
    --accent-gradient: linear-gradient(135deg, #69e4c3 0%, #42c9a6 100%);
    --accent-glow: 0 0 40px rgba(105, 228, 195, .14);
    --success: var(--accent-green);
    --bg-elevated: var(--bg-card-hover);
    --radius: 16px;
    --radius-sm: 9px;
    --card-radius: var(--radius);
    --transition-fast: .2s ease;
    --transition-normal: .3s ease;
    --bg: var(--bg-primary);
    --card: var(--bg-card);
    --border: var(--border-color);
    --text: var(--text-primary);
    --muted: var(--text-muted);
}html{ scroll-behavior: smooth; scroll-padding-top: 88px; }*, *::before, *::after{ box-sizing: border-box; }body{
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}button, input, select, textarea{ font: inherit; }button, a, input, select, textarea{ -webkit-tap-highlight-color: transparent; }:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; }button:disabled{ opacity: .55; cursor: wait; }a{ color: var(--accent); }::selection{ color: #081813; background: var(--accent); }.u-align-items-center-6a4ecd{ align-items: center; }.u-align-items-end-aa4937{ align-items: end; }.u-background-none-aea3ff{ background: none; }.u-border-0-78798f{ border: 0; }.u-color-accent-blue-5d1210{ color: var(--accent-blue); }.u-color-accent-green-30b0c2{ color: var(--accent-green); }.u-color-accent-orange-a2c04f{ color: var(--accent-orange); }.u-color-accent-primary-44209d{ color: var(--accent-primary); }.u-color-accent-purple-39cad3{ color: var(--accent-purple); }.u-color-success-26deb8{ color: var(--success); }.u-color-text-muted-d59bb5{ color: var(--text-muted); }.u-color-text-primary-dc8072{ color: var(--text-primary); }.u-cursor-pointer-74fa97{ cursor: pointer; }.u-display-block-bd293c{ display: block; }.u-display-flex-c40d12{ display: flex; }.u-display-inline-2f8710{ display: inline; }.u-flex-wrap-wrap-8d25ef{ flex-wrap: wrap; }.u-font-inherit-23bdde{ font: inherit; }.u-font-size-0-85rem-ae1d0e{ font-size: 0.85rem; }.u-font-size-0-9rem-5c9085{ font-size: 0.9rem; }.u-font-size-10px-435550{ font-size: 10px; }.u-font-size-11px-a11453{ font-size: 11px; }.u-font-size-12px-11fcdc{ font-size: 12px; }.u-font-size-13px-a54188{ font-size: 13px; }.u-font-size-22px-cce044{ font-size: 22px; }.u-font-size-32px-850705{ font-size: 32px; }.u-font-weight-400-7c8ebd{ font-weight: 400; }.u-font-weight-500-81595a{ font-weight: 500; }.u-font-weight-600-21a1be{ font-weight: 600; }.u-font-weight-700-5db75d{ font-weight: 700; }.u-gap-10px-1e6890{ gap: 10px; }.u-gap-12px-ce68bf{ gap: 12px; }.u-gap-6px-35ecb1{ gap: 6px; }.u-justify-content-center-c1780d{ justify-content: center; }.u-justify-content-space-between-40cb37{ justify-content: space-between; }.u-margin-16px-0-20px-3d7e43{ margin: 16px 0 20px; }.u-margin-bottom-0-50435f{ margin-bottom: 0; }.u-margin-bottom-10px-39ae4d{ margin-bottom: 10px; }.u-margin-bottom-12px-5beb8f{ margin-bottom: 12px; }.u-margin-bottom-30px-cb9088{ margin-bottom: 30px; }.u-margin-left-6px-8cdcd8{ margin-left: 6px; }.u-margin-right-8px-077c07{ margin-right: 8px; }.u-margin-top-0-ec0f7f{ margin-top: 0; }.u-margin-top-16px-4c0544{ margin-top: 16px; }.u-margin-top-20px-4f7f1a{ margin-top: 20px; }.u-margin-top-24px-784e59{ margin-top: 24px; }.u-opacity-0-3-c1cb08{ opacity: 0.3; }.u-padding-20px-11b271{ padding: 20px; }.u-padding-40px-20px-c74050{ padding: 40px 20px; }.u-padding-40px-ce3837{ padding: 40px; }.u-text-align-center-65f9d5{ text-align: center; }.u-text-decoration-none-190f09{ text-decoration: none; }.u-white-space-normal-78a068{ white-space: normal; }.u-width-10-ae0638{ width: 10%; }.u-width-100-16000c{ width: 100%; }.u-width-13-25febc{ width: 13%; }.u-width-16-0a7783{ width: 16%; }.u-width-18-2e6e99{ width: 18%; }.u-width-200px-0fff9b{ width: 200px; }.u-width-8-03375b{ width: 8%; }.u-width-9-f574fd{ width: 9%; }.u-width-90px-34deaa{ width: 90px; }.u-word-break-break-all-c933a4{ word-break: break-all; }

/* ===== style.css ===== */
/* ============================================
   Storm Admin — в стиле личного кабинета
   (чистый тёмный минимализм, как user_dashboard)
   ============================================ */

*{ margin: 0; padding: 0; box-sizing: border-box; }/* Общие переменные оформления определены в ui.css. */

/* ============================================
   LAYOUT
   ============================================ */

.admin-body{
    display: flex;
    min-height: 100vh;
}/* ============================================
   SIDEBAR (как в личном кабинете)
   ============================================ */

.admin-sidebar{
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}.admin-sidebar-brand{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}.admin-sidebar-brand i{ font-size: 20px; }.admin-sidebar-section{ }.admin-sidebar-section-title{
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 12px 8px;
}.admin-sidebar-nav{
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}.admin-sidebar-link{
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}.admin-sidebar-link:hover{ color: var(--text-primary); }.admin-sidebar-link.active{ }.admin-sidebar-link i{ width: 18px; text-align: center; font-size: 14px; }.admin-sidebar-footer{
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
}/* ============================================
   MAIN
   ============================================ */

.admin-main{
    flex: 1;
    min-height: 100vh;
}.admin-page-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}.admin-page-title{ }.admin-topbar-actions{
    display: flex;
    align-items: center;
    gap: 8px;
}.admin-user-badge{
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}.admin-user-badge code{ font-size: 13px; color: var(--text-primary); font-weight: 600; }.admin-container{ width: 100%; }/* ============================================
   ALERTS (как в личном кабинете)
   ============================================ */

.admin-alert{
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}.admin-alert-success{ background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }.admin-alert-error{ background: rgba(239,68,68,0.08); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.15); }/* ============================================
   WIDGETS / CARDS
   ============================================ */

.admin-card{
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}.admin-card:hover{ border-color: var(--border-hover); }.admin-card h2{
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}.admin-card h2 i{ color: var(--accent-purple); font-size: 13px; }.admin-card h3{ font-size: 14px; font-weight: 600; margin-bottom: 8px; }/* Widget grid (как в личном кабинете) */
.admin-grid{ display: grid; }.admin-grid-2{ }.admin-grid-responsive{ }.admin-grid .admin-card{ margin-bottom: 0; }/* Stat widget */
.admin-stat-card{
    text-decoration: none;
    color: inherit;
    display: block;
}.admin-stat-card:hover{ border-color: var(--border-hover); }.admin-stat-card .admin-widget-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}.admin-stat-card h3{
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0;
}.admin-widget-icon{
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}.admin-widget-icon.purple{ background: rgba(124,58,237,0.15); color: var(--accent-purple); }.admin-widget-icon.green{ background: rgba(34,197,94,0.15); color: var(--accent-green); }.admin-widget-icon.blue{ background: rgba(59,130,246,0.15); color: var(--accent-blue); }.admin-widget-icon.orange{ background: rgba(245,158,11,0.15); color: var(--accent-orange); }.admin-stat-card p{
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}.admin-stat-card .admin-widget-sub{
    color: var(--text-muted);
}/* ============================================
   TABLES (как в личном кабинете)
   ============================================ */

.admin-table{ width: 100%; border-collapse: collapse; margin-top: 8px; }.admin-table th{
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}.admin-table td{
    color: var(--text-secondary);
    word-break: break-word;
}.admin-table tr:hover td{ background: rgba(255,255,255,0.02); }.admin-table tr:last-child td{ border-bottom: none; }.admin-table td strong{ color: var(--text-primary); }/* ============================================
   BUTTONS (как в личном кабинете)
   ============================================ */

/* ============================================
   BADGES (как в личном кабинете)
   ============================================ */

.admin-badge{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}.admin-badge-success{ background: rgba(34,197,94,0.1); color: var(--accent-green); }.admin-badge-warning{ background: rgba(245,158,11,0.1); color: var(--accent-orange); }.admin-badge-danger{ background: rgba(239,68,68,0.1); color: var(--accent-red); }.admin-badge-muted{ background: rgba(255,255,255,0.05); color: var(--text-muted); }/* ============================================
   FORMS
   ============================================ */

.admin-form-inline{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}.admin-form-inline input, .admin-form-inline select{
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.15s ease;
    font-family: inherit;
}.admin-form-inline input:focus, .admin-form-inline select:focus{
    outline: none;
    border-color: var(--accent-purple);
}.admin-actions-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}.admin-actions-grid form{ display: inline; }.admin-user-info p{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px;
    color: var(--text-secondary);
}.admin-user-info p:last-child{ border-bottom: none; }.admin-user-info strong{ color: var(--text-primary); font-weight: 600; font-size: 12px; }/* ============================================
   SERVER STATUS
   ============================================ */

.admin-server-status{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}.admin-server-status::before{
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}.admin-server-status.online{ background: rgba(34,197,94,0.1); color: var(--accent-green); }.admin-server-status.offline{ background: rgba(239,68,68,0.1); color: var(--accent-red); }.admin-load-bar{
    width: 90px;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}.admin-load-bar-fill{
    appearance: none;
    display: block;
    width: 100%;
    height: 6px;
    border: 0;
    background: transparent;
}.admin-load-bar-fill::-webkit-progress-bar{ background: rgba(255, 255, 255, .06); border-radius: 10px; }.admin-load-bar-fill.low::-webkit-progress-value, .admin-load-bar-fill.low::-moz-progress-bar{ background: var(--accent-green); border-radius: 10px; }.admin-load-bar-fill.medium::-webkit-progress-value, .admin-load-bar-fill.medium::-moz-progress-bar{ background: var(--accent-orange); border-radius: 10px; }.admin-load-bar-fill.high::-webkit-progress-value, .admin-load-bar-fill.high::-moz-progress-bar{ background: var(--accent-red); border-radius: 10px; }.backup-status{
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}.backup-status.success{ color: var(--accent-green); background: rgba(34,197,94,0.1); }.backup-status.error{ color: var(--accent-red); background: rgba(239,68,68,0.1); }.backup-status.warning{ color: var(--accent-orange); background: rgba(245,158,11,0.1); }/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px){
    .admin-grid-responsive,
}

@media (max-width: 768px) {.admin-sidebar{
        transition: transform 0.25s ease;
    }.admin-sidebar.open{
        box-shadow: 8px 0 24px rgba(0,0,0,0.5);
    }.admin-main{ }.admin-page-header{ flex-direction: column; gap: 10px; }.admin-grid-responsive, .admin-grid-2{ grid-template-columns: 1fr; }.admin-form-inline{ flex-direction: column; align-items: stretch; }.admin-actions-grid{ flex-direction: column; }.admin-actions-grid .admin-btn{ width: 100%; }/* Таблицы → карточки */
    .admin-table{ display: block; overflow-x: auto; }.admin-table thead{ display: none; }.admin-table tbody, .admin-table tr, .admin-table td{ display: block; width: 100%; }.admin-table tr{
        margin-bottom: 10px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 8px;
    }.admin-table td{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 4px;
        border-bottom: none;
    }.admin-table td::before{
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {.admin-main{ padding: 12px; }.admin-stat-card p{ font-size: 18px; }
}.user-detail{ max-width: 1320px; margin: 0 auto; display: grid; gap: 18px; }.user-detail-toolbar{ display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 4px; }.user-detail-kicker{ color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }.user-detail-toolbar h2{ margin: 6px 0 2px; font-size: clamp(21px, 2vw, 28px); font-weight: 650; line-height: 1.2; }.user-detail-muted{ color: var(--text-muted); font-size: 13px; }.user-detail-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.user-detail-card{ min-width: 0; padding: 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: 0 4px 16px #0000000d; }.user-detail-card-header{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--text-muted); }.user-detail-card-header h3{ margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 650; }.user-detail-list{ margin: 0; }.user-detail-list > div{ display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }.user-detail-list > div:last-child{ border-bottom: 0; }.user-detail-list dt{ color: var(--text-muted); font-size: 13px; flex: 0 0 auto; }.user-detail-list dd{ margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; }.user-detail-list a{ color: var(--accent-purple); text-decoration: none; }.user-detail-list .mono, .user-detail-device code{ font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }.user-detail-pill{ display: inline-flex; padding: 4px 9px; border-radius: 999px; background: rgba(148, 163, 184, .12); color: var(--text-secondary); font-size: 11px; font-weight: 650; }.user-detail-pill.is-active{ color: #67ddbb; background: rgba(52, 211, 153, .12); }.user-detail-pill.is-warning{ color: #f4be70; background: rgba(245, 158, 11, .12); }.user-detail-link-box{ display: grid; gap: 8px; padding: 14px; margin-top: 14px; border: 1px solid var(--border-color); border-radius: 10px; background: rgba(148, 163, 184, .04); }.user-detail-link-label{ color: var(--text-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }.user-detail-subscription-link{ color: var(--accent-purple); font-size: 12px; overflow-wrap: anywhere; text-decoration: none; }.user-detail-subscription-link:hover, .user-detail-list a:hover{ text-decoration: underline; }.user-detail-actions{ display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }.user-detail-actions form, .user-detail-card-header form{ margin: 0; }.user-detail-button{ display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: rgba(148, 163, 184, .07); color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }.user-detail-button:hover{ border-color: var(--text-muted); background: rgba(148, 163, 184, .12); }.user-detail-button.is-quiet{ background: transparent; }.user-detail-button.is-danger{ color: #f29d9d; background: rgba(239, 68, 68, .07); border-color: rgba(239, 68, 68, .2); }.user-detail-button.is-danger:hover{ background: rgba(239, 68, 68, .14); }.user-detail-note{ margin: 12px 0 0; color: var(--text-secondary); font-size: 12px; }.user-detail-devices{ padding-bottom: 8px; }.user-detail-device-list{ display: grid; }.user-detail-device{ display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border-color); }.user-detail-device-main{ display: flex; align-items: center; gap: 12px; min-width: 0; }.user-detail-device-main > div{ display: grid; gap: 3px; min-width: 0; }.user-detail-device-main strong{ font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }.user-detail-device-main span:last-child{ font-size: 12px; color: var(--text-muted); }.user-detail-device-mark{ display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: rgba(148, 163, 184, .1); color: var(--text-muted); }.user-detail-device-hwid{ display: grid; gap: 3px; min-width: 0; }.user-detail-device-hwid > span{ font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; }.user-detail-device code{ overflow-wrap: anywhere; }
@media (max-width: 1000px) {.user-detail-grid{ grid-template-columns: 1fr; }.user-detail-device{ grid-template-columns: 1fr auto; }.user-detail-device-hwid{ grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 600px) {.user-detail-toolbar{ align-items: flex-start; flex-direction: column; }.user-detail-card{ padding: 16px; }.user-detail-device{ grid-template-columns: 1fr; gap: 10px; }.user-detail-device-hwid{ grid-column: auto; grid-row: auto; } }.revenue-summary-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }.revenue-summary-card{ display: grid; align-content: center; gap: 8px; min-height: 128px; margin-bottom: 0; }.revenue-summary-value{ margin: 0; color: var(--text-primary); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }.revenue-summary-label{ margin: 0; color: var(--text-muted); font-size: 13px; }.revenue-usage-progress{ appearance: none; width: 100px; height: 20px; border: 0; border-radius: 5px; background: var(--border-color); vertical-align: middle; }.revenue-usage-progress::-webkit-progress-bar{ border-radius: 5px; background: var(--border-color); }.revenue-usage-progress::-webkit-progress-value, .revenue-usage-progress::-moz-progress-bar{ border-radius: 5px; background: var(--accent); }

/* Общие компоненты форм */
.admin-form-card { max-width: 800px; }
.admin-form-card.is-narrow { max-width: 600px; }
.admin-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-form-group { display: grid; gap: 6px; margin-bottom: 16px; }
.admin-form-label { display: block; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.admin-form-control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); font: inherit; }
.admin-form-control:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 1px; }
.admin-form-control.is-readonly { background: rgba(255,255,255,.02); color: var(--text-muted); }
.admin-form-textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.admin-form-hint { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.admin-form-actions { display: flex; gap: 12px; margin-top: 24px; }
.admin-form-actions > .admin-btn { flex: 1; }
.admin-form-checkbox { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); cursor: pointer; }
.admin-form-checkbox-control { width: 18px; height: 18px; cursor: pointer; }
.admin-alert-warning { border: 1px solid rgba(240, 180, 70, .25); border-radius: var(--radius-md); background: rgba(240, 180, 70, .08); color: #f0c674; padding: 14px 16px; }
.text-muted { color: var(--text-muted); }
@media (max-width: 600px) { .admin-form-row { grid-template-columns: 1fr; } }

/* ===== profile.css ===== */
.profile-body{
    min-height: 100vh;
    display: flex;
}.sidebar{
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}.sidebar-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}.sidebar-section{ }.sidebar-section-title{
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 12px 8px;
}.sidebar-link{
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}.sidebar-link:hover{ color: var(--text-primary); }.sidebar-link.active{ }.sidebar-link i{ width: 18px; text-align: center; font-size: 14px; }.sidebar-footer{ margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 12px; }.main{
    flex: 1;
    min-height: 100vh;
}.page-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}.page-header h1{ }.user-id-badge{
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}.user-id-badge code{ font-size: 13px; color: var(--text-primary); font-weight: 600; }.user-id-badge .copy-btn{
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}.user-id-badge .copy-btn:hover{ color: var(--text-primary); background: rgba(255,255,255,0.06); }.widget-grid{
    display: grid;
}.widget{
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}.widget:hover{ border-color: var(--border-hover); }.widget-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}.widget-label{ color: var(--text-secondary); font-weight: 500; }.widget-icon{
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}.widget-icon.purple{ background: rgba(124,58,237,0.15); color: var(--accent-purple); }.widget-icon.green{ background: rgba(34,197,94,0.15); color: var(--accent-green); }.widget-icon.blue{ background: rgba(59,130,246,0.15); color: var(--accent-blue); }.widget-icon.orange{ background: rgba(245,158,11,0.15); color: var(--accent-orange); }.widget-value{ font-weight: 700; margin-bottom: 2px; }.widget-sub{ color: var(--text-muted); }.status-widget{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}.status-left{ display: flex; align-items: center; }.status-dot{
    border-radius: 50%;
    flex-shrink: 0;
}.status-dot.active{ background: var(--accent-green); box-shadow: 0 0 8px rgba(34,197,94,0.4); }.status-dot.expiring{ background: var(--accent-orange); box-shadow: 0 0 8px rgba(245,158,11,0.4); }.status-dot.inactive{ background: var(--accent-red); box-shadow: 0 0 8px rgba(239,68,68,0.4); }.status-text h3{ font-weight: 600; margin-bottom: 2px; }.status-text p{ color: var(--text-secondary); }.status-text p strong{ color: var(--text-primary); }.status-actions{ display: flex; flex-wrap: wrap; }.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}.btn-primary{ }.btn-primary:hover{ }.btn-secondary{ color: var(--text-primary); }.btn-secondary:hover{ background: rgba(255,255,255,0.1); }.btn-danger{ }.btn-danger:hover{ background: rgba(239,68,68,0.18); }.btn-sm{ }.widget-full{
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
}.contact-form{ display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }.contact-form label{ width: 100%; color: var(--text-secondary); font-size: 12px; }.contact-form input{ flex: 1 1 240px; max-width: 420px; min-height: 38px; padding: 8px 12px; color: var(--text-primary); background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }.widget-full-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}.widget-full-header h3{ font-weight: 600; }.traffic-chart{
    display: flex;
    align-items: center;
}.donut-container{
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}.donut{
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}.donut > svg{ position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }.donut-track, .donut-fill{ fill: none; stroke-width: 8; }.donut-track{ stroke: rgba(255, 255, 255, .06); }.donut-fill{ stroke: var(--accent); stroke-linecap: round; }.donut-inner{
    width: 72px;
    height: 72px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}.donut-inner .pct{ font-size: 16px; font-weight: 700; }.donut-inner .label{ font-size: 9px; color: var(--text-muted); }.traffic-details{ flex: 1; }.traffic-row{ display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; }.traffic-row:last-child{ border-bottom: none; }.traffic-row .label{ color: var(--text-secondary); }.traffic-row .value{ font-weight: 600; }.devices-list{ list-style: none; }.device-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}.device-item:last-child{ border-bottom: none; }.device-info{ display: flex; align-items: center; gap: 10px; }.device-icon{
    border-radius: 6px;
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}.device-name{ font-weight: 500; }.device-platform{ color: var(--text-muted); }.tariffs-grid{
    display: grid;
}.tariff-card{
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}.tariff-card:hover{ }.tariff-name{ font-weight: 600; margin-bottom: 4px; }.tariff-duration{ font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }.tariff-price{ font-weight: 700; margin-bottom: 12px; }.tariff-price span{ color: var(--text-muted); font-weight: 400; }.tariff-card form{ margin: 0; }.orders-table{ width: 100%; border-collapse: collapse; }.orders-table th{ text-align: left; font-weight: 600; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }.orders-table td{ color: var(--text-secondary); word-break: break-all; white-space: normal; }.orders-table tr:hover td{ background: rgba(255,255,255,0.02); }.status-badge{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}.status-badge.paid{ background: rgba(34,197,94,0.1); color: var(--accent-green); }.status-badge.pending{ background: rgba(245,158,11,0.1); color: var(--accent-orange); }.status-badge.failed, .status-badge.cancelled{ background: rgba(239,68,68,0.1); color: var(--accent-red); }.no-data{ text-align: center; font-size: 13px; }.no-data i{ font-size: 32px; margin-bottom: 10px; display: block; }


@media (max-width: 1024px) {.widget-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {.sidebar{ }.main{ }.widget-grid{ grid-template-columns: 1fr; }.page-header{ flex-direction: column; gap: 10px; }.status-widget{ flex-direction: column; align-items: flex-start; }.tariffs-grid{ grid-template-columns: 1fr; }
}

/* ===== ui.css ===== */
.admin-sidebar, .sidebar{ width: 248px; padding: 28px 16px; overflow-y: auto; }.admin-sidebar-brand, .sidebar-logo{ padding: 0 14px 28px; font-size: 23px; letter-spacing: -.8px; border: 0; }.admin-sidebar-brand i, .sidebar-logo i{ color: var(--accent); }.admin-sidebar-brand, .admin-sidebar-brand:visited, .admin-sidebar-brand:hover, .sidebar-logo, .sidebar-logo:visited, .sidebar-logo:hover{ color: var(--text-primary); text-decoration: none; }.sidebar-logo i{ font-size: 20px; }.brand-label{ font-size: 9px; letter-spacing: 1.3px; color: var(--text-muted); border: 1px solid var(--border-color); border-radius: 5px; padding: 2px 5px; }.admin-sidebar-section, .sidebar-section{ margin-bottom: 28px; }.admin-sidebar-section-title, .sidebar-section-title{ font-size: 10px; letter-spacing: 1.6px; margin-bottom: 6px; }.admin-sidebar-link, .sidebar-link{ min-height: 44px; font-size: 13px; gap: 12px; margin-bottom: 4px; }.admin-sidebar-link.active, .sidebar-link.active{ color: var(--accent); background: #19382f; box-shadow: inset 3px 0 var(--accent); }.admin-sidebar-link:hover, .sidebar-link:hover{ background: #1c2b38; }.admin-main, .main{ min-width: 0; width: calc(100% - 248px); max-width: 1600px; margin-left: 248px; padding: 40px clamp(20px, 3vw, 52px) 64px; }.admin-page-header, .page-header{ min-height: 72px; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }.admin-page-title, .page-header h1{ font-size: clamp(26px, 3vw, 34px); letter-spacing: -1.2px; line-height: 1.25; font-weight: 700; }.eyebrow{ font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }.page-description{ color: var(--text-muted); margin-top: 9px; font-size: 13px; }.admin-user-badge, .user-id-badge{ background: transparent; padding: 8px 12px; border-radius: 30px; }.copy-btn{ min-width: 32px; min-height: 32px; }.admin-card, .widget, .widget-full, .tariff-card{ padding: 24px; box-shadow: 0 4px 16px #0000000d; min-width: 0; }.admin-grid, .widget-grid{ gap: 18px; margin-bottom: 24px; }.admin-grid-2, .connection-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-grid-responsive, .widget-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }.admin-card h2, .widget-full-header h3{ font-size: 16px; letter-spacing: -.2px; }.analytics-summary{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }.analytics-card{ margin-top: 20px; }.analytics-card:first-of-type{ margin-top: 0; }.analytics-heading{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }.analytics-periods, .analytics-totals{ display: flex; gap: 10px; flex-wrap: wrap; }.analytics-chart{ margin-top: 20px; }.analytics-totals{ justify-content: center; margin-top: 20px; color: var(--text-secondary); }.analytics-subtitle{ color: var(--text-muted); }.analytics-conversion-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 20px 0 30px; }.section-lead{ margin: -10px 0 22px; color: var(--text-muted); font-size: 13px; }.section-heading{ display: flex; align-items: center; gap: 9px; }.icon-blue{ color: var(--accent-blue); }.icon-purple{ color: var(--accent-purple); }.icon-green, .text-green{ color: var(--accent-green); }.text-red{ color: var(--accent-red); }.finance-periods{ display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }.finance-chart{ height: 250px; position: relative; }.finance-empty{ text-align: center; padding: 40px 20px; font-size: 13px; }.finance-empty-icon{ display: block; margin-bottom: 10px; font-size: 32px; opacity: .3; }.alert-icon{ margin-right: 8px; }.status-icon{ margin-right: 4px; }.broadcast-cancel-form{ margin-top: 8px; }.accent-purple{ color: var(--accent-purple); }.success{ color: var(--success, var(--accent-green)); }.warning{ color: var(--warning, var(--accent-orange)); }.admin-widget-icon, .widget-icon{ background: transparent !important; width: 28px; height: 28px; }.admin-widget-header{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }.admin-widget-header h3{ margin-bottom: 0; }.admin-stat-card p, .widget-value{ font-size: 30px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }.admin-stat-card h3, .widget-label{ font-size: 12px; }.admin-stat-card .admin-widget-sub, .widget-sub{ font-size: 12px; margin-top: 6px; }.admin-stat-card:hover{ transform: none; background: var(--bg-card-hover); }.admin-btn, .btn{ min-height: 42px; padding: 10px 16px; font-size: 13px; border-radius: var(--radius-sm); font-weight: 600; }.admin-btn-sm, .btn-sm{ min-height: 36px; padding: 7px 12px; font-size: 12px; }.admin-btn-primary, .btn-primary{ color: #09231b; background: var(--accent); border: 1px solid transparent; }.admin-btn-primary:hover, .btn-primary:hover{ color: #09231b; background: #95f3d9; transform: none; }.admin-btn-secondary, .btn-secondary{ background: #1d2b39; border: 1px solid #354657; }.admin-btn-danger, .btn-danger{ color: var(--accent-red); border: 1px solid #674044; background: #35232b; }.admin-alert, .alert{ padding: 14px 18px; line-height: 1.6; }.admin-table th, .orders-table th{ padding: 13px 14px; font-size: 10px; letter-spacing: 1px; }.admin-table td, .orders-table td{ padding: 15px 14px; border-bottom: 1px solid var(--border-color); font-size: 13px; }.admin-table tbody tr:hover, .orders-table tbody tr:hover{ background: #192633; }.server-table th, .server-table td{ padding-left: 8px; padding-right: 8px; }.server-table .admin-load-bar{ width: 48px; }.admin-server-status{ white-space: nowrap; }.server-table td:first-child{ word-break: normal; overflow-wrap: anywhere; }.admin-badge, .status-badge{ padding: 4px 10px; white-space: nowrap; }.status-badge.processing{ color: var(--accent-blue); background: #233950; }.admin-form-inline input, .admin-form-inline select{ min-height: 44px; font-size: 14px; }.admin-form-inline input:focus-visible, .admin-form-inline select:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }input, select, textarea{ max-width: 100%; accent-color: var(--accent); }.admin-card > .admin-grid > .admin-card{ background: transparent; border: 0; box-shadow: none; padding: 16px 4px; }.dashboard-intro{ display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }.dashboard-intro p{ color: var(--text-muted); max-width: 580px; }.background-jobs-panel{ min-width: 0; }.background-jobs-panel > p{ margin-bottom: 12px; line-height: 1.5; }.background-jobs-table-scroll{ max-width: 100%; min-width: 0; overflow-x: auto; }.background-jobs-table{ min-width: 1200px; table-layout: fixed; }.background-jobs-table th, .background-jobs-table td{ padding: 11px 8px; vertical-align: middle; }.background-jobs-table td{ overflow-wrap: anywhere; }.background-jobs-table .background-job-history{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.background-job-form{ display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; white-space: nowrap; }.background-job-form label{ display: inline-flex; align-items: center; gap: 3px; font-size: 11px; }.background-job-form input{ width: 48px; min-width: 0; min-height: 30px; padding: 4px 5px; font-size: 11px; }.background-job-save{ min-height: 30px; padding: 5px 8px; font-size: 11px; white-space: nowrap; }.dashboard-intro .admin-actions-grid{ flex-shrink: 0; margin: 0; }.subscription-hero{ padding: 32px; margin-bottom: 24px; border-color: #36594f; background: linear-gradient(110deg, #182f2c, #14232d 75%); position: relative; overflow: hidden; }.status-widget{ min-height: 98px; }.status-left{ gap: 20px; }.status-dot{ width: 12px; height: 12px; }.status-text h3{ font-size: clamp(23px, 3vw, 30px); letter-spacing: -.7px; margin: 4px 0 8px; }.status-text p{ font-size: 13px; }.status-text .eyebrow{ font-size: 10px; }.status-actions{ gap: 10px; }.status-actions .widget-full{ margin-bottom: 0; }.subscription-link{ display: block; width: 100%; flex-basis: 100%; overflow-wrap: anywhere; padding: 14px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-primary); font-size: 12px; color: var(--text-secondary); }.widget-full-header{ gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }.traffic-chart{ flex-wrap: wrap; gap: 20px; }.traffic-details{ min-width: 140px; }.device-item{ gap: 12px; padding: 16px 0; }.device-info{ min-width: 0; }.device-info > div{ min-width: 0; overflow-wrap: anywhere; }.device-icon{ width: 40px; height: 40px; flex-shrink: 0; }.device-item form{ flex-shrink: 0; }.device-name{ font-size: 14px; }.device-platform{ font-size: 12px; }.device-platform summary{ cursor: pointer; }.device-platform code{ font-size: 11px; overflow-wrap: anywhere; }.tariffs-grid{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; margin-top: 18px; }.tariff-card{ display: flex; flex-direction: column; }.tariff-card:hover{ transform: none; border-color: var(--accent); }.tariff-name{ font-size: 17px; }.tariff-price{ font-size: 34px; margin: 18px 0 22px; letter-spacing: -1px; }.tariff-price span{ font-size: 17px; }.tariff-card form{ margin-top: auto; }#tariffs, #orders{ margin-top: 32px; }.table-scroll{ overflow-x: auto; }.backup-actions{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0; }.orders-table{ min-width: 580px; }.no-data{ color: var(--text-secondary); padding: 32px 20px; line-height: 1.8; }.no-data i{ opacity: .7; color: var(--text-muted); }.mobile-menu, .menu-backdrop{ display: none; }.skip-link{ position: fixed; top: -100px; left: 16px; z-index: 400; background: var(--accent); color: #09231b; padding: 12px; border-radius: 8px; }.skip-link:focus{ top: 12px; }.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }.ui-toast{ position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 14px 20px; border: 1px solid #446656; background: #183629; color: #e5fff4; border-radius: 12px; opacity: 0; pointer-events: none; z-index: 400; transition: opacity .2s, transform .2s; }.ui-toast.visible{ opacity: 1; transform: translate(-50%, 0); }.ui-toast.error{ border-color: #aa6060; background: #4a2027; color: #fff0f0; }
@media (max-width: 1200px) {.admin-grid-responsive, .widget-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }.connection-grid{ grid-template-columns: minmax(0, 1fr); }.dashboard-intro{ flex-wrap: wrap; }
}
@media (max-width: 768px) {.background-jobs-table.admin-table{ display: table; overflow: visible; }.background-jobs-table.admin-table thead{ display: table-header-group; }.background-jobs-table.admin-table tbody{ display: table-row-group; }.background-jobs-table.admin-table tr{ display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }.background-jobs-table.admin-table th, .background-jobs-table.admin-table td{ display: table-cell; width: auto; }.background-jobs-table.admin-table td::before{ display: none; }.admin-sidebar, .sidebar{ display: flex; width: min(288px, 85vw); transform: translateX(-100%); padding-top: 84px; z-index: 210; visibility: hidden; }.admin-sidebar.open, .sidebar.open{ transform: translateX(0); visibility: visible; }.admin-main, .main{ width: 100%; margin-left: 0; padding: 88px 20px 40px; }.mobile-menu{ display: inline-flex; align-items: center; gap: 10px; position: fixed; top: 16px; left: 20px; z-index: 230; padding: 10px 16px; min-height: 44px; background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 9px; box-shadow: 0 4px 20px #0005; }.menu-backdrop:not([hidden]){ display: block; position: fixed; inset: 0; background: #03080dbb; border: 0; z-index: 205; }.menu-open{ overflow: hidden; }.admin-page-header, .page-header{ align-items: flex-start; margin-bottom: 24px; }.admin-grid-2{ grid-template-columns: minmax(0, 1fr); }.admin-card, .widget-full, .tariff-card{ padding: 20px; }.widget{ padding: 16px; }.widget-value, .admin-stat-card p{ font-size: 24px; }.subscription-hero{ padding: 24px 20px; }.status-actions{ width: 100%; }.status-actions .btn{ flex: 1; }.admin-table td{ gap: 16px; overflow-wrap: anywhere; }.admin-table td::before{ flex-shrink: 0; max-width: 42%; }.admin-topbar-actions{ flex-wrap: wrap; }.audience-cards{ grid-template-columns: 1fr; }.broadcast-stats{ flex-wrap: wrap; gap: 8px 14px; }.analytics-heading{ align-items: flex-start; flex-direction: column; }.analytics-periods{ width: 100%; }.analytics-periods .admin-btn{ flex: 1; }.finance-chart{ height: 210px; }
}
@media (max-width: 420px) {.admin-main, .main{ padding-left: 14px; padding-right: 14px; }.admin-grid-responsive, .widget-grid{ gap: 10px; }.admin-stat-card, .widget{ padding: 14px; }.widget-value, .admin-stat-card p{ font-size: 21px; }.status-actions{ flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {html{ scroll-behavior: auto; }*, *::before, *::after{ transition: none !important; animation: none !important; }
}
/* Специфика страницы рассылки */
.broadcast-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.broadcast-form .admin-form-textarea { min-height: 120px; }
.broadcast-form .admin-form-group:has(.audience-cards) { margin-bottom: 12px; }
.broadcast-form .admin-form-actions { margin-top: 16px; }
.audience-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.audience-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 54px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); cursor: pointer; }
.audience-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-secondary)); }
.audience-card-content { display: grid; gap: 2px; }
.audience-card input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.audience-label { color: var(--text-secondary); font-size: 12px; line-height: 1.3; }
.audience-count { color: var(--text-primary); font-size: 16px; font-weight: 700; line-height: 1.2; }
.broadcast-list { display: grid; gap: 12px; }
.broadcast-item { padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); }
.broadcast-item-header, .broadcast-item-meta, .broadcast-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.stat { color: var(--text-secondary); }
.stat-sent { color: var(--accent); }
.stat-failed { color: var(--accent-red); }
.stat-blocked { color: var(--accent-orange); }
.broadcast-item-header { justify-content: space-between; margin-bottom: 8px; }
.broadcast-item-meta { color: var(--text-muted); font-size: 12px; }
.broadcast-status { color: var(--text-secondary); font-size: 12px; }
.broadcast-status.status-running { color: var(--accent-blue); }
.broadcast-status.status-completed { color: var(--accent); }
.broadcast-status.status-failed, .broadcast-error { color: var(--accent-red); }
.broadcast-status.status-cancelled { color: var(--text-muted); }
.broadcast-stats { margin: 12px 0; font-size: 13px; }
.progress-bar-container { position: relative; height: 20px; overflow: hidden; border-radius: 10px; background: var(--bg-primary); }
.broadcast-progress { display: block; width: 100%; height: 20px; overflow: hidden; appearance: none; border: 0; border-radius: 10px; background: var(--bg-primary); color: var(--accent); }
.broadcast-progress::-webkit-progress-bar { background: var(--bg-primary); }
.broadcast-progress::-webkit-progress-value { border-radius: 10px; background: var(--accent); transition: width .25s ease; }
.broadcast-progress::-moz-progress-bar { border-radius: 10px; background: var(--accent); }
.broadcast-progress.is-cancelled { color: var(--accent-orange); }
.broadcast-progress.is-cancelled::-webkit-progress-value, .broadcast-progress.is-cancelled::-moz-progress-bar { background: var(--accent-orange); }
.progress-text { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-primary); font-size: 11px; font-weight: 600; }
.broadcast-error { margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
.tariffs-toolbar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
@media (max-width: 900px) { .broadcast-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .audience-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .audience-cards { grid-template-columns: 1fr; } }

/* ===== legal.css ===== */
body.legal-page{
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.7;
}body.legal-page a{ color: var(--accent); }body.legal-page a:hover{ text-decoration: none; }body.legal-page .legal-header, body.legal-page .legal-footer{
    border-bottom: 1px solid var(--border-color);
    padding: 16px max(24px, calc((100vw - 900px) / 2));
}body.legal-page .legal-header{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}body.legal-page .legal-header a:first-child{
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}body.legal-page .legal-main{
    max-width: 900px;
    margin: 48px auto 72px;
    padding: 0 24px;
}body.legal-page .legal-main h1{
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
}body.legal-page .legal-main h2{
    margin: 36px 0 10px;
    font-size: 22px;
    line-height: 1.3;
}body.legal-page .legal-main p, body.legal-page .legal-main li{ color: var(--text-muted); }body.legal-page .legal-main ul{ padding-left: 24px; }body.legal-page .legal-date{ color: var(--text-muted); font-size: 14px; }body.legal-page .legal-footer{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 0;
    font-size: 14px;
}body.landing-page *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }body.landing-page{
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text-primary);
            background: var(--bg-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }html{ scroll-behavior: smooth; scroll-padding-top: 86px; }body.landing-page :focus-visible{ outline: 2px solid var(--accent-primary); outline-offset: 4px; }body.landing-page /* Header */
        .header{
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(11, 17, 24, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 16px 0;
            transition: all var(--transition-normal);
        }body.landing-page .header.scrolled{
            background: rgba(11, 17, 24, 0.97);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }body.landing-page .container{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 32px;
        }body.landing-page .header-content{
            display: flex;
            align-items: center;
            justify-content: space-between;
        }body.landing-page .logo{
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: var(--text-primary);
        }body.landing-page .logo i{ color: var(--accent-primary); font-size: 22px; }body.landing-page .logo-text{
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }body.landing-page .logo-label{ padding: 3px 6px; border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }body.landing-page .header-actions{
            display: flex;
            align-items: center;
            gap: 12px;
        }body.landing-page .header-nav{ display: flex; align-items: center; gap: 24px; }body.landing-page .header-nav a{ color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 600; }body.landing-page .header-nav a:hover{ color: var(--accent-primary); }body.landing-page .btn{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 28px;
            border-radius: 9px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            transition: all var(--transition-normal);
            cursor: pointer;
            border: none;
            outline: none;
            letter-spacing: -0.2px;
        }body.landing-page .btn-primary{
            background: var(--accent-gradient);
            color: #09231b;
            box-shadow: 0 4px 20px rgba(105, 228, 195, 0.18);
        }body.landing-page .btn-primary:hover{
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 30px rgba(105, 228, 195, 0.25);
        }body.landing-page .btn-secondary{
            background: var(--bg-elevated);
            color: var(--text-primary);
            border: 1px solid var(--border-hover);
            backdrop-filter: blur(10px);
        }body.landing-page .btn-secondary:hover{
            background: var(--bg-card-hover);
            transform: translateY(-2px);
            border-color: var(--accent-primary);
        }body.landing-page /* Hero Section */
        .hero{
            padding: 180px 0 120px;
            background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            position: relative;
            overflow: hidden;
        }body.landing-page .hero::before{
            content: '';
            position: absolute;
            top: -30%;
            right: -15%;
            width: 900px;
            height: 900px;
            background: radial-gradient(circle, rgba(105, 228, 195, 0.08) 0%, transparent 65%);
            border-radius: 50%;
            pointer-events: none;
        }body.landing-page .hero::after{
            content: '';
            position: absolute;
            bottom: -25%;
            left: -10%;
            width: 700px;
            height: 700px;
            background: radial-gradient(circle, rgba(137, 187, 255, 0.06) 0%, transparent 65%);
            border-radius: 50%;
            pointer-events: none;
        }body.landing-page .hero-content{
            text-align: center;
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }body.landing-page .hero-badge{
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            background: #19382f;
            color: var(--accent-primary);
            border: 1px solid #36594f;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 32px;
            backdrop-filter: blur(10px);
        }body.landing-page .hero h1{
            font-size: 72px;
            font-weight: 900;
            line-height: 1.05;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #edf3f8 0%, #b8f3e0 60%, #69e4c3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -2px;
        }body.landing-page .hero p{
            font-size: 22px;
            color: var(--text-secondary);
            max-width: 640px;
            margin: 0 auto 48px;
            line-height: 1.6;
            font-weight: 400;
        }body.landing-page .hero-buttons{
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }body.landing-page .hero-buttons .btn{
            padding: 16px 36px;
            font-size: 17px;
        }body.landing-page .trial-note{ display: inline-block; margin-top: 24px; color: var(--text-secondary); font-size: 14px; }body.landing-page /* Section Styles */
        .section{
            padding: 120px 0;
            position: relative;
        }body.landing-page .section-dark{
            background: var(--bg-primary);
        }body.landing-page .section-title{
            text-align: center;
            margin-bottom: 72px;
        }body.landing-page .section-title h2{
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 20px;
            color: var(--text-primary);
            letter-spacing: -1.5px;
        }body.landing-page .section-title p{
            font-size: 20px;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }body.landing-page /* Features Grid */
        .features-grid{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 24px;
        }body.landing-page .feature-card{
            padding: 48px 40px;
            background: var(--bg-card);
            border-radius: var(--card-radius);
            border: 1px solid var(--border-color);
            transition: all var(--transition-normal);
            position: relative;
            overflow: hidden;
        }body.landing-page .feature-card::before{
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent-gradient);
            opacity: 0;
            transition: opacity var(--transition-normal);
        }body.landing-page .feature-card:hover{
            transform: translateY(-2px);
            border-color: var(--border-hover);
            background: var(--bg-card-hover);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
        }body.landing-page .feature-card:hover::before{
            opacity: 1;
        }body.landing-page .feature-icon{
            width: 56px;
            height: 56px;
            background: #19382f;
            border: 1px solid #36594f;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 24px;
            color: var(--accent-primary);
        }body.landing-page .feature-card h3{
            font-size: 24px;
            margin-bottom: 14px;
            color: var(--text-primary);
            font-weight: 700;
            letter-spacing: -0.5px;
        }body.landing-page .feature-card p{
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 16px;
        }body.landing-page /* No Logs Section */
        .nologs-section{
            padding: 120px 0;
            background: var(--bg-secondary);
            position: relative;
            overflow: hidden;
        }body.landing-page .nologs-section::before{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(105, 228, 195, 0.06) 0%, transparent 60%);
            border-radius: 50%;
            pointer-events: none;
        }body.landing-page .nologs-content{
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 1;
        }body.landing-page .nologs-icon{
            width: 100px;
            height: 100px;
            background: #19382f;
            border: 1px solid #36594f;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            margin: 0 auto 40px;
            color: var(--accent-primary);
        }body.landing-page .nologs-content h2{
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 24px;
            letter-spacing: -1.5px;
        }body.landing-page .nologs-content p{
            font-size: 20px;
            color: var(--text-secondary);
            line-height: 1.7;
            max-width: 700px;
            margin: 0 auto;
        }body.landing-page .nologs-content a{ color: var(--accent-primary); }body.landing-page /* Pricing Section */
        .pricing-grid{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            align-items: stretch;
            gap: 24px;
            max-width: 1200px;
            margin: 0 auto;
        }body.landing-page .pricing-card{
            background: var(--bg-card);
            padding: 48px 36px;
            border-radius: var(--card-radius);
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all var(--transition-normal);
            position: relative;
            display: flex;
            flex-direction: column;
        }body.landing-page .pricing-card:hover{
            transform: translateY(-2px);
            border-color: var(--border-hover);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
        }body.landing-page .pricing-card.featured{
            border-color: var(--accent-primary);
            box-shadow: var(--accent-glow);
        }body.landing-page .pricing-card.featured::before{
            content: 'Популярный';
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-gradient);
            color: #09231b;
            padding: 6px 20px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: -0.2px;
        }body.landing-page .pricing-card h3{
            font-size: 22px;
            margin-bottom: 12px;
            color: var(--text-primary);
            font-weight: 700;
            min-height: 27px;
        }body.landing-page .pricing-card .price{
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 6px;
            min-height: 66px;
            font-size: clamp(32px, 3vw, 44px);
            font-weight: 900;
            color: var(--accent-primary);
            margin: 24px 0;
            letter-spacing: -2px;
            white-space: nowrap;
        }body.landing-page .pricing-card .price span{
            font-size: 16px;
            color: var(--text-muted);
            font-weight: 500;
            letter-spacing: 0;
            white-space: nowrap;
        }body.landing-page .pricing-card ul{
            list-style: none;
            margin: 28px 0;
            text-align: left;
        }body.landing-page .pricing-card ul li{
            padding: 10px 0;
            color: var(--text-secondary);
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }body.landing-page .pricing-card ul li::before{
            content: '✓';
            color: var(--success);
            font-weight: 800;
            font-size: 16px;
        }body.landing-page .pricing-card .btn{
            width: 100%;
            margin-top: auto;
        }body.landing-page /* Подвал лендинга */
        .footer{
            padding: 80px 0 40px;
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
        }body.landing-page .footer-content{
            text-align: center;
        }body.landing-page .footer p{
            color: var(--text-secondary);
            margin-bottom: 28px;
            font-size: 16px;
        }body.landing-page .footer-links{
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-bottom: 40px;
        }body.landing-page .footer-links a{
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: color var(--transition-fast);
        }body.landing-page .footer-links a:hover{
            color: var(--accent-primary);
        }body.landing-page .footer-bottom{
            padding-top: 40px;
            border-top: 1px solid var(--border-color);
            color: var(--text-muted);
            font-size: 14px;
        }body.landing-page /* Responsive */
        @media (max-width: 900px){
            .header-nav { display: none; }
        }

        @media (max-width: 768px) {body.landing-page .hero h1{
                font-size: 44px;
                letter-spacing: -1px;
            }body.landing-page .hero p{
                font-size: 18px;
            }body.landing-page .section-title h2{
                font-size: 36px;
                letter-spacing: -1px;
            }body.landing-page .nologs-content h2{
                font-size: 36px;
            }body.landing-page .container{
                padding: 0 20px;
            }body.landing-page .section{
                padding: 80px 0;
            }body.landing-page .features-grid{
                grid-template-columns: 1fr;
            }body.landing-page .footer-links{
                flex-direction: column;
                gap: 20px;
            }body.landing-page .hero-buttons .btn{
                padding: 14px 28px;
                font-size: 15px;
            }
        }body.landing-page .steps-section{ padding: 72px 0; background: var(--bg-secondary); }body.landing-page .steps-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }body.landing-page .step-card{ position: relative; padding: 28px; border: 1px solid var(--border-color); border-radius: var(--card-radius); background: rgba(255,255,255,.035); }body.landing-page .step-card::before{ counter-increment: step; content: '0' counter(step); color: var(--accent-primary); font-size: 13px; font-weight: 800; letter-spacing: .1em; }body.landing-page .step-card h3{ margin: 18px 0 10px; }body.landing-page .step-card p{ color: var(--text-secondary); line-height: 1.65; }
        @media (max-width: 800px) {body.landing-page .steps-grid{ grid-template-columns: 1fr; } }body.landing-page .platforms-section{ padding: 88px 0; text-align: center; background: var(--bg-primary); }body.landing-page .platform-list{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }body.landing-page .platform-list span{ padding: 10px 18px; border: 1px solid var(--border-hover); border-radius: 50px; background: var(--bg-card); color: var(--text-primary); font-weight: 600; }body.landing-page .platform-note{ margin-top: 24px; color: var(--text-secondary); line-height: 1.6; }body.landing-page .faq-section{ padding: 96px 0; background: var(--bg-secondary); }body.landing-page .faq-list{ max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }body.landing-page .faq-list details{ background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: var(--card-radius); }body.landing-page .faq-list summary{ cursor: pointer; padding: 20px 24px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }body.landing-page .faq-list summary::-webkit-details-marker{ display: none; }body.landing-page .faq-list summary::after{ content: '+'; color: var(--accent-primary); font-size: 22px; line-height: 1; }body.landing-page .faq-list details[open] summary::after{ content: '−'; }body.landing-page .faq-list details p{ padding: 0 24px 22px; color: var(--text-secondary); line-height: 1.7; }body.landing-page .closing-section{ padding: 90px 0; text-align: center; background: var(--bg-primary); }body.landing-page .closing-card{ max-width: 900px; margin: 0 auto; padding: 56px 32px; border: 1px solid #36594f; border-radius: 20px; background: linear-gradient(135deg, #182f2c, #14232d); }body.landing-page .closing-card h2{ font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }body.landing-page .closing-card p{ color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }body.login-page *{ box-sizing: border-box; }body.login-page{
            min-height: 100vh;
            min-height: 100dvh;
            margin: 0;
            display: grid;
            place-items: center;
            padding: 24px;
            background: #0b1118;
            color: #edf3f8;
            font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
        }body.login-page .login-card{
            width: min(100%, 380px);
            padding: 42px 32px;
            text-align: center;
            background: #131e2a;
            border: 1px solid #263544;
            border-radius: 20px;
            box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
        }body.login-page .brand{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 0 0 32px;
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -.04em;
        }body.login-page .brand svg{ width: 26px; height: 26px; fill: #69e4c3; flex: none; }body.login-page .login-button{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 48px;
            padding: 12px 18px;
            border-radius: 10px;
            background: #69e4c3;
            color: #0b1118;
            font: 600 15px Inter, -apple-system, BlinkMacSystemFont, sans-serif;
            text-decoration: none;
            transition: background .2s ease;
        }body.login-page .login-button:hover, body.login-page .login-button:focus-visible{ background: #8cf0d4; }body.login-page .login-button:focus-visible{ outline: 2px solid #edf3f8; outline-offset: 3px; }body.login-page .telegram-widget{ display: flex; justify-content: center; min-height: 48px; }body.login-page .legal-links{ display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; font-size: 12px; }body.login-page .legal-links a{ color: #69e4c3; }body.login-page .error-msg{
            margin: 0 0 20px;
            padding: 12px;
            border: 1px solid #924b4b;
            border-radius: 10px;
            background: #382127;
            color: #ffd0d0;
            font-size: 13px;
            line-height: 1.5;
        }body.error-page *{ box-sizing: border-box; }body.error-page{
            min-height: 100vh;
            min-height: 100dvh;
            margin: 0;
            display: grid;
            place-items: center;
            padding: 24px;
            background: radial-gradient(circle at 50% 22%, #17352f 0, #0b1118 46%);
            color: #edf3f8;
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }body.error-page main{
            width: min(100%, 560px);
            padding: clamp(30px, 7vw, 64px);
            text-align: center;
            background: #131e2a;
            border: 1px solid #263544;
            border-radius: 24px;
            box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
        }body.error-page .brand{ display: inline-flex; align-items: center; gap: 10px; color: #edf3f8; text-decoration: none; font-size: 21px; font-weight: 700; }body.error-page .brand svg{ width: 23px; height: 23px; fill: #69e4c3; }body.error-page .code{ margin: 32px 0 0; color: #69e4c3; font-size: clamp(76px, 20vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -.08em; }body.error-page h1{ margin: 16px 0 0; font-size: clamp(25px, 5vw, 34px); line-height: 1.2; }body.error-page p{ margin: 18px auto 30px; max-width: 400px; color: #b4c2d0; font-size: 16px; line-height: 1.65; }body.error-page .button{ display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 10px; background: #69e4c3; color: #0b1118; font-weight: 700; text-decoration: none; }body.error-page .button:hover{ background: #8cf0d4; }body.error-page .button:focus-visible, body.error-page .brand:focus-visible{ outline: 2px solid #edf3f8; outline-offset: 4px; }

/* Общая система кнопок */
.btn, .admin-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.btn:hover, .admin-btn:hover { transform: translateY(-1px); }
.btn:disabled, .admin-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary, .admin-btn-primary, .admin-btn-success {
    background: var(--accent-gradient);
    color: #082019;
}
.btn-primary:hover, .admin-btn-primary:hover, .admin-btn-success:hover { filter: brightness(1.06); }
.btn-secondary, .admin-btn-secondary {
    border-color: var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.btn-secondary:hover, .admin-btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.btn-danger, .admin-btn-danger {
    border-color: rgba(255, 156, 156, .25);
    background: rgba(255, 156, 156, .1);
    color: var(--accent-red);
}
.btn-danger:hover, .admin-btn-danger:hover { background: rgba(255, 156, 156, .18); }
.btn-outline, .admin-btn-outline {
    border-color: var(--border-color);
    background: transparent;
    color: var(--text-secondary);
}
.btn-outline:hover, .admin-btn-outline:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-sm, .admin-btn-sm { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.admin-badge-info { background: rgba(137, 187, 255, .12); color: var(--accent-blue); }

/* Страница промокодов */
.promocodes-content { width: 100%; min-width: 0; }
.promocodes-intro { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.promocodes-table { width: 100%; table-layout: fixed; }
.promocodes-table th, .promocodes-table td { overflow-wrap: anywhere; }
.promocodes-table th:nth-child(1) { width: 8%; }
.promocodes-table th:nth-child(2) { width: 13%; }
.promocodes-table th:nth-child(3) { width: 9%; }
.promocodes-table th:nth-child(4) { width: 17%; }
.promocodes-table th:nth-child(5) { width: 21%; }
.promocodes-table th:nth-child(6) { width: 12%; }
.promocodes-table th:nth-child(7) { width: 9%; }
.promocodes-table th:nth-child(8) { width: 11%; }
.promocodes-table td:last-child { white-space: nowrap; }
.promocodes-table td:last-child form { display: inline-block; margin-left: 4px; }

.admin-list-pagination { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.admin-list-pagination-link, .admin-list-pagination-current, .admin-list-pagination-disabled { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; }
.admin-list-pagination-link { color: var(--text-primary); background: #1d2b39; box-shadow: 0 2px 6px #00000020; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.admin-list-pagination-link:hover { color: var(--accent); border-color: var(--accent); background: #203a3a; transform: translateY(-2px); }
.admin-list-pagination-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-list-pagination-back { color: var(--accent-red); border-color: #674044; background: #35232b; }
.admin-list-pagination-back:hover { color: var(--accent-red); border-color: var(--accent-red); background: #44282f; }
.admin-list-pagination-current { color: #09231b; border-color: var(--accent); background: var(--accent); box-shadow: 0 3px 10px #58d9bb35; }
.admin-list-pagination-disabled { color: var(--text-muted); background: var(--bg-secondary); opacity: .45; }
