/* =====================================================================
   WebValue Design System — Social Blade Inspired
   Clean, professional, data-focused. No emoji. No gradients. No glass.
   Font: Barlow (Google Fonts)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@400;600;700;800&display=swap');

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  background: #f0f0f0;
  color: #222;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── Header / Navbar ──────────────────────────────────────────────── */
.site-header {
  background: #1a1a2e;
  border-bottom: 3px solid #c0392b;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 54px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tiny bar-chart SVG logo — no emoji */
.logo-icon svg { width: 18px; height: 18px; fill: white; }

.logo-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-wordmark span { color: #c0392b; }

/* Center search */
.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.header-search-form {
  display: flex;
  height: 34px;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #555;
}

.header-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 0.75rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: #333;
  background: transparent;
}

.header-search-form button {
  background: #c0392b;
  border: none;
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.header-search-form button:hover { background: #a93226; }

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.header-nav a {
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 0.9rem;
  height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-nav a:hover, .header-nav a.active {
  color: #fff;
  border-bottom-color: #c0392b;
}

/* ── Page Sub-nav / Tab Bar ───────────────────────────────────────── */
.page-tabs {
  background: #1a1a2e;
  border-bottom: 1px solid #2c2c4a;
}

.page-tabs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}

.page-tabs a {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.1rem;
  border-bottom: 2px solid transparent;
  display: block;
  transition: color 0.15s, border-color 0.15s;
}

.page-tabs a:hover, .page-tabs a.active-tab {
  color: #fff;
  border-bottom-color: #c0392b;
}

/* ── Main Layout ──────────────────────────────────────────────────── */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ── HOME: Hero Search Section ────────────────────────────────────── */
.hero-section {
  background: linear-gradient(165deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: calc(75vh - 57px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Subtle wave lines in background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='none' stroke='rgba(192,57,43,0.15)' stroke-width='2' d='M0,100 C360,50 720,150 1440,80'/%3E%3Cpath fill='none' stroke='rgba(192,57,43,0.1)' stroke-width='2' d='M0,140 C400,80 900,160 1440,120'/%3E%3Cpath fill='none' stroke='rgba(192,57,43,0.08)' stroke-width='1.5' d='M0,60 C300,20 800,120 1440,40'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  position: relative;
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Hero search bar */
.hero-search-wrap {
  width: 90%;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.hero-search-form {
  display: flex;
  height: 48px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.12);
}

.hero-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 1.25rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
}

.hero-search-form input::placeholder { color: #aaa; }

.hero-search-form button {
  background: #c0392b;
  border: none;
  color: #fff;
  padding: 0 2rem;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s;
}

.hero-search-form button:hover { background: #a93226; }

.hero-search-hint {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  margin-top: 0.6rem;
}

/* ── Alert ────────────────────────────────────────────────────────── */
.alert-error {
  background: #fdf3f2;
  border: 1px solid #e8a09a;
  border-left: 4px solid #c0392b;
  color: #7b241c;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* ── Stats Strip (homepage) ───────────────────────────────────────── */
.platform-stats {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.platform-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
}

.pstat-item {
  padding: 1.25rem 2rem;
  text-align: center;
  border-right: 1px solid #eee;
  flex: 1;
}

.pstat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}

.pstat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── Section Header ───────────────────────────────────────────────── */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-hdr h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a2e;
}

.section-hdr h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: #c0392b;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ── Homepage Top Sites Table ──────────────────────────────────────── */
.top-sites-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.top-sites-header {
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem 1.25rem;
}

.top-sites-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.site-entry {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.1s, border-color 0.1s;
  cursor: pointer;
}

.site-entry:hover {
  background: #f8f0f0;
  border-color: #e0c0be;
}

.site-favicon {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
}

.site-entry-domain {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-entry-cat {
  font-size: 0.68rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── RESULTS PAGE ─────────────────────────────────────────────────── */

/* Domain Identity Header */
.domain-header {
  background: #1a1a2e;
  border-bottom: 3px solid #c0392b;
  padding: 1.25rem 1.5rem;
}

.domain-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.domain-favicon-lg {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 4px;
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}

.domain-header-info h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.domain-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.meta-chip {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.meta-chip.mock    { background: #e67e22; color: #fff; }
.meta-chip.redis   { background: #27ae60; color: #fff; }
.meta-chip.db      { background: #2980b9; color: #fff; }
.meta-chip.live    { background: #16a085; color: #fff; }

.meta-updated {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* Grade Badge */
.grade-badge {
  margin-left: auto;
  min-width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  border-radius: 4px;
  flex-shrink: 0;
}

.grade-badge .grade-letter {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.grade-badge .grade-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* Grade color tiers */
.grade-ap  { border-color: #1abc9c; color: #1abc9c; }
.grade-a   { border-color: #2ecc71; color: #2ecc71; }
.grade-b   { border-color: #f1c40f; color: #f1c40f; }
.grade-c   { border-color: #e67e22; color: #e67e22; }
.grade-d   { border-color: #e74c3c; color: #e74c3c; }

/* ── Results Layout (2-col) ───────────────────────────────────────── */
.results-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.sidebar-box-title {
  background: #1a1a2e;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.sidebar-links li a:hover { background: #fdf5f5; color: #c0392b; }

.sidebar-links li:last-child a { border-bottom: none; }

.sidebar-favicon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Quick stats sidebar */
.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
}

.sidebar-stat-row:last-child { border-bottom: none; }
.sidebar-stat-label { color: #777; }
.sidebar-stat-value { font-weight: 700; color: #1a1a2e; }

/* ── Main Content Area ───────────────────────────────────────────── */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Creator / Website Stats Giant Cards ─────────────────────────── */
.stats-panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.stats-panel-header {
  background: #1a1a2e;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
}

.stats-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #e8e8e8;
}

.stats-card {
  padding: 1.25rem 1rem;
  border-right: 1px solid #e8e8e8;
  text-align: center;
}

.stats-card:last-child { border-right: none; }

.stats-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.3rem;
}

.stats-card-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1a2e;
}

.stats-card-value.green  { color: #27ae60; }
.stats-card-value.red    { color: #c0392b; }
.stats-card-value.blue   { color: #2980b9; }
.stats-card-value.orange { color: #e67e22; }

.stats-card-sub {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.25rem;
}

/* ── Revenue Breakdown Table ──────────────────────────────────────── */
.revenue-table-wrap {
  padding: 0;
}

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

.data-table thead {
  background: #f5f5f5;
}

.data-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 2px solid #ddd;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  vertical-align: middle;
}

.data-table tbody tr:hover { background: #fafafa; }
.data-table tbody tr:last-child td { border-bottom: none; }

.td-platform {
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.td-range-low  { color: #888; font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; }
.td-range-high { color: #27ae60; font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 600; }

/* Revenue total row */
.data-table tfoot td {
  background: #1a1a2e;
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border: none;
}

/* ── Traffic Sources Bar ──────────────────────────────────────────── */
.traffic-sources {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.traffic-source-item {}

.ts-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.ts-name { font-weight: 600; color: #333; }
.ts-pct  { font-weight: 700; color: #1a1a2e; }

.ts-bar-track {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.ts-bar-fill {
  height: 100%;
  border-radius: 3px;
}

/* Source colors */
.ts-organic  .ts-bar-fill { background: #27ae60; }
.ts-direct   .ts-bar-fill { background: #2980b9; }
.ts-referral .ts-bar-fill { background: #8e44ad; }
.ts-social   .ts-bar-fill { background: #e67e22; }
.ts-paid     .ts-bar-fill { background: #c0392b; }

/* ── Domain Info Grid ────────────────────────────────────────────── */
.domain-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e8e8e8;
}

.domain-info-cell {
  padding: 1rem;
  border-right: 1px solid #e8e8e8;
}

.domain-info-cell:last-child { border-right: none; }

.di-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 0.35rem;
}

.di-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
}

.di-sub {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 0.15rem;
}

/* ── Keywords Section ───────────────────────────────────────────── */
.keywords-wrap {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kw-tag {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #444;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.1s, border-color 0.1s;
}

.kw-tag:hover { background: #fdf0f0; border-color: #c0392b; color: #c0392b; }

/* ── Disclaimer ─────────────────────────────────────────────────── */
.disclaimer {
  background: #fffbe6;
  border: 1px solid #f5d76e;
  border-left: 4px solid #f1c40f;
  color: #7d6608;
  padding: 0.7rem 1rem;
  border-radius: 2px;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  background: #0f0f1e;
  color: rgba(255,255,255,0.6);
  padding: 0;
  margin-top: 0;
  font-size: 0.9rem;
}

.footer-top {
  background: #1a1a2e;
  border-top: 3px solid #c0392b;
  padding: 3rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-text {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-email {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-email:hover { color: #c0392b; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: rgba(192,57,43,0.2);
  border-color: #c0392b;
  color: #fff;
}

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: #c0392b;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: #c0392b; }

.footer-bottom-bar {
  background: #0a0a18;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── Loading Spinner ─────────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #c0392b;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.loading-domain {
  color: #c0392b;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

/* ── Chart area (CSS bars as placeholder) ───────────────────────── */
.chart-placeholder {
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.chart-bar {
  flex: 1;
  background: #c0392b;
  opacity: 0.7;
  border-radius: 2px 2px 0 0;
  transition: opacity 0.2s;
  min-height: 4px;
}

.chart-bar:hover { opacity: 1; }

/* ── Hamburger Menu Toggle ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .results-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  /* Header & Nav */
  .header-inner {
    gap: 0.75rem;
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 1rem;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 0 0.5rem;
  }

  .nav-toggle { display: block; }

  .header-nav {
    display: none;
    flex-direction: column;
    order: 4;
    width: 100%;
    background: #12122a;
    border-top: 1px solid #2c2c4a;
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .header-nav.open { display: flex; }

  .header-nav a {
    height: auto;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid #2c2c4a;
    font-size: 0.9rem;
  }

  .header-nav a:last-child { border-bottom: none; }

  .nav-auth-link { margin-left: 0 !important; text-align: center; }

  /* Page tabs */
  .page-tabs-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-tabs-inner::-webkit-scrollbar { display: none; }
  .page-tabs a { white-space: nowrap; flex-shrink: 0; }

  /* Hero */
  .hero-section { padding: 2.5rem 1rem 3rem; min-height: calc(75vh - 57px); }
  .hero-sub { font-size: 0.9rem; }
  .hero-search-form { height: 46px; }
  .hero-search-form button { padding: 0 1.25rem; font-size: 0.9rem; }

  /* Platform stats strip */
  .platform-stats-inner { flex-wrap: wrap; padding: 0 0.75rem; }
  .pstat-item { padding: 0.75rem 1rem; flex: 1 1 33.33%; min-width: 0; }
  .pstat-value { font-size: 1.5rem; }

  /* Stats cards and grids */
  .stats-cards-row { grid-template-columns: 1fr 1fr; }
  .domain-info-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-top { padding: 2rem 1rem 1.5rem; }
  .footer-bottom-bar { padding: 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.3rem; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .footer-brand-text { font-size: 0.82rem; }

  /* Policy/legal pages */
  .policy-page { padding: 1.5rem 1rem 2rem; }
  .policy-hero { padding: 2rem 1rem; }
  .policy-hero h1 { font-size: 1.8rem; }

  /* Domain header */
  .domain-header { padding: 1rem; }
  .domain-header-info h1 { font-size: 1.5rem; }
  .grade-badge { min-width: 60px; height: 60px; }
  .grade-badge .grade-letter { font-size: 1.5rem; }

  /* Revenue table scrollable */
  .revenue-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }

  /* Traffic sources */
  .traffic-sources { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 540px) {
  /* Stats cards */
  .stats-cards-row { grid-template-columns: 1fr; }
  .stats-card-value { font-size: 1.8rem; }

  /* Domain info */
  .domain-info-grid { grid-template-columns: 1fr; }
  .domain-info-cell { border-right: none; border-bottom: 1px solid #e8e8e8; }
  .domain-info-cell:last-child { border-bottom: none; }

  /* Platform stats */
  .pstat-item { flex: 1 1 50%; }

  /* Domain header */
  .domain-header-inner { gap: 0.75rem; }
  .domain-header-info h1 { font-size: 1.3rem; }
  .domain-favicon-lg { width: 40px; height: 40px; }
  .grade-badge { min-width: 50px; height: 50px; margin-left: 0; }
  .grade-badge .grade-letter { font-size: 1.2rem; }

  /* Hero */
  .hero-section { padding: 2rem 0.75rem 2.5rem; min-height: calc(75vh - 57px); }
  .hero-tagline { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-sub { font-size: 0.85rem; }
  .hero-search-wrap { width: 95%; }
  .hero-search-form { height: 44px; flex-direction: column; height: auto; }
  .hero-search-form input { padding: 0.75rem 1rem; border-radius: 4px 4px 0 0; }
  .hero-search-form button { padding: 0.75rem; border-radius: 0 0 4px 4px; }

  /* Main wrap */
  .main-wrap { padding: 1rem 0.75rem; }

  /* Compare form in index (inline styles override) */
  .compare-search-form { flex-direction: column; }
  .compare-search-form input { width: 100%; }

  /* Social gate notice */
  .social-gate-notice { padding: 1.25rem 1rem; }

  /* SEO articles */
  .seo-content-section { padding: 2rem 0.75rem; }

  /* Footer mobile */
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-top { padding: 1.5rem 0.75rem 1.25rem; }
  .footer-bottom-bar { padding: 0.75rem; }
  .footer-col-title { margin-bottom: 0.5rem; }
  .footer-links { gap: 0.4rem; }

  /* Policy/legal pages */
  .policy-page { padding: 1rem 0.75rem 1.5rem; }
  .policy-hero { padding: 1.5rem 0.75rem; }
  .policy-hero h1 { font-size: 1.5rem; }
  .policy-section-title { font-size: 1rem; }
}

/* ── Auth Pages ─────────────────────────────────────────────────── */
.auth-page {
  background: linear-gradient(165deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  min-height: calc(100vh - 54px - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.auth-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  color: #777;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 0.3rem;
}

.auth-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: #222;
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: #c0392b;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.auth-btn-primary {
  background: #c0392b;
  color: #fff;
}

.auth-btn-primary:hover {
  background: #a93226;
}

.auth-btn-secondary {
  background: transparent;
  color: #c0392b;
  border: 2px solid #c0392b;
}

.auth-btn-secondary:hover {
  background: #fdf5f5;
}

.auth-btn-google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  font-weight: 600;
}

.auth-btn-google:hover {
  background: #f8f8f8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #bbb;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #777;
}

.auth-footer a {
  color: #c0392b;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.alert-success {
  background: #eafaf1;
  border: 1px solid #a3d9b1;
  border-left: 4px solid #27ae60;
  color: #1e8449;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ── Nav Auth Link ──────────────────────────────────────────────── */
.nav-auth-link {
  background: #c0392b !important;
  color: #fff !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: 3px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  border-bottom: none !important;
  height: auto !important;
  transition: background 0.15s;
}

.nav-auth-link:hover {
  background: #a93226 !important;
  border-bottom-color: transparent !important;
}

.nav-logout {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: #ccc !important;
}

.nav-logout:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* ── Blur / Gated Section ───────────────────────────────────────── */
.gated-section {
  position: relative;
}

.gated-section.blurred > .stats-panel {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.blur-overlay-content {
  background: rgba(26, 26, 46, 0.95);
  border: 2px solid #c0392b;
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.blur-overlay-icon {
  color: #c0392b;
  margin-bottom: 1rem;
}

.blur-overlay-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.blur-overlay-content p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blur-overlay-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blur-overlay-actions .auth-btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}

.blur-overlay-actions .auth-btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.blur-overlay-actions .auth-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ── Social Platform Login Gate ─────────────────────────────────── */
.social-gate-notice {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  margin-top: 1.25rem;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.social-gate-lock {
  color: #c0392b;
  margin-bottom: 0.75rem;
}

.social-gate-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.social-gate-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-gate-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SEO Content Section ────────────────────────────────────────── */
.seo-content-section {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 3rem 1.5rem;
  margin-top: 0;
}

.seo-content-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.seo-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1rem;
}

.seo-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #c0392b;
}

.seo-section-subtitle {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

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

.seo-article-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.seo-article-card:hover {
  border-color: #c0392b;
  box-shadow: 0 2px 12px rgba(192, 57, 43, 0.08);
}

.seo-article-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c0392b;
  margin-bottom: 0.5rem;
}

.seo-article-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
}

.seo-article-card p {
  color: #555;
  font-size: 0.84rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.seo-article-tips {
  list-style: none;
  padding: 0;
}

.seo-article-tips li {
  font-size: 0.8rem;
  color: #666;
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.seo-article-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  background: #c0392b;
  border-radius: 50%;
}

/* ── Responsive additions ───────────────────────────────────────── */
@media (max-width: 768px) {
  .seo-articles-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; }
  .blur-overlay-content { margin: 1rem; padding: 1.5rem; }
  .compare-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .compare-vs-col { display: none !important; }
  .delta-cards { grid-template-columns: 1fr 1fr; }
  .compare-search-form { flex-direction: column; }
  .revenue-banner { flex-direction: column !important; text-align: left !important; }
  .revenue-banner > div:last-child { text-align: left !important; }
}

@media (max-width: 540px) {
  .delta-cards { grid-template-columns: 1fr; }
  .seo-section-title { font-size: 1.2rem; }
  .auth-title { font-size: 1.4rem; }
}
