/* ═══════════════════════════════════════════════
   ServiceHub — Design System
   ═══════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  /* ── Brand / Interactive (indigo) ── */
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-light:  #eef2ff;
  --secondary:      #64748b;
  --success:        #059669;
  --success-light:  #d1fae5;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --warning:        #d97706;
  --warning-light:  #fef3c7;
  --info:           #0891b2;
  --info-light:     #cffafe;

  /* ── Landing palette (warm / elegant) ── */
  --gold:           #c9a96e;
  --gold-lt:        #e8d5b0;
  --ivory:          #faf8f4;
  --blush:          #f2e8e1;
  --deep:           #1a1612;

  /* ── Surfaces & backgrounds ── */
  --bg:             #faf8f4;
  --surface:        #fffefb;
  --surface-2:      #f5ede4;
  --border:         #ddd4c8;
  --border-focus:   #c9a96e;

  /* ── Text ── */
  --text-primary:   #1a1612;
  --text-secondary: #4a3728;
  --text-muted:     #7d6b5e;

  /* ── Navbar ── */
  --nav-bg:         #1a1612;
  --nav-border:     #2d2218;

  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-full:    9999px;

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

  --transition:     150ms cubic-bezier(.4,0,.2,1);
}

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

/* ── Base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

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

/* Cormorant for display headings — mirrors landing page */
h1, h2 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  letter-spacing: -0.3px;
}

/* Gold ornament accent on section h2s */
.page-header h1,
.dashboard h2,
.profile-info h1 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════ */
.navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

/* Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo::before {
  content: '◆';
  color: var(--primary);
  font-size: 1rem;
}

.logo:hover { color: #fff; opacity: .9; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a {
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}

/* Admin link */
.nav-admin {
  color: #fbbf24 !important;
  font-weight: 700;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notification Bell */
.notification-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-badge .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-full);
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
  border: 2px solid var(--nav-bg);
}

.notification-badge .badge.hidden { display: none; }

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

.notification-bell:hover { background: rgba(255,255,255,.08); color: #fff; }

.notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
}

.notification-dropdown.show { display: block; animation: fadeInDown .15s ease; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notification-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
  position: sticky;
  top: 0;
}

.notification-header h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); }

.mark-all-read {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background var(--transition);
  display: block;
  color: inherit;
}

.notification-item:hover { background: var(--surface-2); }
.notification-item.unread { background: #faf3e8; }
.notification-item.unread:hover { background: #f5e8d0; }

.notification-title { font-weight: 600; font-size: 13px; color: var(--text-primary); margin-bottom: 3px; }
.notification-message { font-size: 12px; color: var(--text-secondary); margin-bottom: 3px; }
.notification-time { font-size: 11px; color: var(--text-muted); }

.no-notifications {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
   ════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .2s ease;
}

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

.alert-success {
  background: var(--success-light);
  color: #065f46;
  border-left: 4px solid var(--success);
}

.alert-error {
  background: var(--danger-light);
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: var(--warning-light);
  color: #92400e;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: var(--info-light);
  color: #164e63;
  border-left: 4px solid var(--info);
}

/* ════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 1px 3px rgba(5,150,105,.3);
}
.btn-success:hover {
  background: #047857;
  color: #fff;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 1px 3px rgba(220,38,38,.3);
}
.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════ */
.auth-form,
.provider-setup {
  max-width: 480px;
  margin: 32px auto;
  background: var(--surface);
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(26,22,18,.08), 0 1px 3px rgba(26,22,18,.06);
  border: 1px solid var(--border);
  position: relative;
}

/* Gold top-bar accent — mirrors landing section cards */
.auth-form::before,
.provider-setup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e8d5b0, var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-form h2,
.provider-setup h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-group.checkbox input { width: auto; }
.form-group.checkbox label { margin: 0; font-weight: 500; }

.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-link a { color: var(--primary); font-weight: 600; }

/* Form submit button full-width */
.auth-form .btn,
.provider-setup .btn {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-size: 15px;
  margin-top: 4px;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* SSO Buttons */
.sso-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid var(--border);
}
.sso-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.google-btn { background: #fff; color: #3c4043; border-color: #dadce0; }
.google-btn:hover { background: #f8f9fa; color: #3c4043; }

.facebook-btn { background: #1877f2; color: #fff; border-color: #1877f2; }
.facebook-btn:hover { background: #1464d8; color: #fff; }

.yahoo-btn { background: #6001d2; color: #fff; border-color: #6001d2; }
.yahoo-btn:hover { background: #4d01a6; color: #fff; }

/* ════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(160deg, #1a1612 0%, #2d2218 40%, #3d2c1e 70%, #1a1612 100%);
  color: white;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
  position: relative;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════
   PROVIDER CARDS
   ════════════════════════════════════════════════ */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.provider-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.provider-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.provider-image-placeholder {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, #1a1612 0%, #3d2c1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--gold-lt, #e8d5b0);
  font-weight: 400;
}

.provider-info { padding: 16px; }

.provider-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.category {
  display: inline-flex;
  align-items: center;
  background: #faf0e0;
  color: #7a5230;
  border: 1px solid rgba(201,169,110,.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0;
}

.rate {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--success);
  margin: 6px 0;
}

.location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.location::before { content: '📍'; font-size: 11px; }

.provider-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.stars { font-size: 14px; letter-spacing: 1px; }
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }
.rating-text { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.provider-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.provider-actions .btn { flex: 1; text-align: center; }

/* ════════════════════════════════════════════════
   SEARCH / FILTERS
   ════════════════════════════════════════════════ */
.search-section {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.search-input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

.search-btn { padding: 11px 22px; }

.advanced-search {
  background: var(--surface-2);
  padding: 18px;
  border-radius: var(--radius);
  margin-top: 14px;
  border: 1px solid var(--border);
  animation: slideDown .2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  transition: border-color var(--transition);
  appearance: none;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-actions { display: flex; gap: 10px; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.filter-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.filter-tag {
  display: inline-flex;
  align-items: center;
  background: #faf0e0;
  color: #7a5230;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
}

.filter-tag a {
  color: #c9a96e;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.filter-tag a:hover { color: var(--danger); }

.clear-all-link { font-size: 12px; color: var(--danger); font-weight: 600; }
.clear-all-link:hover { text-decoration: underline; }

.results-count {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.view-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.view-toggle a { text-decoration: none; }

/* ════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.pagination .btn { min-width: 80px; }
.pagination-info {
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* ════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════ */
.dashboard {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dashboard h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.dashboard-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.dashboard-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dashboard-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold, #c9a96e);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════
   MEDIA GRID
   ════════════════════════════════════════════════ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.media-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }

.media-item img { width: 100%; height: 130px; object-fit: cover; }
.media-item p { padding: 6px 8px; font-size: 12px; color: var(--text-secondary); }

/* ════════════════════════════════════════════════
   PROVIDER PROFILE
   ════════════════════════════════════════════════ */
.provider-profile {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-header {
  display: flex;
  gap: 24px;
  padding: 28px;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a1612 0%, #2d2218 60%, #3d2c1e 100%);
  color: white;
}

.profile-picture {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}

.profile-picture-placeholder {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
  border: 4px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.profile-info .category {
  background: rgba(255,255,255,.2);
  color: white;
  display: inline-flex;
}

.profile-info .location {
  color: rgba(255,255,255,.8);
}

.profile-info .location::before { content: '📍'; }

.profile-info .rate {
  color: var(--gold-lt, #e8d5b0);
  font-size: 1.2rem;
}

.profile-body { padding: 28px; }

.profile-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold, #c9a96e);
  display: inline-block;
}

/* ════════════════════════════════════════════════
   PRICE LOCKS
   ════════════════════════════════════════════════ */
.price-locks {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.price-locks h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.locks-list { display: flex; flex-direction: column; gap: 14px; }

.lock-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.lock-card:hover { box-shadow: var(--shadow); }

.lock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.lock-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }

.status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pending .status-badge   { background: var(--warning-light); color: #92400e; }
.status-accepted .status-badge  { background: var(--success-light);  color: #065f46; }
.status-rejected .status-badge  { background: var(--danger-light);   color: #991b1b; }
.status-completed .status-badge { background: var(--info-light);     color: #164e63; }
.status-expired .status-badge   { background: #f1f5f9;               color: #64748b; }

.lock-body p { margin-bottom: 6px; font-size: 14px; color: var(--text-secondary); }
.lock-body strong { color: var(--text-primary); }

.lock-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════
   CHAT
   ════════════════════════════════════════════════ */
.chat-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 560px;
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  background: var(--nav-bg);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header h2 { font-size: 1rem; font-weight: 700; margin: 0; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message { display: flex; }
.message-sent  { justify-content: flex-end; }
.message-received { justify-content: flex-start; }

.message-content {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
}

.message-sent .message-content {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-received .message-content {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-sender {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  opacity: 0.85;
}

.message-content p { margin: 0; font-size: 14px; line-height: 1.5; }
.message-time { font-size: 10px; opacity: 0.6; display: block; margin-top: 4px; }

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

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

/* ════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  z-index: 500;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}

.modal.show { display: flex; }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 500px;
  width: calc(100% - 32px);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleIn .15s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-content h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }

.close {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.close:hover { background: var(--surface-2); color: var(--text-primary); }

/* ════════════════════════════════════════════════
   PAGE HEADER (admin / section pages)
   ════════════════════════════════════════════════ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* ════════════════════════════════════════════════
   TABLE
   ════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--surface-2); }

/* ════════════════════════════════════════════════
   BADGES / TAGS
   ════════════════════════════════════════════════ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-primary  { background: var(--primary-light); color: var(--primary-dark); }
.badge-success  { background: var(--success-light); color: #065f46; }
.badge-danger   { background: var(--danger-light);  color: #991b1b; }
.badge-warning  { background: var(--warning-light); color: #92400e; }
.badge-muted    { background: var(--surface-2);     color: var(--text-muted); }

/* ════════════════════════════════════════════════
   MESSAGES LIST
   ════════════════════════════════════════════════ */
.messages-list { display: flex; flex-direction: column; gap: 2px; }

.message-thread {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), box-shadow var(--transition);
}

.message-thread:hover { background: #f5ede4; box-shadow: var(--shadow-sm); }

.message-thread.unread { border-left: 3px solid var(--primary); }
.message-thread.unread .thread-name { font-weight: 700; }

.thread-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #c9a96e, #b8894f);
  color: #1a1612;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 1.1rem;
  flex-shrink: 0;
}

.thread-name { font-weight: 600; font-size: 14px; }
.thread-preview { font-size: 13px; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   REVIEW STARS
   ════════════════════════════════════════════════ */
.review-stars { display: flex; gap: 2px; }
.review-stars .star { font-size: 16px; }
.review-stars .star.filled { color: #f59e0b; }
.review-stars .star.empty { color: #d1d5db; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 14px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    flex-direction: column;
    padding: 12px 0 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px 20px; border-radius: 0; font-size: 15px; }

  .notification-dropdown { right: -10px; width: 300px; }

  .hero { padding: 36px 16px; margin: 16px 0; }
  .hero h1 { font-size: 1.6rem; }

  .auth-form, .provider-setup { padding: 24px 20px; margin: 16px auto; }

  .providers-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

  .profile-header { flex-direction: column; align-items: center; text-align: center; }

  .search-bar { flex-direction: column; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-actions { flex-direction: column; }

  .dashboard { padding: 18px; }
  .price-locks { padding: 18px; }

  .chat-container { height: 480px; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  table { font-size: 13px; }
  table th, table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .providers-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .profile-header { padding: 20px 16px; }
}

/* ════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════ */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

.text-muted    { color: var(--text-muted) !important; }
.text-secondary{ color: var(--text-secondary) !important; }
.text-primary  { color: var(--primary) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-center   { text-align: center !important; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}

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

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