/* ============================================================
   iGaming Agencies — Directory styles
   ============================================================ */

:root {
  --navy-900: #0a0e1a;
  --navy-800: #0f1626;
  --navy-700: #161f33;
  --navy-600: #1e2942;
  --line: #26334f;
  --line-soft: #1c2740;

  --text: #e8edf6;
  --text-dim: #9aa7c0;
  --text-faint: #6b7895;

  --emerald: #2ee6a6;
  --emerald-dim: #1fae7d;
  --gold: #f5c451;
  --blue: #5b8def;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 18px -8px rgba(0, 0, 0, 0.5);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 230, 166, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(91, 141, 239, 0.07), transparent 55%),
    var(--navy-900);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.94rem;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.18s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dim));
  color: #04261a;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(46, 230, 166, 0.5); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  display: grid; place-items: center; color: #04261a; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 14px -4px rgba(46, 230, 166, 0.5);
}
.brand-mark span { transform: translateY(-1px); }
.brand em { color: var(--emerald); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.94rem; color: var(--text-dim); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--emerald); background: rgba(46, 230, 166, 0.09);
  border: 1px solid rgba(46, 230, 166, 0.22); padding: 6px 14px; border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 800; max-width: 880px; margin: 0 auto 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--emerald), var(--blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.14rem; color: var(--text-dim); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-search {
  max-width: 560px; margin: 36px auto 0; position: relative;
}
.hero-search input {
  width: 100%; padding: 16px 18px 16px 50px; font-size: 1rem;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font-family: var(--font);
}
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.12); }
.hero-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; margin-top: 56px;
}
.stat { background: var(--navy-800); padding: 26px 20px; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat .num em { color: var(--emerald); font-style: normal; }
.stat .label { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- Section headers ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--text-dim); margin-top: 10px; max-width: 560px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Category grid ---------- */
.cat-group { margin-bottom: 30px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-group-title {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); margin: 0 0 16px; display: flex; align-items: center; gap: 12px;
}
.cat-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.f-group-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 16px 0 4px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--navy-800); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px; transition: all 0.18s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.cat-card:hover { border-color: var(--emerald); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(46, 230, 166, 0.1); color: var(--emerald);
  display: grid; place-items: center;
}
.cat-card h3 { font-size: 1.06rem; font-weight: 700; }
.cat-card p { font-size: 0.88rem; color: var(--text-faint); line-height: 1.5; }
.cat-card .cat-count { font-size: 0.82rem; color: var(--emerald); font-weight: 600; margin-top: auto; }

/* ---------- Agency cards ---------- */
.agency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agency-card {
  background: var(--navy-800); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px; transition: all 0.18s ease;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.agency-card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.agency-card.is-spotlight { border-color: rgba(245, 196, 81, 0.35); }
.agency-card.is-spotlight::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.agency-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.agency-logo {
  width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  color: #04261a; letter-spacing: -0.02em;
}
.agency-meta h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.agency-meta .loc { font-size: 0.82rem; color: var(--text-faint); display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.spotlight-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gold); background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.3); padding: 3px 9px; border-radius: 100px;
}
.agency-card .tagline { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 14px; line-height: 1.5; flex-grow: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 0.74rem; font-weight: 600; color: var(--text-dim);
  background: var(--navy-700); border: 1px solid var(--line-soft);
  padding: 4px 9px; border-radius: 7px;
}
.agency-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.agency-foot .view { font-size: 0.88rem; font-weight: 600; color: var(--emerald); display: flex; align-items: center; gap: 5px; }
.agency-card:hover .view svg { transform: translateX(3px); }
.agency-foot .view svg { transition: transform 0.15s; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 700; color: var(--emerald); }
.verified svg { color: var(--emerald); }

/* Proof callout on agency profile */
.proof-box {
  background: rgba(46, 230, 166, 0.06); border: 1px solid rgba(46, 230, 166, 0.25);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 26px;
}
.proof-head { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--emerald); font-size: 0.95rem; margin-bottom: 6px; }
.proof-box p { color: var(--text) !important; margin: 0 0 8px !important; font-size: 0.94rem; }
.proof-box a { color: var(--emerald); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 5px; }
.proof-box a:hover { text-decoration: underline; }
.proof-box.is-pending { background: rgba(245, 196, 81, 0.06); border-color: rgba(245, 196, 81, 0.28); }
.proof-box.is-pending .proof-head { color: var(--gold); }

/* ---------- Directory layout ---------- */
.dir-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.filters {
  background: var(--navy-800); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px; position: sticky; top: 90px;
}
.filters h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.f-opt { display: flex; align-items: center; gap: 9px; padding: 7px 0; cursor: pointer; font-size: 0.9rem; color: var(--text-dim); transition: color 0.15s; }
.f-opt:hover { color: var(--text); }
.f-opt input { accent-color: var(--emerald); width: 15px; height: 15px; cursor: pointer; }
.f-opt .cnt { margin-left: auto; font-size: 0.78rem; color: var(--text-faint); }
.f-opt.checked { color: var(--text); }
.filter-clear { font-size: 0.85rem; color: var(--emerald); cursor: pointer; font-weight: 600; background: none; border: none; padding: 0; }

.dir-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.dir-search { position: relative; flex: 1; min-width: 220px; }
.dir-search input {
  width: 100%; padding: 11px 14px 11px 40px; font-size: 0.94rem;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--font);
}
.dir-search input:focus { outline: none; border-color: var(--emerald); }
.dir-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.dir-count { font-size: 0.9rem; color: var(--text-faint); white-space: nowrap; }
.dir-count b { color: var(--text); }
.dir-sort { background: var(--navy-800); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 14px; font-family: var(--font); font-size: 0.9rem; cursor: pointer; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600;
  background: rgba(46, 230, 166, 0.1); border: 1px solid rgba(46, 230, 166, 0.25);
  color: var(--emerald); padding: 5px 11px; border-radius: 100px; cursor: pointer;
}
.chip:hover { background: rgba(46, 230, 166, 0.18); }

.empty { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty h3 { color: var(--text); font-size: 1.2rem; margin-bottom: 8px; }

.mobile-filter-btn { display: none; }

/* ---------- Agency detail page ---------- */
.detail-hero { padding: 44px 0 0; }
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--emerald); }
.detail-head { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.detail-logo {
  width: 76px; height: 76px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; color: #04261a;
}
.detail-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.detail-head .sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 6px; }
.detail-head .meta-row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; color: var(--text-faint); font-size: 0.9rem; }
.detail-head .meta-row span { display: flex; align-items: center; gap: 6px; }
.detail-actions { margin-left: auto; display: flex; gap: 12px; }

.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 36px; margin-top: 44px; align-items: start; }
.detail-main h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.detail-main p { color: var(--text-dim); margin-bottom: 26px; line-height: 1.7; }
.svc-list { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-pill {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  background: var(--navy-700); border: 1px solid var(--line); padding: 8px 14px; border-radius: 9px;
}
.detail-side { background: var(--navy-800); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.detail-side .sk { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.detail-side .sk:last-of-type { border-bottom: none; }
.detail-side .sk .k { color: var(--text-faint); }
.detail-side .sk .v { color: var(--text); font-weight: 600; text-align: right; }
.detail-side .cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; justify-content: flex-end; }
.detail-side .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(46, 230, 166, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; position: relative; }
.cta-band p { color: var(--text-dim); margin: 12px auto 26px; max-width: 480px; position: relative; }
.cta-band .hero-actions { position: relative; }

/* ---------- Submit form ---------- */
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-card { background: var(--navy-800); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; }
.fg { margin-bottom: 20px; }
.fg label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.fg label .req { color: var(--emerald); }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 12px 14px; font-size: 0.94rem; font-family: var(--font);
  background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
}
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.1); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg .hint { font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }
.fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-opt { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--navy-900); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 0.88rem; color: var(--text-dim); }
.check-opt input { width: 15px; height: 15px; accent-color: var(--emerald); }
.check-opt:has(input:checked) { border-color: var(--emerald); color: var(--text); }
.form-note { font-size: 0.85rem; color: var(--text-faint); margin-top: 18px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 40px; padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 38px; }
.footer-brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.footer-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--emerald); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 0.84rem; color: var(--text-faint); }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-faint); max-width: 720px; line-height: 1.6; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .agency-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .agency-grid { grid-template-columns: 1fr; }
  .dir-wrap { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; top: 0; z-index: 60; border-radius: 0; overflow-y: auto; padding-top: 24px; }
  .filters.open { display: block; }
  .mobile-filter-btn { display: inline-flex; }
  .fg-grid, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-actions { margin-left: 0; width: 100%; }
  .cta-band { padding: 34px 22px; }
}
