/* ============================================================
   VivaahHub - Main Stylesheet
   Colors: Pink #E91E8C, Purple #6C2BD9, Dark #1A1A2E
   ============================================================ */

:root {
  --primary: #E91E8C;
  --primary-dark: #C2177A;
  --secondary: #6C2BD9;
  --secondary-dark: #5522B0;
  --dark: #1A1A2E;
  --dark-card: #16213E;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #F8F5FF;
  --bg-card: #fff;
  --border: #E8E0F5;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --star: #FBBF24;
  --shadow: 0 4px 20px rgba(105, 43, 217, 0.1);
  --shadow-hover: 0 8px 32px rgba(233, 30, 140, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--dark); }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #fff;
}
.explore-btn {
  background: linear-gradient(135deg, #D4AF37, #F5D060, #C8960C) !important;
  color: #1A1A2E !important;
  box-shadow: 0 10px 26px rgba(212,175,55,0.45) !important;
}
.explore-btn:hover {
  color: #1A1A2E !important;
  box-shadow: 0 14px 32px rgba(212,175,55,0.6) !important;
}
.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.vh-navbar {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}
.vh-navbar .navbar-brand {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #FF6FD8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vh-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.vh-navbar .nav-link:hover, .vh-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(233, 30, 140, 0.25);
}
.vh-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3) !important;
}
.vh-navbar .navbar-toggler-icon {
  filter: invert(1);
}
.vh-navbar .btn-nav-login {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 20px !important;
}
/* Override btn-outline-custom inside dark navbar */
.vh-navbar .btn-outline-custom {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.35) !important;
}
.vh-navbar .btn-outline-custom:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
/* Dropdown if any */
.vh-navbar .dropdown-menu {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.1);
}
.vh-navbar .dropdown-item {
  color: rgba(255,255,255,0.8);
}
.vh-navbar .dropdown-item:hover {
  background: rgba(233,30,140,0.2);
  color: #fff;
}
/* Mobile collapse stays dark */
@media (max-width: 991px) {
  .vh-navbar .navbar-collapse {
    background: var(--dark-card);
    margin: 0 -20px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-card) 50%, #2D1B69 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233,30,140,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108,43,217,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.hero-title span {
  background: linear-gradient(135deg, var(--primary), #FF6FD8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 16px; opacity: 0.8; margin-bottom: 32px; }
.hero-badges { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
}
.hero-badge i { color: var(--primary); font-size: 18px; }
.hero-search-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-top: 32px;
}
.hero-search-box select,
.hero-search-box input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
}
.hero-search-box select option { color: #333; background: #fff; }
.hero-search-box select::placeholder,
.hero-search-box input::placeholder { color: rgba(255,255,255,0.6); }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-light);
  margin-bottom: 36px;
}
.title-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 8px 0 12px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  color: var(--primary);
}
.category-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background: linear-gradient(135deg, rgba(233,30,140,0.1), rgba(108,43,217,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s;
}
.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.category-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  align-items: center;
}

/* Mobile-only: 4-per-row category grid + gold/yellow icon accent
   (desktop/tablet keep the default pink theme and column sizes) */
@media (max-width: 768px) {
  .category-row {
    --bs-gutter-x: 0.6rem;
    row-gap: 12px;
  }
  .category-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .category-col .category-card {
    padding: 14px 6px;
    border-radius: 14px;
  }
  .category-col .category-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    margin: 0 auto 8px;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(245,208,96,0.15));
    color: #C8960C;
  }
  .category-col .category-card:hover .category-icon,
  .category-col .category-card:active .category-icon {
    background: linear-gradient(135deg, #D4AF37, #F5D060);
    color: #1A1A2E;
  }
  .category-col .category-card:hover,
  .category-col .category-card:active {
    border-color: #D4AF37;
    color: #C8960C;
  }
  .category-col .category-name {
    font-size: 10.5px;
    line-height: 1.3;
  }
}

/* ============================================================
   VENDOR CARDS
   ============================================================ */
.vendor-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
}
.vendor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.vendor-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.vendor-card-body { padding: 16px; }
.vendor-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.vendor-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: var(--text-muted);
  transition: all 0.2s;
}
.vendor-wishlist-btn.active, .vendor-wishlist-btn:hover { color: var(--primary); }
.vendor-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.vendor-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.vendor-location { font-size: 12px; color: var(--text-light); }
.vendor-location i { color: var(--primary); margin-right: 4px; }
.vendor-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--star);
  margin: 8px 0;
}
.vendor-rating .count { color: var(--text-muted); font-weight: 400; }
.vendor-price { font-size: 15px; font-weight: 700; color: var(--secondary); }
.vendor-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* ============================================================
   STAT CARDS (Admin/Vendor Dashboard)
   ============================================================ */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card.purple { border-left-color: var(--secondary); }
.stat-card.green { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-number { font-size: 28px; font-weight: 700; color: var(--dark); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(233,30,140,0.1), rgba(108,43,217,0.1));
  color: var(--primary);
}

/* ============================================================
   SIDEBAR (Dashboard)
   ============================================================ */
.dash-sidebar {
  background: var(--dark);
  min-height: 100vh;
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s;
}
.dash-sidebar .sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #FF6FD8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-sidebar .sidebar-nav { padding: 16px 0; }
.dash-sidebar .nav-item { margin: 2px 12px; }
.dash-sidebar .nav-link {
  color: rgba(255,255,255,0.7) !important;
  padding: 12px 16px !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.dash-sidebar .nav-link:hover,
.dash-sidebar .nav-link.active {
  background: linear-gradient(135deg, rgba(233,30,140,0.2), rgba(108,43,217,0.2));
  color: #fff !important;
  border-left: 3px solid var(--primary);
}
.dash-sidebar .nav-link i { width: 20px; text-align: center; }
.dash-main {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg);
}
.dash-topbar {
  background: #fff;
  padding: 16px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}
.dash-content { padding: 24px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control-custom {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  outline: none;
}
.form-control-custom:focus { border-color: var(--primary); }
.form-label-custom {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DCFCE7; color: #166534; }
.status-completed { background: #DBEAFE; color: #1E40AF; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-approved { background: #DCFCE7; color: #166534; }
.status-pending-approval { background: #FEF3C7; color: #92400E; }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-header { text-align: center; font-size: 12px; font-weight: 600; padding: 8px 4px; color: var(--text-muted); }
.cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal-day:hover { background: rgba(233,30,140,0.1); color: var(--primary); }
.cal-day.today { background: var(--primary); color: #fff; font-weight: 600; }
.cal-day.blocked { background: #FEE2E2; color: var(--danger); cursor: not-allowed; }
.cal-day.other-month { opacity: 0.3; }
.cal-day.selected { background: var(--secondary); color: #fff; }

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f0f0;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-item .pending-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* ============================================================
   CHAT UI
   ============================================================ */
.chat-container { display: flex; height: calc(100vh - 120px); }
.chat-list { width: 320px; border-right: 1px solid var(--border); overflow-y: auto; }
.chat-window { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; }
.message-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 14px;
}
.message-bubble.sent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.message-bubble.received {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  padding: 8px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.mobile-bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}
.mobile-bottom-nav .nav-item .icon-wrap {
  width: 40px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.2s ease;
  margin-bottom: 2px;
}
.mobile-bottom-nav .nav-item i {
  font-size: 17px;
  transition: transform 0.2s ease;
  color: rgba(255,255,255,0.45);
}
.mobile-bottom-nav .nav-item.active {
  color: #D4AF37;
}
.mobile-bottom-nav .nav-item.active i {
  color: #D4AF37;
}
.mobile-bottom-nav .nav-item.active .icon-wrap {
  background: rgba(212,175,55,0.15);
  transform: translateY(-2px);
}
.mobile-bottom-nav .nav-item:active .icon-wrap { transform: scale(0.9); }
.mobile-bottom-nav .nav-item.center-btn {
  background: linear-gradient(135deg, #D4AF37, #F5D060, #C8960C);
  color: var(--dark);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  margin-top: -24px;
  box-shadow: 0 6px 20px rgba(212,175,55,0.55), 0 0 0 4px var(--dark);
  flex: 0 0 54px;
  padding: 0;
  justify-content: center;
  transition: transform 0.2s ease;
}
.mobile-bottom-nav .nav-item.center-btn i {
  font-size: 19px;
  color: var(--dark) !important;
}
.mobile-bottom-nav .nav-item.center-btn:active { transform: scale(0.92); }

/* ============================================================
   PACKAGE BUILDER FLOATING ACTION BUTTON
   ============================================================ */
.package-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #F5D060, #C8960C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1A2E;
  font-size: 25px;
  text-decoration: none;
  z-index: 1200;
  box-shadow: 0 8px 26px rgba(212,175,55,0.55), 0 0 0 4px rgba(255,255,255,0.85);
  animation: fabFloat 2.8s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.package-fab i { position: relative; z-index: 2; }
.package-fab:hover,
.package-fab:focus {
  color: #1A1A2E;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 34px rgba(212,175,55,0.7), 0 0 0 4px rgba(255,255,255,0.9);
}
.package-fab::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.55);
  animation: fabPulseRing 2.2s ease-out infinite;
}
.package-fab .fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #E91E8C;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 6px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(233,30,140,0.55);
  z-index: 3;
}
.package-fab .fab-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #1A1A2E;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.package-fab .fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1A1A2E;
}
.package-fab:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}
@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes fabPulseRing {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 768px) {
  .package-fab {
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    font-size: 21px;
  }
  .package-fab .fab-tooltip { display: none; }
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; padding: 12px 16px; border-radius: 10px; }
.alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; padding: 12px 16px; border-radius: 10px; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; padding: 12px 16px; border-radius: 10px; }

/* ============================================================
   BOOKING LIST
   ============================================================ */
.booking-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 1px solid var(--border);
}
.booking-item:hover { border-color: var(--primary); }
.booking-item img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.booking-info { flex: 1; }
.booking-name { font-weight: 600; margin-bottom: 4px; }
.booking-date { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   VENDOR DETAIL PAGE
   ============================================================ */
.vendor-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; border-radius: var(--radius); overflow: hidden; }
.vendor-gallery .main-photo { grid-row: 1 / 3; }
.vendor-gallery img { width: 100%; height: 100%; object-fit: cover; }
.vendor-gallery .main-photo img { height: 340px; }
.vendor-gallery .sub-photo img { height: 167px; }
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.2s;
  text-decoration: none;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn i { font-size: 20px; }
.package-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.package-card.popular { border-color: var(--primary); }
.package-card:hover { border-color: var(--primary); }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   MOBILE APP VIEW — HOME HERO (matches app mockup, mobile only)
   ============================================================ */
.app-mobile-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-card) 55%, #2D1B69 100%);
  padding: 18px 0 30px;
  position: relative;
  overflow: hidden;
}
.app-mobile-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(233,30,140,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.app-mobile-hero-inner { position: relative; z-index: 2; }
.app-mobile-hero-top { padding: 0 20px; margin-bottom: 18px; }
.app-header-row { display: flex; align-items: center; justify-content: space-between; }
.app-logo { display: flex; align-items: center; gap: 10px; }
.app-logo-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.app-logo-text { color: #fff; font-weight: 700; font-size: 17px; line-height: 1.2; }
.app-logo-text span { color: var(--primary); }
.app-logo-tag { color: rgba(255,255,255,0.55); font-size: 10.5px; margin-top: 2px; }
.app-bell {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; text-decoration: none; flex-shrink: 0;
}
.app-bell-dot {
  position: absolute; top: 5px; right: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--primary); border: 2px solid #1A1A2E;
}
.app-hero-img-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}
.app-hero-img-wrap img { width: 100%; height: 280px; object-fit: cover; display: block; }
.app-hero-img-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom,
    rgba(26,26,46,0) 0%,
    rgba(22,33,62,0.35) 30%,
    rgba(22,33,62,0.75) 55%,
    var(--dark) 85%,
    var(--dark) 100%);
  pointer-events: none;
}
.app-mobile-hero-bottom { position: relative; z-index: 2; padding: 8px 20px 0; }
.app-hero-title { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.app-hero-sub { color: rgba(255,255,255,0.65); font-size: 13.5px; margin-bottom: 22px; line-height: 1.5; }
.app-hero-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 700; font-size: 15px; padding: 15px;
  border-radius: 50px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(233,30,140,0.4); margin-bottom: 22px;
}
.app-hero-badges { display: flex; gap: 10px; }
.app-hero-badge {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
}
.app-badge-icon { color: #fff; font-size: 16px; }
.app-hero-badge span:last-child { color: rgba(255,255,255,0.8); font-size: 10.5px; font-weight: 600; }

/* ============================================================
   MOBILE APP VIEW — PROFILE PAGE (matches app mockup, mobile only)
   ============================================================ */
.profile-mobile-hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-card) 55%, #2D1B69 100%);
  padding: 30px 20px 24px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.profile-mobile-hero-bg {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233,30,140,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.profile-mobile-hero-inner { position: relative; z-index: 2; text-align: center; padding: 0 6px; }
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.profile-avatar-img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: block;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg,#D4AF37,#F5D060);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid var(--dark);
}
.profile-mobile-name { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.profile-mobile-email { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 10px; }
.profile-mobile-wedding {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  color: #fff;
  margin-bottom: 4px;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  word-break: break-word;
}
.profile-mobile-wedding i { color: #D4AF37; }
.profile-mobile-stats {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 8px;
  display: flex;
  align-items: center;
}
.pm-stat { flex: 1; text-align: center; }
.pm-stat-num { font-size: 19px; font-weight: 800; color: #fff; }
.pm-stat-lbl { font-size: 10.5px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.pm-stat-div { width: 1px; height: 26px; background: rgba(255,255,255,0.15); }

.profile-content-wrap { margin-top: -30px; }
@media (max-width: 768px) {
  .profile-content-wrap { margin-top: 18px; }
}

/* Mobile quick-action grid */
.pm-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 18px 10px;
  height: 100%;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.pm-quick-card:active { transform: scale(0.96); }
.pm-quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233,30,140,0.1), rgba(108,43,217,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 19px;
}
.pm-quick-icon-gold { background: linear-gradient(135deg,#D4AF37,#F5D060); color: var(--dark); }
.pm-quick-gold { border: 2px solid rgba(212,175,55,0.3); background: linear-gradient(135deg,rgba(212,175,55,0.05),rgba(245,208,96,0.03)); }
.pm-quick-title { font-weight: 700; font-size: 13.5px; color: var(--dark); }
.pm-quick-sub { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   MOBILE APP VIEW — CATEGORIES PAGE (matches app mockup, mobile only)
   ============================================================ */
.app-cat-header { background: #fff; padding: 18px 20px 16px; }
.app-cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-cat-top h1 { font-size: 20px; font-weight: 700; margin: 0; color: var(--dark); }
.app-cat-filter-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--dark); text-decoration: none; flex-shrink: 0;
}
.app-cat-location {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--dark); margin-bottom: 14px; text-decoration: none;
}
.app-cat-location i.fa-location-dot { color: var(--primary); }
.app-cat-location i.fa-chevron-down { font-size: 10px; color: var(--text-muted); margin-left: 2px; }
.app-cat-search {
  position: relative; display: flex; align-items: center; background: #F5F5F7;
  border-radius: 14px; padding: 4px 6px 4px 14px; gap: 8px;
}
.app-cat-search i.fa-magnifying-glass { color: var(--text-muted); font-size: 14px; }
.app-cat-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 13.5px; padding: 10px 4px; color: var(--dark);
}
.app-cat-search-filter {
  width: 34px; height: 34px; border-radius: 10px; background: #fff; border: none;
  display: flex; align-items: center; justify-content: center; color: var(--dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-shrink: 0;
}
.app-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; padding: 20px 20px 8px; }
.app-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.app-cat-tile-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.app-cat-tile-name { font-size: 12px; font-weight: 600; color: var(--dark); text-align: center; line-height: 1.3; }
.tile-color-0 .app-cat-tile-icon { background: #FBE8D3; color: #C97A2B; }
.tile-color-1 .app-cat-tile-icon { background: #FCE1EF; color: #E91E8C; }
.tile-color-2 .app-cat-tile-icon { background: #DCEAFB; color: #2F6FE4; }
.tile-color-3 .app-cat-tile-icon { background: #FDE8CC; color: #E2861F; }
.tile-color-4 .app-cat-tile-icon { background: #E8DFFB; color: #6C2BD9; }
.tile-color-5 .app-cat-tile-icon { background: #FBDCDC; color: #E2453B; }
.tile-color-6 .app-cat-tile-icon { background: #EAE0FB; color: #6C2BD9; }
.tile-color-7 .app-cat-tile-icon { background: #FCDCEC; color: #E91E8C; }
.app-view-all-wrap { padding: 6px 20px 100px; }
.app-view-all-btn {
  display: block; text-align: center; padding: 13px; border-radius: 50px;
  border: 1.5px solid var(--secondary); color: var(--secondary); font-weight: 700;
  font-size: 14px; text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 22px; }
  
  .wishlist-header {
    background: #fff !important;
    color: var(--dark) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
  }
  .wishlist-header h1 { color: var(--dark) !important; }
  
  .dash-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding-bottom: 80px; }
  
  .mobile-bottom-nav { display: block; }
  
  .vendor-gallery { grid-template-columns: 1fr; }
  .vendor-gallery .main-photo img,
  .vendor-gallery .sub-photo img { height: 220px; }
  
  .chat-list { display: none; }
  .chat-list.open { display: block; position: fixed; inset: 0; z-index: 200; background: #fff; }
  
  .stat-number { font-size: 22px; }
  
  .hero-search-box .row > div { margin-bottom: 10px; }
}

@media (max-width: 576px) {
  .hero-section { padding: 50px 0 40px; }
  .vendor-card-img { height: 170px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.card-custom {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.p-custom { padding: 20px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.avatar {
  border-radius: 50%;
  object-fit: cover;
}
.verified-badge { color: #3B82F6; margin-left: 4px; font-size: 14px; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.sidebar-overlay.show { display: block; }
/* ============================================================
   HOMEPAGE SLIDER
   ============================================================ */
.home-slider-wrap {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 -2px 0 rgba(255,255,255,0.08) inset;
  margin-top: -30px;
  z-index: 5;
}

.home-slide {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.home-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

/* Overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

/* Content */
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px 24px;
  max-width: 700px;
}
.slide-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  line-height: 1.2;
}
.slide-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #D4AF37, #F5D060);
  color: #1A1A2E;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(212,175,55,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.55);
  color: #1A1A2E;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(212,175,55,0.5); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active {
  background: #D4AF37;
  width: 24px;
  border-radius: 4px;
}

/* Animate in */
.home-slide.slide-in-left  { animation: slideInLeft  0.45s ease forwards; }
.home-slide.slide-in-right { animation: slideInRight 0.45s ease forwards; }
.home-slide.slide-out-left  { animation: slideOutLeft  0.45s ease forwards; display:flex; }
.home-slide.slide-out-right { animation: slideOutRight 0.45s ease forwards; display:flex; }

@keyframes slideInLeft  { from { opacity:0; transform:translateX( 40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideOutLeft  { from { opacity:1; } to { opacity:0; transform:translateX(-30px); } }
@keyframes slideOutRight { from { opacity:1; } to { opacity:0; transform:translateX( 30px); } }

/* Mobile */
@media (max-width: 768px) {
  .home-slider-wrap { margin-top: -30px; border-radius: 16px; }
  .home-slide { height: 130px; }
  .slide-title { font-size: 20px; }
  .slide-subtitle { font-size: 13px; margin-bottom: 14px; }
  .slide-btn { font-size: 12px; padding: 9px 20px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 13px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
}