/* ============================================================
   Fiona Dates - Main Stylesheet
   Modern SaaS Business Directory
   ============================================================ */

/* CSS Custom Properties */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --dark: #1e1b4b;
  --text: #374151;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --bg: #f9fafb;
  --bg-card: #ffffff;
  --bg-dark: #1e1b4b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-xl: 0 20px 60px rgba(99,102,241,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-dark { color: var(--dark); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.section-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.35); }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover { background: #7c3aed; color: #fff; transform: translateY(-1px); }

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

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; transform: translateY(-1px); }

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

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d97706; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { padding: 17px 40px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
}
.btn-gradient:hover { opacity: 0.9; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo img { height: 36px; width: auto; }
.navbar-logo-text { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.navbar-logo-text span { color: var(--primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-nav li a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.navbar-nav li a:hover,
.navbar-nav li a.active { color: var(--primary); background: rgba(99,102,241,0.06); }

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

.navbar-user {
  position: relative;
  display: inline-block;
}
.navbar-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.navbar-user-btn:hover { border-color: var(--primary); color: var(--primary); }
.navbar-user-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.navbar-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 100;
  overflow: hidden;
}
.navbar-user-dropdown.open { display: block; }
.navbar-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.875rem;
  transition: background var(--transition);
}
.navbar-user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.navbar-user-dropdown .dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* Mobile menu button */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(99,102,241,0.2) 0%, transparent 50%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: float-particle 8s ease-in-out infinite;
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: 20px; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 40px; }

/* Search Form */
.hero-search {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  max-width: 760px;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  gap: 4px;
}
.hero-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
}
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.hero-search-field input, .hero-search-field select {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  font-family: var(--font);
}
.hero-search-field select { cursor: pointer; }
.hero-search .btn { border-radius: var(--radius-sm); padding: 12px 28px; flex-shrink: 0; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat .num span { color: var(--accent); }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.listing-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }

.listing-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  pointer-events: none;
  z-index: 1;
}

.listing-card-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-card-img img { transform: scale(1.05); }

.listing-card-logo {
  position: absolute;
  bottom: -20px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
}
.listing-card-logo img { width: 100%; height: 100%; object-fit: cover; }

.listing-card-body { padding: 28px 16px 16px; }
.listing-card-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.listing-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.listing-card-title a { color: inherit; }
.listing-card-title a:hover { color: var(--primary); }
.listing-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.listing-card-meta span { display: flex; align-items: center; gap: 4px; }
.listing-card-desc { font-size: 0.875rem; color: var(--text-light); margin: 10px 0 14px; line-height: 1.5; }
.listing-card-footer { padding: 12px 16px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.listing-card-actions { display: flex; gap: 8px; }

/* Blog Card */
.blog-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-img { height: 200px; overflow: hidden; background: var(--bg); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-cat { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.blog-card-excerpt { font-size: 0.875rem; color: var(--text-light); margin-top: 10px; line-height: 1.6; }

/* Category Card */
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }

.cat-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.cat-card:hover .cat-card-icon { background: rgba(255,255,255,0.2); color: #fff; }

.cat-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.cat-card:hover .cat-card-name { color: #fff; }
.cat-card-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.cat-card:hover .cat-card-count { color: rgba(255,255,255,0.8); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-primary { background: rgba(99,102,241,0.1); color: var(--primary); }
.badge-featured { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-info { background: rgba(59,130,246,0.1); color: var(--info); }
.badge-gray { background: var(--border-light); color: var(--text-muted); }
.badge-dark { background: var(--dark); color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid { border-color: var(--success); }

textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-success { font-size: 0.8rem; color: var(--success); margin-top: 4px; }

.input-group { position: relative; }
.input-group-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group .form-control { padding-left: 40px; }

/* Simple Text Editor */
.simple-editor {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.simple-editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.editor-toolbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.editor-btn {
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
  transition: all var(--transition);
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}
.editor-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.editor-content {
  min-height: 200px;
  padding: 14px;
  outline: none;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

/* File upload */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--primary); background: rgba(99,102,241,0.03); }
.file-upload-area i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.file-upload-area p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.file-upload-area input[type="file"] { display: none; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}
.alert i { flex-shrink: 0; margin-top: 1px; }
.alert-close { position: absolute; right: 12px; top: 12px; background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.6; transition: opacity var(--transition); }
.alert-close:hover { opacity: 1; }

.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3); color: #065f46; }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #991b1b; }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3); color: #92400e; }
.alert-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.3); color: #1e40af; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { background: var(--bg); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--bg); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin: 40px 0; display: flex; justify-content: center; }
.pagination { list-style: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.05); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-ellipsis { border: none; color: var(--text-muted); background: none; cursor: default; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav { margin-bottom: 24px; }
.breadcrumb { list-style: none; padding: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; }
.breadcrumb-item a { color: var(--text-light); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); font-weight: 500; }
.breadcrumb-item:not(:last-child)::after { content: '/'; color: var(--text-muted); margin-left: 8px; }

/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating { color: var(--warning); font-size: 0.9rem; display: inline-flex; gap: 2px; }
.star-rating-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating-input input { display: none; }
.star-rating-input label { cursor: pointer; font-size: 1.4rem; color: var(--border); transition: color var(--transition); }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: var(--warning); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, #0f0c29, #1e1b4b, #24243e);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand .logo-text span { color: var(--primary-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: #fff; }

/* Newsletter */
.footer-newsletter { margin-top: 16px; }
.footer-newsletter .input-row { display: flex; gap: 8px; }
.footer-newsletter input { flex: 1; padding: 10px 14px; border: 1.5px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); color: #fff; font-size: 0.875rem; outline: none; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { border-color: var(--primary); }
.footer-newsletter .btn { flex-shrink: 0; }

/* ============================================================
   AD BLOCKS
   ============================================================ */
.ad-block { text-align: center; margin: 20px 0; }
.ad-block-placeholder { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 24px; font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   LOADING & SKELETON
   ============================================================ */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: var(--radius-sm); transition: all var(--transition); }
.modal-close:hover { background: var(--bg); color: var(--danger); }

/* ============================================================
   PARTNER CAROUSEL
   ============================================================ */
.partner-carousel { overflow: hidden; }
.partner-track {
  display: flex;
  gap: 32px;
  animation: scroll-left 25s linear infinite;
}
.partner-track:hover { animation-play-state: paused; }
.partner-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.partner-item img { height: 40px; width: auto; filter: grayscale(1) opacity(0.5); transition: all var(--transition); }
.partner-item img:hover { filter: none; transform: scale(1.05); }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section { background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 64px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-item .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; margin-bottom: 4px; }
.stat-item .label { font-size: 0.9rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; position: relative; }
.step-num {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-light); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.sidebar-widget h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 0.875rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text); transition: color var(--transition); }
.sidebar-list a:hover { color: var(--primary); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--dark), #312e81);
  color: #fff;
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.2) 0%, transparent 60%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.7); margin: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb-item:not(:last-child)::after { color: rgba(255,255,255,0.4); }

/* ============================================================
   SEARCH AUTOCOMPLETE
   ============================================================ */
.autocomplete-wrapper { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.autocomplete-dropdown.open { display: block; }
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.autocomplete-item:hover { background: var(--bg); }
.autocomplete-item i { color: var(--primary); }

/* ============================================================
   LAZY LOADING
   ============================================================ */
img.lazy { opacity: 0; transition: opacity 0.4s; }
img.lazy.loaded { opacity: 1; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-sm); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.bg-white { background: #fff; }
.bg-primary { background: var(--primary); }
.bg-light { background: var(--bg); }
.bg-dark { background: var(--dark); }

.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .footer, .ad-block, .btn { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
}

/* ============================================================
   RESPONSIVE - TABLET (768px–1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-direction: column; padding: 12px; }
  .hero-search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 12px; }
  .hero-search-field:last-of-type { border-bottom: none; }
}

/* ============================================================
   RESPONSIVE - MOBILE (<768px)
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.4rem; }

  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    z-index: 999;
    overflow-y: auto;
    gap: 4px;
  }
  .navbar-nav.mobile-open li a { padding: 14px 16px; font-size: 1rem; border-radius: var(--radius-sm); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  .hero-search { max-width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }

  .navbar-actions .btn-outline { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  h1 { font-size: 1.8rem; }
  .btn-xl { padding: 14px 24px; font-size: 0.95rem; }
}
