/* ═══════════════════════════════════════════════════════════════════════
   EDUCONSO PRO — AURORA DESIGN SYSTEM v5.0
   Theme: Obsidian + Aurora Cyan/Violet  |  Fonts: Outfit + Inter
════════════════════════════════════════════════════════════════════════ */

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

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

:root {
  /* ─ obsidian palette ─ */
  --navy-950: #050505;
  --navy-900: #111111;
  --navy-800: #161616;
  --navy-700: #1a1a1a;
  --navy-600: #222222;
  --navy-500: #2e2e2e;
  /* ─ aurora accent ─ */
  --blue-700: #4f46e5;
  --blue-600: #3b82f6;
  --blue-500: #00f2fe;
  --blue-400: #38bdf8;
  --blue-300: #a5f3fc;
  --blue-glow: rgba(0, 242, 254, 0.25);
  --violet-500: #8a2be2;
  --violet-400: #a78bfa;
  --violet-glow: rgba(138, 43, 226, 0.35);
  --cyan-500: #00f2fe;
  --cyan-400: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  /* ─ aurora gradient ─ */
  --aurora: linear-gradient(135deg, #00f2fe, #8a2be2, #ff007f);
  --aurora-mesh: 
    radial-gradient(at 0% 0%, rgba(138, 43, 226, 0.15) 0px, transparent 65%),
    radial-gradient(at 100% 0%, rgba(0, 242, 254, 0.15) 0px, transparent 65%),
    radial-gradient(at 50% 50%, rgba(255, 0, 127, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(34, 211, 238, 0.08) 0px, transparent 50%);
  --aurora-soft: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(138, 43, 226, 0.12), rgba(255, 0, 127, 0.06));
  /* ─ glass ─ */
  --glass-bg: rgba(10, 15, 25, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --glass-active: rgba(255, 255, 255, 0.15);
  /* ─ text ─ */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  /* ─ status ─ */
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  /* ─ layout ─ */
  --sidebar-w: 260px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.15);
  --surface-elevated: rgba(255, 255, 255, 0.05);
  --page-gradient: var(--aurora-mesh), var(--navy-950);
}

/* ── GLOBAL ANIMATED AURORA BACKDROP ── */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--navy-950);
  pointer-events: none;
}

.aurora-bg .blob {
  position: absolute;
  filter: blur(130px);
  border-radius: 50%;
  animation: auroraFloat 22s infinite ease-in-out alternate;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.aurora-bg .blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--violet-500) 0%, transparent 70%);
  animation-delay: 0s;
}

.aurora-bg .blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--cyan-500) 0%, transparent 70%);
  animation-delay: -5s;
}

.aurora-bg .blob-3 {
  top: 35%;
  left: 35%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #ff007f 0%, transparent 60%);
  opacity: 0.22;
  animation-delay: -10s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, -6vh) scale(1.1); }
  66% { transform: translate(-3vw, 3vh) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Enable identical drifting animations on standard auth mesh blobs */
.bg-mesh-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: auroraFloat 22s infinite ease-in-out alternate;
  pointer-events: none;
}
.bg-mesh-blobs .blob-1 {
  animation-delay: 0s;
}
.bg-mesh-blobs .blob-2 {
  animation-delay: -5s;
}
.bg-mesh-blobs .blob-3 {
  animation-delay: -10s;
}

/* Light theme variables removed to enforce Obsidian + Aurora aesthetic globally */

/* User Profile in Topbar */
.user-profile-top {
  display: flex;
  align-items: center;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--glass-border);
}

.avatar-sm {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: 0.3s;
}

.profile-trigger:hover .avatar-sm {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* 🔔 Alert Dropdown & Badge Styles */
.topbar-alerts { position: relative; }

.icon-btn-top {
  width: 42px; height: 42px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--surface-elevated);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.3s; position: relative;
}

.icon-btn-top:hover { background: var(--glass-hover); border-color: var(--blue-500); }

.alert-badge {
  position: absolute; top: 10px; right: 10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--navy-950);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.alert-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 320px; background: var(--navy-900);
  border: 1px solid var(--glass-border); border-radius: 20px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(20px);
  display: none; flex-direction: column; z-index: 1000;
  overflow: hidden; animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-dropdown.active { display: flex; }

.alert-header {
  padding: 14px 18px; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,0.02);
}

.alert-body { max-height: 360px; overflow-y: auto; padding: 10px; }

.alert-item {
  display: flex; gap: 14px; padding: 14px; border-radius: 14px;
  transition: 0.2s; cursor: pointer; border: 1px solid transparent;
}

.alert-item:hover { background: var(--glass-hover); border-color: var(--glass-border); }

.alert-item.urgent { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.1); }

.alert-item i { font-size: 18px; margin-top: 2px; }

.alert-item.urgent i { color: var(--danger); }

.alert-item strong { display: block; font-size: 13px; margin-bottom: 4px; }

.alert-item p { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.4; }

.alert-item small { font-size: 10px; color: var(--text-muted); margin-top: 6px; display: block; }

.empty-alerts { padding: 30px; text-align: center; color: var(--text-muted); font-size: 13px; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy-950);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Heading font override */
h1, h2, h3, h4, h5, h6,
.topbar-title h1,
.stat-value,
.auth-head h1,
.clock-time {
  font-family: 'Outfit', 'Inter', sans-serif;
}

/* ── SCROLLBAR ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-600); }

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════════════ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: rgba(10, 15, 25, 0.75);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column;
  z-index: 100; overflow: hidden;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet-500), var(--cyan-500));
  box-shadow: 0 0 12px var(--cyan-glow);
}
@keyframes auroraShift {
  0% { opacity: .6; filter: hue-rotate(0deg); }
  100% { opacity: 1; filter: hue-rotate(30deg); }
}

/* Logo */
.sidebar-logo {
  padding: 22px 20px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--aurora);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 24px var(--cyan-glow);
}

.logo-text strong {
  display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff 30%, var(--cyan-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-text small {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; }

.nav-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-muted); text-transform: uppercase;
  padding: 18px 12px 6px; user-select: none;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
  border-left: 3px solid transparent;
  position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { background: var(--glass-hover); color: var(--text-primary); }

.nav-item.active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(96, 165, 250, 0.02));
  color: var(--cyan-400);
  border-left-color: var(--cyan-400);
  box-shadow: inset 2px 0 8px rgba(6, 182, 212, 0.05);
}

.nav-item .nav-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.user-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.chip-actions {
  display: flex;
  gap: 3px;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.icon-btn-sm:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  border-color: var(--blue-500);
}

.icon-btn-sm.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(10, 15, 25, 0.65);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.topbar-title h1 {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
.topbar-title p { font-size: 12px; color: var(--text-muted); }

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

.status-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  font-size: 11.5px; color: var(--cyan-400); font-weight: 600;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-light);
  box-shadow: 0 0 10px var(--success);
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse { 0%,100% { opacity:1 } 50% { opacity:.3 } }

/* Page body */
.page-body { padding: 28px 32px; flex: 1; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--surface-elevated);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--glass-hover);
  border-color: rgba(96, 165, 250, 0.42);
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.message-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.message-bubble.admin {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(34,211,238,0.88), rgba(59,130,246,0.92));
  color: white;
  border-bottom-right-radius: 6px;
}

.message-bubble.student {
  align-self: flex-start;
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 6px;
}

.message-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.composer {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.composer textarea {
  min-height: 96px;
  resize: vertical;
}

/* Flashes */
.flash-zone { padding: 12px 32px 0; display: flex; flex-direction: column; gap: 8px; }

.flash-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  animation: slideIn .35s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(10px);
}
@keyframes slideIn { from { transform: translateY(-10px); opacity:0 } to { transform: none; opacity:1 } }

.flash-success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); color: #34d399; }
.flash-danger  { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.flash-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: #fbbf24; }
.flash-info    { background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.25); color: var(--blue-400); }

.flash-close {
  margin-left: auto; background: none; border: none;
  color: inherit; opacity: .5; cursor: pointer; font-size: 15px; padding: 0 2px;
}
.flash-close:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════════════════════ */
.card {
  background: rgba(10, 15, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 16px var(--cyan-glow);
  transform: translateY(-2px);
}

.card-header {
  padding: 18px 22px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header h3 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.card-header .card-icon { color: var(--cyan-400); font-size: 15px; }
.card-body { padding: 22px; }

/* ── STAT CARDS ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin-bottom: 26px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
  transition: var(--transition-bounce);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 3px 3px 0 0;
}
.stat-card.blue::before  { background: linear-gradient(90deg, var(--cyan-500), var(--blue-500)); }
.stat-card.green::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card.red::before   { background: linear-gradient(90deg, #dc2626, #f87171); }
.stat-card.amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 14px; flex-shrink: 0;
}
.stat-card.blue  .stat-icon { background: rgba(6,182,212,.12);  color: var(--cyan-400); }
.stat-card.green .stat-icon { background: rgba(16,185,129,.12); color: #34d399; }
.stat-card.red   .stat-icon { background: rgba(239,68,68,.12);  color: #f87171; }
.stat-card.amber .stat-icon { background: rgba(245,158,11,.12); color: #fbbf24; }

.stat-value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 5px;
}
.stat-card.red   .stat-value { color: #f87171; }
.stat-card.green .stat-value { color: #34d399; }
.stat-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── INVENTORY WIDGETS ─────────────────────────────────────────────── */
.inv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inv-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.inv-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.inv-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.inv-pct {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.inv-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.inv-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .8s ease;
}

.inv-blue {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
}

.inv-amber {
  background: linear-gradient(90deg, #b45309, #fbbf24);
}

.inv-red {
  background: linear-gradient(90deg, #b91c1c, #f87171);
}

.inv-green {
  background: linear-gradient(90deg, #15803d, #4ade80);
}

/* Ink Bottle (SVG-based) */
.ink-bottle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.data-table tbody tr:hover {
  background: rgba(6, 182, 212, 0.08);
  box-shadow: inset 2px 0 0 var(--cyan-500);
  transform: scale(1.002);
}

.data-table tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  vertical-align: middle;
}

/* ── RED PULSE (urgent) ────────────────────────────────────────────── */
.urgent-row {
  animation: urgentGlow 2.4s ease-in-out infinite;
}

@keyframes urgentGlow {

  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .28), 0 0 0 rgba(239, 68, 68, 0);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .75), 0 0 16px rgba(239, 68, 68, .18);
  }
}

.urgent-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .38);
  color: #f87171;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blink-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  animation: blinkDot 1.1s ease infinite;
}

@keyframes blinkDot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .15
  }
}

/* ── BADGES ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.b-inquiry {
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .3);
}

.b-confirmed {
  background: rgba(34, 197, 94, .14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .3);
}

.b-rejected {
  background: rgba(239, 68, 68, .14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .3);
}

.b-admin {
  background: rgba(59, 130, 246, .18);
  color: var(--blue-300);
  border: 1px solid rgba(59, 130, 246, .35);
}

.b-staff {
  background: rgba(148, 163, 184, .1);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.b-off {
  background: rgba(239, 68, 68, .1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .25);
}

.cat-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
  background: rgba(59, 130, 246, .1);
  color: var(--blue-300);
  border: 1px solid rgba(59, 130, 246, .2);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control:focus {
  border-color: var(--cyan-500);
  background: rgba(10, 15, 25, 0.8);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(0, 242, 254, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control option {
  background: #111827;
}

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

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: var(--transition);
}

.check-label:hover {
  border-color: var(--blue-500);
}

.check-label input {
  accent-color: var(--blue-500);
  width: 16px;
  height: 16px;
}

.check-label span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none; white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), var(--cyan-500));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 16px var(--cyan-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 24px var(--cyan-glow);
  filter: brightness(1.1);
}

.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff; 
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(185,28,28,.30);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 22px rgba(185,28,28,.45); filter: brightness(1.1); }

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,.30);
}
.btn-success:hover { transform: translateY(-2px); }

.btn-amber {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff; box-shadow: 0 4px 14px rgba(180,83,9,.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.12); 
  color: #fff; 
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 6px; }
.btn-icon { padding: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-outline-light {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.btn-outline-light:hover { border-color: var(--cyan-500); color: var(--cyan-400); }

.btn-outline-secondary {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-muted);
}
.btn-outline-secondary:hover { border-color: var(--text-secondary); color: var(--text-secondary); }

.btn-outline-info {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.24);
  color: var(--blue-400);
}

.btn-outline-info:hover {
  border-color: var(--blue-500);
  color: var(--text-primary);
  background: rgba(59,130,246,.14);
}

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

.page-hero-copy h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-hero-copy p {
  color: var(--text-secondary);
  max-width: 700px;
}

.soft-grid {
  display: grid;
  gap: 18px;
}

.soft-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.soft-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.soft-stat {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.soft-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.soft-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-tab {
  border: 1px solid var(--glass-border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.panel-tab:hover {
  color: var(--text-primary);
  border-color: rgba(96,165,250,.36);
}

.panel-tab.active {
  color: var(--text-primary);
  border-color: rgba(34,211,238,.34);
  background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(96,165,250,.08));
  box-shadow: var(--shadow-sm);
}

.panel-tab-content {
  display: none;
}

.panel-tab-content.active {
  display: block;
  animation: fadeLift .24s ease;
}

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

.stack-section {
  display: grid;
  gap: 18px;
}

.subtle-card {
  background: var(--surface-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px;
}

.subtle-card h4,
.subtle-card h5,
.subtle-card h6 {
  margin-bottom: 8px;
}

.subtle-card p:last-child {
  margin-bottom: 0;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-blurb {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-form-grid .full {
  grid-column: 1 / -1;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy strong {
  display: block;
  margin-bottom: 4px;
}

.switch-copy span {
  color: var(--text-secondary);
  font-size: 12px;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16,185,129,.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,.2);
}

.helper-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .soft-grid.cols-4,
  .soft-grid.cols-3,
  .settings-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-hero {
    flex-direction: column;
  }

  .soft-grid.cols-4,
  .soft-grid.cols-3,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   AUTH PAGES
════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 30% -5%, rgba(6,182,212,.18), transparent),
    radial-gradient(ellipse 50% 35% at 70% 10%, rgba(139,92,246,.12), transparent),
    var(--navy-950);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
}

.auth-head {
  padding: 36px 36px 22px;
  text-align: center;
}

.auth-logo-wrap {
  width: 68px; height: 68px; border-radius: 18px;
  margin: 0 auto 20px;
  background: var(--aurora);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: #fff;
  box-shadow: 0 0 44px var(--cyan-glow);
}

.auth-head h1 {
  font-size: 22px; font-weight: 800; margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.auth-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-body {
  padding: 0 36px 36px;
}

.auth-footer-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--blue-400);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* ── LOCK SCREEN ───────────────────────────────────────────────────── */
.lock-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #030712, #080e1c 60%, #050b16);
  position: relative;
  overflow: hidden;
}

.lock-aura {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(37, 99, 235, .14), transparent);
  animation: auraFloat 7s ease-in-out infinite alternate;
}

@keyframes auraFloat {
  from {
    transform: scale(.9) rotate(-4deg)
  }

  to {
    transform: scale(1.12) rotate(4deg)
  }
}

.lock-box {
  position: relative;
  z-index: 1;
  text-align: center;
}

.lock-ring {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(59, 130, 246, .08));
  border: 2px solid rgba(59, 130, 246, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 0 50px rgba(37, 99, 235, .18);
}

/* ── PIN INPUT ─────────────────────────────────────────────────────── */
.pin-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 22px 0;
}

.pin-cell {
  width: 58px;
  height: 68px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 2px solid var(--glass-border);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  caret-color: var(--blue-400);
}

.pin-cell:focus {
  border-color: var(--blue-500);
  background: rgba(59, 130, 246, .08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}

/* ═══════════════════════════════════════════════════════════════════════
   SEARCH
════════════════════════════════════════════════════════════════════════ */
.search-wrap {
  position: relative;
}

.search-wrap .s-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.search-wrap .form-control {
  padding-left: 38px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN PANEL — Staff Cards
════════════════════════════════════════════════════════════════════════ */
.staff-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.staff-item:hover {
  border-color: rgba(255, 255, 255, .14);
}

.staff-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-500), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.staff-info {
  flex: 1;
  min-width: 0;
}

.staff-info strong {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
}

.staff-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.staff-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   SETTINGS
════════════════════════════════════════════════════════════════════════ */
.settings-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.settings-block {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-block-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-block-head i {
  color: var(--blue-400);
  font-size: 15px;
}

.settings-block-head h4 {
  font-size: 13.5px;
  font-weight: 600;
}

.settings-block-body {
  padding: 20px;
}

.mfa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   2FA
════════════════════════════════════════════════════════════════════════ */
.qr-box {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  display: inline-block;
}

.qr-box img {
  display: block;
  max-width: 176px;
}

.secret-code {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--blue-300);
  text-align: center;
  margin-bottom: 18px;
  word-break: break-all;
}

/* ── CHOICE GATEWAY DESIGN ── */
.glass-bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--navy-950);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 20s infinite alternate;
}

@keyframes blobFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(100px, 50px) scale(1.2);
  }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.choice-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px) saturate(1.8);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.choice-card:hover {
  background: var(--glass-hover);
  border-color: var(--blue-500);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.2);
}

.choice-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

/* ── PORTAL PRO GLASS ITEMS ── */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.pro-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-item:hover {
  background: var(--glass-hover);
  border-color: var(--blue-400);
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pro-link-title {
  font-weight: 700;
  color: var(--blue-300);
  font-size: 14px;
}

/* ── STUDENT PORTAL UNIQUE STYLES ── */
.portal-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.token-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--blue-300);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
}


/* ═══════════════════════════════════════════════════════════════════════
   PROGRESS
════════════════════════════════════════════════════════════════════════ */
.progress {
  height: 6px;
  background: rgba(255, 255, 255, .07);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.pg-blue {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
}

.pg-green {
  background: linear-gradient(90deg, #15803d, #4ade80);
}

/* ═══════════════════════════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════════════════════════════ */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}

.empty i {
  font-size: 44px;
  display: block;
  margin-bottom: 14px;
  opacity: .35;
}

.empty p {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ERROR PAGE
════════════════════════════════════════════════════════════════════════ */
.error-page {
  min-height: 100vh;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(239, 68, 68, 0.1), transparent),
    var(--navy-900);
}

.error-shell {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.error-code {
  font-size: clamp(72px, 14vw, 140px);
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
}

.error-card {
  width: 100%;
  background: rgba(11, 17, 30, 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
}

.error-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border: 1px solid transparent;
}

.error-badge.error-danger {
  color: #f87171;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.32);
}

.error-badge.error-warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
}

.error-copy {
  max-width: 520px;
  margin: 0 auto;
}

.error-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.error-copy h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 10px;
}

.error-copy p {
  font-size: 14px;
  color: var(--text-secondary);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   INLINE ACTION FORMS
════════════════════════════════════════════════════════════════════════ */
.action-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media(max-width:900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0;
  }

  .form-row,
  .form-row-3,
  .settings-2col,
  .inv-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-body,
  .topbar,
  .flash-zone {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media(max-width:560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-head,
  .auth-body {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════════════════════ */
.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-6 {
  gap: 6px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-28 {
  margin-top: 28px;
}

.mb-14 {
  margin-bottom: 14px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-26 {
  margin-bottom: 26px;
}

.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-blue {
  color: var(--blue-400) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.fs-11 {
  font-size: 11px;
}

.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.w-100 {
  width: 100%;
}

.block {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR CLOCK
════════════════════════════════════════════════════════════════════════ */
.sidebar-clock {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  flex-shrink: 0;
}

.clock-time {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff 30%, var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clock-date {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   QUICK LAUNCH BAR
════════════════════════════════════════════════════════════════════════ */
.quick-launch {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  justify-content: center;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.ql-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.ql-btn:hover {
  background: var(--glass-hover);
  color: var(--blue-400);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════
   TOKEN BADGE
════════════════════════════════════════════════════════════════════════ */
.token-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(37, 99, 235, .35);
  color: var(--blue-300);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════════════
   CALCULATOR
════════════════════════════════════════════════════════════════════════ */
.calc-wrap {
  max-width: 380px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.calc-display {
  padding: 20px 22px 14px;
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid var(--glass-border);
}

.calc-expr {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
  text-align: right;
}

.calc-result {
  font-size: 38px;
  font-weight: 800;
  text-align: right;
  color: var(--text-primary);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  padding: 1px;
}

.calc-btn {
  padding: 18px 8px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: var(--navy-800);
  color: var(--text-primary);
  transition: var(--transition);
  user-select: none;
}

.calc-btn:hover {
  background: var(--navy-700);
  color: #fff;
}

.calc-btn:active {
  transform: scale(.95);
}

.calc-btn.op {
  color: var(--blue-400);
}

.calc-btn.eq {
  background: var(--blue-600);
  color: #fff;
}

.calc-btn.eq:hover {
  background: var(--blue-500);
}

.calc-btn.clr {
  color: #f87171;
}

.calc-btn.zero {
  grid-column: span 2;
}

.calc-btn.fn {
  color: var(--warning);
}

/* ═══════════════════════════════════════════════════════════════════════
   TOOLS HUB GRID
════════════════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.tool-tile {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
}

.tool-tile:hover {
  background: var(--glass-hover);
  border-color: var(--blue-600);
  transform: translateY(-3px);
}

.tool-tile i {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.tool-tile strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.tool-tile span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   INVOICE MAKER
════════════════════════════════════════════════════════════════════════ */
.invoice-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px 30px;
  gap: 8px;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   PORTAL DASHBOARD
════════════════════════════════════════════════════════════════════════ */
.portal-page {
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(37, 99, 235, .2), transparent), var(--navy-900);
  padding: 32px 20px;
}

.portal-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(11, 17, 30, .88);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .5);
}

.portal-header {
  background: linear-gradient(135deg, #0d1526, #111d35);
  padding: 32px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 30px var(--blue-glow);
}

.portal-info strong {
  font-size: 22px;
  font-weight: 800;
  display: block;
}

.portal-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.portal-body {
  padding: 28px;
}

.portal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.portal-row:last-child {
  border-bottom: none;
}

.portal-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.portal-value {
  font-size: 14px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   FORM LINKS
════════════════════════════════════════════════════════════════════════ */
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.link-url {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--blue-300);
  word-break: break-all;
}

.link-status {
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SELF FORM (Public)
════════════════════════════════════════════════════════════════════════ */
.self-form-page {
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 50% at 50% 0, rgba(37, 99, 235, .2), transparent), var(--navy-900);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.self-form-card {
  width: 100%;
  max-width: 580px;
  background: rgba(11, 17, 30, .9);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .5);
}

.self-form-head {
  background: linear-gradient(135deg, #0d1526, #111d35);
  padding: 28px 32px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.self-form-body {
  padding: 28px 32px;
}

.self-form-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--glass-border);
}

/* Success State */
.success-state {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: rgba(34, 197, 94, .15);
  border: 2px solid rgba(34, 197, 94, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--success);
}

/* ═══════════════════════════════════════════════════════════════════════
   ADDITIONAL RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media(max-width:900px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .item-row {
    grid-template-columns: 1fr 60px 80px 28px;
  }
}

@media(max-width:560px) {
  .item-row {
    grid-template-columns: 1fr 50px;
  }

  .portal-header {
    flex-direction: column;
    text-align: center;
  }

  .calc-result {
    font-size: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE BRIDGE
   (Aurora v5.0 Adaptive Patch)
════════════════════════════════════════════════════════════════════════ */
.mobile-nav-toggle {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .topbar {
        padding: 12px 20px;
    }
    
    .topbar-actions {
        gap: 8px;
    }
    
    .search-wrap {
        display: none; /* Hide search on small screens to save space */
    }
}

@media (max-width: 640px) {
    .page-body {
        padding: 20px;
    }
    
    .topbar-title h1 {
        font-size: 18px;
    }
    
    .status-pill {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Android Specific Overrides */
body.is-android .hide-on-android {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM AESTHETIC OVERLAYS (Aurora v5.0+)
════════════════════════════════════════════════════════════════════════ */
.glass-panel, .card, .stat-card, .subtle-card {
    transition: var(--transition-bounce);
    position: relative;
}

.glass-panel:hover, .card:hover, .stat-card:hover, .subtle-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 20px rgba(34, 211, 238, 0.1);
}

/* Kinetic Buttons */
.btn-primary {
    background: var(--aurora);
    background-size: 200% auto;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 10px 25px var(--cyan-glow);
    letter-spacing: 0.02em;
}

/* Aurora Glow Badges */
.badge {
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border: 1px solid transparent;
}

.badge-cyan {
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan-400);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.05);
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Premium Typography Refinements */
h1, h2, .topbar-title h1 {
    letter-spacing: -0.04em;
    font-weight: 800;
}

.text-muted {
    font-size: 12px;
    letter-spacing: 0.01em;
}

/* Sidebar Custom Scrollbar */
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.2); }

/* Android Header Polish */
@media (max-width: 1024px) {
    .topbar {
        border-bottom: 2px solid rgba(34, 211, 238, 0.1);
    }
    
    .mobile-nav-toggle:active {
        transform: scale(0.9);
        background: var(--glass-active);
    }
}

/* =========================================================================
   DYNAMIC CROSS-PLATFORM MORPHING SYSTEM (Windows C++ & Android)
   ========================================================================= */

/* Default hidden states */
.bottom-nav-bar {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   1. NATIVE WINDOWS DESKTOP APP VIEWS (.is-desktop-app)
   "Like Web, but Not Web" - Immersive Obsidian Cyber Cockpit
   ───────────────────────────────────────────────────────────────────────── */
html.is-desktop-app {
  overflow: hidden;
}

html.is-desktop-app body {
  overflow: hidden !important;
  background-color: #03050b !important;
  background-image: 
    radial-gradient(ellipse at 50% -20%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%) !important;
  border: 1px solid rgba(34, 211, 238, 0.15) !important;
  box-sizing: border-box;
}

/* Restyle custom narrow cyber-neon scrollbar */
html.is-desktop-app *::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}
html.is-desktop-app *::-webkit-scrollbar-track {
  background: #03050b !important;
}
html.is-desktop-app *::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.35) !important;
  border-radius: 2px !important;
}
html.is-desktop-app *::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.6) !important;
}

/* Hide standard external web widgets/quick-launch links */
html.is-desktop-app .quick-launch,
html.is-desktop-app .hide-on-desktop {
  display: none !important;
}

/* Restyle app shell for a sleek standalone dashboard */
html.is-desktop-app .app-shell {
  height: 100vh !important;
  display: flex !important;
}

/* Desktop App Sidebar Adjustments */
html.is-desktop-app .sidebar {
  width: 250px !important;
  background: rgba(5, 8, 18, 0.85) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  transform: none !important; /* Ensure it stays visible */
}

html.is-desktop-app .sidebar-logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 24px 20px !important;
  background: rgba(34, 211, 238, 0.02) !important;
}

html.is-desktop-app .main-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: hidden !important;
  margin-left: 0 !important; /* Overwrite responsive margins */
}

html.is-desktop-app .topbar {
  background: rgba(5, 8, 18, 0.6) !important;
  backdrop-filter: blur(25px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html.is-desktop-app .page-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 28px 36px 40px !important;
}

/* Give desktop app blocks an extremely premium obsidian container feel */
html.is-desktop-app .card,
html.is-desktop-app .glass-panel,
html.is-desktop-app .stat-card {
  background: rgba(11, 18, 32, 0.65) !important;
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
}

/* Glowing cyber borders for active items on desktop app */
html.is-desktop-app .nav-item.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08) 0%, transparent 100%) !important;
  border-left: 3px solid var(--cyan-400) !important;
  color: #fff !important;
  box-shadow: inset 5px 0 15px rgba(34, 211, 238, 0.05) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. NATIVE ANDROID APP VIEWS (.is-android-app)
   High-end, Native Bottom Navigation Cockpit
   ───────────────────────────────────────────────────────────────────────── */
html.is-android-app body {
  background-color: #04060d !important;
  padding-bottom: 74px !important; /* Keep bottom navigation clear */
}

/* Hide Sidebar & Top Hamburger entirely - Navigation is now handled by the bottom bar! */
html.is-android-app .sidebar,
html.is-android-app .mobile-nav-toggle,
html.is-android-app .hide-on-android,
html.is-android-app .quick-launch {
  display: none !important;
}

/* Expand main layout to full width since sidebar is hidden */
html.is-android-app .main-content {
  margin-left: 0 !important;
  width: 100% !important;
}

html.is-android-app .topbar {
  padding: 16px 20px !important;
  background: rgba(4, 6, 13, 0.8) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Adapt spacing for notches/cutouts */
html.is-android-app .page-body {
  padding: 16px 16px 80px !important;
}

/* Standardized spacing & larger touch targets for modern forms */
html.is-android-app .form-control,
html.is-android-app select,
html.is-android-app button {
  min-height: 48px !important; /* Perfect tap size */
  font-size: 15px !important;
}

html.is-android-app .btn {
  padding: 12px 20px !important;
  border-radius: 14px !important;
}

/* Bottom Nav bar implementation for Android */
html.is-android-app .bottom-nav-bar {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 64px !important;
  background: rgba(5, 8, 20, 0.92) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  justify-content: space-around !important;
  align-items: center !important;
  z-index: 99999 !important;
  padding: 0 10px !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
}

html.is-android-app .bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  gap: 3px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0.7 !important;
}

html.is-android-app .bottom-nav-item i {
  font-size: 18px !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

html.is-android-app .bottom-nav-item.active {
  color: var(--cyan-400) !important;
  opacity: 1 !important;
}

html.is-android-app .bottom-nav-item.active i {
  transform: translateY(-2px) scale(1.15) !important;
  color: var(--cyan-400) !important;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4) !important;
}

/* Modern list styles for mobile cards */
html.is-android-app .card,
html.is-android-app .glass-panel {
  border-radius: 20px !important;
  margin-bottom: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE MOBILE SYSTEM FOR GENERAL BROWSER USERS (< 768px)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bottom-nav-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(5, 8, 20, 0.92) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 99999 !important;
    padding: 0 10px !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
  }
  
  .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    gap: 3px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0.7 !important;
  }
  
  .bottom-nav-item i {
    font-size: 18px !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }
  
  .bottom-nav-item.active {
    color: var(--cyan-400) !important;
    opacity: 1 !important;
  }
  
  .bottom-nav-item.active i {
    transform: translateY(-2px) scale(1.15) !important;
    color: var(--cyan-400) !important;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4) !important;
  }
  
  /* Ensure page contents do not get truncated by bottom bar spacing */
  .main-content {
    padding-bottom: 80px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   CUSTOM TAURI FRAMELESS TITLEBAR (Fluent design)
   ════════════════════════════════════════════════════════════════════════ */
.desktop-titlebar {
  display: none;
  height: 32px;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  user-select: none;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
}

html.is-desktop-app .desktop-titlebar {
  display: flex;
}

/* Adjust application layout when custom titlebar is active */
html.is-desktop-app .app-shell {
  margin-top: 32px;
  height: calc(100vh - 32px) !important;
}

.titlebar-drag-region {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  flex: 1;
  height: 100%;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.titlebar-title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.titlebar-controls {
  display: flex;
  height: 100%;
}

.titlebar-btn {
  width: 46px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.titlebar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.titlebar-btn.danger:hover {
  background: #e81123 !important;
  color: white !important;
}


