/* ============================================================
   Object Storage Platform — Premium Dark Glassmorphic Design
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --bg-base:        #060810;
    --bg-surface:     #0C1020;
    --bg-card:        rgba(16, 22, 40, 0.72);
    --bg-card-hover:  rgba(22, 32, 56, 0.88);
    --bg-input:       rgba(10, 15, 28, 0.9);

    --border:         rgba(255,255,255,0.07);
    --border-subtle:  rgba(255,255,255,0.04);
    --border-hover:   rgba(255,255,255,0.14);
    --border-focus:   #3B82F6;
    --border-glow:    rgba(59,130,246,0.35);

    --text-primary:   #F0F4FF;
    --text-secondary: #8899BB;
    --text-muted:     #4A5A78;
    --text-mono:      #7EC8E3;

    --blue:    #3B82F6;
    --indigo:  #6366F1;
    --cyan:    #06B6D4;
    --emerald: #10B981;
    --amber:   #F59E0B;
    --rose:    #F43F5E;
    --purple:  #8B5CF6;
    --green:   #22C55E;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-pill: 9999px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.45);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px rgba(59,130,246,0.25);

    --sidebar-w:  260px;
    --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    background-image:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(59,130,246,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 5%,  rgba(99,102,241,0.09) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 110%,rgba(6,182,212,0.06) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Glass Utility ─────────────────────────────────────────── */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.glass:hover { border-color: var(--border-hover); }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: rgba(6,8,16,0.97);
    backdrop-filter: blur(32px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.85rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 22px rgba(59,130,246,0.45), var(--shadow-sm);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(130deg, #FFFFFF 30%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
    line-height: 1.3;
}
.sidebar-tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
    letter-spacing: 0.03em;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1rem 0.35rem;
    margin-top: 0.5rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

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

.nav-item.active a {
    background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(99,102,241,0.12));
    color: #7CB9FF;
    font-weight: 600;
    border: 1px solid rgba(59,130,246,0.2);
    box-shadow: inset 0 0 20px rgba(59,130,246,0.06);
}
.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, var(--blue), var(--indigo));
    border-radius: 0 3px 3px 0;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.nav-item:hover svg { transform: scale(1.1); }

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.9rem 0.5rem;
    border-top: 1px solid var(--border-subtle);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.sidebar-avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-username { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.sidebar-logout {
    font-size: 0.73rem; color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    display: block; margin-top: 1px;
}
.sidebar-logout:hover { color: var(--rose); }

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 2rem 2.5rem;
    max-width: calc(1600px - var(--sidebar-w));
    min-height: 100vh;
}

.tab-content { display: none; animation: fadeSlideIn 0.25s ease; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.035em;
    line-height: 1.2;
}
.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 400;
}

/* ── Metric Cards ──────────────────────────────────────────── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.metric-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.8;
}
.metric-card:nth-child(1)::before { background: linear-gradient(90deg, var(--blue), var(--indigo)); }
.metric-card:nth-child(2)::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.metric-card:nth-child(3)::before { background: linear-gradient(90deg, var(--emerald), var(--cyan)); }
.metric-card:nth-child(4)::before { background: linear-gradient(90deg, var(--purple), var(--rose)); }

.metric-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.metric-icon.blue   { background: rgba(59,130,246,0.15); }
.metric-icon.cyan   { background: rgba(6,182,212,0.15);  }
.metric-icon.green  { background: rgba(16,185,129,0.15); }
.metric-icon.purple { background: rgba(139,92,246,0.15); }

.metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}
.metric-delta {
    font-size: 0.75rem;
    color: var(--emerald);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Credentials Panel ─────────────────────────────────────── */
.cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.cred-item {
    background: rgba(8, 12, 24, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: border-color var(--transition), background var(--transition);
}
.cred-item:hover {
    border-color: var(--border-glow);
    background: rgba(12, 18, 36, 0.95);
}
.cred-body { flex: 1; min-width: 0; }
.cred-key {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}
.cred-val {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #93C5FD;
    word-break: break-all;
    line-height: 1.4;
}
.cred-val.secret { color: #86EFAC; }
.cred-val.url    { color: var(--cyan); }
.cred-val.bucket { color: #FCD34D; }
.cred-copy-btn {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-sm);
    color: var(--blue);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    transition: all var(--transition);
}
.cred-copy-btn:hover {
    background: rgba(59,130,246,0.2);
    border-color: var(--blue);
    transform: scale(1.05);
}
.cred-copy-btn.copied {
    background: rgba(16,185,129,0.15);
    border-color: var(--emerald);
    color: var(--emerald);
}

/* ── Code Snippet Tabs ─────────────────────────────────────── */
.snippet-panel {
    background: rgba(4, 6, 14, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.snippet-header {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(8,12,24,0.6);
    overflow-x: auto;
    scrollbar-width: none;
}
.snippet-header::-webkit-scrollbar { display: none; }
.snippet-tab {
    padding: 0.75rem 1.15rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    display: flex; align-items: center; gap: 0.4rem;
}
.snippet-tab:hover { color: var(--text-primary); }
.snippet-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    background: rgba(59,130,246,0.06);
}
.snippet-body { padding: 0; }
.snippet-pane { display: none; position: relative; }
.snippet-pane.active { display: block; }
.snippet-copy-all {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    padding: 0.3rem 0.65rem;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-sm);
    color: var(--blue);
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    z-index: 2;
}
.snippet-copy-all:hover { background: rgba(59,130,246,0.22); }
.snippet-copy-all.copied { color: var(--emerald); border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.1); }

pre.code-block {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    padding: 1.25rem 1.5rem;
    padding-right: 5.5rem;
    color: #CBD5E1;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}
pre.code-block .kw  { color: #93C5FD; }
pre.code-block .st  { color: #86EFAC; }
pre.code-block .cm  { color: #4A5A78; font-style: italic; }
pre.code-block .op  { color: #67E8F9; }
pre.code-block .fn  { color: #FCD34D; }
pre.code-block .env-key   { color: #A5B4FC; }
pre.code-block .env-val   { color: #86EFAC; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead tr {
    background: rgba(8, 12, 24, 0.8);
}
th {
    padding: 0.85rem 1.1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}
td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: middle;
}
tbody tr {
    transition: background var(--transition);
}
tbody tr:hover td {
    background: rgba(255,255,255,0.025);
    color: var(--text-primary);
}
tbody tr:last-child td { border-bottom: none; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.badge-green  { background: rgba(34,197,94,0.12);   color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.badge-blue   { background: rgba(59,130,246,0.12);  color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.badge-cyan   { background: rgba(6,182,212,0.12);   color: #22D3EE; border: 1px solid rgba(6,182,212,0.25); }
.badge-amber  { background: rgba(245,158,11,0.12);  color: #FBBF24; border: 1px solid rgba(245,158,11,0.25); }
.badge-rose   { background: rgba(244,63,94,0.12);   color: #F87171; border: 1px solid rgba(244,63,94,0.25); }
.badge-purple { background: rgba(139,92,246,0.12);  color: #C084FC; border: 1px solid rgba(139,92,246,0.25); }
.badge-gray   { background: rgba(100,116,139,0.12); color: #94A3B8; border: 1px solid rgba(100,116,139,0.25); }

/* pulse dot */
.badge-green .dot  { width: 5px; height: 5px; border-radius: 50%; background: #4ADE80; animation: pulse 2s ease-in-out infinite; }
.badge-amber .dot  { width: 5px; height: 5px; border-radius: 50%; background: #FBBF24; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1);   }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    font-family: var(--font-sans);
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(59,130,246,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: var(--border-hover);
}

.btn-success {
    background: rgba(16,185,129,0.12);
    color: #34D399;
    border: 1px solid rgba(16,185,129,0.3);
}
.btn-success:hover { background: rgba(16,185,129,0.2); }

.btn-danger {
    background: rgba(244,63,94,0.1);
    color: #F87171;
    border: 1px solid rgba(244,63,94,0.25);
}
.btn-danger:hover { background: rgba(244,63,94,0.2); border-color: rgba(244,63,94,0.45); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 0.2rem 0.55rem; font-size: 0.72rem; border-radius: 6px; }

/* ── Form Controls ─────────────────────────────────────────── */
.form-group   { margin-bottom: 1.1rem; }
.form-row     { display: flex; gap: 1rem; }
.form-row > * { flex: 1; }

.form-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition);
    appearance: none;
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234A5A78'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px; padding-right: 2.5rem; }
.form-input:focus, .form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
    background: rgba(12, 18, 36, 0.95);
}
.form-input.mono { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-mono); }
.form-input[readonly] { opacity: 0.85; cursor: default; }

.input-row {
    display: flex; gap: 0.5rem; align-items: stretch;
}
.input-row .form-input { flex: 1; }

/* ── Modals ────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 14, 0.82);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-card {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    animation: modalIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-close {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}
.modal-close:hover { background: rgba(244,63,94,0.1); color: var(--rose); border-color: rgba(244,63,94,0.3); }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 0.75rem;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ── Dropzone ──────────────────────────────────────────────── */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(8, 12, 24, 0.4);
    position: relative;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--blue);
    background: rgba(59,130,246,0.05);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.15) inset;
}
.dropzone-icon { color: var(--blue); margin-bottom: 0.75rem; opacity: 0.8; }
.dropzone-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.dropzone-sub { font-size: 0.82rem; color: var(--text-muted); }

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-bg {
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-30px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(30px); opacity: 0; }
}

/* ── Queue Pills ───────────────────────────────────────────── */
.queue-bar {
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap; padding: 1rem 1.25rem;
    background: rgba(8,12,24,0.7);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.queue-label {
    font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-right: 0.25rem;
}

/* ── Section Header ────────────────────────────────────────── */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem; padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-size: 1rem; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 0.6rem;
}
.section-title svg { width: 18px; height: 18px; stroke: currentColor; opacity: 0.7; }

/* ── Alert Banner ──────────────────────────────────────────── */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.alert-warn {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    color: #FCD34D;
}
.alert-info {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: #93C5FD;
}
.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    color: #6EE7B7;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; padding: 1.5rem; }
}
@media (max-width: 640px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .cred-grid { grid-template-columns: 1fr; }
}
