:root {
  color-scheme: light;
  --navy-900: #0b1b3a;
  --navy-800: #10244b;
  --navy-700: #1b345f;
  --ice: #f8fbff;
  --white: #ffffff;
  --accent: #2f8cf0;
  --accent-2: #3bb7ff;
  --ink: #0b1b3a;
  --ink-soft: #435b7a;
  --card: #ffffff;
  --card-border: rgba(13, 44, 83, 0.12);
  --shadow: 0 18px 40px rgba(12, 29, 54, 0.18);
  --gradient: radial-gradient(circle at 18% 12%, rgba(47, 140, 240, 0.12), transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(59, 183, 255, 0.16), transparent 42%),
    linear-gradient(160deg, #f8fbff 0%, #e6f1ff 45%, #d2e6ff 78%, #c2daf8 100%);
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --ink: #e2e8f0;
  --ink-soft: #94a3b8;
  --card: #0f172a;
  --card-border: rgba(148, 163, 184, 0.2);
  --shadow: 0 16px 32px rgba(3, 7, 18, 0.7);
  --gradient: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.12), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.1), transparent 40%),
    linear-gradient(150deg, #020617 0%, #0b1120 55%, #111827 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--gradient);
  color: var(--ink);
  min-height: 100vh;
}

body.guest-landing {
  background:
    linear-gradient(180deg, rgba(8, 20, 40, 0.55) 0%, rgba(10, 25, 50, 0.45) 45%, rgba(12, 28, 55, 0.65) 100%),
    url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?auto=format&fit=crop&w=1600&q=80')
      center/cover no-repeat fixed;
}

body.staff-landing {
  background:
    linear-gradient(180deg, rgba(7, 18, 36, 0.55) 0%, rgba(10, 24, 46, 0.45) 45%, rgba(12, 28, 55, 0.65) 100%),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80')
      center/cover no-repeat fixed;
}

body.guest-landing .hero-card,
body.guest-landing .card {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] body.guest-landing .hero-card,
[data-bs-theme="dark"] body.guest-landing .card {
  background: rgba(15, 23, 42, 0.6);
}

body.staff-landing .hero-card,
body.staff-landing .card {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.68);
}

[data-bs-theme="dark"] body.staff-landing .hero-card,
[data-bs-theme="dark"] body.staff-landing .card {
  background: rgba(15, 23, 42, 0.58);
}

.navbar {
  background: var(--navy-900) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(6px);
  overflow: visible;
}

.navbar-brand {
  font-family: 'Fraunces', serif;
  letter-spacing: 0.6px;
}

.admin-top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-top-nav .btn.active {
  background: rgba(56, 189, 248, 0.22);
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.6);
}

.login-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.2);
  color: #0b1120;
  font-size: 20px;
}

.login-modal-dialog {
  max-width: 420px;
}

.login-modal-content {
  border-radius: 20px;
  border: 1px solid rgba(47, 140, 240, 0.18);
  background: linear-gradient(160deg, #ffffff 0%, #f1f7ff 60%, #e2efff 100%);
  box-shadow: 0 24px 60px rgba(12, 29, 54, 0.2);
}

.login-modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(47, 140, 240, 0.08);
  border: 1px solid rgba(47, 140, 240, 0.15);
}

[data-bs-theme="dark"] .login-modal-content {
  background: linear-gradient(160deg, #0b1120 0%, #0f172a 60%, #111827 100%);
  border-color: rgba(56, 189, 248, 0.2);
}

.input-group-text {
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #0b1120;
}

[data-bs-theme="dark"] .login-icon {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .input-group-text {
  color: #e2e8f0;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.adminlte-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.adminlte-panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.22), rgba(34, 211, 238, 0.08));
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.adminlte-panel-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: #e2e8f0;
}

.adminlte-panel-subtitle {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.7);
}

.adminlte-panel-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.adminlte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 6px;
}

.adminlte-chip {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #e2e8f0;
  min-width: 140px;
}

.adminlte-chip-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.6);
}

.adminlte-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: rgba(226, 232, 240, 0.8);
}

.adminlte-search .form-control {
  border: none;
  background: transparent;
  background-color: transparent;
  color: #e2e8f0;
  min-width: 200px;
  padding: 2px 6px;
}

.adminlte-search .form-control::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.adminlte-search .form-control:focus {
  box-shadow: none;
}

.adminlte-count {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 600;
}

.adminlte-panel-body {
  padding-top: 20px;
}

.adminlte-panel,
.adminlte-panel .section-title,
.adminlte-panel .form-label {
  color: #e2e8f0;
}

.adminlte-panel .text-muted {
  color: rgba(226, 232, 240, 0.65) !important;
}

.adminlte-menu-grid-admin .card {
  background: rgba(11, 18, 32, 0.9);
}

.menu-item-card-admin {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(11, 18, 32, 0.85);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.6);
  overflow: hidden;
}

.menu-item-card-admin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.08), transparent 45%);
  pointer-events: none;
}

.adminlte-admin-tools {
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.menu-item-card {
  border-radius: 16px;
}

.menu-item-card-admin {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.45);
}

.menu-item-card-admin .card-body {
  color: #e2e8f0;
}

.menu-item-card-admin .badge-soft {
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.menu-item-card-admin .badge-soft.warn {
  background: rgba(14, 165, 233, 0.25);
  color: #bae6fd;
}

.menu-item-card-admin .menu-image {
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  filter: saturate(1.05);
}

.menu-item-card-admin .btn-outline-primary {
  border-color: rgba(56, 189, 248, 0.6);
  color: #bae6fd;
}

.menu-item-card-admin .btn-outline-primary:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #e2e8f0;
}

.menu-item-card-admin .action-btn {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
}

.menu-item-card-admin .action-btn-secondary {
  background: rgba(56, 189, 248, 0.2);
  color: #0b1120;
}

@media (max-width: 768px) {
  .adminlte-panel-header {
    padding: 16px;
  }
  .adminlte-search {
    width: 100%;
  }
  .adminlte-search .form-control {
    min-width: 0;
    width: 100%;
  }
  .adminlte-chip {
    flex: 1 1 100%;
  }
}

.card-header {
  border-bottom: 0;
  background: transparent;
}

.stat-card {
  background: rgba(56, 189, 248, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  min-width: 140px;
}

.stat-card strong {
  display: block;
  font-size: 18px;
}

.soft-pill {
  background: rgba(56, 189, 248, 0.16);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge-soft {
  background: rgba(34, 211, 238, 0.22);
  color: #0e7490;
  font-weight: 600;
}

.badge-soft.warn {
  background: rgba(56, 189, 248, 0.25);
  color: #0c4a6e;
}

[data-bs-theme="dark"] .badge-soft {
  background: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}

.order-card-head {
  flex-wrap: wrap;
}

.order-status-badge {
  white-space: normal;
  text-align: right;
  max-width: 140px;
}

.kitchen-queue {
  align-items: stretch;
}

.queue-card {
  min-width: 120px;
  border-radius: 18px;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: grid;
  gap: 6px;
  justify-items: center;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
}

.queue-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 600;
}

.queue-number {
  font-size: 28px;
  font-weight: 700;
  color: #0ea5e9;
}

[data-bs-theme="dark"] .queue-card {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(14, 116, 144, 0.25));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.6);
}

[data-bs-theme="dark"] .queue-number {
  color: #7dd3fc;
}

.menu-image {
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.menu-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.menu-desc {
  min-height: 90px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.table-card {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.25);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

.table-card-number {
  font-size: 18px;
}

.table-card-status {
  font-size: 11px;
  color: var(--ink-soft);
}

.table-card.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1120;
}

.table-card.disabled,
.table-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .table-card {
  color: #e2e8f0;
}

.nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.nav-pills .nav-link.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1120;
}

.nav-pills .nav-link.disabled {
  opacity: 0.5;
  box-shadow: none;
}

.chart-canvas {
  width: 100%;
  height: 260px;
}

.chart-canvas canvas {
  width: 100%;
  height: 100%;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.35);
  background-color: #ffffff;
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.25);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b1120;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-success {
  background: linear-gradient(120deg, #0ea5e9, #38bdf8);
  border: none;
}

.btn-outline-dark {
  border-radius: 999px;
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--accent);
}

.btn-outline-dark:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

.alert {
  border-radius: 16px;
}

.table-soft {
  border-radius: 14px;
  overflow: hidden;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #0b1220;
  border-color: rgba(56, 189, 248, 0.25);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.btn-outline-light {
  border-color: rgba(56, 189, 248, 0.6);
  color: #e2e8f0;
}

.btn-outline-light:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #e2e8f0;
}

.action-bar {
  display: grid;
  gap: 8px;
}

.action-btn {
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.action-btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b1120;
}

.action-btn-secondary {
  background: rgba(56, 189, 248, 0.16);
  color: #0b1120;
}

.action-btn-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

[data-bs-theme="dark"] .action-btn {
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .action-btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

@media (max-width: 768px) {
  .stat-card {
    width: 100%;
  }
}

.staff-back {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.app-error-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  margin: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  font-weight: 600;
}


.dashboard-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.menu-gallery-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 44, 83, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 30px rgba(12, 29, 54, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 190px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(12, 29, 54, 0.18);
}

.menu-gallery-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.menu-gallery-body {
  padding: 10px 12px 12px;
}

.menu-gallery-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.menu-gallery-note {
  font-size: 12px;
  color: var(--ink-soft);
}

[data-bs-theme="dark"] .menu-gallery-card {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(56, 189, 248, 0.2);
}

.dashboard-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.dashboard-grid-compact {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.dashboard-card.compact {
  padding: 10px 12px;
  gap: 10px;
}

.dashboard-card.compact .dashboard-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 16px;
}

.dashboard-card.compact .dashboard-card-label {
  font-size: 11px;
}

@media (max-width: 1199px) {
  .dashboard-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 991px) {
  .dashboard-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Ensure profile dropdown stays above dashboard cards */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
}

.profile-nav-wrapper {
  position: relative;
  z-index: 1100;
}

.profile-dropdown-panel {
  z-index: 1101;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.15);
}

.dashboard-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.2);
  color: #0c4a6e;
  font-size: 20px;
}

.dashboard-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
}

.dashboard-card-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-card-hint {
  font-size: 12px;
  color: var(--ink-soft);
}

[data-bs-theme="dark"] .dashboard-card {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(56, 189, 248, 0.25);
}

[data-bs-theme="dark"] .dashboard-card-icon {
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}
.dashboard-card.clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.dashboard-card.tone-amber {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.dashboard-card.tone-cyan {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.dashboard-card.tone-emerald {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.dashboard-card.tone-slate {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.08);
}

.dashboard-card.tone-amber .dashboard-card-icon {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
}

.dashboard-card.tone-cyan .dashboard-card-icon {
  background: rgba(34, 211, 238, 0.2);
  color: #0e7490;
}

.dashboard-card.tone-emerald .dashboard-card-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.dashboard-card.tone-slate .dashboard-card-icon {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

[data-bs-theme="dark"] .dashboard-card.tone-amber {
  background: rgba(251, 191, 36, 0.12);
}

[data-bs-theme="dark"] .dashboard-card.tone-cyan {
  background: rgba(34, 211, 238, 0.12);
}

[data-bs-theme="dark"] .dashboard-card.tone-emerald {
  background: rgba(16, 185, 129, 0.12);
}

[data-bs-theme="dark"] .dashboard-card.tone-slate {
  background: rgba(148, 163, 184, 0.12);
}
.table-qr {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  padding: 6px;
}

/* ─── Profile Nav Wrapper & Button ───────────────────────── */
.profile-nav-wrapper {
  position: relative;
}

.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 600;
  font-size: 12px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.profile-nav-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.8);
}

.profile-name-label {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar-mini {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.2);
  color: #0ea5e9;
  font-weight: 700;
  font-size: 10px;
}

/* ─── Profile Dropdown Panel ─────────────────────────────── */
/* Anchored to the navbar button, drops down with high z-index */
.profile-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.14);
  z-index: 9999;
  animation: profileDropIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.profile-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.18), rgba(34, 211, 238, 0.06));
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.2);
  color: #0ea5e9;
  line-height: 1;
}

.btn-close-profile {
  background: rgba(148, 163, 184, 0.15);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-close-profile:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.profile-dropdown-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
}

.profile-name {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.profile-subrole {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: capitalize;
}

.profile-branch {
  font-size: 12px;
  color: var(--ink-soft);
}

.profile-divider {
  height: 1px;
  background: var(--card-border);
  margin: 8px 0;
}

.profile-logout-btn {
  border-radius: 10px;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
  color: #b91c1c;
}

[data-bs-theme="dark"] .profile-logout-btn {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.25);
}

.profile-action-btn {
  border-radius: 10px;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #0ea5e9;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-action-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .profile-action-btn {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
}

.profile-details-box {
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(148, 163, 184, 0.08);
  padding: 8px;
  font-size: 11px;
  display: grid;
  gap: 6px;
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ─── Click-outside invisible overlay ───────────────────── */
.profile-click-outside {
  position: fixed;
  inset: 0;
  z-index: 1040;
  /* transparent, just catches clicks to close panel */
}

/* ─── Profile Fade Transition (Vue) ─────────────────────── */
.profile-fade-enter-active,
.profile-fade-leave-active {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-fade-enter-from,
.profile-fade-leave-to {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
}
