/* TrustGuard NG — NDPA-GAID 2025 Autonomous Compliance SaaS
   High-Fidelity Adaptation of NDPA-GAID-2025-Compliance-SaaS Aesthetics */
:root {
  --tg-primary: #4f46e5;
  --tg-primary-dark: #3730a3;
  --tg-primary-light: #eef2ff;
  --tg-accent: #06b6d4;
  --tg-sidebar-bg: #090d16;
  --tg-sidebar-card: #131b2e;
  --tg-sidebar-hover: #1e293b;
  --tg-bg: #f8fafc;
  --tg-card: #ffffff;
  --tg-border: #e2e8f0;
  --tg-border-light: #f1f5f9;
  --tg-text: #0f172a;
  --tg-text-muted: #64748b;
  --tg-success: #10b981;
  --tg-success-light: #ecfdf5;
  --tg-warning: #f59e0b;
  --tg-warning-light: #fffbeb;
  --tg-danger: #ef4444;
  --tg-danger-light: #fef2f2;
  --tg-info: #3b82f6;
  --tg-info-light: #eff6ff;
  --tg-radius-sm: 8px;
  --tg-radius: 14px;
  --tg-radius-lg: 20px;
  --tg-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --tg-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --tg-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--tg-bg);
  color: var(--tg-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tg-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--tg-primary-dark); }

/* ==========================================================================
   TOP REGULATORY TICKER (Faithful adaptation of NDPA SaaS Header.tsx)
   ========================================================================== */
#tg-ticker {
  background: #090d16;
  color: #94a3b8;
  padding: 5px 24px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
  letter-spacing: 0.01em;
}
#tg-ticker .ticker-left { display: flex; align-items: center; gap: 8px; }
#tg-ticker .ticker-right { display: flex; align-items: center; gap: 14px; font-family: ui-monospace, monospace; font-size: 10.5px; }

/* Buttons */
.btn-tg {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}
.btn-tg:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.btn-tg:active { transform: translateY(0); }

.btn-tg-outline {
  background: #ffffff;
  color: #475569;
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-tg-outline:hover {
  background: #f8fafc;
  color: var(--tg-primary);
  border-color: #c7d2fe;
}

.btn-tg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
  transition: all 0.15s ease;
}
.btn-tg-danger:hover {
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-tg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  transition: all 0.15s ease;
}
.btn-tg-success:hover {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* Badges */
.badge-tg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-neutral { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* Cards & Layout */
.card-tg {
  background: var(--tg-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  box-shadow: var(--tg-shadow-sm);
  padding: 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-tg:hover { box-shadow: var(--tg-shadow); }
.section-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #0f172a; }
.section-sub { color: var(--tg-text-muted); font-size: 13.5px; margin-bottom: 18px; }

/* Shell Layout */
#tg-shell { display: flex; min-height: 100vh; background: #f8fafc; }
#tg-sidebar {
  width: 268px;
  background: var(--tg-sidebar-bg);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}
#tg-sidebar::-webkit-scrollbar { width: 5px; }
#tg-sidebar::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }

#tg-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#tg-sidebar .brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

#tg-sidebar nav { padding: 12px 10px 30px; }
#tg-sidebar .nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  padding: 16px 14px 6px;
}
#tg-sidebar a.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border-radius: 9px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}
#tg-sidebar a.nav-item i { font-size: 16px; opacity: 0.8; }
#tg-sidebar a.nav-item:hover {
  background: var(--tg-sidebar-hover);
  color: #f1f5f9;
  transform: translateX(2px);
}
#tg-sidebar a.nav-item.active {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
#tg-sidebar a.nav-item.active i { opacity: 1; }

#tg-main {
  margin-left: 268px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#tg-topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--tg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

#tg-content { padding: 26px; overflow-y: auto; flex: 1; }

/* Sensory Pulse Dot */
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tg-success);
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   DROPDOWN MENUS (Tenant Switcher & Role Simulator)
   ========================================================================== */
.tg-dropdown-wrap { position: relative; }
.tg-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  box-shadow: var(--tg-shadow-lg);
  padding: 8px;
  z-index: 1000;
  min-width: 280px;
  display: none;
  animation: fadeIn 0.15s ease-out;
}
.tg-dropdown-menu.show { display: block; }
.tg-dropdown-menu .drop-header {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.tg-dropdown-menu .drop-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}
.tg-dropdown-menu .drop-item:hover {
  background: #f8fafc;
  color: var(--tg-primary);
}
.tg-dropdown-menu .drop-item.active {
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
}

/* ==========================================================================
   BREACH ALERT BANNER (72-Hour Statutory SLA Countdown)
   ========================================================================== */
.breach-alert-banner {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: #ffffff;
  border-radius: var(--tg-radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  border: 1px solid #b91c1c;
  animation: fadeIn 0.3s ease-out;
}
.breach-alert-banner .clock-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Colorful Icon Boxes */
.icon-box-indigo { width: 38px; height: 38px; border-radius: 10px; background: #eef2ff; color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.icon-box-emerald { width: 38px; height: 38px; border-radius: 10px; background: #ecfdf5; color: #10b981; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.icon-box-rose { width: 38px; height: 38px; border-radius: 10px; background: #fef2f2; color: #ef4444; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.icon-box-amber { width: 38px; height: 38px; border-radius: 10px; background: #fffbeb; color: #f59e0b; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.icon-box-cyan { width: 38px; height: 38px; border-radius: 10px; background: #ecfeff; color: #06b6d4; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* Forms */
.tg-form { display: grid; gap: 16px; }
.tg-field { display: flex; flex-direction: column; gap: 6px; }
.tg-field label { font-size: 13px; font-weight: 600; color: #475569; }
.tg-input, .tg-select, .tg-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tg-input:focus, .tg-select:focus, .tg-textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.tg-textarea { min-height: 96px; resize: vertical; }

/* Tables */
table.tg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tg-table th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--tg-border);
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.tg-table td { padding: 13px 14px; border-bottom: 1px solid var(--tg-border); vertical-align: middle; }
table.tg-table tr:hover td { background: #f8fafc; }

/* Stat Cards */
.tg-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.tg-stat {
  background: #ffffff;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  padding: 20px;
  box-shadow: var(--tg-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.tg-stat:hover { transform: translateY(-2px); box-shadow: var(--tg-shadow); }
.tg-stat .tg-stat-val { font-size: 28px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.tg-stat .tg-stat-lbl { color: var(--tg-text-muted); font-size: 12.5px; font-weight: 500; margin-top: 4px; }

/* Modals */
.tg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}
.tg-modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--tg-border);
}
.tg-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--tg-border);
  font-weight: 700;
  font-size: 16px;
}
.tg-modal-body { padding: 24px; }
.tg-modal-close {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--tg-text-muted);
  line-height: 1;
  transition: color 0.15s;
}
.tg-modal-close:hover { color: #0f172a; }

/* Toast */
#tg-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.tg-toast {
  background: #ffffff;
  border-left: 4px solid var(--tg-primary);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 260px;
  font-size: 13.5px;
  font-weight: 500;
  animation: slideInRight 0.2s ease-out;
}
.tg-toast.success { border-left-color: var(--tg-success); }
.tg-toast.error { border-left-color: var(--tg-danger); }
.tg-toast.warning { border-left-color: var(--tg-warning); }

/* Mobile Floating Help FAB */
#appHelpFloatingBtn {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
#appHelpFloatingBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.6);
}

.kpi-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--tg-primary-light);
  border: 1px solid #c7d2fe;
  color: #1e1b4b;
}

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

@media (max-width: 768px) {
  #tg-ticker { font-size: 10px; padding: 4px 12px; }
  #tg-sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  #tg-sidebar.open { transform: translateX(0); }
  #tg-main { margin-left: 0; }
  #tg-topbar { padding: 0 14px; }
  #tg-content { padding: 16px; }
}

@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ==========================================================================
   GOOGLE MATERIAL DESIGN 3 (M3) DESIGN SYSTEM & COMPONENT TOKENS
   100% Pure Vanilla CSS — Native cPanel Compatible (Zero Node Build Step)
   ========================================================================== */

:root {
  /* Material 3 Core Typography */
  --md-sys-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Material 3 Color Roles (Dark Cyberpunk / Sovereign Enterprise Palette) */
  --md-sys-color-primary: #6366f1;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #312e81;
  --md-sys-color-on-primary-container: #e0e7ff;
  
  --md-sys-color-secondary: #06b6d4;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #164e63;
  
  --md-sys-color-tertiary: #10b981;
  --md-sys-color-tertiary-container: #064e3b;
  
  /* Material 3 Surface Containers (Elevation Levels) */
  --md-sys-color-surface: #090d16;
  --md-sys-color-surface-dim: #060910;
  --md-sys-color-surface-bright: #1e293b;
  --md-sys-color-surface-container-lowest: #05070d;
  --md-sys-color-surface-container-low: #0c1220;
  --md-sys-color-surface-container: #111a2e;
  --md-sys-color-surface-container-high: #19253d;
  --md-sys-color-surface-container-highest: #233352;
  
  --md-sys-color-outline: rgba(255, 255, 255, 0.12);
  --md-sys-color-outline-variant: rgba(255, 255, 255, 0.06);

  /* Material 3 Elevation Shadows */
  --md-sys-elevation-1: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.30);
  --md-sys-elevation-2: 0 2px 6px 2px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.30);
  --md-sys-elevation-3: 0 4px 12px 3px rgba(0, 0, 0, 0.20), 0 1px 3px 0 rgba(0, 0, 0, 0.30);
  --md-sys-elevation-4: 0 8px 24px 4px rgba(0, 0, 0, 0.25), 0 2px 6px 0 rgba(0, 0, 0, 0.35);
  
  /* Material 3 Shape Corners */
  --md-sys-shape-corner-xs: 4px;
  --md-sys-shape-corner-sm: 8px;
  --md-sys-shape-corner-md: 12px;
  --md-sys-shape-corner-lg: 16px;
  --md-sys-shape-corner-xl: 24px;
  --md-sys-shape-corner-full: 9999px;
}

body {
  font-family: var(--md-sys-font) !important;
}

/* Material Symbols Icon Sizing */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

/* Material 3 Elevated Card */
.m3-card {
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-xl);
  padding: 24px;
  box-shadow: var(--md-sys-elevation-1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.m3-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--md-sys-elevation-3);
  border-color: rgba(99, 102, 241, 0.35);
}

/* Material 3 Filter & Action Chips */
.m3-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid var(--md-sys-color-outline);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m3-chip:hover {
  background: var(--md-sys-color-surface-container-highest);
  color: #ffffff;
  border-color: var(--md-sys-color-primary);
}

.m3-chip.active {
  background: var(--md-sys-color-primary) !important;
  color: #ffffff !important;
  border-color: var(--md-sys-color-primary) !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Material 3 Buttons */
.m3-btn-filled {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--md-sys-shape-corner-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.m3-btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  color: #ffffff !important;
}

.m3-btn-tonal {
  background: var(--md-sys-color-surface-container-high);
  color: #e2e8f0 !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid var(--md-sys-color-outline);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.m3-btn-tonal:hover {
  background: var(--md-sys-color-surface-container-highest);
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.25);
}

/* Material 3 Mobile Bottom App Bar (< 768px) */
.m3-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050;
  padding: 0 8px;
}

.m3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.m3-nav-item .m3-nav-icon {
  font-size: 22px;
  padding: 4px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  transition: all 0.2s ease;
}

.m3-nav-item.active {
  color: #818cf8;
}

.m3-nav-item.active .m3-nav-icon {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 75px;
  }
}