:root {
    /* === Boostlock palette (cyan / orange / violet) === */
    --bg: #080b10;
    --bg2: #0d1117;
    --surface: #111820;
    --accent: #00d4ff;
    --accent2: #ff6b35;
    --accent3: #7c3aed;
    --text: #e8edf5;

    /* Legacy aliases — mapped onto the new palette so existing var() refs work */
    --yellow: #00d4ff;
    --yellow-dark: #00b3d9;
    --yellow-transparent: rgba(0, 212, 255, 0.10);
    --dark: #080b10;
    --card-bg: #111820;
    --card-bg2: #111820;
    --gray: #0d1117;
    --light-gray: #e8edf5;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(0, 212, 255, 0.35);
    --muted: #6b7a8d;
    --border-radius: 14px;
    --transition: all 0.2s ease;
    --font: 'Exo 2', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Consolas', ui-monospace, monospace;
    --navbar-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--light-gray);
    font-family: var(--font);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Глобально: кнопки, инпуты, textarea наследуют единый шрифт */
button, input, select, textarea, .btn, .form-control, .form-select {
    font-family: var(--font);
}

/* Моноширинные только для кода и ID */
code, pre, kbd, samp, .order-id, code.order-id {
    font-family: var(--font-mono);
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

main, .app-main {
    padding-top: calc(var(--navbar-height) + 16px) !important;
}

.text-yellow {
    color: var(--yellow) !important;
}

.container > .alert:first-child {
    margin-top: 1.5rem;
}

.text-muted {
    color: #aaa !important;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #00d4ff 0%, #00b3d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

/* Карточка "О нас" - адаптация под стиль */

.bg-deep-dark {
    background-color: var(--dark) !important;
}

.bg-deepdark {
    background-color: var(--bg) !important;
}

.about-card {
    background: var(--card-bg2);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    color: var(--light-gray);
}

    .about-card h1, .about-card h4 {
        color: var(--yellow);
    }

    .about-card hr {
        border-color: var(--border);
    }

/* =====================
   NAVBAR
   ===================== */
.navbar {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--yellow) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition);
    font-weight: 500;
    margin: 0 0.25rem;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--yellow) !important;
        background: var(--yellow-transparent);
    }

/* =====================
   HERO SECTION
   ===================== */
.hero-bg {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero-bg.jpg') center/cover fixed;
    min-height: 100vh;
    margin-top: -56px;
    padding-top: 80px;
    position: relative;
}

/* =====================
   CARDS (generic)
   ===================== */
.card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
        border-color: var(--border-hover);
    }

.card-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--yellow);
}

.card-body {
    padding: 1.5rem;
    color: #e0e0e0 !important;
}

.card-footer {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* =====================
   INFO CARD (profile)
   ===================== */
.info-card {
    background: var(--card-bg2);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    transition: border-color 0.2s;
}

    .info-card:hover {
        border-color: var(--border-hover);
    }

    .info-card .card-label {
        font-size: 11px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 2px;
    }

    .info-card .card-value {
        font-size: 14px;
        color: var(--light-gray);
        font-weight: 500;
    }

    .info-card .card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--yellow-transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

/* =====================
   BUTTONS
   ===================== */
.btn {
    border-radius: 40px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--yellow);
    color: #000;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--yellow-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 212, 255, 0.2);
        color: #000;
    }

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

    .btn-ghost:hover {
        border-color: var(--border-hover);
        color: var(--yellow);
    }

.btn-warning,
.btn-yellow {
    background: var(--yellow);
    color: #000;
    border: none;
}

    .btn-warning:hover,
    .btn-yellow:hover {
        background: var(--yellow-dark);
        transform: translateY(-1px);
        color: #000;
    }

.btn-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #e05565;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

    .btn-danger:hover {
        background: #dc3545;
        color: #fff;
        transform: translateY(-1px);
    }

.btn-outline-danger {
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: transparent;
    color: #e05565;
}

    .btn-outline-danger:hover {
        background: #dc3545;
        color: #fff;
    }

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
}

    .btn-outline-light:hover {
        background: var(--yellow);
        color: #000;
        border-color: var(--yellow);
    }

.btn-sm {
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 30px;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border: none;
}

    .btn-discord:hover {
        background: #4752C4;
        color: #fff;
    }

/* Copy ID button */
.btn-copy-id {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--yellow);
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-copy-id:hover {
        background: var(--yellow);
        color: #000;
    }

/* =====================
   FORMS
   ===================== */
.form-control,
.form-select {
    background-color: #1e1e1e !important;
    border: 1px solid #2c2c2c !important;
    color: var(--light-gray) !important;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    transition: var(--transition);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--yellow) !important;
        box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.2);
        background-color: #252525 !important;
    }

.form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: #ccc;
    font-size: 13px;
}

/* Custom toggle switch */
.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .switch-row:last-child {
        border-bottom: none;
    }

.switch-label {
    font-size: 13px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-wrap {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

    .switch-wrap input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.switch-track {
    position: absolute;
    inset: 0;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #555;
    border-radius: 50%;
    transition: 0.2s;
}

.switch-wrap input:checked ~ .switch-track {
    background: var(--yellow);
    border-color: var(--yellow);
}

.switch-wrap input:checked ~ .switch-thumb {
    left: 23px;
    background: #000;
}

/* =====================
   TABS (main)
   ===================== */
.nav-tabs {
    border-bottom: 1px solid var(--border);
    gap: 6px;
    flex-wrap: wrap;
}

    .nav-tabs .nav-link {
        background: rgba(255,255,255,0.04) !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        color: #aaa !important;
        border-radius: 40px !important;
        padding: 8px 18px !important;
        font-weight: 500;
        font-size: 13px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .nav-tabs .nav-link:hover {
            color: var(--yellow) !important;
            border-color: var(--border-hover) !important;
            background: var(--yellow-transparent) !important;
        }

        .nav-tabs .nav-link.active {
            background: var(--yellow) !important;
            color: #000 !important;
            border-color: var(--yellow) !important;
            font-weight: 600;
        }

/* Inner tabs (pill row) */
.inner-tabs {
    display: flex;
    gap: 4px;
    background: #0f0f0f;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.inner-tab {
    padding: 7px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #777;
    border: 1px solid transparent;
    background: transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .inner-tab:hover {
        color: var(--yellow);
    }

    .inner-tab.active {
        background: var(--card-bg2);
        color: var(--yellow);
        border-color: var(--border);
    }

/* =====================
   TABLES
   ===================== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.table {
    color: var(--light-gray);
    background: transparent;
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
}

    .table thead th {
        background: #111;
        color: var(--yellow);
        padding: 12px 14px;
        text-align: left;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        border-bottom: 1px solid var(--border);
        font-weight: 600;
        white-space: nowrap;
    }

    .table tbody tr {
        border-bottom: 1px solid rgba(0, 212, 255, 0.07);
        transition: background 0.15s;
    }

        .table tbody tr:last-child {
            border-bottom: none;
        }

        .table tbody tr:hover {
            background: var(--yellow-transparent);
        }

    .table td {
        padding: 12px 14px;
        vertical-align: middle;
        font-size: 13px;
    }

code.order-id {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
}

/* =====================
   BADGES
   ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-new {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.3);
}

.badge-accepted {
    background: rgba(23,162,184,0.15);
    color: #17a2b8;
    border: 1px solid rgba(23,162,184,0.3);
}

.badge-ok {
    background: rgba(40,167,69,0.15);
    color: #28a745;
    border: 1px solid rgba(40,167,69,0.3);
}

.badge-cancel {
    background: rgba(108,117,125,0.15);
    color: #999;
    border: 1px solid rgba(108,117,125,0.25);
}

.badge-group {
    background: var(--yellow-transparent);
    color: var(--yellow);
    border: 1px solid var(--border);
}

/* Bootstrap badge overrides */
.bg-warning {
    background-color: var(--yellow) !important;
    color: #000;
}

.bg-info {
    background-color: #17a2b8 !important;
    color: #fff;
}

.bg-success {
    background-color: #28a745 !important;
    color: #fff;
}

.bg-secondary {
    background-color: #444 !important;
    color: #ccc;
}

/* =====================
   ALERTS
   ===================== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
}

.alert-success {
    background: rgba(40,167,69,0.1);
    color: #7ae47a;
    border-left: 3px solid #28a745;
}

.alert-danger {
    background: rgba(220,53,69,0.1);
    color: #f5a5a5;
    border-left: 3px solid #dc3545;
}

.alert-info {
    background: rgba(23,162,184,0.1);
    color: #b1e4f0;
    border-left: 3px solid #17a2b8;
}

.alert-warning {
    background: rgba(255,193,7,0.1);
    color: #ffd966;
    border-left: 3px solid #ffc107;
}

/* =====================
   HEROES GRID
   ===================== */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.hero-item {
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    text-align: center;
}

    .hero-item:hover {
        border-color: rgba(0, 212, 255, 0.4);
        background: var(--yellow-transparent);
    }

    .hero-item.selected {
        border-color: var(--yellow);
        background: rgba(0, 212, 255, 0.12);
    }

    .hero-item img {
        width: 100%;
        border-radius: 6px;
        display: block;
    }

.hero-name {
    font-size: 9px;
    color: #888;
    margin-top: 4px;
    line-height: 1.2;
}

.hero-item.selected .hero-name {
    color: var(--yellow);
    font-weight: 600;
}

/* =====================
   ADMIN CARDS
   ===================== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.admin-card {
    background: var(--card-bg2);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

    .admin-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-3px);
    }

    .admin-card .admin-card-icon {
        font-size: 32px;
        margin-bottom: 10px;
        opacity: 0.85;
    }

    .admin-card h5 {
        font-size: 13px;
        color: #bbb;
        margin-bottom: 14px;
        font-weight: 500;
    }

/* =====================
   SECTION TITLE
   ===================== */
.section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 10px;
}

/* =====================
   TAB COUNT BADGE
   ===================== */
.tab-count {
    background: rgba(0, 212, 255, 0.2);
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* =====================
   ORDER CARDS
   ===================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: #777;
    font-size: 14px;
    border: 1px dashed rgba(0,212,255,0.15);
    border-radius: var(--border-radius);
}

.order-card {
    background: var(--card-bg2);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

    .order-card:hover {
        border-color: rgba(0, 212, 255, 0.3);
    }

.order-card--accepted {
    border-left: 3px solid rgba(23,162,184,0.6);
}

.order-card--done {
    border-left: 3px solid rgba(40,167,69,0.5);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(0,212,255,0.08);
}

.order-card-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-date {
    font-size: 11px;
    color: #555;
}

.order-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--yellow);
    white-space: nowrap;
}

.order-price--done {
    color: #28a745;
}

.order-card-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.order-rank {
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
}

.order-progress {
    font-size: 11px;
    color: #666;
}

.badge-hero {
    background: rgba(138,43,226,0.15);
    color: #b07fd4;
    border: 1px solid rgba(138,43,226,0.25);
}

.order-boosters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.order-invalid-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #ffc107;
    background: rgba(255,193,7,0.08);
    border: 1px solid rgba(255,193,7,0.18);
    border-radius: 8px;
    padding: 6px 10px;
}

.order-card-actions {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.1);
}

/* Soft contextual buttons */
.btn-info-soft {
    background: rgba(23,162,184,0.12);
    color: #17a2b8;
    border: 1px solid rgba(23,162,184,0.25);
}

    .btn-info-soft:hover {
        background: rgba(23,162,184,0.25);
        color: #17a2b8;
    }

.btn-warn-soft {
    background: rgba(255,193,7,0.1);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.25);
}

    .btn-warn-soft:hover {
        background: rgba(255,193,7,0.2);
        color: #ffc107;
    }

/* =====================
   EMPTY STATE
   ===================== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

    .empty-state .icon {
        font-size: 40px;
        margin-bottom: 12px;
        opacity: 0.4;
    }

    .empty-state h4 {
        font-size: 16px;
        color: #999;
        margin-bottom: 6px;
    }

    .empty-state p {
        font-size: 13px;
    }

/* =====================
   RANK IMAGES
   ===================== */
.rank-img {
    width: 100%;
    max-width: 60px;
    transition: var(--transition);
    opacity: 0.8;
    cursor: pointer;
}

    .rank-img:hover {
        opacity: 1;
        transform: scale(1.05);
    }

.rank-main {
    max-width: 160px;
    height: auto;
}

.sub-rank-img {
    width: 50px;
    height: auto;
}

/* =====================
   MODALS
   ===================== */
.modal-content.bg-dark {
    background: #141414 !important;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
}

.modal-title {
    color: var(--yellow);
    font-size: 15px;
    font-weight: 600;
}

/* =====================
   NOTIFICATIONS DROPDOWN (navbar)
   ===================== */
/* Колокольчик */
.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75) !important;
    padding: 0.45rem 0.6rem !important;
}

    .notif-bell:hover,
    .notif-bell:focus {
        color: var(--yellow) !important;
    }

.notif-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    color: #fff;
    background: #dc3545;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Стилизованный dropdown-menu */
.notif-menu {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    min-width: 320px;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0 !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

    .notif-menu .dropdown-item,
    .notif-menu .dropdown-item-text {
        color: var(--light-gray) !important;
        background: transparent !important;
        padding: 10px 16px;
        white-space: normal;
    }

.notif-menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
    text-decoration: none !important;
}

    .notif-menu-item:hover {
        background: var(--yellow-transparent) !important;
    }

.notif-menu-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 2px;
}

.notif-menu-msg {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.notif-menu-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.notif-menu-divider {
    border-color: rgba(255,255,255,0.06) !important;
    margin: 4px 0 !important;
}

.notif-menu-all {
    text-align: center !important;
    color: var(--yellow) !important;
    font-size: 13px;
    font-weight: 500;
}

    .notif-menu-all:hover {
        background: var(--yellow-transparent) !important;
    }

.notif-loading,
.notif-empty-mini {
    text-align: center;
    font-size: 13px;
    color: var(--muted) !important;
    padding: 20px 16px !important;
}

/* Старые правила для обратной совместимости */
.dropdown-item:visited {
    background-color: transparent !important;
    color: #e0e0e0 !important;
}

.dropdown-item[data-unread="true"] {
    background-color: var(--yellow-transparent);
}

.list-group-item.bg-dark {
    background-color: #1a1a1a !important;
    color: #aaa !important;
}

.list-group-item.bg-gray {
    background-color: rgba(30,30,30,0.8) !important;
    border-left: 3px solid var(--yellow);
}

/* =====================
   RANK SELECTION
   ===================== */
.rank-selection .btn-check:checked + .btn-outline-light {
    background: var(--yellow) !important;
    border: 2px solid var(--yellow) !important;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    color: #000 !important;
}

.rank-selection .btn-outline-light {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid #444;
}

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,212,255,0.5);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--yellow);
    }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.82rem;
    }

    .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    .hero-bg {
        padding-top: 100px;
    }

    .rank-main {
        max-width: 110px;
    }

    .rank-img {
        max-width: 44px;
    }

    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }

    .hero-name {
        font-size: 8px;
    }

    .inner-tabs {
        width: 100%;
    }

    .inner-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .table-wrap {
        border-radius: 10px;
    }

    .table td, .table th {
        padding: 9px 10px;
    }

    .admin-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .nav-tabs {
        gap: 4px;
    }

        .nav-tabs .nav-link {
            padding: 6px 12px !important;
            font-size: 12px;
        }
}

/* ===================== AUTH PAGES ===================== */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #141414;
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 18px;
    padding: 36px 32px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 6px;
}

.auth-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 24px;
}

.tg-login-block {
    background: rgba(0,136,204,0.07);
    border: 1px solid rgba(0,136,204,0.2);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.tg-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
}

.tg-hint {
    font-size: 11px;
    color: #777;
    margin-top: 8px;
}

.tg-vpn-hint {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
    max-width: 260px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #333;
    }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.auth-input {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #e0e0e0;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    width: 100%;
}

    .auth-input:focus {
        border-color: rgba(0,212,255,0.4);
    }

    .auth-input::placeholder {
        color: #555;
    }

.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 40px;
    margin-top: 4px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

    .auth-links a {
        color: #999;
        text-decoration: none;
        transition: color .2s;
    }

        .auth-links a:hover {
            color: var(--yellow);
        }

.auth-link-muted {
    font-size: 12px !important;
}

.auth-error {
    background: rgba(220,53,69,0.1);
    border: 1px solid rgba(220,53,69,0.25);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #e05565;
}

    .auth-error:empty {
        display: none;
    }

.auth-notice {
    background: rgba(23,162,184,0.08);
    border: 1px solid rgba(23,162,184,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #17a2b8;
    margin-bottom: 16px;
    text-align: center;
}

.auth-notice-ok {
    background: rgba(40,167,69,0.08);
    border: 1px solid rgba(40,167,69,0.2);
    border-radius: 10px;
    padding: 20px;
    font-size: 14px;
    color: #7ae47a;
    text-align: center;
    margin-bottom: 16px;
}

    .auth-notice-ok .auth-notice-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }

.auth-hint {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

.auth-validation {
    font-size: 11px;
    color: #e05565;
    margin-top: 2px;
}

/* =====================
   MOBILE: Notification dropdown
   ===================== */
@media (max-width: 576px) {
    .notif-menu {
        min-width: 280px;
        max-width: calc(100vw - 24px);
        right: -8px !important;
    }
}

/* =====================
   SVG ICON HELPERS (замена эмодзи)
   ===================== */
.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--yellow-transparent);
    border-radius: 10px;
    flex-shrink: 0;
}

    .icon-svg svg {
        width: 18px;
        height: 18px;
        fill: var(--yellow);
    }

.icon-svg--lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

    .icon-svg--lg svg {
        width: 24px;
        height: 24px;
    }

/* =====================
   BRAND LOGO
   ===================== */
.brand-logo {
    color: var(--text) !important;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1;
}

    .brand-logo > span {
        display: inline-flex;
        align-items: center;
        line-height: 1;
    }

    .brand-logo span {
        color: var(--accent);
    }

.brand-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* В режиме тех-работ на каждой странице (включая Index, где app-main обычно
   имеет padding-top:0 для full-bleed hero) принудительно опускаем контент,
   чтобы баннер показывался ниже зафиксированного навбара. Более высокая
   специфичность (body.maint-on .app-main) гарантирует приоритет над инлайн-
   стилями страниц. */
body.maint-on .app-main {
    padding-top: calc(var(--navbar-height) + 16px) !important;
}

/* Баннер «технические работы» — отображается на каждой странице, если включено */
.maintenance-banner {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.08));
    border-bottom: 1px solid rgba(255, 107, 53, 0.4);
    color: #ffd089;
    padding: 10px 0;
    position: relative;
    z-index: 60;
}

    .maintenance-banner-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.25rem;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .maintenance-banner-icon {
        font-size: 1.1rem;
    }

    .maintenance-banner-text strong {
        color: #ffe0b3;
    }

    .maintenance-banner-when {
        color: #ffb27a;
        font-size: 0.86rem;
    }

/* Navbar CTA button */
.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    border-radius: 6px;
    font-weight: 700 !important;
    padding: 0.45rem 1.1rem !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

    .nav-cta:hover,
    .nav-cta:focus {
        background: var(--accent) !important;
        color: var(--bg) !important;
        opacity: 0.88;
        transform: translateY(-1px);
    }

/* =====================
   MINIMAL LINE ICONS
   ===================== */
.ic {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* =====================
   STEAM GUARD REQUEST (client order card)
   ===================== */
.sg-request {
    margin: 0 14px 12px;
    padding: 12px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 10px;
}

    .sg-request-head {
        font-size: 13px;
        font-weight: 700;
        color: #c4b5fd;
        margin-bottom: 4px;
    }

    .sg-request-text {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .sg-request-form {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .sg-request-input {
        flex: 1;
        min-width: 160px;
        background: #0c1118;
        border: 1px solid #2a2342;
        border-radius: 8px;
        color: var(--text);
        padding: 8px 12px;
        font-size: 15px;
        font-family: var(--font-mono);
        letter-spacing: 0.12em;
        outline: none;
        transition: border-color 0.2s;
    }

        .sg-request-input:focus {
            border-color: rgba(124, 58, 237, 0.55);
        }

/* Steam Guard — блок бустера в карточке принятого заказа */
.sg-booster {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

    .sg-booster-label { font-size: 12px; color: #9fb0c0; }
    .sg-booster-wait { font-size: 12px; color: #c4b5fd; }
    .sg-booster-code {
        background: #0f0f0f;
        border: 1px solid rgba(124, 58, 237, 0.35);
        color: #c4b5fd;
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.12em;
    }

.btn-sg-request {
    background: rgba(124, 58, 237, 0.14);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

    .btn-sg-request:hover {
        background: rgba(124, 58, 237, 0.28);
        color: #c4b5fd;
    }

/* =====================
   GLOBAL FOOTER
   ===================== */
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 2.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-footer .footer-logo {
    font-size: 1.1rem;
}

.site-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

    .site-footer .footer-links a {
        font-size: 0.82rem;
        color: var(--muted);
        text-decoration: none;
        transition: color 0.2s;
    }

        .site-footer .footer-links a:hover {
            color: var(--text);
        }

.site-footer .footer-copy {
    font-size: 0.78rem;
    color: var(--muted);
}

@media (max-width: 700px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.25rem;
    }
}
