:root,
[data-theme="light"] {
  --st-bg: #f3f5f8;
  --st-surface: #ffffff;
  --st-surface-2: #f8fafc;
  --st-surface-elevated: rgba(255, 255, 255, 0.9);
  --st-border: #e2e6ed;
  --st-border-strong: #cbd5e1;
  --st-text: #0f172a;
  --st-text-muted: #526071;
  --st-primary: #0f766e;
  --st-primary-hover: #0d5e58;
  --st-primary-soft: rgba(15, 118, 110, 0.09);
  --st-primary-glow: rgba(15, 118, 110, 0.18);
  --st-accent: #0284c7;
  --st-amber: #d97706;
  --st-danger: #dc2626;
  --st-sidebar-bg: #ffffff;
  --st-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --st-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --st-glass: rgba(255, 255, 255, 0.84);
  --st-ambient: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(15, 118, 110, 0.10), transparent);
}

[data-theme="dark"] {
  --st-bg: #070a10;
  --st-surface: #0e131d;
  --st-surface-2: #151c2a;
  --st-surface-elevated: rgba(21, 28, 42, 0.85);
  --st-border: rgba(255, 255, 255, 0.08);
  --st-border-strong: rgba(255, 255, 255, 0.15);
  --st-text: #f1f5f9;
  --st-text-muted: #8b9bb4;
  --st-primary: #14b8a6;
  --st-primary-hover: #0d9488;
  --st-primary-soft: rgba(20, 184, 166, 0.12);
  --st-primary-glow: rgba(20, 184, 166, 0.22);
  --st-accent: #38bdf8;
  --st-amber: #f59e0b;
  --st-danger: #ef4444;
  --st-sidebar-bg: #0a0e16;
  --st-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --st-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --st-glass: rgba(10, 14, 22, 0.82);
  --st-ambient: radial-gradient(ellipse 80% 45% at 50% -15%, rgba(20, 184, 166, 0.14), transparent);
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--st-bg);
  background-image: var(--st-ambient);
  background-attachment: fixed;
  color: var(--st-text);
  margin: 0;
  min-height: 100vh;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.coord-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  color: var(--st-text-muted);
}

/* Futuristic Crisp Buttons */
.btn {
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--st-primary);
  border-color: var(--st-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--st-primary-glow);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--st-primary-hover);
  border-color: var(--st-primary-hover);
  box-shadow: 0 4px 16px var(--st-primary-glow);
}

.btn-outline-primary {
  color: var(--st-primary);
  border-color: var(--st-primary);
}

.btn-outline-primary:hover {
  background-color: var(--st-primary);
  border-color: var(--st-primary);
  color: #ffffff;
}

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

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

/* Desktop Sidebar */
.app-sidebar {
  width: 258px;
  background-color: var(--st-sidebar-bg);
  border-right: 1px solid var(--st-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar.collapsed {
  width: 74px;
}

.sidebar-brand {
  padding: 1rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--st-border);
  min-height: 64px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--st-primary), var(--st-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 12px var(--st-primary-glow);
}

.sidebar-section-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-text-muted);
  padding: 0.85rem 0.85rem 0.35rem;
}

.sidebar-nav {
  padding: 0.5rem 0.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--st-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.nav-item-btn i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-item-btn:hover {
  background-color: var(--st-surface-2);
  color: var(--st-text);
}

.nav-item-btn.active {
  background-color: var(--st-primary-soft);
  color: var(--st-primary);
  border-color: var(--st-primary-glow);
}

.app-sidebar.collapsed .nav-label,
.app-sidebar.collapsed .brand-text,
.app-sidebar.collapsed .sidebar-footer-text,
.app-sidebar.collapsed .sidebar-section-label {
  display: none;
}

.app-sidebar.collapsed .nav-item-btn {
  justify-content: center;
  padding: 0.7rem;
}

/* Main Content Area */
.app-main {
  flex: 1;
  margin-left: 258px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-main.sidebar-collapsed {
  margin-left: 74px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--st-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--st-border);
  padding: 0.75rem 1.5rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-content {
  flex: 1;
  padding: 1.35rem 1.5rem;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.app-footer {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--st-border);
  color: var(--st-text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* Cards & Surfaces */
.st-card {
  background-color: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 14px;
  box-shadow: var(--st-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.st-card-soft {
  background-color: var(--st-surface-2);
  border: 1px solid var(--st-border);
  border-radius: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Hero Banner Card */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--st-border);
  background: linear-gradient(135deg, var(--st-surface) 0%, var(--st-surface-2) 100%);
  box-shadow: var(--st-shadow);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--st-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background-color: var(--st-surface);
  border: 1px solid var(--st-border);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Interactive Summary Cards */
.summary-card {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  border-color: var(--st-primary);
  box-shadow: var(--st-shadow-lg);
}

.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--st-primary-soft);
  color: var(--st-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Selection Chips & Tier Cards */
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--st-border);
  background-color: var(--st-surface-2);
  color: var(--st-text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip-btn:hover {
  border-color: var(--st-primary);
}

.chip-btn.selected {
  background-color: var(--st-primary);
  color: #ffffff;
  border-color: var(--st-primary);
  box-shadow: 0 2px 10px var(--st-primary-glow);
}

/* Wizard Stepper */
.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.wizard-step-pill {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background-color: var(--st-surface-2);
  border: 1px solid var(--st-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--st-text-muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wizard-step-pill .step-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: var(--st-border);
  color: var(--st-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wizard-step-pill.active {
  border-color: var(--st-primary);
  color: var(--st-primary);
  background-color: var(--st-primary-soft);
}

.wizard-step-pill.active .step-num {
  background-color: var(--st-primary);
  color: #ffffff;
}

.wizard-step-pill.done {
  color: var(--st-text);
}

.wizard-step-pill.done .step-num {
  background-color: var(--st-primary);
  color: #ffffff;
}

/* Timeline */
.timeline-list {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--st-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 1.15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--st-surface);
  background-color: var(--st-primary);
  z-index: 2;
}

.timeline-dot.culinary {
  background-color: var(--st-amber);
}

.timeline-dot.pinned {
  box-shadow: 0 0 0 4px var(--st-primary-glow);
}

/* Catalog Images */
.catalog-img-wrap {
  height: 175px;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  position: relative;
  background-color: var(--st-surface-2);
}

.catalog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.st-card:hover .catalog-img-wrap img {
  transform: scale(1.04);
}

.thumb-sm {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--st-surface-2);
}

.thumb-xs {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--st-surface-2);
}

/* Map */
.leaflet-map-box {
  height: 360px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  z-index: 1;
}

/* Soft Status Tags */
.st-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  background-color: var(--st-surface-2);
  border: 1px solid var(--st-border);
  color: var(--st-text);
}

.st-tag-teal {
  background-color: var(--st-primary-soft);
  border-color: transparent;
  color: var(--st-primary);
}

/* Form Controls */
.form-control,
.form-select {
  background-color: var(--st-surface-2);
  color: var(--st-text);
  border-color: var(--st-border);
  border-radius: 9px;
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--st-surface-2);
  color: var(--st-text);
  border-color: var(--st-primary);
  box-shadow: 0 0 0 0.2rem var(--st-primary-soft);
}

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

.modal-content {
  background-color: var(--st-surface);
  color: var(--st-text);
  border: 1px solid var(--st-border-strong);
  border-radius: 14px;
  box-shadow: var(--st-shadow-lg);
}

.modal-header,
.modal-footer {
  border-color: var(--st-border);
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--st-text);
  --bs-table-border-color: var(--st-border);
}

.table thead th {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-text-muted);
  font-weight: 700;
  border-bottom-width: 1px;
}

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

.fade-in {
  animation: stFadeIn 0.28s ease-out;
}

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

/* Mobile Bottom Navigation Bar (< 768px) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    display: none !important;
  }

  .app-main,
  .app-main.sidebar-collapsed {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 72px;
  }

  .app-content {
    padding: 0.85rem;
  }

  .app-topbar {
    padding: 0.55rem 0.75rem;
    gap: 0.45rem;
  }

  .app-topbar .btn,
  .app-topbar .badge {
    white-space: nowrap;
    font-size: 0.76rem;
  }

  .timeline-list {
    padding-left: 1.15rem;
  }

  .timeline-dot {
    left: -1.15rem;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--st-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--st-border);
    z-index: 1040;
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
  }

  .mobile-nav-btn {
    flex: 1;
    min-width: 60px;
    border: none;
    background: transparent;
    color: var(--st-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-nav-btn i {
    font-size: 1.2rem;
  }

  .mobile-nav-btn.active {
    color: var(--st-primary);
  }
}

/* Mascot Interactive Guide & Speech Bubble */
.wizard-mascot-col {
  background: linear-gradient(180deg, var(--st-primary-soft) 0%, rgba(14, 116, 144, 0.02) 100%);
  border: 1px solid var(--st-border);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
}

.speech-bubble {
  position: relative;
  background-color: #ffffff;
  color: #0f172a;
  border: 2px solid #0E7490;
  border-radius: 16px;
  padding: 0.9rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.48;
  box-shadow: 0 6px 18px rgba(14, 116, 144, 0.12);
  width: 100%;
  animation: mascotFadeInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .speech-bubble {
  background-color: #162032;
  color: #f1f5f9;
  border-color: #14b8a6;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 36px;
  width: 16px;
  height: 16px;
  background-color: inherit;
  border-right: 2px solid #0E7490;
  border-bottom: 2px solid #0E7490;
  transform: rotate(45deg);
}

[data-theme="dark"] .speech-bubble::after {
  border-right-color: #14b8a6;
  border-bottom-color: #14b8a6;
}

.mascot-stage {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 0;
  width: 100%;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: mascotFadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-stage:hover {
  transform: translateY(-5px);
}

.mascot-img {
  height: 255px;
  width: 100%;
  object-fit: contain;
  transform: scale(1.22);
  transform-origin: center center;
  display: block;
}

@keyframes mascotFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991.98px) {
  .wizard-mascot-col {
    flex-direction: row-reverse;
    align-items: center;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .mascot-stage {
    flex: 0 0 auto;
    width: 112px;
    min-height: 112px;
  }

  .mascot-img {
    height: 112px;
    transform: scale(1.2);
  }

  .speech-bubble {
    font-size: 0.82rem;
    padding: 0.7rem 0.85rem;
  }

  .speech-bubble::after {
    bottom: auto;
    left: -9px;
    top: 50%;
    margin-top: -7px;
    border-right: none;
    border-bottom: 2px solid #0E7490;
    border-left: 2px solid #0E7490;
    transform: rotate(45deg);
  }

  [data-theme="dark"] .speech-bubble::after {
    border-bottom-color: #14b8a6;
    border-left-color: #14b8a6;
  }
}

/* Split-Screen Modern Admin Login Showcase */
.auth-split-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.auth-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 540px;
  background:
    linear-gradient(135deg, rgba(7, 13, 22, 0.88) 0%, rgba(15, 118, 110, 0.78) 100%),
    url('https://images.unsplash.com/photo-1588668214407-6ea9a6d8c272?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  color: #f8fafc;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.auth-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.auth-showcase-inner {
  position: relative;
  z-index: 2;
}

.auth-feature-box {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.auth-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.25);
  color: #5eead4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-form-card {
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--st-shadow-lg);
}

@media (max-width: 991.98px) {
  .auth-showcase {
    min-height: auto;
    padding: 1.5rem;
  }
  .auth-form-card {
    padding: 1.5rem;
  }
}
