/* ============================================================
   ARCHER - AI Agency Directory
   Design: Dark theme, Space Grotesk + Instrument Serif
   Vibe: Linear.app meets ProductHunt
   ============================================================ */

:root {
  --bg: #0c0c0f;
  --bg-secondary: #13131a;
  --bg-card: #18181f;
  --bg-card-hover: #1e1e28;
  --border: #2a2a35;
  --border-light: #35354a;
  --text: #e8e8ed;
  --text-secondary: #9898a8;
  --text-muted: #6b6b7b;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-subtle: rgba(249, 115, 22, 0.12);
  --featured: #a855f7;
  --featured-subtle: rgba(168, 85, 247, 0.12);
  --premium: #f59e0b;
  --premium-subtle: rgba(245, 158, 11, 0.12);
  --verified: #10b981;
  --verified-subtle: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
}

.logo-text { letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-submit { font-weight: 500; }

.nav-featured-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem !important;
  transition: background var(--transition);
}

.nav-featured-btn:hover { background: var(--accent-hover); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
              var(--bg);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Search */
.search-form { margin-bottom: 1.5rem; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  transition: border-color var(--transition);
}

.search-box:focus-within { border-color: var(--accent); }

.search-icon {
  width: 20px;
  height: 20px;
  margin-left: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.search-box button:hover { background: var(--accent-hover); }

.hero-popular {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-popular a {
  padding: 0.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.hero-popular a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.see-all {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}

.see-all:hover { opacity: 0.8; }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-section {
  padding: 4rem 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.category-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.category-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.category-icon svg { width: 100%; height: 100%; }

.category-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   AGENCY CARDS
   ============================================================ */
.agencies-section { padding: 2rem 1.5rem 4rem; }

.agencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.agency-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.agency-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.agency-card--featured {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.agency-card--featured:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.agency-card--premium {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.agency-card--premium:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.agency-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.agency-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.agency-logo img { width: 100%; height: 100%; object-fit: cover; }

.agency-meta { flex: 1; min-width: 0; }

.agency-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-lg { font-size: 0.8rem; padding: 0.2rem 0.65rem; }

.badge-featured {
  background: var(--featured-subtle);
  color: var(--featured);
}

.badge-premium {
  background: var(--premium-subtle);
  color: var(--premium);
}

.badge-verified {
  background: var(--verified-subtle);
  color: var(--verified);
}

.agency-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agency-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  padding: 0.2rem 0.55rem;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tag-lg { font-size: 0.85rem; padding: 0.3rem 0.75rem; }

.tag-tech {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.agency-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.agency-pricing { font-weight: 500; color: var(--text-secondary); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 5rem 1.5rem;
  background: radial-gradient(ellipse at 50% 100%, rgba(249, 115, 22, 0.06) 0%, transparent 50%);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-inner p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page { padding: 3rem 0 5rem; }

.search-page-header {
  margin-bottom: 2rem;
}

.search-page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-page-header p {
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.search-filters {
  position: sticky;
  top: 80px;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

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

.search-results .agencies-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-results h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.page-info { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================================
   AGENCY DETAIL PAGE
   ============================================================ */
.agency-detail { padding: 2rem 0 5rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.back-link:hover { color: var(--accent); }

.agency-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.agency-detail--featured {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(168, 85, 247, 0.04) 100%);
}

.agency-detail--premium {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.agency-detail-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.agency-detail-logo img { width: 100%; height: 100%; object-fit: cover; }

.agency-detail-info { flex: 1; min-width: 200px; }

.agency-detail-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.agency-detail-title h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.agency-detail-short {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.agency-detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agency-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.agency-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.detail-section {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.detail-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.agency-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Sidebar */
.sidebar-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.quick-facts dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.quick-facts dd {
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-cat-link {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--accent);
  transition: opacity var(--transition);
}

.sidebar-cat-link:hover { opacity: 0.8; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.social-links a {
  font-size: 0.85rem;
  color: var(--accent);
  transition: opacity var(--transition);
}

.social-links a:hover { opacity: 0.8; }

.sidebar-cta {
  background: var(--accent-subtle);
  border-color: rgba(249, 115, 22, 0.2);
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-page { padding: 2rem 0 4rem; }

.category-page-header {
  margin-bottom: 2rem;
}

.category-page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.category-page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.category-page-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Categories Full Page */
.categories-full-page { padding: 3rem 0 5rem; }

.categories-full-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.category-list-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.category-list-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.category-list-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   FORMS
   ============================================================ */
.submit-page, .pricing-page { padding: 3rem 0 5rem; }

.submit-header, .pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.submit-header h1, .pricing-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.submit-header p, .pricing-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.submit-form, .contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.form-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea { resize: vertical; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.checkbox-item:hover { border-color: var(--accent); }

.checkbox-item input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

.submit-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-status {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-status.success { color: var(--verified); }
.form-status.error { color: var(--danger); }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 4rem;
}

.pricing-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--featured);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, var(--bg-card) 50%);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card--premium {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-card) 50%);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  background: var(--featured);
  color: #fff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-features strong { color: var(--text); }

/* FAQ */
.pricing-faq {
  max-width: 720px;
  margin: 0 auto;
}

.pricing-faq h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

details[open] { border-color: var(--border-light); }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

details p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-login { padding: 6rem 1.5rem; }

.admin-login-box {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.admin-login-box h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-page { padding: 2rem 0 5rem; }

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-card--alert { border-color: var(--accent); }

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  padding: 0.65rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-tab:hover:not(.active) { color: var(--text); }

.admin-tab-content.hidden { display: none; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table tr:hover { background: rgba(255,255,255,0.02); }
.admin-table tr.unread { background: rgba(249, 115, 22, 0.04); }

.admin-table small { color: var(--text-muted); }
.admin-table a { color: var(--accent); }
.msg-preview { max-width: 300px; }

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending { background: var(--premium-subtle); color: var(--premium); }
.status-approved { background: var(--verified-subtle); color: var(--verified); }
.status-rejected { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.status-basic { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.status-featured { background: var(--featured-subtle); color: var(--featured); }
.status-premium { background: var(--premium-subtle); color: var(--premium); }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page { padding: 6rem 1.5rem; }

.success-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--verified-subtle);
  color: var(--verified);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.success-box h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.success-box p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.success-box a { color: var(--accent); }

.success-box .btn { margin-top: 1.5rem; }

/* Error page */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
}

.error-page h1 { margin-bottom: 1rem; }
.error-page a { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-icon { margin-right: 0.4rem; }
.footer-brand .logo-text { font-weight: 600; }

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .nav-mobile-toggle { display: flex; }

  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .agencies-grid { grid-template-columns: 1fr; }

  .search-layout { grid-template-columns: 1fr; }
  .search-filters { position: static; }

  .agency-detail-header { flex-direction: column; }
  .agency-detail-body { grid-template-columns: 1fr; }
  .agency-detail-actions { flex-direction: row; }

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

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .search-box { flex-direction: column; padding: 0.5rem; }
  .search-box input { text-align: center; }
  .search-box button { width: 100%; }
  .search-icon { display: none; }
  .hero-popular { flex-direction: column; }
  .checkbox-grid { grid-template-columns: 1fr; }
}
