/* ===================================================
   WeddingMitra – Main Stylesheet
   Aesthetic: Luxury Editorial · Ivory & Champagne Gold
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   =================================================== */

:root {
  --ivory:       #FAF7F2;
  --ivory-deep:  #F2EDE4;
  --gold:        #C9A84C;
  --gold-light:  #E8D5A3;
  --gold-dark:   #9A7530;
  --charcoal:    #2C2A27;
  --charcoal-md: #4A4740;
  --stone:       #8A8680;
  --stone-light: #C8C4BC;
  --blush:       #F5E8E0;
  --blush-dark:  #D4A090;
  --sage:        #8FA88A;
  --white:       #FFFFFF;
  --error:       #C0392B;
  --success:     #27AE60;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-soft: 0 4px 24px rgba(44,42,39,0.08);
  --shadow-md:   0 8px 40px rgba(44,42,39,0.12);
  --shadow-lg:   0 20px 60px rgba(44,42,39,0.16);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --container:  1200px;
  --header-h:   72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { line-height: 1.75; }
em { font-style: italic; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 100%;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}
.logo--light .logo-text { color: var(--ivory); }
.logo--light .logo-icon { color: var(--gold); }
.logo-icon { font-size: 1.4rem; color: var(--gold); line-height: 1; }
.logo-text em { color: var(--gold); font-style: italic; }

.main-nav {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold-dark); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--charcoal-md);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--ivory); color: var(--gold-dark); }

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

/* User menu */
.user-menu { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border: 1.5px solid var(--gold-light);
  border-radius: 999px;
  background: transparent;
  transition: border-color var(--transition);
}
.user-avatar-btn:hover { border-color: var(--gold); }
.user-avatar-btn img,
.user-avatar-btn span:first-child {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 500; color: var(--gold-dark);
}
.user-name-short { font-size: 0.85rem; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--ivory-deep); margin-bottom: 0.25rem; }
.user-dropdown-header strong { display: block; font-size: 0.9rem; }
.user-dropdown-header small { color: var(--stone); font-size: 0.78rem; }
.user-dropdown a {
  display: block; padding: 0.55rem 1rem;
  font-size: 0.875rem; color: var(--charcoal-md);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.user-dropdown a:hover { background: var(--ivory); }
.user-dropdown hr { border: none; border-top: 1px solid var(--ivory-deep); margin: 0.25rem 0; }
.user-dropdown .logout-link { color: var(--error); }
.user-dropdown .logout-link:hover { background: #fde8e8; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(44,42,39,0.4);
  z-index: 990; backdrop-filter: blur(3px);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--stone-light);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold); color: var(--charcoal); }
.btn-lg { padding: 0.875rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-danger { background: var(--error); border-color: var(--error); color: var(--white); }
.btn-danger:hover { background: #a93226; }
.btn-success { background: var(--success); border-color: var(--success); color: var(--white); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 400; color: var(--charcoal-md); margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--stone-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.form-control::placeholder { color: var(--stone-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--stone); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--stone); font-size: 0.85rem; }
.form-divider::before,.form-divider::after { content:''; flex:1; height:1px; background: var(--stone-light); }

/* ── FLASH MESSAGES ── */
.flash {
  position: fixed; top: 1rem; right: 1rem; z-index: 2000;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}
.flash--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash button { background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0.6; }
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.12);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── VENDOR CARD ── */
.vendor-card { position: relative; }
.vendor-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.vendor-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.vendor-card:hover .card-img-wrap img { transform: scale(1.04); }
.vendor-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.vendor-card .card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.vendor-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.vendor-category { font-size: 0.78rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.vendor-location { font-size: 0.85rem; color: var(--stone); }
.vendor-price { font-size: 0.9rem; color: var(--gold-dark); font-weight: 400; }
.vendor-rating { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.stars { color: var(--gold); letter-spacing: -1px; }
.vendor-card .card-footer { padding: 0 1.25rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }

/* ── STAR RATING ── */
.star-rating { display: flex; gap: 2px; }
.star-rating span { font-size: 1.2rem; cursor: pointer; color: var(--stone-light); transition: color var(--transition); }
.star-rating span.filled, .star-rating span:hover { color: var(--gold); }

/* ── SECTION ── */
.section { padding: 5rem 0; }
.section--alt { background: var(--ivory-deep); }
.section--dark { background: var(--charcoal); color: var(--ivory); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-header .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; display: block; margin-bottom: 0.75rem;
}
.section-header p { color: var(--stone); margin-top: 0.75rem; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* ── BADGE ── */
.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 400; }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); }
.badge-stone { background: var(--ivory-deep); color: var(--stone); }
.badge-success { background: #d4edda; color: #155724; }
.badge-error { background: #f8d7da; color: #721c24; }
.badge-blush { background: var(--blush); color: var(--blush-dark); }

/* ── TABS ── */
.tabs { display: flex; gap: 0.5rem; border-bottom: 1.5px solid var(--ivory-deep); margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: var(--stone);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer;
}
.tab-btn.active, .tab-btn:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--stone); padding: 1rem 0; }
.breadcrumb a { color: var(--stone); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--stone-light); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.pagination a, .pagination span {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1.5px solid var(--stone-light);
  color: var(--charcoal-md);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-dark); }
.pagination .active { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.pagination .dots { border: none; }

/* ── FILTER SIDEBAR ── */
.filter-sidebar { width: 260px; flex-shrink: 0; }
.filter-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--ivory-deep); padding: 1.5rem; margin-bottom: 1rem; }
.filter-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; }
.filter-option { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.filter-option input { accent-color: var(--gold); }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; align-items: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gold-light);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--gold); }
.search-bar input {
  flex: 1; border: none; outline: none; font-size: 0.95rem; background: transparent;
  color: var(--charcoal);
}
.search-bar select {
  border: none; border-left: 1px solid var(--ivory-deep);
  padding: 0 0.75rem; background: transparent; outline: none;
  font-size: 0.88rem; color: var(--stone); cursor: pointer;
}
.search-bar .btn { border-radius: var(--radius-xl); padding: 0.6rem 1.5rem; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  overflow: hidden; padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--blush) 50%, var(--ivory-deep) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(245,232,224,0.6) 0%, transparent 50%);
}
.hero-ornament {
  position: absolute; font-family: var(--font-display);
  font-size: 20rem; line-height: 1; opacity: 0.035; color: var(--gold);
  pointer-events: none; user-select: none;
}
.hero-ornament--tl { top: -2rem; left: -3rem; }
.hero-ornament--br { bottom: -4rem; right: -2rem; }
.hero-inner { position: relative; z-index: 1; }

/* ── PLANNING PAGE ── */
.planner-layout { display: flex; gap: 2rem; align-items: flex-start; }
.planner-sidebar {
  width: 220px; flex-shrink: 0;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.planner-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--charcoal-md);
  transition: all var(--transition);
  cursor: pointer; background: none; border: none; width: 100%; text-align: left;
}
.planner-nav-item:hover { background: var(--ivory-deep); }
.planner-nav-item.active { background: var(--gold-light); color: var(--gold-dark); font-weight: 500; }
.planner-main { flex: 1; min-width: 0; }

/* Budget Progress */
.budget-summary {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 2rem;
}
.budget-stat { background: var(--white); border-radius: var(--radius-md); padding: 1.25rem; border: 1px solid var(--ivory-deep); }
.budget-stat-label { font-size: 0.78rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.budget-stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; margin-top: 0.25rem; }
.budget-stat-value.over { color: var(--error); }

.progress-bar { height: 8px; background: var(--ivory-deep); border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.5s ease; }
.progress-fill.over { background: var(--error); }

/* Checklist */
.checklist-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ivory-deep);
  background: var(--white);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.checklist-item.done { opacity: 0.6; }
.checklist-item.done .check-label { text-decoration: line-through; }
.check-box {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--stone-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; margin-top: 1px;
  transition: all var(--transition);
}
.check-box.checked { background: var(--gold); border-color: var(--gold); color: var(--white); }
.check-label { font-size: 0.9rem; color: var(--charcoal); }
.check-meta { font-size: 0.78rem; color: var(--stone); margin-top: 0.2rem; }

/* ── VENDOR PROFILE ── */
.vendor-profile-hero { padding-top: var(--header-h); background: var(--charcoal); color: var(--ivory); }
.vendor-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 4px; }
.vendor-gallery-main { grid-row: span 2; }
.vendor-gallery img { width: 100%; height: 100%; object-fit: cover; }
.vendor-profile-body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 2.5rem 0; }
.vendor-info-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--ivory-deep); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.price-display { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-dark); }
.verified-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--success); }

/* ── BLOG ── */
.blog-card .card-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .card-img-wrap img { transform: scale(1.04); }
.post-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--stone); margin-bottom: 0.5rem; }
.post-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; transition: color var(--transition); }
.blog-card:hover .post-title { color: var(--gold-dark); }
.post-excerpt { font-size: 0.875rem; color: var(--stone); }

/* ── ADMIN ── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; padding-top: var(--header-h); }
.admin-sidebar { background: var(--charcoal); padding: 2rem 0; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.admin-nav-section { padding: 0 1rem; margin-bottom: 0.5rem; }
.admin-nav-label { font-size: 0.7rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 0.75rem; }
.admin-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer; text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav-item.active { background: var(--gold); color: var(--charcoal); }
.admin-main { padding: 2rem; background: var(--ivory); overflow-y: auto; }
.admin-page-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; border: 1px solid var(--ivory-deep); }
.stat-label { font-size: 0.78rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin-top: 0.25rem; }
.stat-change { font-size: 0.8rem; margin-top: 0.25rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone); padding: 0.75rem 1rem; text-align: left; border-bottom: 1.5px solid var(--ivory-deep); font-weight: 400; }
.data-table td { padding: 1rem; border-bottom: 1px solid var(--ivory-deep); color: var(--charcoal); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--ivory); }
.data-table .actions { display: flex; gap: 0.5rem; }
.table-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--ivory-deep); overflow: hidden; }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual {
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem;
  position: relative; overflow: hidden;
}
.auth-visual::before {
  content: '❋';
  position: absolute; font-family: var(--font-display);
  font-size: 30rem; color: rgba(201,168,76,0.06); line-height: 1;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.auth-visual-text { position: relative; z-index: 1; text-align: center; color: var(--ivory); }
.auth-visual-text h2 { font-family: var(--font-display); font-size: 2.5rem; color: var(--ivory); margin-bottom: 1rem; }
.auth-visual-text p { color: rgba(250,247,242,0.6); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 3rem; background: var(--ivory); }
.auth-form-inner { width: 100%; max-width: 420px; }
.auth-form-inner h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 0.5rem; }
.auth-form-inner .subtitle { color: var(--stone); margin-bottom: 2rem; font-size: 0.9rem; }

/* ── CONTACT PAGE ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: flex-start; }
.contact-info h2 { font-family: var(--font-display); margin-bottom: 1rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 44px; height: 44px; background: var(--gold-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); font-size: 1.1rem; flex-shrink: 0; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(44,42,39,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 560px; width: 100%;
  padding: 2rem;
  transform: scale(0.95);
  transition: transform var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { font-size: 1.5rem; color: var(--stone); cursor: pointer; transition: color var(--transition); }
.modal-close:hover { color: var(--charcoal); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--charcoal); color: var(--ivory);
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.12) 0%, transparent 65%);
}
.page-hero h1 { position: relative; color: var(--ivory); }
.page-hero p { position: relative; color: rgba(250,247,242,0.65); margin-top: 0.75rem; }
.page-hero .eyebrow { color: var(--gold); }

/* ── FOOTER ── */
.site-footer { background: var(--charcoal); color: rgba(250,247,242,0.7); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem; padding-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,247,242,0.6);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--charcoal); }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ivory); margin-bottom: 1rem; font-weight: 500; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(250,247,242,0.55); margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; text-align: center; font-size: 0.825rem; color: rgba(250,247,242,0.35); }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.text-stone { color: var(--stone); }
.text-muted { color: var(--stone); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.hidden { display: none; }
.page-top-pad { padding-top: var(--header-h); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-layout { grid-template-columns: 200px 1fr; }
  .vendor-profile-body { grid-template-columns: 1fr; }
  .vendor-info-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--ivory); z-index: 999;
    flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem;
    gap: 0.25rem; overflow-y: auto;
    transform: translateX(-100%); transition: transform var(--transition);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 0.75rem 0; width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 1rem; }
  .hamburger { display: flex; }
  .nav-overlay.open { display: block; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .planner-layout { flex-direction: column; }
  .planner-sidebar { width: 100%; position: static; }
  .vendor-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .vendor-gallery-main { grid-row: span 1; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .budget-summary { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-links { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .search-bar { flex-direction: column; border-radius: var(--radius-lg); padding: 1rem; }
  .search-bar select { border-left: none; border-top: 1px solid var(--ivory-deep); padding: 0.5rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
}
