@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Self-hosted Proxima Nova (Fallback) */
@font-face {
    font-family: 'Proxima Nova';
    src: url('/static/fonts/ProximaNova.woff2') format('woff2'),
         url('/static/fonts/ProximaNova.ttf')   format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — Modern SaaS Dark & Light System
   (Linear / Stripe / Apple Inspired)
═══════════════════════════════════════════════════ */
:root {
    --bg-primary:       #08080a;
    --bg-primary-rgb:   8, 8, 10;
    --bg-secondary:     #111114;
    --bg-secondary-rgb: 17, 17, 20;
    --bg-tertiary:      #18181c;
    --bg-tertiary-rgb:  24, 24, 28;
    --bg-card:          rgba(17, 17, 20, 0.75);
    --bg-card-rgb:      17, 17, 20;
    --bg-glass:         rgba(17, 17, 20, 0.65);
    --bg-glass-hover:   rgba(24, 24, 28, 0.85);

    --accent-primary: #ffffff;
    
    --accent-indigo-rgb:  99, 102, 241;
    --accent-rose-rgb:    244, 63, 94;
    --accent-violet-rgb:  139, 92, 246;
    --accent-amber-rgb:   245, 158, 11;
    --accent-cyan-rgb:    6, 182, 212;
    --accent-white-rgb:   255, 255, 255;

    --accent-indigo:  rgb(var(--accent-indigo-rgb));
    --accent-rose:    rgb(var(--accent-rose-rgb));
    --accent-violet:  rgb(var(--accent-violet-rgb));
    --accent-amber:   rgb(var(--accent-amber-rgb));
    --accent-cyan:    rgb(var(--accent-cyan-rgb));
    --accent-white:   rgb(var(--accent-white-rgb));

    --main-accent-rgb: 99, 102, 241;
    --main-accent:    rgb(var(--main-accent-rgb));
    --main-accent-contrast: #ffffff;
    --overlay-rgb:    255, 255, 255;
    --primary:        var(--main-accent);
    --primary-rgb:    var(--main-accent-rgb);

    --text:           #f4f4f6;
    --text-primary:   #f4f4f6;
    --text-secondary: #a1a1aa;
    --text-tertiary:  #71717a;
    --text-muted:     #71717a;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-focus: rgba(var(--main-accent-rgb), 0.5);

    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --danger:  #ef4444;
    --danger-rgb: 239, 68, 68;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.75);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -.01em;
}

html {
}

/* Ensure bold text and headings never exceed 600 weight */
b, strong, th {
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -.02em;
}

/* Global Utilities */
.hidden {
    display: none !important;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

/* ═══════════════════════════════════════════════════
   PAGE TRANSITIONS & JITTER-FREE ROUTING
═══════════════════════════════════════════════════ */
#app-root {
    position: relative;
    z-index: 1;
}

main {
    opacity: 1;
}

main.tg-page-entering {
    animation: tgPageEnter 0.22s var(--tg-ease-out) forwards;
}

@keyframes tgPageEnter {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Universal Smooth Micro-Interactions (Telegram-style physics on everything) */
*, *::before, *::after {
    box-sizing: border-box;
}

a, button, input, select, textarea, .card, .badge, .activity-item, .stat-card, .table-row,
.shifts-stat-pill, .salary-product-card, .salary-hist-row, .modal-content, .exp-tab-btn,
.nav-tab, .dropdown-menu, .chip, .quick-phrase-chip, .user-avatar, .logo, .logo-icon {
    transition: background-color 0.18s var(--tg-ease-out),
                border-color 0.18s var(--tg-ease-out),
                color 0.18s var(--tg-ease-out),
                box-shadow 0.2s var(--tg-ease-out),
                transform 0.16s var(--tg-ease-out),
                opacity 0.18s var(--tg-ease-out);
}

/* Interactive click depth on buttons and cards */
a:active:not([href=""]):not(.no-tap), 
button:active:not(:disabled), 
.salary-product-card:active, 
.salary-tab-btn:active, 
.salary-cat-chip:active, 
.btn-clean-action:active,
.stat-pill:active {
    transform: scale(0.972) !important;
}

/* Telegram Ripple Effect */
.tg-ripple {
    position: relative;
    overflow: hidden;
}

.tg-ripple-ink {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: var(--tg-ripple-color);
    pointer-events: none;
    animation: tgRippleAnim 0.42s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes tgRippleAnim {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Telegram-like Buttons & Interactive Micro-states */
.btn, .exp-tab-btn, .salary-tab-btn, .salary-cat-chip, .salary-preset-btn, .btn-clean-action {
    transition: transform 0.14s var(--tg-ease-out), background-color 0.18s var(--tg-ease-out), border-color 0.18s var(--tg-ease-out), color 0.18s var(--tg-ease-out), box-shadow 0.18s var(--tg-ease-out) !important;
}

.btn:active, .salary-tab-btn:active, .salary-cat-chip:active, .salary-preset-btn:active, .btn-clean-action:active {
    transform: scale(0.96) !important;
}

.exp-tab-btn:active {
    transform: scale(0.94) !important;
}

/* Telegram Modals Physics (Spring scale & blur) */
/* ═══════════════════════════════════════════════════
   MODALS ANIMATION (Open/Close Telegram-style spring)
═══════════════════════════════════════════════════ */
.modal-overlay, .modal {
    position: fixed !important; 
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.76) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--tg-ease-out), visibility 0.22s var(--tg-ease-out);
}

.modal-overlay.active, .modal.active {
    opacity: 1 !important; 
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-content, .modal-card {
    background: rgba(17, 17, 20, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: calc(100% - 32px); 
    max-width: 500px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.92) translateY(14px);
    opacity: 0;
    transition: transform 0.24s var(--tg-ease-out), opacity 0.2s var(--tg-ease-out);
    box-sizing: border-box;
    margin: auto;
}

.modal-overlay.active .modal-content, .modal-overlay.active .modal-card,
.modal.active .modal-content, .modal.active .modal-card {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
}

/* Tab Pane Transitions on Page (Shop vs Tokens) */
.salary-tab-pane {
    animation: salaryTabIn 0.22s var(--tg-ease-out) forwards;
}

@keyframes salaryTabIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Telegram WebK Skeleton Shimmer for Async Loading */
.tg-skeleton {
    background: linear-gradient(90deg, rgba(var(--overlay-rgb), 0.04) 25%, rgba(var(--overlay-rgb), 0.09) 37%, rgba(var(--overlay-rgb), 0.04) 63%);
    background-size: 400% 100%;
    animation: tgSkeletonShimmer 1.4s ease infinite;
    border-radius: 8px;
}

@keyframes tgSkeletonShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ═══════════════════════════════════════════════════
   CLEAN SUBTLE BACKGROUND
═══════════════════════════════════════════════════ */
.geo-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Clean Neutral Background without glowing radials */
.geo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

/* Wrapper so all page content sits above geo-bg */
#app-root { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ═══════════════════════════════════════════════════
   HEADER + EXPANDABLE TABS NAVIGATION
═══════════════════════════════════════════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: .5px solid var(--border-color);
    padding: 14px 0;
}
header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(var(--bg-primary-rgb), 0.75);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: -.03em;
}

.logo-icon {
    width: 32px; height: 32px;
    background: var(--text-primary);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 500;
}

/* ── Expandable Tabs Nav (Original Header Navbar) ── */
.exp-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(var(--overlay-rgb), .04);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3px;
    backdrop-filter: blur(12px);
    max-width: 100%;
}

.exp-tab-sep {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 3px;
    flex-shrink: 0;
}

.exp-tab-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px 9px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: color .2s, background .2s, padding .25s cubic-bezier(.23,.86,.39,.96), gap .25s cubic-bezier(.23,.86,.39,.96);
    text-decoration: none;
}

.exp-tab-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color .2s;
}

.exp-tab-btn .tab-label {
    display: inline-block;
    width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: width .3s cubic-bezier(.23,.86,.39,.96), opacity .2s ease .05s;
}

.exp-tab-btn:hover,
.exp-tab-btn.active {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), .08);
}

@media (min-width: 641px) {
    .exp-tab-btn:hover:not(.active) {
        gap: 6px;
        padding: 7px 12px;
    }
    .exp-tab-btn:hover:not(.active) .tab-label {
        width: auto;
        opacity: 1;
    }
}

.exp-tab-btn.active {
    gap: 6px;
    padding: 7px 13px;
}

.exp-tab-btn.active .tab-label {
    width: auto;
    opacity: 1;
}

.exp-tab-btn.btn-logout {
    color: var(--danger);
}



.exp-tab-sep {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 3px;
    flex-shrink: 0;
}

.exp-tab-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px 9px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: color .2s, background .2s, padding .25s cubic-bezier(.23,.86,.39,.96), gap .25s cubic-bezier(.23,.86,.39,.96);
    text-decoration: none;
}

.exp-tab-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color .2s;
}

.exp-tab-btn .tab-label {
    display: inline-block;
    width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: width .3s cubic-bezier(.23,.86,.39,.96), opacity .2s ease .05s;
}

.exp-tab-btn:hover,
.exp-tab-btn.active {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), .08);
}

@media (min-width: 641px) {
    .exp-tab-btn:hover:not(.active) {
        gap: 6px;
        padding: 7px 12px;
    }
    .exp-tab-btn:hover:not(.active) .tab-label {
        width: auto;
        opacity: 1;
    }
}

.exp-tab-btn.active {
    gap: 6px;
    padding: 7px 13px;
}

.exp-tab-btn.active .tab-label {
    width: auto;
    opacity: 1;
}

/* Logout button variant */
.exp-tab-btn.btn-logout {
    background: rgba(248,113,113,.08);
    color: var(--danger);
    border: .5px solid rgba(248,113,113,.15);
    gap: 5px;
    padding: 6px 11px;
}
.exp-tab-btn.btn-logout .tab-label { width: auto; opacity: 1; }
.exp-tab-btn.btn-logout:hover {
    background: rgba(248,113,113,.14);
    color: #fca5a5;
}


/* ═══════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════ */
.auth-container {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.auth-box {
    background: var(--bg-glass);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-header .logo-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: rgba(var(--main-accent-rgb), 0.12);
    border: 1px solid rgba(var(--main-accent-rgb), 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-accent);
    box-shadow: 0 4px 16px rgba(var(--main-accent-rgb), 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.auth-header .logo-badge:hover {
    transform: scale(1.05);
    border-color: rgba(var(--main-accent-rgb), 0.4);
}

.auth-box h2,
.auth-header h2,
.auth-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    letter-spacing: -.02em;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    text-align: center;
    width: 100%;
}

.auth-btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(var(--main-accent-rgb), 0.25);
}

.auth-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(var(--main-accent-rgb), 0.4);
}

.auth-btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Telegram Waiting Card */
.bot-waiting-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    gap: 14px;
    animation: authFadeIn 0.25s ease;
}

.bot-waiting-spinner {
    width: 26px;
    height: 26px;
    border-width: 2.5px;
    border-top-color: var(--main-accent);
}

.bot-waiting-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bot-waiting-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.45;
}

.bot-waiting-desc b {
    color: var(--text-primary);
}

.bot-waiting-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.bot-open-link {
    flex: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Multi-Account Selector */
.account-selector-header {
    text-align: center;
    margin-bottom: 16px;
}

.account-selector-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.account-selector-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.account-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.account-card-item:hover,
.account-card-item:focus-visible {
    border-color: var(--main-accent);
    background: rgba(var(--main-accent-rgb), 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.account-card-item:active {
    transform: scale(0.99);
}

.account-card-item .account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    image-rendering: pixelated;
    background: rgba(var(--overlay-rgb), 0.08);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.account-card-item .account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-card-item .account-nick {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rank badges */
.badge-rank-admin {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: .5px solid rgba(239, 68, 68, 0.3);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}
.badge-rank-curator {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: .5px solid rgba(168, 85, 247, 0.3);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}
.badge-rank-trainee {
    background: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
    border: .5px solid rgba(156, 163, 175, 0.3);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}
.badge-rank-mod {
    background: rgba(var(--main-accent-rgb), 0.12);
    color: var(--main-accent);
    border: .5px solid rgba(var(--main-accent-rgb), 0.3);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Auth notices */
.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(var(--main-accent-rgb), 0.06);
    border: 1px solid rgba(var(--main-accent-rgb), 0.16);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 18px;
    transition: all 0.2s ease;
}

.auth-notice svg {
    flex-shrink: 0;
    color: var(--main-accent);
    margin-top: 2px;
}

.auth-notice code {
    color: var(--main-accent);
    background: rgba(var(--main-accent-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
}

/* Auth Status Messages */
.auth-status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: center;
    animation: authFadeIn 0.2s ease;
}

.auth-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--danger);
}

.auth-status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
}

.auth-status-loading {
    background: rgba(var(--main-accent-rgb), 0.1);
    border: 1px solid rgba(var(--main-accent-rgb), 0.25);
    color: var(--text-primary);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-footer {
    text-align: center;
    margin-top: 36px;
    color: var(--text-tertiary);
    font-size: 14px;
}
.auth-footer a { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* Premium Auth Forms */
.auth-box .form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-box .form-group input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.8;
}

.auth-box .form-group input:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.auth-box .form-group input:focus {
    outline: none;
    border-color: var(--main-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(var(--main-accent-rgb), 0.15);
}

.auth-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.auth-box .form-group:focus-within label {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-tertiary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
input.input,
select,
textarea {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-tertiary);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input.input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--main-accent);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(var(--main-accent-rgb), .15);
}

/* Chrome/Safari Autofill styles override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: .5px solid var(--border-hover);
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-tertiary) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Date picker styling for dark theme */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Premium custom checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: .5px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-tertiary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background: var(--main-accent);
    border-color: var(--main-accent);
}

input[type="checkbox"]:checked::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 2.5px;
}

textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-submit { width: 100%; margin-top: 12px; }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13.5px;
    cursor: pointer;
    border: .5px solid transparent;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: .01em;
    transition: all .22s cubic-bezier(.4,0,.2,1);
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: none;
}

.btn-primary {
    background: var(--main-accent);
    color: var(--main-accent-contrast, #fff);
    border-color: transparent;
}
.btn-primary:hover {
    background: rgba(var(--main-accent-rgb), .85);
    box-shadow: 0 4px 20px rgba(var(--main-accent-rgb), .35);
}
.btn:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: rgba(var(--overlay-rgb),.06);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: rgba(var(--overlay-rgb),.1);
    border-color: var(--border-hover);
}

.btn-sm { padding: 7px 14px; font-size: 12px; }

.btn-danger {
    background: rgba(248,113,113,.1);
    color: var(--danger);
    border-color: rgba(248,113,113,.2);
}
.btn-danger:hover { background: rgba(248,113,113,.18); }

.btn-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.btn-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.25);
}
.btn-warning:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: .5px solid var(--border-color);
}
.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(var(--overlay-rgb), 0.04);
}
.btn-outline.active {
    background: rgba(var(--main-accent-rgb), 0.1);
    color: var(--main-accent);
    border-color: rgba(var(--main-accent-rgb), 0.4);
}
.btn-outline.active:hover {
    background: rgba(var(--main-accent-rgb), 0.15);
    border-color: rgba(var(--main-accent-rgb), 0.6);
}

/* ═══════════════════════════════════════════════════
   SUB-TABS (Finances Tab & Dashboard)
   ═══════════════════════════════════════════════════ */
.sub-tab-bar {
    display: inline-flex;
    gap: 4px;
    background: rgba(var(--overlay-rgb), .03);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
}
.sub-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sub-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.04);
}
.sub-tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════
   CARDS / SECTIONS
═══════════════════════════════════════════════════ */
.activity-section,
.glass-card,
.moderator-card,
.stat-card,
.appeal-card {
    background: var(--bg-glass);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: border-color .25s, background .25s;
}

.activity-section { padding: 36px; }

.activity-section:hover,
.glass-card:hover,
.stat-card:hover,
.appeal-card:hover {
    border-color: var(--border-hover);
    background: rgba(var(--bg-tertiary-rgb),.75);
}

/* ── Section headings ── */
h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.015em;
}
h2 svg { color: var(--text-secondary); width: 18px; height: 18px; }

h1 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.03em;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════════ */
.dashboard { padding: 56px 0; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 100px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ═══════════════════════════════════════════════════
   MODERATOR CARD
═══════════════════════════════════════════════════ */
.moderator-card {
    padding: 36px 24px;
    text-align: center;
}

.moderator-avatar {
    width: 76px; height: 76px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    font-weight: 500;
    color: var(--text-primary);
    border: .5px solid var(--border-color);
    overflow: hidden;
}
.moderator-avatar img { width: 100%; height: 100%; object-fit: cover; }

.moderator-name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}

.moderator-role {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 4px;
}

.moderator-badge {
    display: none;
}

.moderator-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: .5px solid var(--border-color);
}

.mini-stat { text-align: center; }
.mini-stat-label {
    font-size: 10px; font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}
.mini-stat-value { font-size: 18px; font-weight: 500; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════
   STATS GRID
═══════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card { 
    padding: 28px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    border-color: var(--border-hover);
}

.stat-icon {
    margin-bottom: 16px;
    width: 38px; height: 38px;
    background: rgba(var(--overlay-rgb),.05);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px; font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 32px; font-weight: 500;
    letter-spacing: -.02em;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   TODAY AUTOMATED BREAKDOWN
═══════════════════════════════════════════════════ */
.today-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

@media (max-width: 540px) {
    .today-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

.breakdown-card {
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.breakdown-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background: rgba(var(--overlay-rgb), 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.breakdown-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--main-accent-rgb), 0.1);
    color: var(--main-accent);
}

.breakdown-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.breakdown-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.breakdown-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.breakdown-count {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.breakdown-points {
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

/* ═══════════════════════════════════════════════════
   ACTIVITY LISTS
═══════════════════════════════════════════════════ */
.activity-list { display: flex; flex-direction: column; gap: 10px; }

.activity-item {
    background: var(--bg-glass);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    transition: all .2s ease;
}
.activity-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.activity-type {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.activity-description {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
}

.activity-feedback {
    background: rgba(var(--overlay-rgb),.03);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    border-left: 2px solid var(--text-tertiary);
    color: var(--text-secondary);
}

.activity-feedback-text {
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   EXPANDABLE 3-LINE TEXT BLOCKS & BUTTON
═══════════════════════════════════════════════════ */
.text-multiline,
.comment-text,
.appeal-reason-text,
.banned-reason-text {
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.55;
}

.expandable-text {
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.55;
    position: relative;
}

.expandable-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expandable-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.read-more-btn {
    background: none;
    border: none;
    padding: 6px 0 2px 0;
    color: var(--main-accent);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s ease;
    user-select: none;
}
.read-more-btn:hover {
    opacity: 0.8;
}
.read-more-btn svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.read-more-btn.is-expanded svg {
    transform: rotate(180deg);
}

.activity-points {
    font-weight: 500;
    color: var(--success);
    font-size: 18px;
    white-space: nowrap;
}
.activity-points.negative { color: var(--danger); }

/* ═══════════════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════════════ */
.leaderboard.activity-section {
    padding: 24px 20px;
}

.leaderboard h2 {
    margin-bottom: 14px !important;
}

.leaderboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    background: rgba(var(--bg-secondary-rgb), 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 3px;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.leaderboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-sm) - 2px);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.leaderboard-tab svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    transition: transform 0.2s ease;
}

.leaderboard-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.leaderboard-tab.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-hover);
}

.leaderboard-tab.active svg {
    color: var(--accent);
}

.leaderboard-list { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    min-height: 480px; 
    transition: opacity 0.2s ease;
}

.leaderboard-list.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.leaderboard-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    background: rgba(var(--bg-secondary-rgb),.6);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all .2s ease;
    cursor: pointer;
    text-decoration: none;
}
.leaderboard-item:hover {
    background: rgba(var(--bg-tertiary-rgb),.8);
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.leaderboard-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border: .5px solid var(--border-color);
    flex-shrink: 0;
    image-rendering: pixelated;
}

.leaderboard-rank {
    font-size: 11px; font-weight: 500;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.leaderboard-rank.top-1 {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #1c1917;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.leaderboard-rank.top-2 {
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    color: #0f172a;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.35);
}
.leaderboard-rank.top-3 {
    background: linear-gradient(135deg, #fed7aa, #b45309);
    color: #451a03;
    box-shadow: 0 0 8px rgba(180, 83, 9, 0.35);
}

.leaderboard-username { font-weight: 500; font-size: 14px; color: var(--text-primary); }
.leaderboard-role {
    font-size: 10px; color: var(--text-tertiary);
    text-transform: uppercase; font-weight: 500; letter-spacing: .05em;
    margin-top: 1px;
}
.leaderboard-points {
    margin-left: auto; font-weight: 500; color: var(--text-primary); font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   BANNED BADGE
   ═══════════════════════════════════════════════════ */
.badge-banned-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    backdrop-filter: blur(8px);
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD HERO BANNER
   ═══════════════════════════════════════════════════ */
.dashboard-hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    min-height: 130px;
    display: flex;
    align-items: flex-end;
}
.hero-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 14, 0.92) 0%, rgba(10, 10, 14, 0.6) 50%, rgba(10, 10, 14, 0.3) 100%);
    backdrop-filter: blur(1.5px);
}
[data-theme="light"] .hero-card-overlay {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.4) 100%);
}
.hero-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    width: 100%;
}
.hero-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-hover);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
}
.hero-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card-text {
    flex: 1;
    min-width: 0;
}
.hero-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(var(--main-accent-rgb), 0.15);
    border: 1px solid rgba(var(--main-accent-rgb), 0.3);
    color: var(--main-accent);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.hero-welcome-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    letter-spacing: -0.02em;
}
.hero-welcome-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════ */
.modal-overlay, .modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(.4,0,.2,1), visibility .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.active, .modal.active {
    opacity: 1; visibility: visible;
    pointer-events: auto;
}

.modal-content, .modal-card {
    background: rgba(var(--bg-secondary-rgb),.95);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%; max-width: 460px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    transform: translateY(24px) scale(.97);
    transition: all .35s cubic-bezier(.4,0,.2,1);
    box-sizing: border-box;
}
.modal-overlay.active .modal-content, .modal-overlay.active .modal-card,
.modal.active .modal-content, .modal.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px;
}
.modal-header h2 { font-size: 20px; font-weight: 500; margin: 0; }

/* ═══════════════════════════════════════════════════
   TABS (Admin Panel)
═══════════════════════════════════════════════════ */
.tab-bar {
    display: flex;
    gap: 4px;
    background: rgba(var(--overlay-rgb),.04);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 9px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: all .2s;
}
.tab-btn:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),.05); }
.tab-btn.active { color: var(--main-accent); background: rgba(var(--main-accent-rgb),.1); }

.tab-content { 
    display: none; 
    opacity: 0;
}
.tab-content.active { 
    display: block; 
    animation: tabFadeIn 0.3s ease forwards;
}

@keyframes tabFadeIn {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════ */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; }

th {
    text-align: left; padding: 14px 18px;
    font-size: 10px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-tertiary);
    border-bottom: .5px solid var(--border-color);
}

td {
    padding: 16px 18px; font-size: 13.5px;
    color: var(--text-secondary);
    border-bottom: .5px solid var(--border-color);
}

tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

tbody tr:hover td { 
    color: var(--text-primary); 
    background: rgba(var(--overlay-rgb),.02); 
}

tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════
   APPEAL CARDS
═══════════════════════════════════════════════════ */
.appeal-card {
    border-left: 2px solid var(--danger);
    background: rgba(var(--bg-secondary-rgb),.6);
    padding: 20px 24px;
    margin-bottom: 12px;
}
.appeal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}
.appeal-title { font-weight: 500; font-size: 16px; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════
   SPINNERS & LOADING
═══════════════════════════════════════════════════ */
.loading {
    display: flex; justify-content: center; align-items: center;
    padding: 48px; color: var(--text-tertiary);
}
.spinner {
    width: 22px; height: 22px;
    border: 2px solid rgba(var(--overlay-rgb),.06);
    border-radius: 50%;
    border-top-color: rgba(var(--overlay-rgb),.5);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   NOTIFICATIONS
═══════════════════════════════════════════════════ */
.success-message, .error-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    margin-bottom: 20px;
    border: .5px solid transparent;
}
.success-message {
    background: rgba(52,211,153,.06);
    border-color: rgba(52,211,153,.15);
    color: var(--success);
}
.error-message {
    background: rgba(248,113,113,.06);
    border-color: rgba(248,113,113,.15);
    color: var(--danger);
}

/* ═══════════════════════════════════════════════════
   HEATMAP
═══════════════════════════════════════════════════ */
.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    grid-auto-flow: column;
    gap: 3px;
    overflow-x: auto; padding-bottom: 8px;
}
.heatmap-cell { width: 10px; height: 10px; border-radius: 2px; background: rgba(var(--overlay-rgb),.04); }
.heatmap-cell[data-level="1"] { background: rgba(var(--main-accent-rgb),.12); }
.heatmap-cell[data-level="2"] { background: rgba(var(--main-accent-rgb),.28); }
.heatmap-cell[data-level="3"] { background: rgba(var(--main-accent-rgb),.48); }
.heatmap-cell[data-level="4"] { background: rgba(var(--main-accent-rgb),.70); }
.heatmap-cell[data-level="5"] { background: rgb(var(--main-accent-rgb)); }

/* ═══════════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════════ */
.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, #0a0a0c, #111113);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative; overflow: hidden; cursor: pointer;
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-banner-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
}
.profile-banner:hover .profile-banner-overlay { opacity: 1; }
.profile-banner-overlay span {
    font-size: 13px; font-weight: 500; color: #fff;
    background: rgba(0,0,0,.5); padding: 7px 14px;
    border-radius: 7px; border: .5px solid rgba(var(--overlay-rgb),.15);
}

.profile-card {
    background: rgba(var(--bg-secondary-rgb),.75);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.profile-header { padding: 0 28px 28px; position: relative; }

.profile-avatar-wrap { position: relative; display: inline-block; margin-top: -48px; }

.profile-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(var(--bg-secondary-rgb),.9);
    background: var(--bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 500; color: white;
    overflow: hidden; cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.profile-avatar:hover {
    border-color: var(--border-hover);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-avatar-edit {
    position: absolute; bottom: 0; right: 0;
    width: 28px; height: 28px;
    background: var(--main-accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 2.5px solid var(--bg-secondary);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.profile-avatar-edit:hover {
    transform: scale(1.1);
    filter: brightness(1.15);
}

.profile-avatar-wrap .online-status {
    position: absolute; bottom: 4px; left: 4px; right: auto;
    width: 15px; height: 15px;
    border: 3px solid var(--bg-secondary);
    border-radius: 50%; z-index: 5;
}

.profile-info { margin-top: 12px; }
.profile-name { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.profile-role {
    font-size: 10px; font-weight: 500; color: var(--main-accent);
    text-transform: uppercase; letter-spacing: .08em; margin-top: 3px;
}
.profile-meta { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }

.profile-stats-row {
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 1px; 
    background: var(--border-color);
    border-top: .5px solid var(--border-color);
}
.profile-stat { 
    background: rgba(var(--bg-secondary-rgb), .7); 
    padding: 18px 12px; 
    text-align: center; 
}
.profile-stat-value { 
    font-size: 22px; 
    font-weight: 500; 
    letter-spacing: -.02em; 
    color: var(--text-primary);
}
.profile-stat-label {
    font-size: 10px; 
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase; 
    letter-spacing: .05em; 
    margin-top: 3px;
}

/* Comments */
.comment-item {
    display: flex; gap: 12px;
    padding: 16px 0; border-bottom: .5px solid var(--border-color);
}
.comment-item:last-child { border-bottom: none; }

.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-tertiary);
    border: .5px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 500; flex-shrink: 0; overflow: hidden;
    color: var(--text-primary);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.comment-author { font-weight: 500; font-size: 13px; color: var(--text-primary); text-decoration: none; }
.comment-author:hover { color: var(--main-accent); }
.comment-time { font-size: 11px; color: var(--text-tertiary); cursor: help; }
.comment-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; word-break: break-word; }

.comment-reply-to {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: var(--text-tertiary);
    background: rgba(var(--overlay-rgb), 0.04);
    padding: 1px 6px; border-radius: 4px;
}
.comment-reply-to svg { color: var(--text-tertiary); flex-shrink: 0; }
.reply-target-author { color: var(--main-accent); font-weight: 500; text-decoration: none; }
.reply-target-author:hover { text-decoration: underline; }

.comment-actions {
    display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.comment-action-btn {
    background: none; border: none; cursor: pointer;
    font-size: 11.5px; font-weight: 500;
    color: var(--text-tertiary);
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 7px; border-radius: 6px;
    transition: all .15s ease;
}
.comment-reply-btn:hover {
    color: var(--main-accent);
    background: rgba(var(--main-accent-rgb), 0.1);
}
.comment-delete-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Replies Thread Container */
.comment-replies {
    margin-top: 12px;
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid rgba(var(--overlay-rgb), 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-reply-item {
    padding: 10px 0 4px 0;
    border-bottom: 0.5px solid rgba(var(--overlay-rgb), 0.06);
}
.comment-reply-item:last-child {
    border-bottom: none;
}
.comment-reply-item .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* Inline Reply Box */
.comment-reply-box {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    animation: fadeIn 0.18s ease;
}
.reply-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.reply-box-header b {
    color: var(--main-accent);
}
.reply-box-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.reply-box-close:hover {
    color: var(--danger);
}
.reply-textarea {
    width: 100%;
    min-height: 64px;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.reply-textarea:focus {
    border-color: var(--main-accent);
    outline: none;
}
.reply-box-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.reply-error-msg {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .comment-replies {
        margin-left: 10px;
        padding-left: 10px;
    }
}

.comment-input-wrap { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.comment-input-wrap textarea { 
    flex: 1; 
    border-radius: 8px; 
    padding: 12px 14px; 
    min-height: 72px; 
    resize: vertical; 
}

.file-input-hidden { display: none; }
.upload-msg { font-size: 13px; font-weight: 500; margin-top: 6px; }

/* ═══════════════════════════════════════════════════
   PASSWORD INPUT WITH TOGGLE
═══════════════════════════════════════════════════ */
.password-input-wrap {
    position: relative;
    width: 100%;
}
.password-input-wrap input {
    padding-right: 42px !important;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}
.password-toggle-btn:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   BADGES & CHIPS
═══════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: .5px solid rgba(16, 185, 129, 0.25);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: .5px solid rgba(245, 158, 11, 0.25);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: .5px solid rgba(239, 68, 68, 0.25);
}
.badge-accent {
    background: rgba(var(--main-accent-rgb), 0.12);
    color: var(--main-accent);
    border: .5px solid rgba(var(--main-accent-rgb), 0.25);
}

/* ═══════════════════════════════════════════════════
   LANDING / HERO PAGE
═══════════════════════════════════════════════════ */
.hero-section {
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--main-accent-rgb), 0.08);
    border: 1px solid rgba(var(--main-accent-rgb), 0.2);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--main-accent);
    margin-bottom: 24px;
}
.hero-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.feature-card {
    background: var(--bg-card);
    border: .5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: left;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--main-accent-rgb), 0.1);
    color: var(--main-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.feature-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   MINIMALIST APPEALS STYLING
═══════════════════════════════════════════════════ */
.appeal-item-pending {
    background: rgba(var(--overlay-rgb), 0.02);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.appeal-item-pending:hover {
    background: rgba(var(--overlay-rgb), 0.035);
    border-color: var(--border-hover);
}
.appeal-item-pending.has-proof {
    border-left-color: var(--main-accent);
}

.appeal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.appeal-item-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appeal-player-name {
    font-weight: 500;
    font-size: 14.5px;
    color: var(--text-primary);
}

.appeal-item-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.appeal-item-content {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
    white-space: pre-line;
    word-break: break-word;
}

.appeal-proof-inline {
    background: rgba(var(--overlay-rgb), 0.03);
    border-left: 2px solid var(--main-accent);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.appeal-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════
   ONLINE STATUS DOT
═══════════════════════════════════════════════════ */
.online-status {
    position: absolute; bottom: 4px; right: 4px;
    width: 14px; height: 14px;
    background: var(--success);
    border: 3px solid var(--bg-secondary);
    border-radius: 50%; z-index: 10;
}

/* ═══════════════════════════════════════════════════
   SCROLLBARS
═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--overlay-rgb), 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--overlay-rgb), 0.3); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
.fade-out { opacity: 0; transition: opacity .3s ease; }
.fade-in  { opacity: 1; transition: opacity .3s ease; }

/* ═══════════════════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════════════════ */
.light-theme {
    --bg-primary:       #f8fafc;
    --bg-primary-rgb:   248, 250, 252;
    --bg-secondary:     #ffffff;
    --bg-secondary-rgb: 255, 255, 255;
    --bg-tertiary:      #f1f5f9;
    --bg-tertiary-rgb:  241, 245, 249;
    --bg-card:          rgba(255, 255, 255, 0.9);
    --bg-card-rgb:      255, 255, 255;
    --bg-glass:         rgba(255, 255, 255, 0.85);
    --bg-glass-hover:   rgba(255, 255, 255, 0.98);

    --text:           #0f172a;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-tertiary:  #94a3b8;
    --text-muted:     #94a3b8;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --overlay-rgb: 0, 0, 0;
    --primary:        var(--main-accent);
    --primary-rgb:    var(--main-accent-rgb);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.light-theme input,
.light-theme select,
.light-theme textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.14);
    color: var(--text-primary);
}

.light-theme input:hover,
.light-theme select:hover,
.light-theme textarea:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.light-theme input:focus,
.light-theme select:focus,
.light-theme textarea:focus {
    background: #ffffff;
    border-color: var(--main-accent);
}

.light-theme input:-webkit-autofill,
.light-theme input:-webkit-autofill:hover,
.light-theme input:-webkit-autofill:focus,
.light-theme textarea:-webkit-autofill,
.light-theme textarea:-webkit-autofill:hover,
.light-theme textarea:-webkit-autofill:focus,
.light-theme select:-webkit-autofill,
.light-theme select:-webkit-autofill:hover,
.light-theme select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #f1f5f9 inset !important;
    -webkit-text-fill-color: #0f172a !important;
}

.light-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; gap: 32px; }
    .sidebar { position: static; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .container { padding: 0 18px; }
    .auth-box { padding: 32px 18px; }
    .stat-card { padding: 22px; }
    .activity-section { padding: 22px 18px; }
    
    /* Bottom Navigation for Mobile */
    body { padding-bottom: 84px; }
    body.auth-page { padding-bottom: 0; }
    
    .exp-tab-sep { display: none; }
    
    .exp-tabs { 
        position: fixed;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 520px;
        background: rgba(18, 18, 22, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 4px 6px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-shadow: 0 12px 36px rgba(0,0,0,0.65);
        z-index: 1000;
        gap: 3px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .exp-tabs::-webkit-scrollbar { display: none; }
    
    .exp-tab-btn { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 6px 8px !important;
        min-width: 50px;
        flex-shrink: 0;
        flex: 1;
        background: transparent !important;
        border: none !important;
        border-radius: 10px;
        color: var(--text-tertiary);
    }
    
    .exp-tab-btn svg {
        width: 18px;
        height: 18px;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .exp-tab-btn .tab-label {
        width: auto !important;
        opacity: 1 !important;
        font-size: 9.5px;
        font-weight: 500;
        display: block;
        text-align: center;
        color: inherit;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 58px;
        transition: none !important;
    }
    
    .exp-tab-btn.active {
        color: var(--text-primary) !important;
        background: rgba(var(--overlay-rgb), 0.08) !important;
    }
    
    .exp-tab-btn.active svg {
        color: var(--main-accent);
    }
    
    .light-theme .exp-tabs {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    }
    
    .exp-tab-btn.btn-logout {
        color: var(--danger) !important;
        border: none !important;
        background: transparent !important;
    }

}

/* ═══════════════════════════════════════════════════
   RECRUITMENT & HIRING SECTION (НАБОР)
   ═══════════════════════════════════════════════════ */
.recruitment-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(var(--overlay-rgb), 0.08);
}

.recruitment-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.recruitment-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--main-accent-rgb), 0.12);
    border: 1px solid rgba(var(--main-accent-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-accent);
}

.recruitment-session-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-badge-container {
    display: flex;
    align-items: center;
}

.rec-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.rec-status-chip.status-inactive {
    background: rgba(var(--overlay-rgb), 0.05);
    border: 1px solid rgba(var(--overlay-rgb), 0.1);
    color: var(--text-muted);
}

.rec-status-chip.status-active {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #2ecc71;
}

.rec-status-chip.status-scheduled {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.35);
    color: #f39c12;
}

.chip-cancel-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 12px;
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.chip-cancel-btn:hover {
    opacity: 1;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
}

.voice-pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
}

@keyframes recPulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.session-actions-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-only {
    padding: 7px 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger-ghost {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-ghost:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #ff6b6b;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.rec-card {
    background: var(--bg-card);
    border: 1px solid rgba(var(--overlay-rgb), 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rec-card:hover {
    border-color: rgba(var(--overlay-rgb), 0.16);
    box-shadow: var(--shadow-sm);
}

.rec-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rec-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rec-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(var(--overlay-rgb), 0.05);
    border: 1px solid rgba(var(--overlay-rgb), 0.1);
}

.rec-user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.rec-user-tg {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.rec-card-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.rec-card-preview {
    font-size: 12px;
    line-height: 1.45;
    background: rgba(var(--overlay-rgb), 0.02);
    border: 1px solid rgba(var(--overlay-rgb), 0.04);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    flex-grow: 1;
}

.rec-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.rec-tag-ds-linked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.25);
    color: #5865F2;
}

.rec-tag-ds-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

/* Voice Pinned Card */
.rec-voice-pinned-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.06), rgba(var(--bg-card-rgb), 0.98));
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.05);
}

.voice-pinned-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.15);
}

.rec-badge-voice-count {
    font-size: 12px;
    font-weight: 500;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 3px 8px;
    border-radius: 6px;
}

.voice-candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.voice-candidate-card {
    background: rgba(var(--bg-card-rgb), 0.8);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rec-badge-voice-channel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Modal details */
.rec-modal-card {
    max-width: 600px;
    width: 92%;
}

.rec-answers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-qa-item {
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid rgba(var(--overlay-rgb), 0.06);
    border-radius: 8px;
    padding: 10px 14px;
}

.rec-qa-question {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.rec-qa-answer {
    font-size: 14px;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATION SYSTEM
═══════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.toast-item {
    pointer-events: auto;
    min-width: 280px;
    max-width: 440px;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    background: rgba(var(--bg-secondary-rgb), 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-item.toast-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}
.toast-item.toast-success .toast-icon { color: var(--success); }

.toast-item.toast-error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}
.toast-item.toast-error .toast-icon { color: var(--danger); }

.toast-item.toast-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}
.toast-item.toast-warning .toast-icon { color: var(--warning); }

.toast-item.toast-info {
    border-color: rgba(var(--main-accent-rgb), 0.35);
    background: rgba(var(--main-accent-rgb), 0.08);
}
.toast-item.toast-info .toast-icon { color: var(--main-accent); }

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    line-height: 1.45;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease;
}
.toast-close:hover {
    color: var(--text-primary);
}

.toast-item.toast-hiding {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════
   PROOF MEDIA EMBEDS
═══════════════════════════════════════════════════ */
.proof-media-container {
    margin-top: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    max-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.proof-image {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}
.proof-video {
    width: 100%;
    max-height: 460px;
    border-radius: var(--radius-md);
    outline: none;
}

/* Close modal button standard */
.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.08);
}

/* ═══════════════════════════════════════════════════
   CUSTOM DIALOGS (CONFIRM & PROMPT MODALS)
═══════════════════════════════════════════════════ */
.custom-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}
.custom-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}
.custom-dialog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}
.custom-dialog-overlay.active .custom-dialog-card {
    transform: scale(1) translateY(0);
}
.custom-dialog-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.custom-dialog-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 20px;
    word-break: break-word;
}
.custom-dialog-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    margin-bottom: 20px;
}
.custom-dialog-input:focus {
    border-color: var(--main-accent);
    box-shadow: 0 0 0 3px rgba(var(--main-accent-rgb), 0.15);
}
.custom-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════
   SHIFTS SYSTEM (СМЕНЫ МОДЕРАТОРОВ)
   ═══════════════════════════════════════════════════ */
.shifts-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(var(--overlay-rgb), 0.08);
}

/* ═══════════════════════════════════════════════════
   FLAT & MINIMALIST SHIFTS DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */

/* Topbar */
.shifts-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 6px 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.shifts-title-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.shifts-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.shifts-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.shifts-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shifts-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    user-select: none;
}

.shifts-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
}

.shifts-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.shifts-icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.shifts-icon-btn.is-muted {
    opacity: 0.5;
}

.shifts-my-filter-btn {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
}

/* Stats Row: Flat SaaS Metrics */
.shifts-stats-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shifts-stats-bar::-webkit-scrollbar {
    display: none;
}

.shifts-stats-bar .stat-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    font-size: 12.5px;
}

.shifts-stats-bar .stat-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.shifts-stats-bar .stat-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}

.shifts-stats-bar .stat-subtext {
    font-size: 11px;
    color: var(--text-muted);
}

.shifts-stats-bar .stat-sep {
    width: 1px;
    height: 14px;
    background: var(--border-color);
    flex-shrink: 0;
}

.shifts-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.shift-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.shift-stat-card:hover {
    border-color: var(--border-hover);
}

.shift-stat-card .stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shift-stat-card .stat-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.2;
}

.shift-stat-card .stat-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav Row: Segmented Pills & Search */
.shifts-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.shifts-tabs-segmented {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.shifts-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.shifts-tab-pill:hover {
    color: var(--text-primary);
}

.shifts-tab-pill.active {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.shifts-pill-count {
    font-size: 11px;
    opacity: 0.65;
}

.shifts-filters-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shifts-search-flat {
    position: relative;
    display: flex;
    align-items: center;
}

.shifts-search-flat svg {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.shifts-search-flat input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px 6px 30px;
    font-size: 13px;
    color: var(--text-primary);
    width: 175px;
    outline: none;
    transition: all 0.15s ease;
}

.shifts-search-flat input:focus {
    border-color: var(--main-accent);
    width: 205px;
}

.shifts-filter-chip {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.shifts-filter-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.shifts-filter-chip.active {
    background: rgba(var(--main-accent-rgb), 0.12);
    border-color: var(--main-accent);
    color: var(--main-accent-contrast);
    font-weight: 500;
}

/* Day Section Header */
.shifts-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.shifts-day-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.shifts-day-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.shifts-day-weekday {
    font-size: 13px;
    color: var(--text-muted);
}

.shifts-day-meta-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Grid & Cards (Flat & Minimal) */
.shifts-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 14px;
}

.shifts-three-days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.shifts-day-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.shifts-column-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.shifts-column-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.shifts-column-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.shifts-column-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Individual Shift Card (Flat) */
.shift-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s ease;
}

.shift-card:hover {
    border-color: var(--border-hover);
}

.shift-card.is-current {
    border-color: rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.025);
}

.shift-card.is-enrolled {
    border-color: rgba(var(--main-accent-rgb), 0.4);
}

.shift-card.is-past {
    opacity: 0.45;
}

.shift-card.is-past:hover {
    opacity: 0.75;
}

/* Card Header */
.shift-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.shift-card-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}

.shift-card-time svg {
    color: var(--text-muted);
}

/* Status Chips */
.shift-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    user-select: none;
}

.chip-active {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
}

.chip-enrolled {
    background: rgba(var(--main-accent-rgb), 0.12);
    color: var(--main-accent-contrast);
}

.chip-available {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.chip-full {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
}

.chip-past {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.shift-pulse-dot {
    width: 5px;
    height: 5px;
    background: #2ecc71;
    border-radius: 50%;
}

/* Minimalist Moderator Rows */
.shift-mods-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin: 4px 0;
}

.shift-mod-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.shift-mod-row.row-me {
    background: rgba(var(--main-accent-rgb), 0.08);
    border-color: rgba(var(--main-accent-rgb), 0.25);
}

.shift-head-mini {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.shift-mod-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.shift-role-mini {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.shift-role-mini.badge-admin { color: #e74c3c; font-weight: 500; }
.shift-role-mini.badge-curator { color: #9b59b6; font-weight: 500; }
.shift-role-mini.badge-moderator { color: #3498db; }

.shift-empty-state-mini {
    font-size: 11.5px;
    color: var(--text-muted);
    padding: 6px 4px;
    font-style: italic;
}

/* Moderator Cells (Flat Rows) */
.shift-mod-cells-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.shift-mod-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 40px;
    transition: border-color 0.15s ease;
}

.shift-mod-cell.cell-me {
    background: rgba(var(--main-accent-rgb), 0.05);
    border-color: rgba(var(--main-accent-rgb), 0.25);
}

.shift-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shift-head-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.shift-mod-details {
    flex: 1;
    min-width: 0;
}

.shift-mod-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shift-mod-username {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shift-pill-me {
    font-size: 9.5px;
    font-weight: 500;
    background: var(--main-accent);
    color: var(--bg-primary);
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.1;
}

.shift-mod-sub-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.shift-role-pill {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.shift-role-pill.badge-admin { color: #e74c3c; font-weight: 500; }
.shift-role-pill.badge-curator { color: #9b59b6; font-weight: 500; }
.shift-role-pill.badge-moderator { color: #3498db; }

.shift-note-tooltip {
    font-size: 11px;
    cursor: help;
    opacity: 0.75;
}

.shift-mod-remove-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.shift-mod-remove-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Empty Cell (Flat dashed slot) */
.shift-mod-cell.cell-empty {
    border: 1px dashed var(--border-color);
    background: transparent;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.shift-mod-cell.cell-empty:hover {
    border-color: var(--main-accent);
    background: rgba(var(--main-accent-rgb), 0.04);
    color: var(--main-accent);
}

.shift-empty-icon {
    font-size: 14px;
    font-weight: 500;
    margin-right: 4px;
}

.shift-empty-text {
    font-size: 12px;
    font-weight: 500;
}

.shift-mod-cell.cell-empty.is-past {
    border: 1px dashed var(--border-color);
    background: transparent;
    cursor: default;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.shift-mod-cell.cell-empty.is-past:hover {
    border-color: var(--border-color);
    background: transparent;
    color: var(--text-tertiary);
}

.shift-empty-dash {
    font-size: 13px;
    margin-right: 4px;
}

/* Shift Card Footer */
.shift-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding-top: 6px;
}

.shift-card-btn {
    width: 100%;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    justify-content: center;
}

.shift-card-full-note {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    padding: 4px 0;
}

.shift-card-past-note {
    font-size: 11.5px;
    color: var(--text-tertiary);
    text-align: center;
    padding: 4px 0;
}

/* Past Hours Collapsible */
.shift-toggle-past-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.shift-toggle-past-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.shift-toggle-past-btn.is-open {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.shifts-past-section {
    margin-bottom: 18px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.shifts-past-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shifts-past-grid {
    opacity: 0.75;
}

/* Empty States */
.shift-empty-filter-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
}

.shift-empty-column-state {
    text-align: center;
    padding: 20px 10px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 980px) {
    .shifts-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shifts-three-days-grid {
        grid-template-columns: 1fr;
    }
    .shifts-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .shifts-top-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 540px) {
    .shifts-stats-grid {
        grid-template-columns: 1fr;
    }
    .shifts-nav-row {
        flex-direction: column;
        align-items: stretch;
    }
    .shifts-tabs-segmented {
        overflow-x: auto;
    }
}

/* ═══════════════════════════════════════════════════
   СИСТЕМА ПРОВЕРОК (REVISES / CHECKS — REAL-TIME UI)
   ═══════════════════════════════════════════════════ */

.revises-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.revises-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.revises-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.revises-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.revises-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Status Pill with Dot */
.revises-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.revises-status-pill.is-active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.revises-status-pill.is-inactive {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.revises-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.revises-status-pill.is-active .revises-live-dot {
    background: #10b981;
}

.revises-status-pill.is-inactive .revises-live-dot {
    background: #f59e0b;
}

/* Off-Shift Notice Banner */
.revises-notice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

.revises-notice-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.revises-notice-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.revises-notice-text h4 {
    font-size: 14.5px;
    font-weight: 500;
    color: #fbbf24;
    margin-bottom: 2px;
}

.revises-notice-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Workspace Grid Layout */
.revises-workspace {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.25fr);
    gap: 20px;
    margin-top: 16px;
    align-items: start;
}

@media (max-width: 960px) {
    .revises-workspace {
        grid-template-columns: 1fr;
    }
}

/* Pane Wrappers */
.revises-queue-pane,
.revises-active-pane {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.revises-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.revises-pane-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.revises-pane-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.revises-queue-badge {
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    background: rgba(var(--main-accent-rgb), 0.15);
    color: var(--main-accent);
    font-size: 12px;
    font-weight: 500;
}

/* Search bar in queue header */
.revises-search-box {
    position: relative;
    width: 180px;
}

.revises-search-box input {
    width: 100%;
    padding: 6px 10px 6px 28px;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12.5px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.revises-search-box input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(var(--overlay-rgb), 0.08);
}

.revises-search-box svg {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Queue List and Items */
.revises-queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}

.revises-queue-list::-webkit-scrollbar {
    width: 5px;
}

.revises-queue-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Individual Revise Card */
.revise-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.revise-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.revise-card.is-active-claim {
    border-color: rgba(var(--main-accent-rgb), 0.5);
    background: rgba(var(--main-accent-rgb), 0.04);
}

.revise-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.revise-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.revise-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #202028;
    image-rendering: pixelated;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.revise-player-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.revise-player-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.badge-server {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.14);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 500;
}

.badge-kp {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(244, 63, 94, 0.14);
    color: #fda4af;
    font-size: 11px;
    font-weight: 500;
}

/* Time countdown chip */
.revise-timer-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.revise-timer-chip.is-urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    animation: timerPulse 1s infinite alternate;
}

@keyframes timerPulse {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Code box */
.revise-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    gap: 8px;
}

.revise-code-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.revise-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14.5px;
    font-weight: 500;
    color: #38bdf8;
    letter-spacing: 0.04em;
}

.btn-copy-code {
    padding: 4px 8px;
    background: rgba(var(--overlay-rgb), 0.06);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: rgba(var(--overlay-rgb), 0.12);
    color: var(--text-primary);
}

/* Card Button */
.btn-take-revise {
    width: 100%;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Empty Queue State */
.revises-empty-queue {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.revises-empty-radar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    animation: radarSpin 8s linear infinite;
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Active Revise Workspace (Right Pane) */
.active-revise-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    color: var(--text-muted);
    gap: 14px;
    flex: 1;
}

.active-revise-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--main-accent-rgb), 0.08);
    color: var(--main-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-revise-session {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

/* Active Session Header */
.active-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    gap: 12px;
    flex-wrap: wrap;
}

.active-session-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.active-session-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1e1e24;
    border: 1px solid rgba(var(--overlay-rgb), 0.1);
    image-rendering: pixelated;
}

.active-session-nick {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.active-session-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-session-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat Messages Container */
.revise-chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.revise-chat-messages {
    flex: 1;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.revise-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.revise-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(var(--overlay-rgb), 0.12);
    border-radius: 4px;
}

/* Message Bubble Styles */
.chat-msg-row {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: chatMsgIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.chat-msg-row.from-moderator {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-msg-row.from-victim {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-msg-row.from-system {
    align-self: center;
    align-items: center;
    max-width: 95%;
}

.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 500;
}

.chat-msg-row.from-moderator .chat-msg-header {
    color: rgba(var(--main-accent-rgb), 0.9);
}

.chat-msg-row.from-victim .chat-msg-header {
    color: #38bdf8;
}

.chat-msg-time {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 400;
}

.chat-bubble {
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-msg-row.from-moderator .chat-bubble {
    background: var(--main-accent);
    color: var(--main-accent-contrast, #fff);
    border-bottom-right-radius: 3px;
}

.chat-msg-row.from-victim .chat-bubble {
    background: rgba(var(--overlay-rgb), 0.07);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 3px;
}

.chat-msg-row.from-system .chat-bubble {
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

/* Quick Phrases Strip */
.revise-quick-phrases {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(var(--overlay-rgb), 0.03);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
}

.revise-quick-phrases::-webkit-scrollbar {
    height: 4px;
}

.revise-quick-phrases::-webkit-scrollbar-thumb {
    background: rgba(var(--overlay-rgb), 0.1);
    border-radius: 4px;
}

.quick-phrase-chip {
    padding: 4px 10px;
    background: rgba(var(--overlay-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.quick-phrase-chip:hover {
    background: rgba(var(--main-accent-rgb), 0.15);
    border-color: rgba(var(--main-accent-rgb), 0.35);
    color: var(--text-primary);
}

/* Chat Input Bar */
.revise-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-secondary);
}

.revise-chat-input-bar input {
    flex: 1;
    padding: 9px 14px;
    background: rgba(var(--overlay-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.revise-chat-input-bar input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(var(--overlay-rgb), 0.09);
}

.btn-send-chat {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Salary Page */
.salary-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .salary-actions-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════
   LOGS AUDIT SYSTEM — SaaS Design
═══════════════════════════════════════════════════ */
.logs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.logs-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logs-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.logs-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 400;
}

.logs-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.logs-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(var(--success-rgb), 0.6);
    display: inline-block;
}

/* Search Panel */
.logs-search-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.logs-search-grid {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 900px) {
    .logs-search-grid {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 600px) {
    .logs-search-grid {
        grid-template-columns: 1fr;
    }
}

.logs-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.logs-input-wrap svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.15s ease;
}

.logs-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.logs-input-wrap input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(var(--overlay-rgb), 0.07);
    box-shadow: 0 0 0 3px rgba(var(--main-accent-rgb), 0.15);
}

.logs-select {
    padding: 11px 14px;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.logs-select:focus {
    border-color: var(--border-focus);
    background: rgba(var(--overlay-rgb), 0.07);
}

.logs-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Player Summary Bar */
.logs-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.logs-player-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logs-player-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logs-player-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-player-nick {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logs-player-server-chip {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(var(--main-accent-rgb), 0.12);
    color: var(--main-accent);
    border: 1px solid rgba(var(--main-accent-rgb), 0.25);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Controls Bar: Tabs + Filter + Sort */
.logs-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.logs-tabs-nav {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.logs-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.logs-tab-btn:hover {
    color: var(--text-primary);
}

.logs-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.logs-tab-counter {
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    background: rgba(var(--overlay-rgb), 0.07);
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.logs-tab-btn.active .logs-tab-counter {
    background: rgba(var(--main-accent-rgb), 0.18);
    color: var(--main-accent);
}

.logs-right-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.logs-filter-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.logs-filter-wrap svg {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.logs-filter-input {
    padding: 7px 12px 7px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    width: 190px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.logs-filter-input:focus {
    outline: none;
    border-color: var(--border-focus);
    width: 230px;
    background: rgba(var(--overlay-rgb), 0.06);
}

.logs-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.logs-sort-btn:hover {
    border-color: var(--border-hover);
    background: rgba(var(--overlay-rgb), 0.05);
}

.logs-sort-btn.is-asc {
    border-color: rgba(var(--main-accent-rgb), 0.4);
    color: var(--main-accent);
    background: rgba(var(--main-accent-rgb), 0.08);
}

/* Panels & Feeds */
.logs-panel-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Bans Table */
.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.logs-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(var(--overlay-rgb), 0.02);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.logs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(var(--overlay-rgb), 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.logs-table tr:last-child td {
    border-bottom: none;
}

.logs-table tr:hover td {
    background: rgba(var(--overlay-rgb), 0.02);
}

/* Status Badges */
.logs-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), 0.25);
}

.logs-badge-dot-danger {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.8);
    display: inline-block;
}

.logs-badge-expired {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.logs-badge-unbanned {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(var(--accent-violet-rgb), 0.12);
    color: var(--accent-violet);
    border: 1px solid rgba(var(--accent-violet-rgb), 0.25);
}

.logs-ban-reason-box {
    padding: 8px 12px;
    background: rgba(var(--overlay-rgb), 0.03);
    border-left: 3px solid rgba(var(--overlay-rgb), 0.2);
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

/* Chat Stream */
.logs-stream-container {
    max-height: 680px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.logs-chat-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(var(--overlay-rgb), 0.03);
    transition: background 0.12s ease;
}

.logs-chat-item:hover {
    background: rgba(var(--overlay-rgb), 0.025);
}

.logs-chat-time {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    user-select: none;
}

.logs-chat-user {
    font-weight: 500;
    font-size: 13.5px;
    color: #60a5fa;
    flex-shrink: 0;
}

.logs-chat-text {
    font-size: 13.5px;
    color: var(--text-primary);
    word-break: break-word;
    flex-grow: 1;
    line-height: 1.5;
}

/* Commands Terminal */
.logs-cmd-feed {
    background: #08090d;
    max-height: 680px;
    overflow-y: auto;
    scrollbar-width: thin;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.logs-cmd-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.12s ease;
}

.logs-cmd-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.logs-cmd-time {
    font-size: 11px;
    color: #52525b;
    flex-shrink: 0;
    user-select: none;
}

.logs-cmd-prompt {
    color: #06b6d4;
    font-weight: 500;
    flex-shrink: 0;
    user-select: none;
}

.logs-cmd-text {
    font-size: 12.5px;
    color: #34d399;
    word-break: break-all;
    flex-grow: 1;
    line-height: 1.5;
}

/* Copy Button */
.logs-copy-btn {
    opacity: 0.35;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.logs-chat-item:hover .logs-copy-btn,
.logs-cmd-item:hover .logs-copy-btn {
    opacity: 0.85;
}

.logs-copy-btn:hover {
    opacity: 1 !important;
    background: rgba(var(--overlay-rgb), 0.08);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Empty States */
.logs-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--text-muted);
}

.logs-empty-icon {
    margin-bottom: 12px;
    color: var(--text-muted);
    opacity: 0.45;
}

/* ═══════════════════════════════════════════════════
   RELATIONSHIPS TAB IN LOGS (CLEAN & MINIMAL)
═══════════════════════════════════════════════════ */
.relationships-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--accent);
    font-weight: 500;
}

.relationships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    padding: 16px;
    gap: 10px;
}

.relationship-card {
    background: rgba(var(--bg-secondary-rgb), 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.relationship-card:hover {
    border-color: var(--border-hover);
    background: rgba(var(--bg-tertiary-rgb), 0.8);
    transform: translateY(-1px);
}

.relationship-user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.relationship-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    image-rendering: pixelated;
}

.relationship-nick {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.relationship-nick:hover {
    color: var(--accent);
}

.relationship-confidence-block {
    flex-shrink: 0;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    font-family: monospace;
}

.confidence-badge.high {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.confidence-badge.medium {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.confidence-badge.low {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.logs-empty-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.logs-empty-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   ATTESTATIONS & BOOKING SYSTEM (ОТДЕЛЕНИЕ ПРОВЕРОК)
   ═══════════════════════════════════════════════════ */

/* Slot Cards Grid */
.att-grid-container {
    min-height: 240px;
}

.att-slot-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    transition: all 0.15s ease;
    position: relative;
}

.att-slot-card:hover {
    border-color: var(--border-hover);
}

.att-slot-card.card-my-booking {
    border-color: rgba(var(--main-accent-rgb), 0.4);
    background: linear-gradient(180deg, rgba(var(--main-accent-rgb), 0.03) 0%, var(--bg-card) 100%);
}

.att-slot-card.card-past {
    opacity: 0.55;
}

.att-slot-card.card-past:hover {
    opacity: 0.75;
}

/* Card Header */
.att-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.att-card-time {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}

.att-card-date {
    font-size: 11px;
    font-weight: normal;
    color: var(--text-muted);
}

.att-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Compact Tags */
.att-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 500;
    user-select: none;
}

.tag-beta {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.tag-alpha {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.tag-theory {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.tag-practice {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-any {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Card Body & Rows */
.att-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    flex: 1;
}

.att-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
}

.att-row-label {
    color: var(--text-muted);
    font-size: 11.5px;
}

.att-row-val {
    color: var(--text-primary);
    font-size: 12px;
}

.att-contact-pill {
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(var(--overlay-rgb), 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: monospace;
}

.att-note-box {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(var(--overlay-rgb), 0.025);
    border-left: 2px solid var(--border-color);
    padding: 3px 6px;
    border-radius: 0 4px 4px 0;
    margin-top: 2px;
    font-style: italic;
    word-break: break-word;
}

.att-card-footer {
    margin-top: auto;
    padding-top: 4px;
}

/* View Mode Toggles & Filter Selects */
.att-view-mode-group {
    display: flex;
    gap: 2px;
    background: var(--bg-tertiary);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.btn-att-view-mode {
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-att-view-mode:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.05);
}

.btn-att-view-mode.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.att-filter-select {
    padding: 4px 8px;
    font-size: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

/* Empty State */
.att-empty-state {
    padding: 48px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin: 12px 0;
}

/* Radio Selection Cards (Modals) */
.att-radio-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    padding: 10px 12px;
    transition: all 0.15s ease;
    user-select: none;
}

.att-radio-card input[type="radio"] {
    display: none;
}

.att-radio-card:hover {
    border-color: var(--border-hover);
}

.att-radio-card.active-radio {
    border-color: var(--main-accent);
    background: rgba(var(--main-accent-rgb), 0.08);
}

/* Quick Time Button Matrix */
.att-quick-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.btn-quick-time {
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-quick-time:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-quick-time.selected {
    background: var(--main-accent);
    border-color: var(--main-accent);
    color: #fff;
}

/* Selected Slots Badges */
.att-selected-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(var(--main-accent-rgb), 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(var(--main-accent-rgb), 0.25);
}

.att-selected-time-badge button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.att-selected-time-badge button:hover {
    color: #ef4444;
}

/* Complete Modal Results */
.att-result-card {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    user-select: none;
}

.att-result-card:hover {
    border-color: var(--border-hover);
}

.att-result-card.active-passed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.att-result-card.active-failed {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Inline Spinner for Buttons */
.spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ═══════════════════════════════════════════════════
   SALARY & SHOP STYLES
═══════════════════════════════════════════════════ */
.salary-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(var(--overlay-rgb), 0.03);
    color: var(--text-secondary);
}
.salary-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.07);
}
.salary-tab-btn.active {
    background: var(--main-accent);
    color: #fff;
    border-color: var(--main-accent);
    box-shadow: 0 2px 10px rgba(var(--main-accent-rgb, 99, 102, 241), 0.35);
}

/* ═══════════════════════════════════════════════════
   SALARY & SHOP MODERN REDESIGN
═══════════════════════════════════════════════════ */

/* Hero Banner & Balance Card */
.salary-hero-card {
    background: rgba(var(--overlay-rgb), 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.salary-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.salary-hero-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.salary-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-accent);
    display: inline-block;
}

.salary-hero-balance-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.salary-hero-amount {
    font-size: 38px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.salary-hero-unit {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.salary-hero-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.salary-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--overlay-rgb), 0.035);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
}

.salary-pill-label {
    color: var(--text-tertiary);
    font-weight: 400;
}

.salary-pill-val {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.salary-pill-val.tokens-val {
    color: #f59e0b;
}

.salary-pill-val.rub-val {
    color: #10b981;
}

/* Rate Card on the Right */
.salary-rate-card {
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

.salary-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
}

.salary-rate-label {
    color: var(--text-tertiary);
}

.salary-rate-tag {
    font-size: 12px;
    font-weight: 500;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
}

.salary-rate-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.salary-rate-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

/* Segmented Control Switcher */
.salary-nav-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.salary-nav-tabs {
    display: flex;
    gap: 4px;
    background: rgba(var(--overlay-rgb), 0.04);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.salary-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.salary-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.04);
}

.salary-tab-btn.active {
    background: var(--main-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--main-accent-rgb), 0.3);
}

.salary-tab-count {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.btn-clean-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clean-action:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.07);
    border-color: rgba(var(--overlay-rgb), 0.15);
}

/* Category Filter Chips & Search */
.salary-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.salary-categories-scroller {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.salary-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(var(--overlay-rgb), 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1;
}

.salary-cat-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.salary-cat-chip span {
    display: inline-block;
    line-height: 1;
}

.salary-cat-chip:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.05);
}

.salary-cat-chip.active {
    background: rgba(var(--overlay-rgb), 0.1);
    color: var(--text-primary);
    border-color: rgba(var(--overlay-rgb), 0.25);
}

.salary-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    flex: 1;
    max-width: 320px;
}

.salary-search-box svg {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.salary-search-box input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    font-size: 13px;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.salary-search-box input:focus {
    border-color: var(--main-accent);
    background: rgba(var(--overlay-rgb), 0.05);
    box-shadow: 0 0 0 2px rgba(var(--main-accent-rgb), 0.15);
}

/* Products Grid & Modern Cards */
.salary-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.salary-product-card {
    background: rgba(var(--overlay-rgb), 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    position: relative;
}

.salary-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--overlay-rgb), 0.18);
    background: rgba(var(--overlay-rgb), 0.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.salary-product-preview {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    overflow: hidden;
}

.salary-product-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.salary-product-card:hover .salary-product-preview img {
    transform: scale(1.08);
}

.salary-product-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.salary-product-top {
    min-width: 0;
}

.salary-product-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.salary-product-chip {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
}

.salary-product-bonus {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 5px;
}

.salary-product-title {
    margin: 0 0 3px 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.salary-product-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.salary-product-bottom {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(var(--overlay-rgb), 0.05);
}

.salary-card-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.salary-card-stepper-row .stepper-label {
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.salary-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.salary-product-pricing {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.salary-price-rub {
    font-size: 11px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.salary-price-pts {
    font-size: 15px;
    font-weight: 500;
    color: var(--main-accent);
    line-height: 1.2;
}

.salary-price-pts .pts-unit {
    font-size: 12px;
    font-weight: 400;
}

.salary-card-btn {
    padding: 5px 14px;
    font-size: 12.5px;
    border-radius: 7px;
    white-space: nowrap;
}

.salary-card-btn.not-enough {
    opacity: 0.65;
    cursor: not-allowed;
    background: rgba(var(--overlay-rgb), 0.05);
    border-color: var(--border-color);
}

/* Tab 2: Withdraw Panel */
.salary-withdraw-panel {
    background: rgba(var(--overlay-rgb), 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    max-width: 620px;
    margin: 0 auto;
}

.salary-withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.salary-card-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.salary-card-subheading {
    margin: 3px 0 0 0;
    font-size: 12.5px;
    color: var(--text-tertiary);
}

.salary-withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.salary-input-label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.salary-label-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.salary-field-max {
    font-size: 12px;
    color: var(--text-tertiary);
}

.salary-field-max b {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════
   PREMIUM CUSTOM NICKNAME SELECTOR COMPONENT
═══════════════════════════════════════════════════ */
.custom-nick-select-container {
    position: relative;
    width: 100%;
}

.custom-nick-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(var(--overlay-rgb), 0.035);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s var(--tg-ease-out);
    user-select: none;
}

.custom-nick-trigger:hover {
    background: rgba(var(--overlay-rgb), 0.06);
    border-color: rgba(var(--overlay-rgb), 0.18);
}

.custom-nick-select-container.open .custom-nick-trigger {
    border-color: var(--main-accent);
    background: rgba(var(--overlay-rgb), 0.05);
}

.custom-nick-current {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.custom-nick-avatar {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(var(--overlay-rgb), 0.08);
    object-fit: cover;
    flex-shrink: 0;
}

.custom-nick-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-nick-arrow {
    color: var(--text-tertiary);
    transition: transform 0.2s var(--tg-ease-out);
    flex-shrink: 0;
}

.custom-nick-select-container.open .custom-nick-arrow {
    transform: rotate(180deg);
}

.custom-nick-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(var(--bg-secondary-rgb), 0.98);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 5px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: all 0.18s var(--tg-ease-out);
    max-height: 220px;
    overflow-y: auto;
}

.custom-nick-select-container.open .custom-nick-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-nick-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.14s var(--tg-ease-out);
}

.custom-nick-option:hover {
    background: rgba(var(--overlay-rgb), 0.07);
}

.custom-nick-option.selected {
    background: rgba(var(--main-accent-rgb), 0.12);
}

.custom-nick-option-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.custom-nick-check {
    color: var(--main-accent);
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.15s ease;
}

.custom-nick-option.selected .custom-nick-check {
    opacity: 1;
    transform: scale(1);
}

.custom-nick-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 6px;
}

.custom-nick-custom-input {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-nick-custom-input input {
    width: 100%;
    background: rgba(var(--overlay-rgb), 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    color: var(--text-primary);
    outline: none;
}

.custom-nick-custom-input input:focus {
    border-color: var(--main-accent);
}

.custom-nick-badge-x3 {
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.salary-field-hint {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.salary-number-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.salary-number-input {
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    padding-right: 70px !important;
    border-radius: 8px;
}

.salary-input-suffix {
    position: absolute;
    right: 12px;
    font-size: 12.5px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.salary-preset-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.salary-preset-btn {
    flex: 1;
    padding: 6px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.salary-preset-btn:hover {
    color: var(--text-primary);
    background: rgba(var(--overlay-rgb), 0.07);
}

.salary-preview-card {
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
}

.salary-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salary-preview-row .preview-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.salary-preview-row .preview-val.tokens-highlight {
    font-size: 17px;
    font-weight: 500;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.salary-preview-formula {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.salary-btn-submit {
    width: 100%;
    font-size: 14px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

/* History Card & Glass Rows */
.salary-history-card {
    background: rgba(var(--overlay-rgb), 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-top: 24px;
}

.salary-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.salary-history-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-history-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--overlay-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.salary-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.salary-hist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(var(--overlay-rgb), 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: background 0.15s ease;
}

.salary-hist-row:hover {
    background: rgba(var(--overlay-rgb), 0.04);
}

.salary-hist-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.salary-hist-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(var(--overlay-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.salary-hist-details {
    min-width: 0;
}

.salary-hist-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.salary-hist-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
}

.salary-hist-badge.product-badge {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.salary-hist-date {
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.salary-hist-target {
    font-size: 12.5px;
    color: var(--text-primary);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.salary-hist-right {
    flex-shrink: 0;
    text-align: right;
}

.salary-hist-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.salary-hist-points {
    font-weight: 500;
    font-size: 13.5px;
}

.salary-hist-points.negative {
    color: var(--danger);
}

.salary-hist-points.positive {
    color: var(--success);
}

.salary-hist-sub.tokens {
    font-size: 11.5px;
    font-weight: 500;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.shop-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(var(--overlay-rgb), 0.04);
    height: 28px;
}
.shop-qty-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    width: 24px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.shop-qty-btn:hover {
    background: rgba(var(--overlay-rgb), 0.08);
    color: var(--text-primary);
}
.shop-qty-val {
    width: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.spin-icon {
    animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════
   RECRUITMENT ENHANCEMENTS
═══════════════════════════════════════════════════ */
.recruitment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.recruitment-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.recruitment-search-wrap svg {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.recruitment-search-wrap input {
    padding: 8px 14px 8px 34px;
    font-size: 13px;
    background: rgba(var(--overlay-rgb), 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    width: 220px;
    outline: none;
    transition: all 0.2s ease;
}

.recruitment-search-wrap input:focus {
    border-color: var(--main-accent);
    background: rgba(var(--overlay-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--main-accent-rgb), 0.12);
}

.rec-tab-content {
    animation: fadeInRecTab 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInRecTab {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════
   MODERN AUTH / LOGIN REDESIGN
═══════════════════════════════════════════════════ */
.auth-page {
    position: relative;
    overflow-x: hidden;
    background: var(--bg-primary);
}

.auth-page-aura {
    display: none;
}

@keyframes authAuraPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   FLAT MINIMAL AUTH / EXPANDABLE LOGIN
═══════════════════════════════════════════════════ */
.auth-page {
    position: relative;
    overflow-x: hidden;
    background: var(--bg-primary);
}

.auth-container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.auth-box-flat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin: auto;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.auth-box-flat.expanded {
    max-width: 640px;
    padding: 34px 32px;
}

.auth-header-flat {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header-flat .logo-mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 10px;
    background: rgba(var(--overlay-rgb), 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
}

.auth-title-flat {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.auth-subtitle-flat {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Flat telegram button */
.btn-tg-flat {
    width: 100%;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background: #24A1DE;
    color: #ffffff;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.btn-tg-flat:hover:not(:disabled) {
    background: #1f94cd;
}

.btn-tg-flat:active:not(:disabled) {
    transform: scale(0.99);
}

.btn-tg-flat:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Waiting state */
.auth-waiting-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 0 4px;
}

.auth-waiting-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-waiting-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.btn-open-tg-flat {
    flex: 1;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: #24A1DE;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-open-tg-flat:hover {
    background: #1f94cd;
}

.btn-cancel-flat {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-cancel-flat:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Accounts Selection List with Stats */
.staff-accounts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 2px;
}

.staff-acc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(var(--overlay-rgb), 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: left;
    width: 100%;
}

.staff-acc-card:hover {
    background: rgba(var(--overlay-rgb), 0.05);
    border-color: var(--main-accent);
}

.staff-acc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    image-rendering: pixelated;
    background: rgba(var(--overlay-rgb), 0.05);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.staff-acc-info {
    flex: 1;
    min-width: 0;
}

.staff-acc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.staff-acc-nick {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.staff-role-chip {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 5px;
}

.staff-role-admin { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.staff-role-curator { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.staff-role-mod { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.staff-role-trainee { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Stats row inside account card */
.staff-acc-stats-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.staff-acc-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.staff-acc-stat b {
    font-weight: 500;
    color: var(--text-primary);
}

.staff-acc-stat.stat-points b {
    color: #f59e0b;
}

.staff-acc-action {
    flex-shrink: 0;
}

.btn-acc-enter {
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: var(--main-accent);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}

.staff-acc-card:hover .btn-acc-enter {
    filter: brightness(1.1);
}
