@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');


:root {
    --bg: #0b0f19;
    --bg2: #111827;
    --bg3: #1a2234;
    --card: #162032;
    --border: #243044;
    --border2: #2e3f5c;
    --accent: #3b82f6;
    --accent2: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.18);
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.12);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.12);
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.12);
    --purple: #8b5cf6;
    --purple-bg: rgba(139, 92, 246, 0.12);
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ── LIGHT THEME ───────────────────────────────────────── */
[data-theme="light"] {
    --bg:           #f1f5f9;
    --bg2:          #ffffff;
    --bg3:          #f8fafc;
    --card:         #ffffff;
    --border:       #e2e8f0;
    --border2:      #cbd5e1;
    --accent:       #3b82f6;
    --accent2:      #2563eb;
    --accent-glow:  rgba(59, 130, 246, 0.12);
    --green:        #059669;
    --green-bg:     rgba(5, 150, 105, 0.1);
    --red:          #dc2626;
    --red-bg:       rgba(220, 38, 38, 0.1);
    --amber:        #d97706;
    --amber-bg:     rgba(217, 119, 6, 0.1);
    --purple:       #7c3aed;
    --purple-bg:    rgba(124, 58, 237, 0.1);
    --text:         #0f172a;
    --text2:        #475569;
    --text3:        #94a3b8;
    --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── THEME TOGGLE BUTTON ───────────────────────────────── */
.theme-toggle {
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: "Vazirmatn", sans-serif;
}

    .theme-toggle:hover {
        border-color: var(--accent);
        color: var(--accent2);
    }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }
/* LOGIN */
.login-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 16px;
    padding: 40px;
    width: 380px;
    box-shadow: var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-icon {
    width: 58px;
    height: 58px;
    /*background: linear-gradient(135deg, var(--accent), #2563eb);*/
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 0 30px var(--accent-glow);
}

.login-logo h1 {
    font-size: 20px;
    font-weight: 800;
}

.login-logo p {
    font-size: 13px;
    color: var(--text3);
    margin-top: 4px;
}

.login-err {
    background: var(--red-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CAPTCHA */
.captcha-group > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-group img {
    width: 100%;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border2);
    background: #e2e8f0;
    display: block;
}

.captcha-refresh {
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

    .captcha-refresh::before {
        content: "\f021";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 13px;
    }

    .captcha-refresh:hover {
        border-color: var(--accent);
        color: var(--accent2);
    }

.captcha-err {
    font-size: 12px;
    color: var(--red);
    display: block;
    margin-top: 2px;
}

.lf-group {
    margin-bottom: 14px;
}

.lf-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    display: block;
    margin-bottom: 6px;
}

.lf-input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

    .lf-input:focus {
        border-color: var(--accent);
    }

.login-btn {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s;
}

    .login-btn:hover {
        background: #2563eb;
        box-shadow: 0 0 20px var(--accent-glow);
    }
/* LAYOUT */
.layout {
    display: flex;
    height: 100vh;
}
/* SIDEBAR */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-logo {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    /*background: linear-gradient(135deg, var(--accent), #2563eb);*/
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

    .logo-text small {
        display: block;
        font-size: 11px;
        font-weight: 400;
        color: var(--text3);
    }

.user-bar {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ub-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

    .ub-avatar.admin {
        background: var(--accent-glow);
        color: var(--accent2);
    }

    .ub-avatar.user {
        background: var(--purple-bg);
        color: var(--purple);
    }

.ub-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.ub-role {
    font-size: 10px;
    color: var(--text3);
}

.ub-logout {
    margin-right: auto;
    background: transparent;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.15s;
}

    .ub-logout:hover {
        color: var(--red);
    }

.branch-badge-sb {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.nav-sec {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 10px 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    transition: all 0.15s;
    margin-bottom: 2px;
    position: relative;
    text-decoration: none;
}

    .nav-item i {
        width: 17px;
        text-align: center;
        font-size: 14px;
    }

    .nav-item:hover {
        background: var(--bg3);
        color: var(--text);
    }

    .nav-item.active {
        background: var(--accent-glow);
        color: var(--accent2);
        border: 1px solid rgba(59, 130, 246, 0.25);
    }

        .nav-item.active::before {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 16px;
            background: var(--accent);
            border-radius: 2px;
        }

.sb-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text3);
    text-align: center;
}
/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 56px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    flex-shrink: 0;
}

.topbar-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .topbar-title i {
        color: var(--accent);
        font-size: 16px;
    }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-badge-bar {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}
/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

    .stat-card:hover {
        border-color: var(--border2);
        transform: translateY(-2px);
    }

    .stat-card::before {
        content: "";
        position: absolute;
        top: -18px;
        left: -18px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        opacity: 0.08;
    }

.sc-blue::before {
    background: var(--accent);
}

.sc-green::before {
    background: var(--green);
}

.sc-red::before {
    background: var(--red);
}

.sc-amber::before {
    background: var(--amber);
}

.sc-purple::before {
    background: var(--purple);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 9px;
}

.sc-blue .stat-icon {
    background: var(--accent-glow);
    color: var(--accent2);
}

.sc-green .stat-icon {
    background: var(--green-bg);
    color: var(--green);
}

.sc-red .stat-icon {
    background: var(--red-bg);
    color: var(--red);
}

.sc-amber .stat-icon {
    background: var(--amber-bg);
    color: var(--amber);
}

.sc-purple .stat-icon {
    background: var(--purple-bg);
    color: var(--purple);
}

.stat-label {
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 3px;
}

.stat-val {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.sc-blue .stat-val {
    color: var(--accent2);
}

.sc-green .stat-val {
    color: var(--green);
}

.sc-red .stat-val {
    color: var(--red);
}

.sc-amber .stat-val {
    color: var(--amber);
}

.sc-purple .stat-val {
    color: var(--purple);
}

.stat-sub {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}
/* QUICK ACTIONS */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.qa {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

    .qa:hover {
        transform: translateY(-3px);
    }

    .qa.dep:hover {
        border-color: var(--green);
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.14);
    }

    .qa.tra:hover {
        border-color: var(--accent);
        box-shadow: 0 0 18px var(--accent-glow);
    }

    .qa.wit:hover {
        border-color: var(--red);
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.14);
    }

.qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    margin: 0 auto 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.qa.dep .qa-icon {
    background: var(--green-bg);
    color: var(--green);
}

.qa.tra .qa-icon {
    background: var(--accent-glow);
    color: var(--accent2);
}

.qa.wit .qa-icon {
    background: var(--red-bg);
    color: var(--red);
}

.qa-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}

.qa-desc {
    font-size: 11px;
    color: var(--text3);
}
/* CARD */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
}

.card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

    .card-title i {
        color: var(--accent);
    }
/* FORMS */
.f-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.f-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
}

.f-input {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .f-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .f-input::placeholder {
        color: var(--text3);
    }

/* SEARCHABLE SELECT */
.ss-wrap { position: relative; display: block; }

.ss-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    /* inherits .f-input look */
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .ss-trigger:hover { border-color: var(--border2); }

    .ss-trigger.ss-active {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .ss-trigger.ss-active .ss-arrow { transform: rotate(180deg); }

    .ss-arrow { transition: transform 0.2s; flex-shrink: 0; }

.ss-drop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 999;
    overflow: hidden;
}

    .ss-drop.ss-open { display: block; }

.ss-search-in {
    width: 100%;
    background: var(--bg3);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    outline: none;
    display: block;
}

    .ss-search-in:focus { border-bottom-color: var(--accent); }

    .ss-search-in::placeholder { color: var(--text3); }

.ss-list { max-height: 230px; overflow-y: auto; }

.ss-item {
    padding: 9px 13px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.1s;
}

    .ss-item:hover { background: var(--bg3); }

    .ss-item.ss-sel {
        background: var(--accent-glow);
        color: var(--accent2);
        font-weight: 600;
    }

.ss-empty {
    padding: 12px 13px;
    font-size: 13px;
    color: var(--text3);
    text-align: center;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.16s;
    white-space: nowrap;
    text-decoration: none;
}

    .btn:active {
        transform: scale(0.97);
    }

.btn-blue {
    background: var(--accent);
    color: #fff;
}

    .btn-blue:hover {
        background: #2563eb;
    }

.btn-green {
    background: var(--green);
    color: #fff;
}

    .btn-green:hover {
        background: #059669;
    }

.btn-red {
    background: var(--red);
    color: #fff;
}

    .btn-red:hover {
        background: #dc2626;
    }

.btn-purple {
    background: var(--purple);
    color: #fff;
}

    .btn-purple:hover {
        background: #7c3aed;
    }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
}

    .btn-ghost:hover {
        background: var(--bg3);
        color: var(--text);
    }

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}
/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.bg-green {
    background: var(--green-bg);
    color: var(--green);
}

.bg-red {
    background: var(--red-bg);
    color: var(--red);
}

.bg-blue {
    background: var(--accent-glow);
    color: var(--accent2);
}

.bg-amber {
    background: var(--amber-bg);
    color: var(--amber);
}

.bg-purple {
    background: var(--purple-bg);
    color: var(--purple);
}
/* TABLE */
.tbl-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    text-align: right;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: middle;
}

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

tbody tr:hover td {
    background: var(--bg3);
    color: var(--text);
}

.empty-r {
    text-align: center;
    padding: 28px;
    color: var(--text3);
    font-size: 13px;
}

    .empty-r i {
        font-size: 20px;
        display: block;
        margin-bottom: 6px;
        opacity: 0.4;
    }
/* ALERT */
.alert {
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.alert-ok {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-err {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
/* TRANSFER */
.tra-grid {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.tra-arrow {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    color: var(--accent2);
    font-size: 18px;
}
/* MODAL */
.modal-ov {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .modal-ov.open {
        display: flex;
    }

.modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 24px;
    width: 490px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeUp 0.2s ease;
    box-shadow: var(--shadow);
}

.modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 14px;
    font-weight: 700;
}

.modal-close {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.14s;
}

    .modal-close:hover {
        background: var(--red-bg);
        color: var(--red);
    }
/* INFO BAR */
.cust-info-bar {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}
/* TOASTS */
#toasts {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.toast {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--shadow);
    animation: toastIn 0.25s ease;
}

    .toast.ok {
        border-color: var(--green);
    }

        .toast.ok i {
            color: var(--green);
        }

    .toast.err {
        border-color: var(--red);
    }

        .toast.err i {
            color: var(--red);
        }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* MISC */
.notice-info {
    padding: 10px 13px;
    background: var(--amber-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--amber);
}

.notice-danger {
    padding: 10px 13px;
    background: var(--red-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--red);
}

.pos {
    color: var(--green);
    font-weight: 700;
}

.neg {
    color: var(--red);
    font-weight: 700;
}

.neu {
    color: var(--amber);
    font-weight: 700;
}

.role-admin {
    background: var(--accent-glow);
    color: var(--accent2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.role-user {
    background: var(--purple-bg);
    color: var(--purple);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.filter-bar {
    display: flex;
    gap: 9px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

    .filter-bar .f-input {
        width: auto;
        padding: 6px 9px;
        font-size: 12px;
    }

.cur-usd {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.cur-iqd {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.acc-normal {
    background: var(--bg3);
    color: var(--text2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.acc-vip {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.acc-business {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
/* HAMBURGER */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text2);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    transition: color 0.15s;
}

    .hamburger:hover {
        color: var(--text);
    }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 90;
    backdrop-filter: blur(2px);
}

    .sidebar-overlay.open {
        display: block;
    }

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        align-items: center;
    }

    .layout {
        position: relative;
    }

    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(0);
        transition: transform 0.28s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    }

        .sidebar.closed {
            transform: translateX(100%);
        }

    .main {
        width: 100vw;
        min-width: 0;
    }

    .content {
        padding: 14px;
    }

    .topbar {
        padding: 0 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .qa-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .f-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .tra-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .tra-arrow {
        display: none;
    }

    .topbar-right .btn {
        display: none;
    }

    table {
        font-size: 12px;
    }

    thead th {
        padding: 7px 8px;
        font-size: 10px;
    }

    tbody td {
        padding: 7px 8px;
    }

    .card {
        padding: 14px;
    }

    .filter-bar {
        flex-direction: column;
    }

        .filter-bar .f-input {
            width: 100% !important;
        }

    .modal {
        width: 95vw !important;
        padding: 18px;
    }
}
