/* ============================================================
   SUPER TS ADMIN PANEL — PREMIUM GLASSMORPHISM STYLESHEET
   ============================================================ */

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

/* ============================================================ RESET & BASE */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    --bg-primary:    #0c101b; /* Dark Navy Slate */
    --bg-secondary:  #080c14; /* Deep Navy Black Sidebar */
    --bg-card:       #101c30; /* Lighter navy block for cards */
    --bg-card-hover: #152640; 
    --border:        #182c48; /* Solid slate border */
    --border-hover:  #233e66;
    --text-primary:  #f1f5f9;
    --text-secondary:#9ca3af;
    --text-muted:    #6b7280;
    
    --sidebar-w:     260px;
    --topbar-h:      70px;
    --radius:        8px; /* Clean flat rounded corners */
    --radius-sm:     6px;
    --shadow:        0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg:     0 8px 30px rgba(0, 0, 0, 0.6);
    --transition:    0.2s ease-in-out;
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    overflow-x: hidden;
    position: relative;
}

a { 
    color: inherit; 
    text-decoration: none; 
}
input, select, textarea, button { 
    font-family: inherit; 
}
img { 
    max-width: 100%; 
}

/* ============================================================ SCROLLBAR */
::-webkit-scrollbar { 
    width: 6px; 
    height: 6px; 
}
::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.08); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: rgba(255, 255, 255, 0.16); 
}

/* ============================================================ SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform var(--transition);
}

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

.logo-mark {
    font-size: 28px;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
    flex-shrink: 0;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.user-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin: 16px 14px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.user-role-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* NAV */
.sidebar-nav {
    padding: 12px 14px 20px;
    flex: 1;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    padding: 16px 12px 6px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-bottom: 3px;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: #00bbc9 !important;
    color: #ffffff !important;
    border: 1px solid #00bbc9 !important;
}

.nav-item.active .nav-icon {
    color: #ffffff !important;
}

.nav-item.nav-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.15);
}

.nav-icon { 
    font-size: 16px; 
    flex-shrink: 0; 
}

/* ============================================================ MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    padding: 0 0 50px;
    z-index: 2;
}

/* TOPBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: var(--topbar-h);
    background: #080c14;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.topbar-left { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}
.topbar-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}

.page-title { 
    font-size: 20px; 
    font-weight: 800; 
    letter-spacing: -0.3px;
}
.page-sub { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 2px; 
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition);
}
.menu-toggle:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: var(--text-primary); 
}

.role-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================ ANNOUNCE STRIP */
.announce-strip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    padding: 11px 32px;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 500;
}

/* ============================================================ STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    padding: 28px 32px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-num { 
    font-size: 24px; 
    font-weight: 800; 
    line-height: 1.1; 
}
.stat-label { 
    font-size: 11px; 
    color: var(--text-muted); 
    margin-top: 4px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================ CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 32px 0;
}

/* ============================================================ CARD */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.card-header h3 { 
    font-size: 15px; 
    font-weight: 800; 
}

.badge-info {
    background: rgba(99,102,241,0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.link-sm { 
    font-size: 12px; 
    color: var(--text-muted); 
    font-weight: 600;
    transition: color var(--transition); 
}
.link-sm:hover { 
    color: var(--text-primary); 
}

/* ============================================================ HIERARCHY TREE */
.hierarchy-tree { 
    padding: 24px; 
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.tree-node.tree-active {
    background: rgba(168,85,247,0.06);
    border: 1px solid rgba(168,85,247,0.18);
}

.tree-node.tree-past { 
    opacity: 0.65; 
}
.tree-node.tree-future { 
    opacity: 0.45; 
}

.tree-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tree-name { 
    font-size: 13px; 
    font-weight: 700; 
}
.tree-you { 
    font-size: 10px; 
    color: #a855f7; 
    font-weight: 800; 
    margin-left: 6px; 
    letter-spacing: 0.5px;
}

.tree-connector {
    width: 2px;
    height: 16px;
    background: linear-gradient(to bottom, rgba(168,85,247,0.3), rgba(99,102,241,0.1));
    margin-left: 31px;
}

/* ============================================================ ACTIVITY LIST */
.activity-list { 
    padding: 8px 0; 
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.activity-item:last-child { 
    border-bottom: none; 
}
.activity-item:hover { 
    background: rgba(255,255,255,0.02); 
}

.act-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a855f7;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.act-info { 
    flex: 1; 
}
.act-action { 
    font-size: 13px; 
    font-weight: 700; 
}
.act-detail { 
    font-size: 11px; 
    color: var(--text-muted); 
    margin-top: 2px; 
}
.act-time { 
    font-size: 11px; 
    color: var(--text-muted); 
    white-space: nowrap; 
    flex-shrink: 0; 
    font-weight: 500;
}

/* ============================================================ QUICK ACTIONS */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px;
}

.qa-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 104px;
    height: 94px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    font-size: 26px;
    text-align: center;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.qa-btn span { 
    font-size: 11px; 
    font-weight: 700; 
}

.qa-btn:hover {
    background: color-mix(in srgb, var(--qc) 12%, transparent);
    border-color: color-mix(in srgb, var(--qc) 35%, transparent);
    color: var(--qc, #a855f7);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ============================================================ FORMS */
.form-page-wrap {
    padding: 28px 32px;
    max-width: 900px;
}

.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
}

.form-card-header h3 { 
    font-size: 16px; 
    font-weight: 800; 
}
.form-card-header p { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-top: 3px; 
}

.form-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.create-form { 
    padding: 28px; 
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-select {
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-select:focus {
    border-color: #a855f7;
    background: rgba(168,85,247,0.05);
    box-shadow: 0 0 0 4px rgba(168,85,247,0.15);
}

.form-group select option, .form-select option { 
    background: #0d0d1a; 
}

.req { 
    color: #ef4444; 
}

.input-icon-wrap { 
    position: relative; 
}
.input-icon-wrap input { 
    padding-right: 48px; 
}
.input-icon-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color var(--transition);
}
.input-icon-btn:hover { 
    color: var(--text-primary); 
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================================ BUTTONS */
.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4); 
}

.btn-outline {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-outline:hover { 
    border-color: rgba(255, 255, 255, 0.16); 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.03); 
}

.btn-sm { 
    padding: 7px 16px; 
    font-size: 12px; 
    font-weight: 700; 
    border-radius: 8px; 
    transition: all var(--transition); 
    cursor: pointer; 
    border: none; 
}
.btn-danger { 
    background: rgba(239,68,68,0.1); 
    color: #f87171; 
    border: 1px solid rgba(239,68,68,0.2); 
}
.btn-danger:hover { 
    background: rgba(239,68,68,0.18); 
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-primary-sm {
    padding: 8px 18px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary-sm:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4); 
}

.btn-outline-sm {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-outline-sm:hover { 
    border-color: rgba(255, 255, 255, 0.15); 
    color: var(--text-primary); 
}

/* ============================================================ ALERTS */
.alert {
    margin: 0;
    padding: 14px 22px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.alert-success { 
    background: rgba(16,185,129,0.06); 
    color: #34d399; 
    border-left: 4px solid #10b981; 
}
.alert-error { 
    background: rgba(239,68,68,0.06); 
    color: #f87171; 
    border-left: 4px solid #ef4444; 
}

/* ============================================================ TABLE */
.table-wrap { 
    overflow-x: auto; 
}

.data-table { 
    width: 100%; 
    min-width: 1200px;
    border-collapse: collapse; 
    font-size: 13px; 
}
.data-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
    white-space: nowrap;
}
.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: var(--text-secondary);
    vertical-align: middle;
}
.data-table tbody tr:hover { 
    background: rgba(255, 255, 255, 0.015); 
}
.data-table tbody tr:last-child td { 
    border-bottom: none; 
}

.table-user { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600;
}
.table-avatar {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0;
}

/* STATUS BADGES */
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-active    { background: rgba(16,185,129,0.12); color: #34d399; }
.status-inactive  { background: rgba(107,114,128,0.12); color: #9ca3af; }
.status-suspended { background: rgba(239,68,68,0.12); color: #f87171; }
.status-unused    { background: rgba(168,85,247,0.12); color: #c084fc; }
.status-expired   { background: rgba(239,68,68,0.12); color: #f87171; }
.status-blocked   { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* CODE */
code.code-tag {
    background: rgba(99,102,241,0.1);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}
.key-display {
    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 1.5px;
    background: rgba(16, 185, 129, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}
.copy-mini {
    background: none; border: none; cursor: pointer; font-size: 13px;
    color: var(--text-muted); padding: 2px; transition: all var(--transition);
}
.copy-mini:hover { 
    color: var(--text-primary); 
    transform: scale(1.1); 
}

/* ============================================================ SEARCH */
.search-form { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
}
.search-input {
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: all var(--transition);
}
.search-input:focus { 
    border-color: #a855f7; 
    background: rgba(168,85,247,0.05); 
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12); 
}
.btn-search {
    padding: 8px 14px;
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: var(--radius-sm);
    color: #c084fc;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-search:hover { 
    background: rgba(168,85,247,0.2); 
}
.btn-clear {
    padding: 8px 10px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--radius-sm);
    color: #f87171;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-clear:hover { 
    background: rgba(239,68,68,0.16); 
}

/* ============================================================ FILTER TABS */
.filter-tabs { 
    display: flex; 
    background: rgba(255,255,255,0.02); 
    border-radius: 8px; 
    padding: 3px; 
    gap: 2px; 
    border: 1px solid var(--border);
}
.filter-tab { 
    padding: 5px 12px; 
    border-radius: 6px; 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--text-muted); 
    transition: all var(--transition); 
}
.filter-tab:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.03); 
}
.filter-tab.active { 
    background: rgba(168,85,247,0.15); 
    color: #c084fc; 
}

/* ============================================================ PAGINATION */
.pagination { 
    display: flex; 
    gap: 6px; 
    justify-content: center; 
    padding: 16px; 
}
.page-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all var(--transition);
}
.page-btn:hover { 
    border-color: rgba(255, 255, 255, 0.15); 
    color: var(--text-primary); 
}
.page-btn.active { 
    background: rgba(168,85,247,0.15); 
    border-color: rgba(168,85,247,0.3); 
    color: #c084fc; 
}

/* ============================================================ EMPTY STATE */
.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.empty-state a { 
    color: #a855f7; 
}
.empty-state a:hover { 
    text-decoration: underline; 
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .menu-toggle { display: block; }
    .stats-grid { padding: 16px 16px 0; }
    .content-grid { padding: 16px 16px 0; }
    .card { margin: 0 16px; }
    .topbar { padding: 0 16px; }
    .form-page-wrap { padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .topbar-right .role-pill { display: none; }
    .quick-actions { gap: 8px; }
    .qa-btn { width: 80px; height: 76px; }
}
