/* ==========================================================================
   VERLUXE - STYLESHEET
   Sleek Dark Tech Mode Design System
   ========================================================================== */

:root {
  /* HSL Color System */
  --bg-base: 224 47% 4%;
  --bg-surface: 222 47% 7%;
  --bg-card: 222 40% 11%;
  --bg-card-hover: 222 40% 15%;
  
  --accent: 188 100% 50%;         /* Neon Cyan/Teal */
  --accent-glow: 188 100% 50% / 0.15;
  --accent-dark: 188 100% 35%;
  --secondary: 250 100% 65%;       /* Indigo Violet */
  --secondary-glow: 250 100% 65% / 0.2;
  
  --text-main: 0 0% 96%;
  --text-muted: 215 20% 65%;
  --text-dark: 215 20% 30%;
  
  --success: 142 70% 50%;          /* Emerald Green */
  --success-glow: 142 70% 50% / 0.15;
  --warning: 38 92% 50%;           /* Amber Yellow */
  --warning-glow: 38 92% 50% / 0.15;
  --danger: 350 80% 50%;           /* Rose Red */
  --danger-glow: 350 80% 50% / 0.15;
  
  /* Layout and Styling Tokens */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --glass-bg: rgba(13, 20, 38, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --backdrop-blur: blur(12px);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--bg-base));
  color: hsl(var(--text-main));
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow backgrounds */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
}

.glow-1 {
  background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.glow-2 {
  background: radial-gradient(circle, hsl(var(--secondary)) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
  opacity: 0.3;
}

.glow-3 {
  background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
  top: 40%;
  right: 15%;
  width: 350px;
  height: 350px;
  opacity: 0.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--bg-base));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--bg-card));
  border-radius: 5px;
  border: 2px solid hsl(var(--bg-base));
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--bg-card-hover));
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 15px 0;
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo-icon {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.logo-icon i {
  color: white;
  width: 22px;
  height: 22px;
}

.pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #00ff66;
  border-radius: 50%;
  border: 2px solid hsl(var(--bg-base));
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.5; }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-pro {
  background: rgba(0, 240, 255, 0.1);
  color: hsl(var(--accent));
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--text-muted));
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.nav-link i {
  width: 18px;
  height: 18px;
}

.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: rgba(0, 240, 255, 0.08);
  color: hsl(var(--accent));
  border-left: 2px solid hsl(var(--accent));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* DB Status Pill style */
.db-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: hsl(var(--text-main));
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.db-status-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color-hover);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.demo-mode .status-indicator {
  background-color: hsl(var(--warning));
  box-shadow: 0 0 8px hsl(var(--warning));
}

.live-mode .status-indicator {
  background-color: hsl(var(--success));
  box-shadow: 0 0 8px hsl(var(--success));
}

.db-status-pill i {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.btn-mobile-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* User avatar trigger */
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  color: white;
  transition: var(--transition-fast);
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color-hover);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2.2rem;
  margin: 0 auto 15px;
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-info-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 0.7rem;
  color: hsl(var(--accent));
  font-weight: 500;
}

.profile-trigger .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* User Profile Menu Dropdown */
.user-profile-menu {
  position: relative;
}

.profile-dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: hsl(var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none;
  z-index: 120;
  transform-origin: top right;
  animation: slide-fade-dropdown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-fade-dropdown {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-dropdown-content.show {
  display: block;
}

.dropdown-header {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.dropdown-email {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  word-break: break-all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: hsl(var(--text-main));
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

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

.dropdown-item i {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 6px 0;
}

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

/* ==========================================================================
   BUTTONS & FORM ELEMENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--border-radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
  color: white;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.35);
}

.btn-secondary {
  background-color: #25d366; /* WhatsApp Green */
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-secondary:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: hsl(var(--text-main));
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color-hover);
}

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

.w-full {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.label-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: hsl(var(--text-muted));
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: hsl(var(--text-muted));
  pointer-events: none;
}

.input-icon-wrapper input {
  padding-left: 46px;
}

.btn-toggle-password {
  position: absolute;
  right: 14px;
  bottom: 12px;
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  cursor: pointer;
}

.form-help {
  display: block;
  margin-top: 4px;
  color: hsl(var(--text-muted));
}

.text-xs {
  font-size: 0.75rem;
}

/* ==========================================================================
   MOBILE DRAWERS & MODALS OVERLAYS
   ========================================================================== */

/* Mobile Nav Drawer */
.mobile-nav-overlay, .db-drawer-overlay, .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(4, 7, 20, 0.85);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  backdrop-filter: blur(5px);
}

.mobile-nav-overlay.show, .db-drawer-overlay.show, .modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: hsl(var(--bg-surface));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 35px rgba(0,0,0,0.6);
  transition: var(--transition-normal);
}

.mobile-nav-drawer.show {
  left: 0;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-drawer, .btn-close-modal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close-drawer:hover, .btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
  flex-grow: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: hsl(var(--text-muted));
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.mobile-nav-link i {
  width: 20px;
  height: 20px;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active {
  color: hsl(var(--accent));
  background: rgba(0, 240, 255, 0.08);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   DATABASE SETTINGS DRAWER (SUPABASE)
   ========================================================================== */

.db-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background-color: hsl(var(--bg-surface));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0,0,0,0.6);
  transition: var(--transition-normal);
  border-left: 1px solid var(--border-color);
}

.db-drawer.show {
  right: 0;
}

.db-drawer .drawer-body {
  padding: 25px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-title-group h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

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

.alert-info-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.alert-info-box i {
  color: hsl(var(--accent));
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.db-actions-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.db-setup-guide {
  margin-top: 15px;
}

.db-setup-guide h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-setup-guide p {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  margin-bottom: 8px;
}

.code-block-container {
  background-color: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  margin-top: 10px;
  position: relative;
}

.code-block-container pre {
  font-family: monospace;
  font-size: 0.75rem;
  color: #ccc;
  overflow-x: auto;
  max-height: 120px;
}

.code-block-container button {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: hsl(var(--bg-card));
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* ==========================================================================
   APP VIEWS & HERO LAYOUTS
   ========================================================================== */

.app-main-content {
  width: 90%;
  max-width: 1400px;
  margin: 40px auto 80px;
  min-height: calc(100vh - 280px);
}

.app-view {
  display: none;
  animation: view-fade-in 0.4s ease-out forwards;
}

@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-view.active {
  display: block;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

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

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: hsl(var(--accent));
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-tagline i {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: hsl(var(--text-muted));
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Hero repair card visual */
.hero-visual-card {
  display: flex;
  justify-content: flex-end;
}

.repair-tech-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, hsl(var(--bg-card)), rgba(15, 23, 42, 0.3));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--backdrop-blur);
}

.repair-tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--secondary)));
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.tech-status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66;
}

.tech-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.metric-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-fast);
}

.metric-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-color-hover);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

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

.metric-lbl {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  text-align: center;
  margin-top: 4px;
}

.live-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: hsl(var(--text-muted));
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-title i {
  color: hsl(var(--accent));
  width: 14px;
  height: 14px;
}

.feed-list {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-list li {
  padding: 8px 12px;
  background-color: rgba(255,255,255,0.02);
  border-radius: 6px;
  border-left: 3px solid hsl(var(--accent));
}

.feed-time {
  color: hsl(var(--accent));
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: hsl(var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  transition: var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.feature-icon, .feature-icon-accent {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: white;
}

.feature-icon-accent {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: hsl(var(--accent));
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
}


/* About Brand Section */
.about-brand-section {
  background: linear-gradient(145deg, hsl(var(--bg-surface)), rgba(0, 240, 255, 0.04));
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--border-radius-lg);
  padding: 38px 42px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.about-brand-section::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.about-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--accent));
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.about-brand-kicker i {
  width: 17px;
  height: 17px;
}

.about-brand-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin-bottom: 14px;
  max-width: 820px;
}

.about-brand-section p {
  color: hsl(var(--text-muted));
  max-width: 920px;
  font-size: 1rem;
}

.about-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-brand-tags span {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.035);
  color: hsl(var(--text-main));
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Quick Contact Banner */
.quick-contact-banner {
  background: linear-gradient(135deg, hsl(var(--bg-card)), rgba(250, 100, 65, 0.05));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.quick-contact-content {
  flex: 1;
  min-width: 280px;
}

.quick-contact-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.quick-contact-content p {
  color: hsl(var(--text-muted));
}

/* ==========================================================================
   BOOKING MODULE (CALENDAR & SLOTS)
   ========================================================================== */

.view-header {
  margin-bottom: 30px;
}

.view-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-header p {
  color: hsl(var(--text-muted));
  margin-top: 6px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}

.booking-card {
  min-width: 0;
  background-color: hsl(var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.margin-top-md {
  margin-top: 25px;
}
.margin-top-sm {
  margin-top: 15px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Custom Interactive Calendar style */
.calendar-wrapper {
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
}

.calendar-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.btn-calendar-nav {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-calendar-nav:hover {
  background: rgba(255,255,255,0.08);
}

.calendar-month-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.calendar-weekdays {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin-bottom: 10px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--text-main));
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.calendar-day.empty {
  background: none;
  border: none;
  cursor: default;
  pointer-events: none;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.calendar-day.disabled {
  color: hsl(var(--text-dark));
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day.today {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.03);
}

.calendar-day.selected {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
  color: white;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.calendar-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: hsl(var(--accent));
}

.calendar-day.selected.has-slots::after {
  background-color: white;
}

/* Slots Section style */
.slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.selected-date-badge {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: hsl(var(--accent));
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}

.slots-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin-bottom: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.legend-dot.avail {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.2);
}

.legend-dot.offhour {
  background-color: rgba(0, 240, 255, 0.1);
  border: 1px solid hsl(var(--accent));
}

.legend-dot.booked {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slots-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsl(var(--text-muted));
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slots-group-title i {
  width: 14px;
  height: 14px;
}

.slots-grid, .slots-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.slots-grid-admin {
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
}

.time-slot {
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: hsl(var(--text-main));
  cursor: pointer;
  transition: var(--transition-fast);
}

.time-slot.offhour-slot {
  background-color: rgba(0, 240, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.2);
  color: hsl(var(--accent));
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.02);
}

.time-slot:hover:not(.booked-slot) {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
}

.time-slot.offhour-slot:hover:not(.booked-slot) {
  background-color: rgba(0, 240, 255, 0.08);
  border-color: hsl(var(--accent));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.time-slot.booked-slot {
  background-color: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.02);
  color: hsl(var(--text-dark));
  cursor: not-allowed;
  pointer-events: none;
}

.time-slot.selected-slot {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary))) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3) !important;
}

/* Guard block */
.panel-guard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

.guard-icon {
  width: 48px;
  height: 48px;
  color: hsl(var(--accent));
  margin-bottom: 15px;
}

.panel-guard h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.panel-guard p {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  margin-bottom: 20px;
  max-width: 250px;
}

.booking-details-form {
  display: none;
}

.booking-details-form.active {
  display: block;
}

.booking-summary-preview {
  background-color: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.preview-item {
  display: flex;
  flex-direction: column;
}

.preview-lbl {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.preview-val {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.sticky-card {
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   CUSTOMER DASHBOARD MODULE
   ========================================================================== */

.dashboard-header-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.user-welcome h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.user-welcome p {
  color: hsl(var(--text-muted));
  margin-top: 4px;
}

/* Metrics Cards style */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background-color: hsl(var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-color-hover);
  background-color: hsl(var(--bg-card));
}

.m-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-icon i {
  width: 24px;
  height: 24px;
  color: white;
}

.m-data {
  display: flex;
  flex-direction: column;
}

.m-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.m-label {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  font-weight: 500;
}

.bg-glow-pending {
  border-color: rgba(245, 158, 11, 0.15);
}
.bg-glow-pending .m-icon {
  background-color: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.bg-glow-success {
  border-color: rgba(16, 185, 129, 0.15);
}
.bg-glow-success .m-icon {
  background-color: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.dashboard-card {
  background-color: hsl(var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.bookings-list-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 120px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: hsl(var(--text-muted));
}

.empty-state i {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Active Booking Card */
.active-booking-card {
  background-color: hsl(var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  transition: var(--transition-fast);
  position: relative;
}

.active-booking-card:hover {
  border-color: var(--border-color-hover);
  background-color: hsl(var(--bg-card-hover));
}

.active-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.active-card-title {
  display: flex;
  flex-direction: column;
}

.active-card-title h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.active-card-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: hsl(var(--warning));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.processing {
  background: rgba(0, 240, 255, 0.1);
  color: hsl(var(--accent));
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: hsl(var(--success));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: hsl(var(--danger));
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.active-card-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.det-row {
  display: flex;
  flex-direction: column;
}

.det-lbl {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.det-val {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.det-val i {
  width: 14px;
  height: 14px;
  color: hsl(var(--accent));
}

.active-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Profile summary card */
.profile-summary-card {
  padding: 30px 20px;
}

.profile-meta-role {
  font-size: 0.8rem;
  color: hsl(var(--accent));
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 25px;
  background-color: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 2px 10px;
  border-radius: 50px;
  display: inline-block;
}

.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.d-label {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.d-value {
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
  margin-top: 1px;
}

.bg-gradient-accent {
  background: linear-gradient(135deg, hsl(var(--bg-card)), rgba(0, 240, 255, 0.04));
  border-color: rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.bg-gradient-accent h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================================================
   ADMIN PANEL MODULE
   ========================================================================== */

.admin-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-group select {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  background-color: hsl(var(--bg-card));
}

/* Data Table standard style */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: rgba(0,0,0,0.1);
}

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

.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(255,255,255,0.02);
  color: hsl(var(--text-muted));
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

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

.table-cust-cell {
  display: flex;
  flex-direction: column;
}

.table-cust-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.table-cust-phone {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.table-laptop {
  font-weight: 600;
}

.table-desc {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

/* Custom Vector Charts style */
.chart-container-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--border-radius-md);
  background-color: rgba(0,0,0,0.15);
  padding: 10px;
}

/* Slots editor admin specific styling */
.admin-slots-manager-box {
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
  margin-top: 15px;
}

.time-slot.admin-closed {
  background-color: rgba(239, 68, 68, 0.03) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: hsl(var(--danger)) !important;
}

.time-slot.admin-open {
  background-color: rgba(16, 185, 129, 0.03) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  color: hsl(var(--success)) !important;
}

/* Reviews Feed */
.reviews-stream-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
}

.review-item-card {
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
}

.rev-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rev-user {
  font-weight: 700;
  font-size: 0.8rem;
}

.rev-stars {
  display: flex;
  gap: 2px;
  color: #ffb800; /* Gold */
}

.rev-stars i {
  width: 12px;
  height: 12px;
}

.rev-comment {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin-top: 6px;
  line-height: 1.4;
}

.rev-laptop {
  display: block;
  font-size: 0.65rem;
  color: hsl(var(--accent));
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   MODAL DIALOG CARDS (AUTHENTICATION, TICKETS, RATINGS)
   ========================================================================== */

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 480px;
  background-color: hsl(var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  z-index: 1000;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-card.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.tab-triggers {
  display: flex;
  gap: 10px;
}

.tab-btn {
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.tab-btn.active {
  color: white;
  border-color: hsl(var(--accent));
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-welcome-text {
  margin-bottom: 20px;
}

.auth-welcome-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.auth-welcome-text p {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}

.demo-account-hint {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  margin-top: 20px;
}

.demo-account-hint p {
  margin-bottom: 4px;
  color: hsl(var(--text-muted));
}

.demo-account-hint p:last-child {
  margin-bottom: 0;
}

.inline-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}

/* Star ratings in feedback form */
.star-rating-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.star-btn {
  width: 32px;
  height: 32px;
  color: hsl(var(--text-dark));
  cursor: pointer;
  transition: var(--transition-fast);
}

.star-btn:hover, .star-btn.active {
  color: #ffb800; /* Gold color */
  transform: scale(1.15);
}

/* Ticket/Receipt Specific visual styling */
.ticket-modal {
  max-width: 550px;
}

.ticket-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.ticket-header-actions h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.eticket-card {
  background-color: #ffffff;
  color: #0b0f19;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  font-family: var(--font-body);
}

.eticket-top {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eticket-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eticket-logo-icon {
  width: 36px;
  height: 36px;
  color: #000;
  padding: 6px;
  background-color: #f1f5f9;
  border-radius: 6px;
}

.eticket-brand h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.eticket-brand p {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.eticket-status-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid #10b981;
}

/* Perforation dashed line visual */
.eticket-divider {
  position: relative;
  height: 20px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
}

.circle-notch {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: hsl(var(--bg-surface)); /* Cutout matches popup bg */
  top: 0;
}

.circle-notch.left {
  left: -10px;
}

.circle-notch.right {
  right: -10px;
}

.dash-line {
  width: 100%;
  height: 0;
  border-bottom: 2px dashed #e2e8f0;
}

.eticket-body {
  padding: 25px;
  background-color: #ffffff;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.t-col {
  display: flex;
  flex-direction: column;
}

.t-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
}

.t-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b0f19;
  margin-top: 2px;
}

.t-value.text-accent {
  color: #0088cc !important;
}

.ticket-issue-box {
  margin-top: 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
}

.ticket-issue-box p {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 500;
  margin-top: 4px;
}

.eticket-footer {
  margin-top: 25px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.qr-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.qr-svg {
  border: 1px solid #e2e8f0;
  padding: 4px;
  border-radius: 6px;
  background-color: white;
}

.qr-text {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 700;
}

.ticket-instructions {
  flex-grow: 1;
}

.ticket-instructions h5 {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0b0f19;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-instructions h5 i {
  width: 14px;
  height: 14px;
  color: #0088cc;
}

.ticket-instructions p {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
  font-weight: 500;
}

.ticket-actions-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* ==========================================================================
   FLOATING WHATSAPP CHAT ASSISTANT
   ========================================================================== */

.wa-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 800;
}

.wa-chat-badge {
  background-color: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
}

.wa-chat-badge:hover {
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.wa-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #00ff66;
  border-radius: 50%;
  border: 3px solid #25d366;
}

.wa-icon {
  width: 30px;
  height: 30px;
  color: white;
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  background-color: hsl(var(--bg-card));
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.wa-chat-badge:hover .wa-tooltip {
  opacity: 1;
}

/* WhatsApp chat window */
.wa-chat-window {
  position: absolute;
  bottom: calc(100% + 20px);
  right: 0;
  width: 320px;
  background-color: hsl(var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
  animation: slide-fade-wa 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 850;
}

@keyframes slide-fade-wa {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-chat-window.show {
  display: flex;
}

.wa-window-header {
  background-color: #075e54; /* WA Dark Green */
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-admin-avatar {
  background-color: rgba(255,255,255,0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wa-admin-avatar i {
  width: 18px;
  height: 18px;
  color: white;
}

.wa-avatar-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #00ff66;
  border-radius: 50%;
  border: 2px solid #075e54;
}

.wa-window-title h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.wa-window-title p {
  font-size: 0.7rem;
  opacity: 0.8;
}

.wa-close-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
}

.wa-close-btn:hover {
  opacity: 1;
}

.wa-window-body {
  padding: 15px;
  background-color: #0b0f19;
  background-image: radial-gradient(rgba(37, 211, 102, 0.05) 1px, transparent 0);
  background-size: 16px 16px;
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wa-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.wa-msg.admin {
  background-color: hsl(var(--bg-card));
  color: white;
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid var(--border-color);
}

.wa-msg-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}

.wa-window-footer {
  padding: 10px 15px;
  background-color: hsl(var(--bg-surface));
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
}

.wa-window-footer input {
  padding: 8px 12px;
  font-size: 0.8rem;
  flex-grow: 1;
}

.wa-send-btn {
  background-color: #25d366;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-send-btn:hover {
  background-color: #20ba59;
}

/* ==========================================================================
   APP FOOTER BAR
   ========================================================================== */

.app-footer-bar {
  background-color: hsl(var(--bg-surface));
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: auto;
}

.footer-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-info {
  flex: 2;
  min-width: 280px;
}

.footer-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  max-width: 480px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links p {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  margin-bottom: 8px;
}



/* Additional content sections for Verluxe */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: hsl(var(--accent));
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  color: hsl(var(--text-muted));
  max-width: 900px;
  margin-bottom: 22px;
}

.service-coverage-section {
  margin: 36px 0 10px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.24);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.coverage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.025);
  transition: var(--transition-fast);
}

.coverage-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.05);
  border-color: var(--border-color-hover);
}

.coverage-card i {
  width: 18px;
  height: 18px;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.coverage-card span {
  font-weight: 600;
  color: hsl(var(--text-main));
}

.hours-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.06);
  color: hsl(var(--text-main));
  font-size: 0.8rem;
  font-weight: 600;
}

.hours-pill i {
  width: 16px;
  height: 16px;
  color: hsl(var(--accent));
}

.hours-pill-closed {
  border-color: rgba(255, 82, 111, 0.2);
  background: rgba(255, 82, 111, 0.07);
}

.hours-pill-closed i {
  color: hsl(var(--danger));
}

.slot-info-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.12);
  background: rgba(255,255,255,0.03);
  color: hsl(var(--text-muted));
  font-size: 0.84rem;
}

.slot-info-banner.is-closed {
  border-color: rgba(255, 82, 111, 0.18);
  background: rgba(255, 82, 111, 0.07);
  color: hsl(var(--text-main));
}

.slot-info-banner.is-open {
  border-color: rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.06);
  color: hsl(var(--text-main));
}

.slot-empty-note {
  padding: 14px;
  border-radius: var(--border-radius-sm);
  border: 1px dashed var(--border-color);
  background: rgba(255,255,255,0.02);
  color: hsl(var(--text-muted));
  font-size: 0.82rem;
}

.calendar-day.closed-day {
  color: rgba(255,255,255,0.38);
  background: rgba(255, 82, 111, 0.04);
  border-color: rgba(255, 82, 111, 0.08);
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day.closed-day::after {
  content: none;
}


/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-visual-card {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .booking-layout, .dashboard-content-grid, .admin-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .sticky-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.65rem;
  }

  .main-nav {
    display: none; /* Mobile menu handles navigation */
  }
  
  .btn-mobile-menu {
    display: block;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .quick-contact-banner {
    padding: 25px;
    text-align: center;
    justify-content: center;
  }
  
  .quick-contact-content {
    min-width: 100%;
  }
  
  .db-drawer {
    width: 100%;
    right: -100%;
  }
  
  .modal-card {
    padding: 20px;
  }
}

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

  .booking-card {
    padding: 18px;
  }

  .calendar-days-grid {
    gap: 6px;
  }

  .calendar-day {
    font-size: 0.8rem;
  }

  .booking-summary-preview {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons button, .hero-buttons a {
    width: 100%;
  }
  
  .db-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .ticket-details-grid {
    grid-template-columns: 1fr;
  }
  
  .ticket-details-grid .text-right {
    text-align: left !important;
  }
  
  .eticket-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   PRINT MEDIA RULES OVERLAYS
   ========================================================================== */

@media print {
  body * {
    visibility: hidden;
  }
  #printable-ticket-content, #printable-ticket-content * {
    visibility: visible;
  }
  #printable-ticket-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .circle-notch {
    display: none;
  }
  .eticket-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* --------------------------------------------------------------------------
   Verluxe layout hardening: public header cleanup + no-overlap responsive grid
   -------------------------------------------------------------------------- */
.header-container,
.app-main-content,
.hero-section,
.booking-layout,
.dashboard-content-grid,
.admin-grid-layout,
.booking-selection-panel,
.booking-form-panel,
.admin-main-panel,
.admin-side-panel,
.dashboard-card,
.booking-card,
.feature-card,
.about-brand-section,
.service-coverage-section,
.quick-contact-banner {
  min-width: 0;
}

.header-container {
  width: min(94%, 1400px);
  gap: 18px;
}

.app-logo {
  flex-shrink: 0;
}

.logo-text,
.profile-info-compact,
.nav-link,
.mobile-nav-link,
.dropdown-item,
.card-title,
.slots-group-title,
.hours-pill,
.coverage-card,
.feature-card,
.preview-val,
.preview-lbl,
.feed-list li {
  min-width: 0;
}

.logo-subtitle,
.profile-name,
.nav-link,
.card-title,
.hours-pill,
.coverage-card span,
.metric-lbl,
.preview-val,
.selected-date-badge,
.table-desc,
.table-laptop {
  overflow-wrap: anywhere;
}

.main-nav {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  padding: 8px 12px;
}

.header-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.admin-db-card {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.055), rgba(255,255,255,0.018));
}

.admin-db-trigger {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.booking-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.9fr);
}

.calendar-wrapper,
.admin-slots-manager-box,
.booking-summary-preview,
.slots-grid,
.slots-grid-admin,
.coverage-grid,
.features-grid {
  min-width: 0;
}

.calendar-weekdays,
.calendar-days-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-width: 0;
  aspect-ratio: 1 / 0.92;
}

.slots-grid {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.slots-grid-admin {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.time-slot {
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
}

.hours-strip,
.slots-legend,
.hero-buttons,
.about-brand-tags,
.db-actions-grid,
.ticket-header-actions {
  flex-wrap: wrap;
}

.hours-pill {
  flex: 1 1 210px;
  justify-content: center;
  text-align: center;
}

.booking-summary-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-coverage-section {
  margin-bottom: 34px;
}

.about-brand-section,
.quick-contact-banner,
.features-grid,
.service-coverage-section {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .booking-layout,
  .dashboard-content-grid,
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }

  .booking-form-panel,
  .admin-side-panel {
    width: 100%;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .btn-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-container {
    width: min(94%, 100% - 24px);
  }

  .profile-info-compact {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-main-content {
    width: min(94%, 100% - 20px);
    margin-top: 26px;
  }

  .hero-section {
    margin-bottom: 34px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .feature-card,
  .service-coverage-section,
  .about-brand-section,
  .quick-contact-banner,
  .booking-card,
  .dashboard-card {
    padding: 20px;
  }

  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-card {
    padding: 13px 14px;
  }

  .booking-summary-preview {
    grid-template-columns: 1fr;
  }

  .calendar-wrapper {
    padding: 12px;
  }

  .slots-grid,
  .slots-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-header {
    padding: 10px 0;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    font-size: 0.72rem;
    max-width: 160px;
  }

  .badge-pro {
    display: none;
  }

  .profile-trigger {
    padding: 5px 8px;
  }

  .calendar-days-grid {
    gap: 5px;
  }

  .calendar-day {
    font-size: 0.76rem;
    border-radius: 7px;
  }

  .coverage-grid,
  .slots-grid,
  .slots-grid-admin {
    grid-template-columns: 1fr;
  }

  .hours-pill {
    flex-basis: 100%;
  }

  .hero-title {
    font-size: clamp(1.7rem, 9vw, 2.1rem);
  }
}


/* --------------------------------------------------------------------------
   Mobile Fit Patch v2: viewport-safe sizing for hosted mobile screens
   -------------------------------------------------------------------------- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe,
table,
pre,
code {
  max-width: 100%;
}

.app-header {
  width: 100%;
}

.app-main-content {
  width: min(92%, 1400px);
}

.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.25rem);
}

.hero-desc {
  line-height: 1.75;
}

.btn,
.hero-tagline,
.hours-pill,
.coverage-card,
.quick-contact-banner,
.booking-card,
.dashboard-card,
.repair-tech-card,
.metric-item,
.form-group,
input,
textarea,
select,
button {
  max-width: 100%;
}

.hero-buttons .btn {
  min-width: 0;
  white-space: normal;
  text-align: center;
}

@media (max-width: 768px) {
  .header-container,
  .app-main-content {
    width: 100%;
    max-width: 100%;
  }

  .header-container {
    padding-inline: 14px;
  }

  .app-main-content {
    margin: 22px 0 64px;
    padding-inline: 14px;
  }

  .hero-section {
    gap: 24px;
    margin-bottom: 30px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-tagline {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    padding: 10px 14px;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.8vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.85px;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.96rem;
    line-height: 1.72;
    margin-bottom: 22px;
  }

  .hero-buttons {
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn,
  .hero-buttons button,
  .hero-buttons a {
    width: 100%;
  }

  .btn-lg {
    padding: 13px 16px;
    font-size: 0.98rem;
  }

  .hero-visual-card {
    width: 100%;
    justify-content: stretch;
  }

  .repair-tech-card {
    max-width: 100%;
    padding: 18px;
    border-radius: 20px;
  }

  .tech-card-header {
    align-items: flex-start;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .tech-card-header i {
    flex-shrink: 0;
  }

  .tech-metric-row {
    gap: 10px;
    margin-bottom: 18px;
  }

  .metric-item {
    padding: 13px 10px;
  }

  .metric-val {
    font-size: 1.55rem;
  }

  .metric-lbl {
    font-size: 0.78rem;
    text-align: center;
  }

  .section-title,
  .about-brand-section h2,
  .view-header h2,
  .user-welcome h2 {
    font-size: clamp(1.35rem, 5.8vw, 1.72rem);
    line-height: 1.25;
  }

  .section-desc,
  .about-brand-section p,
  .view-header p,
  .quick-contact-content p,
  .feature-card p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .feature-card,
  .service-coverage-section,
  .about-brand-section,
  .quick-contact-banner,
  .booking-card,
  .dashboard-card {
    padding: 18px;
    border-radius: 20px;
  }

  .quick-contact-banner {
    align-items: stretch;
  }

  .quick-contact-banner .btn {
    width: 100%;
  }

  .coverage-grid {
    gap: 10px;
  }

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

  .calendar-wrapper {
    padding: 10px;
  }

  .calendar-days-grid {
    gap: 6px;
  }

  .calendar-day {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
    font-size: 0.78rem;
  }

  .calendar-weekdays {
    gap: 6px;
    font-size: 0.68rem;
  }

  .slots-header,
  .dashboard-header-block,
  .admin-panel-header {
    align-items: flex-start;
  }

  .selected-date-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .slots-group-title,
  .card-title {
    line-height: 1.35;
  }

  .hours-pill {
    padding: 10px 12px;
  }
}

@media (max-width: 430px) {
  .header-container {
    padding-inline: 12px;
    gap: 8px;
  }

  .app-main-content {
    padding-inline: 12px;
  }

  .app-logo {
    gap: 9px;
    max-width: calc(100% - 122px);
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-title {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .logo-subtitle {
    font-size: 0.68rem;
    line-height: 1.2;
    max-width: 142px;
  }

  .header-actions {
    gap: 7px;
  }

  .profile-trigger {
    padding: 4px;
    border-radius: 14px;
  }

  .profile-trigger .chevron {
    display: none;
  }

  .avatar {
    width: 30px;
    height: 30px;
  }

  .btn-mobile-menu {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
  }

  .hero-tagline {
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: clamp(1.72rem, 8.2vw, 2rem);
    letter-spacing: -0.65px;
  }

  .hero-desc {
    font-size: 0.91rem;
  }

  .btn-lg {
    font-size: 0.93rem;
  }

  .repair-tech-card {
    padding: 16px;
  }

  .tech-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .service-coverage-section,
  .about-brand-section,
  .quick-contact-banner,
  .hero-section {
    margin-bottom: 24px;
  }

  .feature-card,
  .service-coverage-section,
  .about-brand-section,
  .quick-contact-banner,
  .booking-card,
  .dashboard-card {
    padding: 16px;
  }

  .calendar-wrapper {
    margin-inline: -2px;
  }

  .calendar-days-grid {
    gap: 4px;
  }

  .calendar-day {
    font-size: 0.72rem;
    border-radius: 7px;
  }

  .slots-grid,
  .slots-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-slot {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

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

@media (max-width: 360px) {
  .app-main-content {
    padding-inline: 10px;
  }

  .header-container {
    padding-inline: 10px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-title {
    font-size: 1.58rem;
  }

  .tech-metric-row,
  .slots-grid,
  .slots-grid-admin {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NEMESIS-INSPIRED INTELLIGENCE UI PATCH
   ========================================================================== */
body.dark-theme {
  background:
    linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 4%, rgba(0, 240, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(98, 80, 255, 0.12), transparent 32%),
    hsl(var(--bg-base));
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
}

.app-header {
  background: rgba(5, 12, 26, 0.82);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.logo-icon {
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.25);
}

.ops-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 28px;
  color: hsl(var(--text-muted));
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08), rgba(98, 80, 255, 0.045));
  box-shadow: inset 0 0 22px rgba(0, 240, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ops-strip i {
  width: 15px;
  height: 15px;
  color: hsl(var(--accent));
}

.hero-command-section {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(0, 240, 255, 0.09);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.035), rgba(255,255,255,0.01) 42%, rgba(98, 80, 255, 0.03));
  overflow: hidden;
}

.hero-command-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 76% 12%, rgba(0, 240, 255, 0.16), transparent 28%);
}

.hero-content,
.hero-visual-card {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 240, 255, 0.09);
  box-shadow: inset 0 0 22px rgba(0, 240, 255, 0.05);
}

.hero-title {
  max-width: 860px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 26px;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: hsl(var(--text-muted));
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-proof-row i {
  width: 15px;
  height: 15px;
  color: hsl(var(--accent));
}

.command-card {
  max-width: 500px;
  border-color: rgba(0, 240, 255, 0.18);
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(160deg, rgba(8, 18, 38, 0.98), rgba(5, 9, 20, 0.82));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.55), 0 0 34px rgba(0, 240, 255, 0.08);
}

.command-card-header {
  justify-content: space-between;
}

.command-scan-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 18px;
  background: radial-gradient(circle at 16% 50%, rgba(0, 240, 255, 0.12), transparent 42%), rgba(0,0,0,0.18);
}

.scan-orb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: hsl(var(--accent));
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22), rgba(98, 80, 255, 0.10));
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.08), 0 0 26px rgba(0, 240, 255, 0.12);
}

.scan-orb i {
  width: 34px;
  height: 34px;
}

.scan-label,
.module-code {
  display: inline-flex;
  color: hsl(var(--accent));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scan-copy strong {
  display: block;
  margin: 4px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.scan-copy p {
  color: hsl(var(--text-muted));
  font-size: 0.82rem;
}

.diagnostic-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.diagnostic-mini-grid span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  color: hsl(var(--text-muted));
  font-size: 0.78rem;
  font-weight: 700;
}

.diagnostic-mini-grid i {
  width: 15px;
  height: 15px;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.system-section-head {
  margin-bottom: 18px;
}

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

.capability-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--accent)), transparent 62%);
  opacity: 0.8;
}

.module-code {
  margin-bottom: 16px;
}

.service-coverage-section,
.local-seo-section,
.about-brand-section,
.quick-contact-banner,
.booking-card,
.dashboard-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.012));
  border-color: rgba(0, 240, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}

.coverage-card,
.local-keywords-grid span,
.hours-pill,
.time-slot,
.metric-item,
.booking-summary-preview {
  border-color: rgba(0, 240, 255, 0.12);
}

.service-flow-section {
  margin: 0 0 60px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(0, 240, 255, 0.13);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.055), rgba(255,255,255,0.014));
}

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

.flow-item {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(0,0,0,0.16);
}

.flow-item span {
  display: inline-flex;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  color: hsl(var(--accent));
  font-size: 0.86rem;
  font-weight: 800;
}

.flow-item h3 {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.flow-item p {
  color: hsl(var(--text-muted));
  font-size: 0.86rem;
}

.btn-primary {
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.22);
}

.btn-outline {
  background: rgba(255,255,255,0.018);
}

@media (max-width: 1024px) {
  .capability-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-command-section {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .ops-strip {
    border-radius: 20px;
    align-items: flex-start;
    font-size: 0.7rem;
  }

  .hero-command-section {
    border-radius: 26px;
    padding: 14px;
  }

  .hero-proof-row {
    margin-top: -8px;
  }

  .command-card {
    max-width: none;
  }

  .flow-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .service-flow-section {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 430px) {
  .ops-strip {
    margin-bottom: 18px;
    padding: 11px 12px;
  }

  .hero-command-section {
    margin-inline: -2px;
  }

  .hero-proof-row span {
    width: 100%;
    justify-content: center;
  }

  .command-scan-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .scan-orb {
    margin: 0 auto;
    width: 64px;
    height: 64px;
  }

  .diagnostic-mini-grid {
    grid-template-columns: 1fr;
  }

  .flow-item {
    padding: 15px;
  }
}
