@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════ */
:root {
  --blue: #046bd2;
  --blue-dark: #0355a8;
  --blue-deeper: #02407e;
  --blue-light: #e8f1fc;
  --blue-glow: rgba(4, 107, 210, 0.12);
  --navy: #0a1628;
  --text: #1a1a2e;
  --text-secondary: #5a5f7a;
  --text-muted: #8b90a5;
  --bg: #f8f9fb;
  --white: #ffffff;
  --card: #ffffff;
  --border: #e4e7ee;
  --border-light: #f0f2f5;
  --sand: #faf8f5;
  --gold: #d4a853;
  --gold-light: #fdf6e8;
  --green: #10b981;
  --green-light: #ecfdf5;
  --red: #ef4444;
  --red-light: #fef2f2;
  --orange: #f59e0b;
  --orange-light: #fffbeb;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.04), 0 1px 2px rgba(10, 22, 40, 0.03);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.06), 0 2px 4px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.08), 0 4px 12px rgba(10, 22, 40, 0.04);
  --shadow-xl: 0 24px 64px rgba(10, 22, 40, 0.1), 0 8px 24px rgba(10, 22, 40, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  transition: all var(--transition); white-space: nowrap;
}

.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 2px 8px rgba(4, 107, 210, 0.25);
}
.btn-primary:hover {
  background: var(--blue-dark); color: var(--white);
  box-shadow: 0 4px 16px rgba(4, 107, 210, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-light);
}

.btn-ghost { color: var(--text-secondary); padding: 8px 12px; }
.btn-ghost:hover { color: var(--blue); background: var(--blue-light); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #dc2626; color: var(--white); }

.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #059669; color: var(--white); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #c4953f);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212, 168, 83, 0.4); color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-featured {
  background: linear-gradient(135deg, var(--gold-light), #fef3d0);
  color: #92690e; border: 1px solid rgba(212, 168, 83, 0.3);
}
.badge-standard { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(4, 107, 210, 0.15); }
.badge-free { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.badge-pending { background: var(--orange-light); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-approved { background: var(--green-light); color: #047857; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-rejected { background: var(--red-light); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.2); }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 32px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px;
  color: var(--navy); cursor: pointer; flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(4, 107, 210, 0.3);
}
.logo-icon svg { color: var(--white); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a, .nav-links button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--blue); background: var(--blue-light);
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border-light);
  min-width: 260px; padding: 8px; opacity: 0; visibility: hidden;
  transition: all 0.2s ease; pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-search-form {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 0 4px 0 12px; border: 1.5px solid transparent;
  transition: all var(--transition);
}
.nav-search-form:focus-within { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-glow); }
.nav-search-form input {
  width: 160px; padding: 8px 0; font-size: 13px; background: transparent;
}
.nav-search-form button { padding: 6px; color: var(--text-muted); border-radius: var(--radius-sm); }
.nav-search-form button:hover { color: var(--blue); }

/* Mobile menu */
.mobile-menu-btn { display: none; padding: 8px; color: var(--text); }

@media (max-width: 900px) {
  .nav-links, .nav-search-form { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-actions .btn-primary span { display: none; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 96px;
  background: linear-gradient(168deg, var(--navy) 0%, #0e2240 50%, #122d54 100%);
  color: var(--white);
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(4, 107, 210, 0.2), transparent),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(4, 107, 210, 0.1), transparent);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: 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.02'%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");
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 400; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero p {
  font-size: 17px; color: rgba(255,255,255,0.65);
  max-width: 520px; margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-search {
  display: flex; gap: 0;
  background: var(--white); border-radius: var(--radius-md);
  padding: 6px; box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
  max-width: 560px; margin: 0 auto;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-search input {
  flex: 1; padding: 14px 20px; font-size: 16px;
  color: var(--text); border-radius: var(--radius-sm);
}
.hero-search input::placeholder { color: var(--text-muted); }

.hero-search button {
  padding: 14px 28px; background: var(--blue); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.hero-search button:hover { background: var(--blue-dark); }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 20px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-tags a {
  padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.hero-tags a:hover {
  color: var(--white); border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display); font-size: 32px;
  color: var(--navy); line-height: 1.2;
}
.section-subtitle {
  font-size: 15px; color: var(--text-secondary);
  margin-top: 6px; max-width: 480px;
}

/* ═══════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--border-light);
  transition: all var(--transition); cursor: pointer;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s ease;
}
.category-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card:hover::before { transform: scaleX(1); }

.category-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--blue-light); display: flex;
  align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 16px;
}

.category-card h3 {
  font-family: var(--font-body); font-size: 16px;
  font-weight: 700; margin-bottom: 6px; color: var(--navy);
}

.category-card p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.category-card-count {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   LISTING CARDS
   ═══════════════════════════════════════════ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.listing-card {
  background: var(--card); border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden; transition: all var(--transition);
}
.listing-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: transparent;
}
.listing-card.is-featured {
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.08);
}

.listing-card-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 20px 0;
}

.listing-card-photo {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-light), #dbe8f8);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 24px; font-weight: 700;
  font-family: var(--font-display); flex-shrink: 0;
  overflow: hidden;
}
.listing-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.listing-card-info { flex: 1; min-width: 0; }
.listing-card-info h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing-card-info .firm {
  font-size: 13px; color: var(--text-secondary); margin-top: 2px;
}

.listing-card-body {
  padding: 16px 20px 20px;
}

.listing-card-bio {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.listing-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.listing-card-meta span {
  display: flex; align-items: center; gap: 4px;
}

/* Featured spotlight */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.featured-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 168, 83, 0.2);
  overflow: hidden; transition: all var(--transition);
  position: relative;
}
.featured-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #e8c26c, var(--gold));
}
.featured-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}

.featured-card-inner { padding: 28px; }

.featured-card-top {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
}

.featured-card-photo {
  width: 80px; height: 80px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--sand), #f0ece5);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-family: var(--font-display);
  color: var(--gold); flex-shrink: 0; overflow: hidden;
}
.featured-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.featured-card-details h3 {
  font-family: var(--font-display); font-size: 20px;
  color: var(--navy); margin-bottom: 4px;
}
.featured-card-details .firm {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 8px;
}

.featured-card-bio {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ═══════════════════════════════════════════
   LISTING DETAIL PAGE
   ═══════════════════════════════════════════ */
.listing-detail {
  padding: 48px 0 72px;
}

.listing-detail-header {
  display: flex; gap: 32px; align-items: flex-start;
  margin-bottom: 36px;
}

.listing-detail-photo {
  width: 140px; height: 140px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-light), #dbe8f8);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-family: var(--font-display);
  color: var(--blue); flex-shrink: 0; overflow: hidden;
}
.listing-detail-photo img { width: 100%; height: 100%; object-fit: cover; }

.listing-detail-info h1 {
  font-family: var(--font-display); font-size: 36px;
  color: var(--navy); margin-bottom: 4px;
}
.listing-detail-info .firm {
  font-size: 18px; color: var(--text-secondary); margin-bottom: 12px;
}

.listing-detail-categories {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.listing-detail-categories a {
  padding: 4px 12px; border-radius: 100px; font-size: 12px;
  font-weight: 600; background: var(--blue-light); color: var(--blue);
}

.listing-detail-contact {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 14px; color: var(--text-secondary);
}
.listing-detail-contact span {
  display: flex; align-items: center; gap: 6px;
}
.listing-detail-contact a { color: var(--blue); }

.listing-detail-body {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
}

.listing-detail-bio {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border-light);
}
.listing-detail-bio h2 {
  font-family: var(--font-display); font-size: 22px;
  margin-bottom: 16px; color: var(--navy);
}
.listing-detail-bio p {
  font-size: 15px; line-height: 1.8; color: var(--text-secondary);
  white-space: pre-line;
}

.listing-detail-sidebar {
  display: flex; flex-direction: column; gap: 20px;
}

.sidebar-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border-light);
}
.sidebar-card h3 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-contact-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.sidebar-contact-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text);
}
.sidebar-contact-list li svg { color: var(--blue); flex-shrink: 0; }
.sidebar-contact-list li a { color: var(--blue); word-break: break-all; }

.ad-placeholder {
  background: var(--bg); border-radius: var(--radius-md);
  padding: 40px 20px; text-align: center;
  border: 2px dashed var(--border);
  color: var(--text-muted); font-size: 13px;
}

@media (max-width: 800px) {
  .listing-detail-header { flex-direction: column; gap: 20px; }
  .listing-detail-body { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════ */
.page-header {
  padding: 48px 0 36px;
  background: var(--white); border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  font-family: var(--font-display); font-size: 32px;
  color: var(--navy); margin-bottom: 4px;
}
.page-header p {
  font-size: 15px; color: var(--text-secondary);
}

.category-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; padding: 36px 0 72px;
}

@media (max-width: 900px) {
  .category-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   BANNER AD
   ═══════════════════════════════════════════ */
.banner-ad {
  background: linear-gradient(135deg, var(--sand), #f5f0e8);
  border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.15);
  margin-bottom: 20px;
}
.banner-ad-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px;
}
.banner-ad h3 { font-family: var(--font-display); font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.banner-ad p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }

/* ═══════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
}
.modal-header h2 {
  font-family: var(--font-display); font-size: 24px; color: var(--navy);
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body { padding: 24px 28px 28px; }

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 11px 14px; font-size: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); background: var(--white);
  transition: all var(--transition);
}
.form-input:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow);
}
textarea.form-input { min-height: 100px; resize: vertical; }

.form-error {
  font-size: 12px; color: var(--red); margin-top: 4px; display: none;
}
.form-error.show { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-divider {
  text-align: center; color: var(--text-muted); font-size: 13px;
  margin: 12px 0; position: relative;
}
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-footer {
  text-align: center; font-size: 13px; color: var(--text-secondary);
  margin-top: 16px;
}
.form-footer a { font-weight: 600; }

/* Checkboxes grid */
.checkbox-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.checkbox-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition);
  font-size: 13px;
}
.checkbox-item:hover { background: var(--blue-light); }
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--blue);
}

/* File upload */
.file-upload {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.file-upload:hover { border-color: var(--blue); background: var(--blue-light); }
.file-upload svg { color: var(--text-muted); margin-bottom: 8px; }
.file-upload p { font-size: 13px; color: var(--text-secondary); }
.file-upload span { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   TIER SELECTION
   ═══════════════════════════════════════════ */
.tier-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 24px;
}

.tier-card {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; cursor: pointer; transition: all var(--transition);
  position: relative; text-align: center;
}
.tier-card:hover { border-color: var(--blue); }
.tier-card.selected { border-color: var(--blue); background: var(--blue-light); }
.tier-card.tier-featured { border-color: rgba(212, 168, 83, 0.4); }
.tier-card.tier-featured.selected { border-color: var(--gold); background: var(--gold-light); }

.tier-card-popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white); font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 10px; border-radius: 100px;
}

.tier-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tier-card .tier-price {
  font-family: var(--font-display); font-size: 28px; color: var(--navy);
  margin-bottom: 4px;
}
.tier-card .tier-price span { font-size: 14px; color: var(--text-muted); font-family: var(--font-body); }
.tier-card .tier-period { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.tier-features {
  list-style: none; text-align: left;
  font-size: 12px; color: var(--text-secondary);
  display: flex; flex-direction: column; gap: 6px;
}
.tier-features li { display: flex; align-items: center; gap: 6px; }
.tier-features li svg { color: var(--green); flex-shrink: 0; }
.tier-features li.disabled { color: var(--text-muted); }
.tier-features li.disabled svg { color: var(--border); }

@media (max-width: 700px) {
  .tier-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════ */
.dashboard { padding: 36px 0 72px; }

.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.dashboard-header h1 {
  font-family: var(--font-display); font-size: 28px; color: var(--navy);
}

.dashboard-listings {
  display: flex; flex-direction: column; gap: 12px;
}

.dashboard-listing {
  background: var(--card); border-radius: var(--radius-md);
  padding: 20px 24px; border: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 16px;
  transition: all var(--transition);
}
.dashboard-listing:hover { box-shadow: var(--shadow-sm); }

.dashboard-listing-photo {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--blue-light); display: flex;
  align-items: center; justify-content: center;
  color: var(--blue); font-size: 20px; font-weight: 700;
  font-family: var(--font-display); flex-shrink: 0; overflow: hidden;
}
.dashboard-listing-photo img { width: 100%; height: 100%; object-fit: cover; }

.dashboard-listing-info {
  flex: 1; min-width: 0;
}
.dashboard-listing-info h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.dashboard-listing-info p { font-size: 13px; color: var(--text-secondary); }

.dashboard-listing-badges {
  display: flex; gap: 6px; flex-shrink: 0;
}

.dashboard-listing-actions {
  display: flex; gap: 6px; flex-shrink: 0;
}

.empty-state {
  text-align: center; padding: 64px 24px;
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.empty-state svg { color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 {
  font-family: var(--font-display); font-size: 22px;
  color: var(--navy); margin-bottom: 8px;
}
.empty-state p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* ═══════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════ */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 36px;
}

.stat-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border-light);
}
.stat-card-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px;
}
.stat-card-value {
  font-family: var(--font-display); font-size: 32px; color: var(--navy);
}

.admin-section {
  margin-bottom: 36px;
}
.admin-section h2 {
  font-family: var(--font-display); font-size: 22px;
  color: var(--navy); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}

.admin-table {
  width: 100%; background: var(--card);
  border-radius: var(--radius-md); border: 1px solid var(--border-light);
  overflow: hidden;
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.admin-table td {
  padding: 12px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(4, 107, 210, 0.02); }

.admin-actions { display: flex; gap: 6px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  max-width: 320px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px;
  color: var(--white); margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; }

.footer-links h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-social {
  display: flex; gap: 10px; margin-top: 16px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-disclaimer {
  max-width: 600px; line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeUp 0.5s ease both;
}

/* Stagger children */
.stagger-in > * {
  animation: fadeUp 0.4s ease both;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-in > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-in > *:nth-child(n+11) { animation-delay: 0.55s; }

/* Loading spinner */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: fadeUp 0.3s ease both;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { background: #047857; }
.toast.error { background: #b91c1c; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 30px; }
  .hero-search { flex-direction: column; }
  .hero-search button { justify-content: center; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { padding: 16px; }
  .listings-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .dashboard-listing { flex-wrap: wrap; }
}
