/* ==========================================================================
   OmniBook Core Stylesheet & Design System
   Aesthetic: Premium Glassmorphism Dark Mode with Accent Gradients
   ========================================================================== */

:root {
  --bg-app: #0b0f19;
  --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #161e31 100%);
  --bg-card: rgba(22, 30, 49, 0.7);
  --bg-card-hover: rgba(30, 41, 67, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(14, 165, 233, 0.4);
  
  /* HSL Tailored Brand Colors */
  --color-primary: #0ea5e9;       /* Cyan-500 */
  --color-primary-hover: #38bdf8; /* Cyan-400 */
  --color-secondary: #475569;     /* Slate-600 */
  --color-success: #10b981;       /* Emerald-500 */
  --color-warning: #f59e0b;       /* Amber-500 */
  --color-danger: #f43f5e;        /* Rose-500 */
  --color-accent: #8b5cf6;        /* Violet-500 */
  
  /* Text System */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Shadow System */
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-primary-glow: 0 0 15px rgba(14, 165, 233, 0.3);
  --shadow-success-glow: 0 0 15px rgba(16, 185, 129, 0.3);
  
  /* Borders & Radius */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #fcfdff 0%, #f1f5f9 100%);
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-glass: rgba(15, 23, 42, 0.05);
  --border-focus: rgba(14, 165, 233, 0.4);

  /* Adapted Brand Colors for Light Theme */
  --color-primary: #0284c7;       /* Cyan-600 */
  --color-primary-hover: #0369a1; /* Cyan-700 */
  --color-secondary: #64748b;     /* Slate-500 */
  --color-success: #16a34a;       /* Emerald-600 */
  --color-warning: #d97706;       /* Amber-600 */
  --color-danger: #e11d48;        /* Rose-600 */
  --color-accent: #7c3aed;        /* Violet-600 */

  /* Text System */
  --text-main: #0f172a;           /* Slate-900 */
  --text-muted: #64748b;          /* Slate-500 */
  --text-dark: #ffffff;           /* contrast text */

  /* Shadow System */
  --shadow-glow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-primary-glow: 0 0 15px rgba(2, 132, 199, 0.15);
  --shadow-success-glow: 0 0 15px rgba(22, 163, 74, 0.15);
}

/* Light Theme Overrides */
[data-theme="light"] .app-header {
  background: rgba(248, 250, 252, 0.8);
}
[data-theme="light"] .user-switcher-container {
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .pill-btn {
  background: rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .pill-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}
[data-theme="light"] .search-input-field {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
}
[data-theme="light"] .popup-timetable-tabs {
  background: rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .popup-tab-btn:hover {
  color: var(--text-main);
}
[data-theme="light"] .popup-tab-btn.active {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}
[data-theme="light"] .slot-available-instant {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
  color: #16a34a;
}
[data-theme="light"] .slot-available-instant:hover {
  background: rgba(22, 163, 74, 0.2);
  border-color: #16a34a;
}
[data-theme="light"] .slot-available-quote {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
  color: #2563eb;
}
[data-theme="light"] .slot-available-quote:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
}
[data-theme="light"] .slot-booked {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}
[data-theme="light"] .slot-past {
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.35);
}
[data-theme="light"] .custom-map-marker {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15), var(--shadow-primary-glow);
}
[data-theme="light"] .leaflet-container {
  background-color: #f1f5f9 !important;
}
[data-theme="light"] .leaflet-tile {
  filter: grayscale(0.2) contrast(1.1) !important;
}
[data-theme="light"] .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-app);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* App Shell Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(1.25rem + env(safe-area-inset-top)) 2rem 1.25rem 2rem;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.user-switcher-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.user-switcher-container label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-select-dropdown {
  background: var(--bg-app);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-select-dropdown:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary-glow);
}

/* Main Dashboard Structure */
.app-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-row {
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

/* Cards & Glassmorphism */
.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-header h2 i {
  color: var(--color-primary);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
}

.card-body.no-padding {
  padding: 0;
}

.card-body.scroll-y {
  max-height: 400px;
  overflow-y: auto;
}

/* Utility Elements */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-primary { background: rgba(14, 165, 233, 0.2); color: var(--color-primary); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--color-success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--color-warning); }
.badge-danger { background: rgba(244, 63, 94, 0.2); color: var(--color-danger); }
.badge-accent { background: rgba(139, 92, 246, 0.2); color: var(--color-accent); }

/* Buttons */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--color-success);
  color: var(--text-dark);
}

.btn-success:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: var(--shadow-success-glow);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--text-dark);
}

.btn-danger:hover {
  background: #fb7185;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Wallet Card Styling */
.profile-wallet-card {
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.8) 0%, rgba(14, 165, 233, 0.08) 100%);
}

.wallet-balance-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.wallet-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wallet-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.wallet-actions {
  display: flex;
  gap: 0.5rem;
}

/* AI Recommendation Alert Item styling */
.ai-brain-icon {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(14, 165, 233, 0.4)); }
  50% { filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.9)); color: var(--color-primary-hover); }
}

.ai-status {
  font-size: 0.75rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.pulse-dot {
  font-size: 0.5rem;
  animation: pulse-dot-anim 1.5s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 0.4; }
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  height: 100px;
  font-size: 0.9rem;
}

.ai-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-rec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.04);
  transition: var(--transition-smooth);
}

.ai-rec-item.high-match {
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
  animation: glow-border 4s infinite alternate;
}

@keyframes glow-border {
  0% { border-color: rgba(14, 165, 233, 0.25); }
  100% { border-color: rgba(139, 92, 246, 0.4); }
}

.ai-rec-content {
  flex: 1;
}

.ai-rec-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.ai-match-tag {
  background: var(--color-primary);
  color: var(--text-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.ai-rec-reason {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-rec-reason i {
  color: var(--color-warning);
}

.ai-rec-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}

.ai-rec-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ai-rec-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.ai-rec-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-success);
}

.ai-rec-discount {
  font-size: 0.75rem;
  color: var(--color-danger);
  font-weight: 700;
  text-decoration: line-through;
  opacity: 0.8;
}

.ai-rec-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Map Section Styles */
.map-dashboard-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  height: 75vh;
  min-height: 580px;
}

.map-card-large {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-element-large {
  height: 100%;
  width: 100%;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  z-index: 1;
  background: var(--bg-app);
}

.sidebar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .map-dashboard-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .map-card-large {
    height: 50vh;
  }
  .sidebar-card {
    height: auto;
  }
}

/* Category filter pills */
.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

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

.pill-btn.active {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-primary-glow);
}

/* Search input field */
.search-input-field {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.2);
  color: var(--text-main);
  transition: border-color 0.2s;
}

.search-input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.search-input-field:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Popup Timetable calendar */
.map-popup-card {
  min-width: 260px;
  max-width: 290px;
  color: var(--text-main);
  font-family: inherit;
}

.map-popup-card h4 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
  color: var(--text-main);
  font-weight: 600;
}

.map-popup-card p {
  font-size: 0.75rem;
  margin: 0.15rem 0;
  color: var(--text-muted);
}

.popup-timetable-tabs {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin: 0.5rem 0;
}

.popup-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.25rem 0;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  text-align: center;
  font-weight: 500;
}

.popup-tab-btn:hover {
  color: white;
}

.popup-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
}

.popup-timetable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.slot-btn {
  padding: 0.35rem 0.25rem;
  font-size: 0.7rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* Slot states */
.slot-available-instant {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.slot-available-instant:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

.slot-available-quote {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.slot-available-quote:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

.slot-booked {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  cursor: not-allowed;
  opacity: 0.8;
}

.slot-past {
  background: rgba(255, 255, 255, 0.03);
  border-color: transparent;
  color: rgba(255,255,255,0.25);
  cursor: not-allowed;
}

.slot-btn span {
  font-size: 0.55rem;
  opacity: 0.85;
}

.map-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
}

.legend-item i {
  font-size: 0.9rem;
}

.marker-sports { color: var(--color-primary); }
.marker-health { color: var(--color-warning); }
.marker-healthcare { color: #f43f5e; }
.marker-automotive { color: #3b82f6; }
.marker-beauty { color: #ec4899; }
.marker-education { color: #eab308; }
.marker-pets { color: #10b981; }
.marker-workspace { color: var(--color-accent); }
.marker-own-facility { color: var(--color-warning); }

/* Map Legend Overlay Styles */
.map-legend-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.map-legend-overlay:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--border-focus);
}

.map-legend-overlay .legend-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.35rem;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-legend-overlay .legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 115px);
  gap: 0.4rem 0.8rem;
}

/* Light Theme overrides for legend overlay */
[data-theme="light"] .map-legend-overlay {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .map-legend-overlay .legend-title {
  color: var(--text-main);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  .map-legend-overlay {
    bottom: 10px;
    left: 10px;
    padding: 0.5rem 0.75rem;
  }
  .map-legend-overlay .legend-grid {
    grid-template-columns: repeat(2, 95px);
    gap: 0.3rem 0.5rem;
  }
  .map-legend-overlay .legend-title {
    font-size: 0.7rem;
    padding-bottom: 0.25rem;
  }
}

.custom-map-marker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85); /* Sleek dark slate glass */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 3px 10px 3px 4px; /* snug fit */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: auto;
  transition: all 0.25s ease;
  width: auto !important;
  height: auto !important;
}

.marker-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white !important;
}

.marker-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
}

.custom-map-marker.marker-sports {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(14, 165, 233, 0.3);
}
.custom-map-marker.marker-sports .marker-icon-circle {
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.custom-map-marker.marker-health {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(245, 158, 11, 0.3);
}
.custom-map-marker.marker-health .marker-icon-circle {
  background: var(--color-warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.custom-map-marker.marker-healthcare {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(244, 63, 94, 0.3);
}
.custom-map-marker.marker-healthcare .marker-icon-circle {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

.custom-map-marker.marker-automotive {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(59, 130, 246, 0.3);
}
.custom-map-marker.marker-automotive .marker-icon-circle {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.custom-map-marker.marker-beauty {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(236, 72, 153, 0.3);
}
.custom-map-marker.marker-beauty .marker-icon-circle {
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.custom-map-marker.marker-education {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(234, 179, 8, 0.3);
}
.custom-map-marker.marker-education .marker-icon-circle {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.custom-map-marker.marker-pets {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(16, 185, 129, 0.3);
}
.custom-map-marker.marker-pets .marker-icon-circle {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.custom-map-marker.marker-workspace {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(139, 92, 246, 0.3);
}
.custom-map-marker.marker-workspace .marker-icon-circle {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.custom-map-marker.marker-own-facility {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.5);
  animation: pulse-marker-pill 1.5s infinite alternate;
}
.custom-map-marker.marker-own-facility .marker-icon-circle {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

@keyframes pulse-marker-pill {
  0% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
  }
}

.custom-map-marker:hover {
  transform: translateY(-4px) scale(1.08);
}

/* Customize Leaflet dark theme styling */
.leaflet-container {
  background-color: #111a2e !important;
}
.leaflet-tile {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(22, 30, 49, 0.9) !important;
  color: var(--text-main) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-glow) !important;
}
.leaflet-popup-tip {
  background: rgba(22, 30, 49, 0.9) !important;
}
.leaflet-popup-content h4 {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.leaflet-popup-content p {
  font-family: var(--font-family);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.leaflet-popup-content .map-popup-btn {
  width: 100%;
  margin-top: 0.4rem;
}

/* Bookings List Styles */
.bookings-card {
  height: 480px;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.booking-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.booking-item-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.booking-icon-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-details h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.booking-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.booking-policy-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.booking-policy-text span {
  font-weight: 600;
}

.booking-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.booking-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.booking-actions {
  display: flex;
  gap: 0.4rem;
}

.booking-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.booking-empty i {
  font-size: 2rem;
  opacity: 0.4;
}

/* Secondary Marketplace Grid Styling */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  min-height: 120px;
}

.market-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.market-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.market-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.market-category {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.market-discount-badge {
  background: var(--color-danger);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.market-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.market-seller {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.market-seller i {
  font-size: 0.7rem;
}

.market-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.market-info-list div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.market-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.market-original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.market-resale-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-success);
}

.market-resale-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
}

.market-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 0.95rem;
}

/* Modal Backdrops & Dialogs */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  animation: modal-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-enter {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Forms & Pricing Sliders */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.price-slider-container input[type="range"] {
  flex: 1;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.slider-percentage {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  width: 70px;
  text-align: right;
}

/* Estimation Box in Modal */
.invoice-estimation {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.calc-row strong {
  color: var(--text-main);
}

.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0.25rem 0;
}

.calc-row.highlighted {
  font-size: 0.95rem;
  font-weight: 700;
}

.time-lock-warning {
  display: flex;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  align-items: center;
  line-height: 1.3;
}

.time-lock-warning i {
  font-size: 1.1rem;
}

.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

/* Ledger Table Styles */
.ledger-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.ledger-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}

.ledger-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  white-space: nowrap;
}

.ledger-table tbody tr {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ledger-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ledger-table tbody tr:last-child td {
  border-bottom: none;
}

/* Printable Digital Invoice Modal */
.invoice-modal-content {
  max-width: 580px;
}

.invoice-receipt {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-md);
  padding: 2rem;
  font-family: monospace;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
  border: 1px solid #e2e8f0;
}

.invoice-receipt-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 1rem;
}

.invoice-receipt-header h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.invoice-receipt-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.invoice-receipt-grid .lbl {
  color: #64748b;
  font-weight: bold;
}

.invoice-item-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.invoice-item-table th {
  border-bottom: 1px solid #cbd5e1;
  padding: 0.4rem 0;
  text-align: left;
  color: #64748b;
}

.invoice-item-table td {
  padding: 0.4rem 0;
}

.invoice-item-table tr.total-row td {
  border-top: 1px dashed #cbd5e1;
  font-weight: bold;
  font-size: 0.9rem;
  padding-top: 0.75rem;
}

.invoice-receipt-footer {
  border-top: 2px dashed #cbd5e1;
  padding-top: 1rem;
  text-align: center;
  color: #64748b;
}

.qrcode-box {
  margin: 1rem auto 0;
  width: 120px;
  height: 120px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  padding: 0.5rem;
}

.qrcode-box span {
  font-size: 0.5rem;
  word-break: break-all;
  margin-top: 0.25rem;
  text-align: center;
}

/* Provider Panel stats box styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Footer style */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border-glass);
  margin-top: auto;
}

/* CRM Proposal Log Items */
.crm-log-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.crm-log-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateX(4px);
}

.crm-log-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.crm-log-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.crm-log-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.crm-log-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.crm-log-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.crm-log-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Provider Onboarding Queue Items */
.pending-provider-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pending-provider-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pending-provider-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pending-provider-biz {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}

.pending-provider-reg {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.pending-provider-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Print Overrides */
@media print {
  body * {
    visibility: hidden;
  }
  #invoice-modal, #invoice-modal * {
    visibility: visible;
  }
  #invoice-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: none;
    backdrop-filter: none;
  }
  .invoice-modal-content {
    border: none;
    box-shadow: none;
    background: none;
  }
  #btn-print-invoice, #btn-close-invoice-ok, .modal-header .btn-close {
    display: none;
  }
}

/* Facility Profile Hero & Gallery Layout */
.profile-hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.profile-gallery-container {
  display: flex;
  flex-direction: column;
}

#profile-gallery-main img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.gallery-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.gallery-thumb:hover {
  opacity: 0.9;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
  opacity: 1;
  box-shadow: var(--shadow-primary-glow);
}

.profile-info-sheet p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-info-sheet strong {
  color: white;
}

/* Weeks-ahead booking calendar header */
.calendar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .profile-hero-section {
    grid-template-columns: 1fr;
  }
  .profile-feedback-section {
    grid-template-columns: 1fr !important;
  }
  .calendar-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Feedback stars rating form */
.profile-feedback-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.star-rating-selector i {
  transition: color 0.15s ease;
}

.star-rating-selector i.hovered,
.star-rating-selector i.selected {
  color: var(--color-warning) !important;
  font-weight: 900 !important; /* solid star fontawesome */
}

/* Review Card List */
.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.review-card-user {
  font-weight: bold;
  color: var(--text-main);
}

.review-card-stars {
  color: var(--color-warning);
}

.review-card-date {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.review-card-comment {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.review-empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 1.5rem;
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */
.landing-container {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding: 0 1rem;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(1.5rem + env(safe-area-inset-top)) 2rem 1.5rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-glass);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.landing-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.landing-nav a:hover {
  color: var(--color-primary);
}

.btn-glow {
  box-shadow: var(--shadow-primary-glow);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.6);
}

/* Hero Section */
.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 4rem auto;
  align-items: center;
  padding: 0 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.animate-pulse-badge {
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.visual-card {
  width: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: rgba(22, 30, 49, 0.65);
  backdrop-filter: blur(12px);
  padding: 1rem;
  box-shadow: var(--shadow-glow);
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.visual-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.visual-header .dot.red { background: var(--color-danger); }
.visual-header .dot.yellow { background: var(--color-warning); }
.visual-header .dot.green { background: var(--color-success); }
.visual-header .title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.25rem;
}

.mock-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.8rem;
}

.mock-order .label {
  color: var(--text-main);
  font-weight: 500;
}

.mock-order .discount {
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.mock-order .value {
  color: var(--color-primary);
  font-weight: 700;
}

.float-anim-1 {
  animation: float-1 6s ease-in-out infinite;
}

.float-anim-2 {
  animation: float-2 7s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Features Grid */
.landing-features {
  max-width: 1200px;
  width: 100%;
  margin: 4rem auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-main);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 67, 0.75);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-primary-glow);
}

.feature-card .icon {
  font-size: 2rem;
  color: var(--color-primary);
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stats section */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(22, 30, 49, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Signup Portal Section */
.landing-signup {
  max-width: 600px;
  width: 100%;
  margin: 4rem auto;
  padding: 0 1rem;
}

.signup-container {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.signup-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.signup-header h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.signup-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.landing-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-footer {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    margin: 2rem auto;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .landing-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem 1rem;
    text-align: center;
  }

  .app-header .brand {
    justify-content: center;
  }

  .app-header > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
  }

  .active-user-profile-bar {
    padding: 0.5rem 1rem !important;
    justify-content: center;
    font-size: 0.75rem !important;
  }

  /* Hide landing text links on mobile to prevent horizontal overflow */
  .landing-nav a {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .landing-header {
    flex-direction: column;
    gap: 1rem;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem 1rem;
  }

  .landing-nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .landing-stats {
    grid-template-columns: 1fr;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@keyframes scan-line-anim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Landing Page Interactive Map Styles */
.landing-map-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.landing-map-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.landing-map-wrapper {
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

/* Map Autocomplete Suggestion Item */
.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* User location pulse marker styling */
.user-pulse-marker {
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse-glow-anim 2s infinite ease-in-out;
}

@keyframes pulse-glow-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* Better visual enhancements for Light Mode */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .card-header h2,
[data-theme="light"] .card-header h2 *,
[data-theme="light"] .card-body h4,
[data-theme="light"] .card-body h5,
[data-theme="light"] .card-body span,
[data-theme="light"] #calendar-timetable-grid h5,
[data-theme="light"] #calendar-timetable-grid span,
[data-theme="light"] h5[style*="color: white"],
[data-theme="light"] h5[style*="color:white"],
[data-theme="light"] span[style*="color: var(--text-muted)"] {
  color: var(--text-main) !important;
}

[data-theme="light"] .stats-grid .stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glow);
}

[data-theme="light"] .stats-grid .stat-val {
  color: var(--color-primary) !important;
}

[data-theme="light"] .stats-grid .stat-title {
  color: var(--text-muted) !important;
}

/* Dynamic Slots occupancy container background override */
[data-theme="light"] div[style*="background: rgba(0,0,0,0.15)"],
[data-theme="light"] div[style*="background:rgba(0,0,0,0.15)"],
[data-theme="light"] div[style*="background: rgba(0, 0, 0, 0.15)"] {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}

/* Camera simulation background overrides */
[data-theme="light"] .scanner-simulate-screen {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .scanner-simulate-screen div[style*="color: var(--text-muted)"],
[data-theme="light"] .scanner-simulate-screen span[id="scanner-feedback-msg"] {
  color: var(--text-muted) !important;
}

[data-theme="light"] .scanner-simulate-screen i.fa-expand {
  color: var(--text-main) !important;
}

/* Timetable grid and slot buttons override */
[data-theme="light"] .timetable-grid,
[data-theme="light"] #calendar-timetable-grid {
  background: transparent !important;
}

[data-theme="light"] .timetable-slot,
[data-theme="light"] .slot-btn {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Secondary Button visual enhancement */
[data-theme="light"] .btn-secondary {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--text-main) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}

/* Dropdown visual enhancement */
[data-theme="light"] .user-select-dropdown {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--text-main) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Input visual enhancement */
[data-theme="light"] .search-input-field {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--text-main) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Badge visual enhancement for light mode */
[data-theme="light"] .badge-primary {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
}
[data-theme="light"] .badge-success {
  background: rgba(22, 163, 74, 0.08) !important;
  color: #16a34a !important;
}
[data-theme="light"] .badge-accent {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #7c3aed !important;
}
[data-theme="light"] .badge-danger {
  background: rgba(225, 29, 72, 0.08) !important;
  color: #e11d48 !important;
}
[data-theme="light"] .badge-warning {
  background: rgba(217, 119, 6, 0.08) !important;
  color: #d97706 !important;
}

/* Custom timetable occupancy text header color adjustments */
[data-theme="light"] h4[style*="color: white"],
[data-theme="light"] h4[style*="color:white"],
[data-theme="light"] h4[style*="color: var(--text-dark)"] {
  color: var(--text-main) !important;
}

/* Super Admin Tab Bar Styling */
.admin-tab-bar .btn {
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.admin-tab-bar .btn.active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: white !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.animate-pulse-badge {
  animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Native platform safe area overrides to clear notch and status bar */
.platform-native .landing-header {
  padding-top: calc(2.2rem + env(safe-area-inset-top, 24px)) !important;
}
.platform-native .app-header {
  padding-top: calc(1.8rem + env(safe-area-inset-top, 24px)) !important;
}
