/* ═══════════════════════════════════════════════════
   PARKSMART PROVIDER PORTAL — DESIGN SYSTEM v2
   Royal Blue · Emerald · Teal · Clean White
═══════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────── */
:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #EFF6FF;
  --primary-mid:    #BFDBFE;

  --secondary:      #10B981;
  --secondary-dark: #059669;
  --secondary-light:#ECFDF5;

  --accent:         #14B8A6;
  --accent-light:   #F0FDFA;

  --bg:             #F8FAFC;
  --bg-card:        #FFFFFF;
  --bg-subtle:      #F1F5F9;

  --text:           #0F172A;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;

  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.09), 0 10px 10px -5px rgba(0,0,0,.03);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl:24px;

  --sidebar-w: 252px;
  --header-h:  60px;

  --transition: 0.2s ease;
}

/* ── Dark Mode ─────────────────────────────────── */
body.dark-mode {
  --bg:           #0F172A;
  --bg-card:      #1E293B;
  --bg-subtle:    #1E293B;
  --text:         #F1F5F9;
  --text-secondary:#94A3B8;
  --text-muted:   #64748B;
  --border:       #334155;
  --border-strong:#475569;
  --primary-light:#1E3A5F;
  --secondary-light:#064E3B;
  --accent-light: #134E4A;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.app-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 100%;
  height: 100%;
  padding: 0 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sidebar toggle */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg-subtle); color: var(--text); }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.logo-text span { font-size: 0.58rem; font-weight: 700; color: var(--primary); letter-spacing: 0.16em; text-transform: uppercase; }

/* Header search */
.header-search {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
}
.header-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  height: 38px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: var(--bg-card);
}
.header-search-inner svg { color: var(--text-muted); flex-shrink: 0; }
.header-search-inner input {
  border: none; background: transparent; outline: none;
  font-size: 0.875rem; color: var(--text); font-family: inherit; width: 100%;
}
.header-search-inner input::placeholder { color: var(--text-muted); }

/* Header right actions */
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.header-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: none; background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary);
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.header-icon-btn:hover { background: var(--bg-subtle); color: var(--text); }

.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* User greeting in header */
.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; cursor: default;
}
.header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.header-name { font-size: 0.875rem; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════════════════════════════════════════
   LAYOUT — SIDEBAR + MAIN
══════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 20px 16px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 1px 8px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: calc(100% - 16px);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-item svg { flex-shrink: 0; }

.nav-item:hover { background: var(--bg-subtle); color: var(--text); }

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px;
  border-top: 1px solid var(--border);
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── Main Content ──────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 28px 32px 100px;
  transition: margin-left 0.3s cubic-bezier(.4,0,.2,1);
}

.tab-content { display: none; animation: fadeIn 0.2s ease; }
.tab-content.active { display: block; }

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

/* ══════════════════════════════════════════════════
   PAGE TITLES & HERO
══════════════════════════════════════════════════ */
.page-header {
  margin-bottom: 24px;
}
.page-header h1, .page-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.page-header p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 2px; }

.portal-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 50%, #1E40AF 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.portal-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.portal-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 60px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.portal-hero h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.portal-hero p { font-size: 0.9rem; color: rgba(255,255,255,0.8); max-width: 400px; line-height: 1.5; }
.earning-highlight { color: #6EE7B7; font-weight: 700; }
.portal-hero-icon { font-size: 3rem; opacity: 0.7; flex-shrink: 0; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,.35); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--text-muted); box-shadow: none; cursor: not-allowed; transform: none; }

.btn-primary.btn-success { background: var(--secondary); box-shadow: 0 1px 2px rgba(16,185,129,.3); }
.btn-primary.btn-success:hover { background: var(--secondary-dark); box-shadow: 0 4px 12px rgba(16,185,129,.35); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }

.btn-large { padding: 13px 28px; font-size: 0.95rem; border-radius: var(--radius-md); width: 100%; }

.btn-small { padding: 6px 14px; font-size: 0.8rem; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600; font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all var(--transition);
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-logout { color: var(--secondary); border-color: var(--secondary); }
.btn-logout:hover { background: var(--secondary-light); }

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── My Spaces Grid ─────────────────────────────── */
.my-spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.space-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.space-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.space-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.space-card-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.space-card-loc { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.space-card-body { padding: 16px 20px; }
.space-card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-secondary); }
.space-meta-item { display: flex; align-items: center; gap: 4px; }
.space-card-footer { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

.badge-verified { background: var(--secondary-light); color: var(--secondary-dark); border: 1px solid rgba(16,185,129,.2); padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.badge-pending  { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }

/* Add Space toggle */
.add-space-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 20px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.add-space-toggle:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,.35); transform: translateY(-1px); }

.add-space-section { display: none; }
.add-space-section.open { display: block; }

.section-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-muted);
  font-size: 0.8rem; font-weight: 600;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Listing Category Picker ─────────────────── */
.listing-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}
.listing-category-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.15s;
}
.listing-category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(37,99,235,.12);
  transform: translateY(-3px);
}
.category-icon { font-size: 2.6rem; margin-bottom: 12px; }
.category-label { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.category-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Individual Form ─────────────────────────── */
.ind-section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary-mid);
}
.ind-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.ind-upload-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.ind-upload-box {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 12px; text-align: center;
  transition: border-color var(--transition), background var(--transition);
  min-height: 80px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.ind-upload-box:hover { border-color: var(--primary); background: var(--primary-light); }
.ind-upload-placeholder { font-size: 0.8rem; color: var(--text-muted); }
.ind-upload-done { font-size: 0.8rem; color: var(--secondary); font-weight: 600; }

/* Camera / Gallery buttons inside upload boxes */
.ind-upload-btns, .upload-cam-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.upload-cam-row { margin-top: 12px; }
.upload-btn-cam, .upload-btn-gallery {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all var(--transition);
}
.upload-btn-cam {
  background: var(--primary); color: #fff;
}
.upload-btn-cam:hover { background: var(--primary-dark); }
.upload-btn-gallery {
  background: var(--bg-subtle); color: var(--text);
  border: 1.5px solid var(--border);
}
.upload-btn-gallery:hover { background: var(--border); }

.ind-consent-box {
  background: var(--secondary-light);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius);
  padding: 16px; margin: 20px 0 18px;
}
.ind-consent-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text); line-height: 1.5; cursor: pointer;
}
.ind-consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

.ind-verification-note {
  margin-top: 18px;
  background: var(--primary-light);
  border: 1px solid var(--primary-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════ */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-container h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.form-subtitle { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.875rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem; font-family: inherit;
  background: var(--bg-subtle);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.amenities-group { margin-bottom: 24px; }
.amenity-options { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.amenity-options label {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 0.875rem; color: var(--text-secondary);
  text-transform: none; font-weight: 400; letter-spacing: 0;
}
.amenity-options input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }

/* Image upload */
.image-upload-group { margin-bottom: 24px; }
.image-upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition), background var(--transition);
  min-height: 120px;
}
.image-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }

.image-preview-container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.image-preview { position: relative; width: 100px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.55); color: #fff;
  border: none; border-radius: 50%; font-size: 0.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.image-preview .remove-btn:hover { background: rgba(37,99,235,.85); }

.upload-placeholder { text-align: center; color: var(--text-muted); width: 100%; padding: 12px 0; }
.upload-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; opacity: 0.6; }
.upload-placeholder p { margin: 4px 0; font-size: 0.875rem; }
.upload-sub { font-size: 0.78rem !important; color: var(--text-muted); }
.upload-hint { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.image-count { font-size: 0.8rem; font-weight: 600; color: var(--secondary); width: 100%; text-align: center; margin-top: 8px; }

/* Messages (inline) */
.message { margin-top: 14px; padding: 11px 15px; border-radius: var(--radius); font-size: 0.875rem; display: none; }
.message.success { display: block; background: var(--secondary-light); color: var(--secondary-dark); border: 1px solid rgba(16,185,129,.25); }
.message.error   { display: block; background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

/* Auth forms */
.auth-container {
  max-width: 560px; margin: 0 auto;
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.auth-container h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }

.auth-tabs {
  display: flex; margin-bottom: 24px;
  background: var(--bg-subtle); border-radius: var(--radius);
  padding: 4px; gap: 4px;
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 9px 16px;
  border: none; background: transparent;
  cursor: pointer; font-size: 0.875rem; font-weight: 600;
  font-family: inherit; color: var(--text-secondary);
  border-radius: 7px;
  transition: all var(--transition);
}
.auth-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-xs); }
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-privacy-link {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}
.auth-privacy-link a,
.support-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.auth-privacy-link a:hover,
.support-footer a:hover { text-decoration: underline; }

.location-access-section { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-location {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: var(--bg-card);
  color: var(--primary); border: 1.5px solid var(--primary);
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all var(--transition);
}
.btn-location:hover { background: var(--primary-light); }
.location-icon { font-size: 1rem; }
.location-status { font-size: 0.78rem; font-weight: 500; }
.location-loading { color: var(--primary); }
.location-success { color: var(--secondary); }
.location-warning { color: #B45309; }
.location-error   { color: #9F1239; }

/* ── Set password section ── */
#set-password-section { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 18px; }
#set-password-section p { color: var(--primary); font-size: 0.9rem; margin-bottom: 14px; }

/* ══════════════════════════════════════════════════
   PROFILE
══════════════════════════════════════════════════ */
.provider-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); border: 1px solid var(--primary-mid);
  color: var(--primary); font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase;
}

.profile-card {
  background: var(--bg-subtle); border-radius: var(--radius-md);
  padding: 20px 24px; margin-bottom: 20px;
  border: 1px solid var(--border);
}
.profile-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.profile-field:last-child { border-bottom: none; }
.profile-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.profile-value { font-size: 0.9rem; font-weight: 500; color: var(--text); }

.profile-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   PROFILE INNER TABS
══════════════════════════════════════════════════ */
.profile-tabs {
  display: flex; gap: 4px;
  background: var(--bg-subtle); border-radius: var(--radius-md);
  padding: 4px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.profile-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600; font-family: inherit;
  color: var(--text-secondary); background: transparent; border: none;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.profile-tab:hover:not(.active) { color: var(--text); background: var(--bg-card); }
.profile-tab.active {
  background: var(--bg-card); color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.ptab-content { display: none; }
.ptab-content.active { display: block; }

/* ══════════════════════════════════════════════════
   WALLET
══════════════════════════════════════════════════ */
.wallet-balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  border-radius: var(--radius-lg); padding: 24px 28px;
  color: #fff; margin-bottom: 20px;
}
.wallet-balance-display { }
.wallet-balance-label { font-size: 0.8rem; opacity: 0.8; display: block; margin-bottom: 4px; letter-spacing: 0.03em; }
.wallet-balance-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; display: block; }

/* Action groups (Add Money / Withdraw) */
.wallet-action-group {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 22px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.wallet-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  margin: 0 0 16px; letter-spacing: 0;
}
.withdraw-group { border-top: 3px solid var(--secondary); }
.withdraw-group .wallet-group-title { color: var(--secondary-dark); }

.topup-row { display: flex; gap: 10px; margin-bottom: 12px; }
.topup-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg-subtle); color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--transition);
}
.topup-input:focus { outline: none; border-color: var(--primary); background: var(--bg-card); }
.topup-input::placeholder { color: var(--text-muted); }
.btn-topup {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.875rem; font-family: inherit;
  cursor: pointer; transition: background var(--transition); white-space: nowrap;
}
.btn-topup:hover { background: var(--primary-dark); }

.topup-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-btn {
  padding: 6px 14px; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--primary-mid);
  font-size: 0.8rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all var(--transition);
}
.preset-btn:hover { background: var(--primary); color: #fff; }

/* Withdraw note */
.withdraw-note {
  display: flex; align-items: flex-start; gap: 7px;
  background: var(--primary-light); border: 1px solid var(--primary-mid);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 0.8rem; color: var(--primary-dark); line-height: 1.5;
  margin-top: 14px;
}
.withdraw-note svg { flex-shrink: 0; margin-top: 1px; }

/* Transactions tab */
.txn-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.txn-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0; }
.btn-ghost-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.btn-ghost-sm:hover { background: var(--bg-subtle); color: var(--text); }

.wallet-transactions { }
.transaction-list { display: flex; flex-direction: column; gap: 6px; }
.transaction-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg-subtle);
  border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 0.85rem; transition: box-shadow var(--transition);
}
.transaction-item:hover { box-shadow: var(--shadow-sm); }
.transaction-details { display: flex; flex-direction: column; gap: 3px; }
.transaction-desc { color: var(--text); font-weight: 500; }
.transaction-date { font-size: 0.75rem; color: var(--text-muted); }
.transaction-amount { font-weight: 700; white-space: nowrap; }
.transaction-amount.credit { color: var(--secondary-dark); }
.transaction-amount.debit  { color: #BE123C; }
.transaction-amount.info   { color: var(--text-muted); }

/* Penalty banner */
.penalty-banner {
  background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 16px; font-size: 0.875rem; color: #92400E; line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   BOOKINGS
══════════════════════════════════════════════════ */
.bookings-list { display: flex; flex-direction: column; gap: 12px; }

.booking-card {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  transition: box-shadow var(--transition);
}
.booking-card:hover { box-shadow: var(--shadow-md); }
.booking-card.cancelled { border-left-color: var(--border-strong); }

.booking-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.booking-title { font-weight: 700; font-size: 1rem; color: var(--text); }

.booking-status, .booking-badge {
  padding: 4px 11px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.booking-badge.confirmed { background: var(--secondary-light); color: var(--secondary-dark); }
.booking-badge.cancelled { background: #FFF1F2; color: #9F1239; }

.booking-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px; font-size: 0.84rem; color: var(--text-secondary);
}
.booking-detail-label { font-weight: 600; color: var(--text); }

.cancel-window-note {
  margin-top: 12px; padding: 8px 12px;
  background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); font-size: 0.81rem; color: #92400E; font-weight: 500;
}

/* ══════════════════════════════════════════════════
   DASHBOARD / STATS
══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  padding: 22px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.stat-value { font-size: 1.85rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; display: block; }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }

/* ══════════════════════════════════════════════════
   SUPPORT PAGE
══════════════════════════════════════════════════ */
.support-container { max-width: 900px; margin: 0 auto; }
.support-hero { text-align: center; padding: 8px 0 24px; }
.support-hero h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 32px;
}

.support-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.support-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.support-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.support-card > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }

.support-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 14px;
}
.support-icon-call     { background: var(--primary-light); }
.support-icon-whatsapp { background: var(--secondary-light); }
.support-icon-email    { background: var(--accent-light); }
.support-icon-faq      { background: var(--bg-subtle); border: 1px solid var(--border); }

.support-link {
  display: block; color: var(--primary); font-weight: 700;
  text-decoration: none; font-size: 1rem; margin-bottom: 4px;
  transition: color var(--transition);
}
.support-link:hover { color: var(--primary-dark); text-decoration: underline; }
.support-detail { font-size: 0.78rem; color: var(--text-muted); }

/* Lockout support buttons shown in the OTP error message */
.support-lockout-btn {
  display: inline-block;
  margin-top: 10px;
  margin-right: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.support-lockout-wa {
  background: #25D366;
  color: #fff;
}
.support-lockout-wa:hover { background: #1da851; color: #fff; }
.support-lockout-tab {
  background: #f59e0b;
  color: #0d1b3e;
}
.support-lockout-tab:hover { background: #d97706; }

/* FAQ */
.faq-list { text-align: left; margin-top: 4px; }
.faq-item {
  border-top: 1px solid var(--border); padding: 2px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer; padding: 11px 0;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; margin-left: 8px; transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; padding-bottom: 12px; }

.support-footer { text-align: center; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.82rem; }
.support-hours { margin-top: 4px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════ */
.admin-container { max-width: 900px; }
.admin-container h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }

/* ══════════════════════════════════════════════════
   SEARCH / FILTER BAR
══════════════════════════════════════════════════ */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: var(--bg-card); padding: 14px 16px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  margin-bottom: 12px; border: 1px solid var(--border);
}
.filter-bar select, .filter-bar input {
  flex: 1; min-width: 140px;
  padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; font-family: inherit;
  background: var(--bg-subtle); color: var(--text);
  transition: border-color var(--transition);
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none; border-color: var(--primary); background: var(--bg-card);
}

.amenity-filters {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--bg-card);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  margin-bottom: 16px; font-size: 0.85rem; border: 1px solid var(--border);
}
.amenity-filters label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-secondary); }
.amenity-filters input[type="checkbox"] { accent-color: var(--primary); }
.results-count { padding: 6px 0; font-size: 0.85rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   PARKING CARDS (customer search)
══════════════════════════════════════════════════ */
.parking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.parking-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.parking-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-body { padding: 18px 20px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.card-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.card-location { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 12px; }
.card-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.card-rating { font-size: 0.83rem; color: #B45309; margin-bottom: 12px; }

.tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.73rem; font-weight: 600;
}
.tag-type    { background: var(--primary-light); color: var(--primary-dark); }
.tag-amenity { background: var(--secondary-light); color: var(--secondary-dark); }
.tag-time    { background: var(--accent-light); color: #0F766E; }

.card-slots { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.slots-info { font-size: 0.83rem; color: var(--text-secondary); }
.slots-bar { width: 100px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.slots-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.slots-fill.high   { background: var(--secondary); }
.slots-fill.medium { background: #F59E0B; }
.slots-fill.low    { background: #F97316; }

.card-actions { display: flex; gap: 8px; align-items: stretch; }
.btn-book { flex: 1; padding: 10px; }
.btn-book:disabled { background: var(--text-muted); cursor: not-allowed; }
.btn-directions {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 14px; background: var(--primary-light); color: var(--primary);
  border: 1.5px solid var(--primary-mid); border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: all var(--transition); font-family: inherit; cursor: pointer;
}
.btn-directions:hover { background: var(--primary); color: #fff; }

/* Image carousel */
.card-image-carousel { position: relative; height: 200px; overflow: hidden; background: var(--bg-subtle); }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.carousel-img.active { opacity: 1; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%; font-size: 0.85rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.carousel-nav:hover { background: rgba(0,0,0,.7); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.carousel-dot.active { background: #fff; }
.card-no-image { height: 120px; background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%); }

/* ══════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-card); border-radius: var(--radius-xl);
  padding: 28px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(0.96) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); line-height: 1; padding: 4px; border-radius: var(--radius-sm); }
.modal-close:hover { color: var(--text); background: var(--bg-subtle); }

.modal-parking-info {
  background: var(--bg-subtle); padding: 14px;
  border-radius: var(--radius); margin-bottom: 20px;
  font-size: 0.875rem; border: 1px solid var(--border);
}
.modal-parking-info strong { display: block; margin-bottom: 4px; }
.cost-preview {
  background: var(--primary-light); padding: 14px;
  border-radius: var(--radius); margin: 16px 0;
  font-weight: 700; text-align: center; font-size: 1rem; color: var(--primary-dark);
  border: 1px solid var(--primary-mid);
}
.confirmation-modal { text-align: center; }
.confirmation-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--secondary); color: #fff; font-size: 2rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.confirmation-details {
  text-align: left; background: var(--bg-subtle);
  padding: 16px; border-radius: var(--radius);
  margin: 16px 0; font-size: 0.875rem; line-height: 1.8;
  border: 1px solid var(--border);
}
.modal-gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 12px; }
.modal-gallery img { height: 110px; width: auto; min-width: 150px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.modal-directions-link { display: inline-block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.modal-directions-link:hover { text-decoration: underline; }
.btn-directions-confirm {
  display: block; margin-top: 14px; padding: 12px 20px;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  text-align: center; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background var(--transition);
}
.btn-directions-confirm:hover { background: var(--primary-dark); }

/* ══════════════════════════════════════════════════
   EMPTY STATES
══════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 52px 20px;
  color: var(--text-muted); font-size: 0.9rem;
}
.empty-state-icon { font-size: 2.5rem; opacity: 0.4; display: block; margin-bottom: 12px; }
.empty-state p { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════
   SKELETON LOADERS
══════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.full { width: 100%; }
.skeleton-box { height: 80px; }

/* ══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 88px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
@media (min-width: 769px) { .toast-container { bottom: 24px; } }

.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 260px; max-width: 360px;
  pointer-events: auto; cursor: pointer;
  animation: toastIn 0.3s cubic-bezier(.34,1.56,.64,1);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.875rem; font-weight: 500; color: var(--text);
}
.toast.success { background: var(--secondary-light); border-color: rgba(16,185,129,.3); color: var(--secondary-dark); }
.toast.error   { background: #FFF1F2; border-color: #FECDD3; color: #9F1239; }
.toast.info    { background: var(--primary-light); border-color: var(--primary-mid); color: var(--primary-dark); }
.toast.warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.toast.hiding  { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn  { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(40px); } }

/* ══════════════════════════════════════════════════
   NOTIFICATION PANEL
══════════════════════════════════════════════════ */
.notif-panel {
  position: fixed; top: var(--header-h); right: 0;
  width: 340px; max-height: calc(100vh - var(--header-h));
  background: var(--bg-card); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-xl); z-index: 300; overflow-y: auto;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.notif-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--primary); color: #fff;
  font-weight: 600; font-size: 0.9rem; position: sticky; top: 0;
}
.notif-panel-body { padding: 16px 20px; }
.notif-panel-body p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 14px; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }

/* ══════════════════════════════════════════════════
   SUPPORT FAB
══════════════════════════════════════════════════ */
.support-fab {
  position: fixed; bottom: 88px; right: 20px;
  background: var(--primary); color: #fff;
  padding: 12px 18px; border-radius: 50px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
  font-size: 0.875rem; font-weight: 700;
  z-index: 50; transition: all var(--transition);
}
.support-fab:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.5); }
.fab-label { font-size: 0.8rem; }
@media (min-width: 769px) { .support-fab { bottom: 24px; } }

/* ══════════════════════════════════════════════════
   MOBILE BOTTOM NAV
══════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  z-index: 150; box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.mobile-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; background: transparent; border: none; padding: 6px 4px;
  color: var(--text-muted); font-size: 0.65rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: color var(--transition);
}
.mobile-nav-btn:hover, .mobile-nav-btn.active { color: var(--primary); }

.mobile-more-menu { position: fixed; inset: 0; z-index: 400; }
.more-menu-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(2px); }
.more-menu-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 12px 16px 32px; box-shadow: var(--shadow-xl);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.more-menu-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 20px;
}
.more-menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; background: transparent; border: none;
  color: var(--text); font-size: 1rem; font-weight: 500; font-family: inherit;
  cursor: pointer; border-radius: var(--radius);
  transition: background var(--transition);
  text-align: left;
}
.more-menu-item:hover { background: var(--bg-subtle); color: var(--primary); }

/* User greeting (legacy, keep for compat) */
.user-greeting {
  color: var(--text); font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}

/* Guest notice */
.guest-notice {
  background: var(--primary-light); padding: 12px 16px;
  border-radius: var(--radius); margin-bottom: 12px;
  font-size: 0.85rem; color: var(--primary-dark);
  border: 1px solid var(--primary-mid);
}
.guest-notice a { color: var(--primary); font-weight: 700; text-decoration: none; }
.guest-notice a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-content { padding: 24px 24px 100px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px 16px 100px; }
  .mobile-bottom-nav { display: flex; }
  .header-search { display: none; }
  .portal-hero { padding: 20px; flex-direction: column; }
  .portal-hero-icon { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-container { padding: 24px 18px; }
  .form-container { padding: 20px 18px; }
  .listing-category-grid { grid-template-columns: 1fr; }
  .ind-upload-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-actions { flex-direction: column; }
  .topup-row { flex-direction: column; }
  .support-grid { grid-template-columns: 1fr; }
  .parking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .booking-details { grid-template-columns: 1fr 1fr; }
  .wallet-balance-amount { font-size: 2rem; }
}

/* ══════════════════════════════════════════════════
   DARK MODE OVERRIDES
══════════════════════════════════════════════════ */
body.dark-mode .app-header,
body.dark-mode .sidebar { background: var(--bg-card); border-color: var(--border); }
body.dark-mode .mobile-bottom-nav { background: var(--bg-card); border-color: var(--border); }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea { background: #1E293B; border-color: var(--border); color: var(--text); }
body.dark-mode .auth-container,
body.dark-mode .form-container,
body.dark-mode .card,
body.dark-mode .booking-card,
body.dark-mode .stat-card,
body.dark-mode .support-card,
body.dark-mode .space-card,
body.dark-mode .parking-card,
body.dark-mode .fastag-card,
body.dark-mode .modal { background: var(--bg-card); border-color: var(--border); }
body.dark-mode .profile-card,
body.dark-mode .modal-parking-info,
body.dark-mode .confirmation-details { background: var(--bg-subtle); }
body.dark-mode .listing-category-card { background: var(--bg-card); }
body.dark-mode .filter-bar,
body.dark-mode .amenity-filters { background: var(--bg-card); border-color: var(--border); }
body.dark-mode .filter-bar select,
body.dark-mode .filter-bar input { background: var(--bg-subtle); color: var(--text); border-color: var(--border); }
body.dark-mode .auth-tabs { background: var(--bg-subtle); border-color: var(--border); }
body.dark-mode .auth-tab.active { background: var(--bg-card); }
body.dark-mode .notif-panel { background: var(--bg-card); border-color: var(--border); }
body.dark-mode .more-menu-sheet { background: var(--bg-card); }
body.dark-mode .skeleton { background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
body.dark-mode .toast { background: var(--bg-card); border-color: var(--border); color: var(--text); }
body.dark-mode .toast.success { background: #064E3B; border-color: rgba(16,185,129,.3); color: #6EE7B7; }
body.dark-mode .toast.error   { background: #4C0519; border-color: rgba(159,18,57,.3); color: #FDA4AF; }
body.dark-mode .faq-item { border-color: var(--border); }
body.dark-mode .ind-consent-box { background: #064E3B; border-color: rgba(16,185,129,.2); }
body.dark-mode .ind-verification-note { background: var(--primary-light); border-color: rgba(37,99,235,.2); }
body.dark-mode .penalty-banner { background: #451A03; border-color: #92400E; color: #FDE68A; }
body.dark-mode .cancel-window-note { background: #451A03; border-color: #92400E; color: #FDE68A; }

/* ══════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
