:root {
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --accent: #1d4ed8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --success: #16a34a;
  --warning: #ca8a04;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.6;
}

/* ── Brand ─────────────────────────────────────────────────────── */
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
.brand-accent { color: var(--primary); }
.brand-icon { color: var(--primary); font-size: 1.4rem; line-height: 1; }
.navbar-brand:hover .brand-accent { color: var(--accent); }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar { padding: 0.75rem 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.nav-link { color: var(--text-muted) !important; font-size: 0.925rem; padding: 0.4rem 0.75rem !important; border-radius: 6px; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 1.25rem;
  border: 1px solid #bfdbfe;
}
.hero-title { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -1px; color: var(--text-main); }
.hero-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 540px; }

/* ── Search Box ─────────────────────────────────────────────────── */
.search-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(37,99,235,.08);
  padding: 2rem;
  margin-top: -1rem;
}
.search-tabs .nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted) !important;
  border-radius: 8px !important; padding: 0.4rem 0.9rem !important;
}
.search-tabs .nav-link.active {
  background: var(--primary) !important; color: #fff !important;
}
.search-input-group { position: relative; }
.search-input {
  height: 52px; border-radius: 10px !important; border: 1.5px solid var(--border);
  font-size: 1rem; padding-right: 130px; padding-left: 1.1rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); outline: none; }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 40px; border-radius: 8px !important;
  background: var(--primary); color: #fff; border: none;
  padding: 0 1.2rem; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; gap: 6px;
}
.search-btn:hover { background: var(--accent); }
.search-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Result cards ───────────────────────────────────────────────── */
#result-area { transition: all .3s; }
.result-card {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.result-header {
  background: var(--primary); color: #fff; padding: 1rem 1.25rem;
}
.result-header h5 { font-weight: 700; font-size: 1rem; margin: 0; }
.result-header .badge-type { background: rgba(255,255,255,.25); font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; }
.result-body { padding: 1.25rem; }
.info-row { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--bg-light); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; min-width: 160px; text-transform: uppercase; letter-spacing: 0.4px; }
.info-value { font-size: 0.9rem; color: var(--text-main); font-weight: 500; word-break: break-all; }
.info-value.masked { color: var(--text-muted); font-style: italic; font-weight: 400; }
.director-card {
  background: var(--bg-light); border-radius: 8px; padding: 0.85rem 1rem;
  border: 1px solid var(--border); margin-bottom: 0.6rem;
}
.director-name { font-weight: 600; font-size: 0.9rem; }
.director-din { font-size: 0.78rem; color: var(--primary); background: var(--primary-light); padding: 1px 7px; border-radius: 6px; cursor: pointer; transition: background .15s; }
.director-din:hover { background: #bfdbfe; }
.director-detail { font-size: 0.82rem; color: var(--text-muted); }
.contact-locked { color: var(--warning); font-size: 0.8rem; }

/* ── Match list ─────────────────────────────────────────────────── */
.match-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 0.4rem; cursor: pointer; transition: background .15s;
}
.match-item:hover { background: var(--primary-light); border-color: #bfdbfe; }
.match-cin { font-size: 0.75rem; color: var(--text-muted); }
.match-name { font-size: 0.9rem; font-weight: 600; }

/* ── Spinners / states ──────────────────────────────────────────── */
#loading-state { display: none; }
.spinner-ring {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stats ──────────────────────────────────────────────────────── */
.stat-card {
  text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff;
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Feature cards ──────────────────────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 0.75rem;
}
.feature-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 10px; }

/* ── CTA strip ──────────────────────────────────────────────────── */
.cta-strip {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

/* ── Login notice ───────────────────────────────────────────────── */
.login-notice {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 0.85rem; color: #92400e;
  display: flex; align-items: center; gap: 8px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: #fff; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.price-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 2rem;
  transition: box-shadow .2s;
}
.price-card:hover { box-shadow: 0 4px 20px rgba(37,99,235,.1); }
.price-card.featured { border-color: var(--primary); border-width: 2px; }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--text-main); }
.price-unit { font-size: 0.9rem; color: var(--text-muted); }

/* ── Utilities ──────────────────────────────────────────────────── */
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; }
.text-primary-custom { color: var(--primary) !important; }
.bg-light-custom { background: var(--bg-light); }
.rounded-custom { border-radius: var(--radius) !important; }

@media (max-width: 768px) {
  .hero-section { padding: 3rem 0 2rem; }
  .search-card { padding: 1.25rem; }
  .info-label { min-width: 120px; }
}