/* ============================================================
   TrafficSwap — Main Stylesheet
   Design: Clean Blue + Dark Navy Dashboard
   ============================================================ */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37,99,235,0.15);
  --success: #16a34a;
  --success-light: #22c55e;
  --warning: #d97706;
  --danger: #dc2626;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --navy-light: #334155;
  --text: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 32px rgba(0,0,0,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-main); font-weight: 700; line-height: 1.25; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { display: block; max-width: 100%; }

/* ── PUBLIC NAVBAR ───────────────────────────────────────── */
.pub-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.pub-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.pub-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-main); font-size: 1.25rem; font-weight: 800;
  color: var(--navy);
}
.pub-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.pub-logo-icon svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 2.5; }
.pub-nav-links { display: flex; align-items: center; gap: .25rem; }
.pub-nav-links a {
  padding: .45rem .9rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--text-mid);
  transition: all var(--transition);
}
.pub-nav-links a:hover, .pub-nav-links a.active { color: var(--primary); background: var(--primary-glow); }
.pub-nav-auth { display: flex; align-items: center; gap: .5rem; }
.btn-nav-login {
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--primary);
  border: 1.5px solid var(--primary); transition: all var(--transition);
}
.btn-nav-login:hover { background: var(--primary-glow); color: var(--primary); }
.btn-nav-signup {
  padding: .45rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: white;
  background: var(--primary); border: 1.5px solid var(--primary);
  transition: all var(--transition);
}
.btn-nav-signup:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

/* ── DASHBOARD NAVBAR ────────────────────────────────────── */
.dash-nav {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 0 2rem; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.dash-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.dash-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-main); font-size: 1.3rem; font-weight: 800;
  color: white;
}
.dash-logo span { color: var(--primary-light); }
.dash-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.dash-logo-icon svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 2.5; }
.dash-nav-links { display: flex; align-items: center; gap: .1rem; }
.dash-nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.dash-nav-links a:hover, .dash-nav-links a.active {
  color: white; background: rgba(255,255,255,.1);
}
.dash-nav-links a svg { width: 16px; height: 16px; }
.dash-nav-user { display: flex; align-items: center; gap: .75rem; }
.dash-credit-badge {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: .35rem .9rem;
  font-size: .825rem; font-weight: 700; color: #fbbf24;
  display: flex; align-items: center; gap: 5px;
}
.btn-logout {
  display: flex; align-items: center; gap: 5px;
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.btn-logout:hover { color: #f87171; background: rgba(239,68,68,.1); }

/* ── MAIN CONTAINERS ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-dash { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-body { padding: 2.5rem 0; }

/* ── HERO SECTION ────────────────────────────────────────── */
.hero {
  background: white; border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { flex: 1; }
.hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: .75rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 1.75rem; max-width: 420px; }
.hero-img { flex: 0 0 280px; }
.hero-img img { width: 100%; }

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.5rem;
}
.stat-icon.blue  { background: rgba(37,99,235,.1); }
.stat-icon.green { background: rgba(22,163,74,.1); }
.stat-icon.orange{ background: rgba(234,88,12,.1); }
.stat-icon.purple{ background: rgba(124,58,237,.1); }
.stat-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: .3rem; }
.stat-value { font-family: var(--font-main); font-size: 1.85rem; font-weight: 800; color: var(--navy); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.section-title { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; }
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 2rem;
}
.how-card {
  background: white; border-radius: var(--radius);
  padding: 1.75rem 1.25rem; text-align: center;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.how-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.how-icon { font-size: 2.25rem; margin-bottom: .75rem; }
.how-title { font-family: var(--font-main); font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .5rem; }
.how-desc { font-size: .83rem; color: var(--text-mid); line-height: 1.5; }
.how-more { color: var(--primary); font-size: .8rem; font-weight: 700; display: block; margin-top: .5rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: .7rem 1.6rem; border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: .9rem; font-weight: 700;
  cursor: pointer; border: none; transition: all var(--transition);
  text-align: center; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,.35); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-glow); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-full { width: 100%; }
.btn-green-full {
  width: 100%; padding: .95rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--success), #15803d);
  color: white; font-family: var(--font-main); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: all var(--transition); letter-spacing: .03em;
}
.btn-green-full:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,.4); }
.btn-blue-full {
  width: 100%; padding: .95rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; font-family: var(--font-main); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: all var(--transition); letter-spacing: .03em;
}
.btn-blue-full:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.4); }

/* ── AUTH FORMS ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e8eef8 100%);
}
.auth-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem; width: 100%; max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  border: 1px solid var(--border);
}
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 1.75rem; }
.auth-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.auth-logo-icon svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2.5; }
.auth-logo-text { font-family: var(--font-main); font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.auth-title { text-align: center; margin-bottom: .5rem; }
.auth-title h2 { font-family: var(--font-main); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.auth-title p { font-size: .875rem; color: var(--text-mid); margin-top: .25rem; }
.auth-title svg { width: 28px; height: 28px; color: var(--primary); margin: 0 auto .5rem; display: block; }
.auth-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .825rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.input-icon svg { width: 17px; height: 17px; }
.form-input {
  width: 100%; padding: .7rem .9rem .7rem 2.6rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: var(--font-body); color: var(--text);
  background: #f8fafc; transition: all var(--transition); outline: none;
}
.form-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-input::placeholder { color: var(--text-light); }
.form-hint { font-size: .775rem; color: var(--text-light); margin-top: .3rem; }
.form-link { text-align: center; font-size: .85rem; color: var(--text-mid); margin-top: 1rem; }
.form-link a { font-weight: 600; }
.cf-turnstile { margin: 1rem 0; }

/* ── DASHBOARD STATS ─────────────────────────────────────── */
.dash-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat {
  background: white; border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.dash-stat-icon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.dsi-blue  { background: rgba(37,99,235,.1); color: var(--primary); }
.dsi-green { background: rgba(22,163,74,.1); color: var(--success); }
.dsi-orange{ background: rgba(234,88,12,.1); color: #ea580c; }
.dsi-gold  { background: rgba(234,179,8,.1); color: #ca8a04; }
.dash-stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-bottom: .25rem; }
.dash-stat-value { font-family: var(--font-main); font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }

/* ── ADS GRID ────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 { font-family: var(--font-main); font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.ad-card {
  background: white; border-radius: var(--radius);
  padding: 1.15rem; box-shadow: var(--card-shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ad-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.ad-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.ad-num { font-size: .73rem; font-weight: 700; color: var(--text-light); }
.ad-badge {
  font-size: .68rem; font-weight: 700; padding: .2rem .55rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-active   { background: rgba(22,163,74,.1); color: var(--success); }
.badge-inactive { background: rgba(148,163,184,.1); color: var(--text-light); }
.badge-pending  { background: rgba(234,179,8,.1); color: #b45309; }
.ad-title { font-family: var(--font-main); font-size: .88rem; font-weight: 700; color: var(--navy); }
.ad-meta { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; }
.ad-meta-item { display: flex; align-items: center; gap: 4px; color: var(--text-mid); }
.ad-meta-item svg { width: 13px; height: 13px; color: var(--primary); }
.ad-meta-item.credit { color: var(--primary); font-weight: 700; }
.ad-meta-item.timer { color: var(--text-mid); }
.ad-status-row { font-size: .75rem; color: var(--success); font-weight: 600; }
.ad-status-inactive { color: var(--text-light); }
.btn-view-ad {
  width: 100%; padding: .55rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; font-family: var(--font-main); font-size: .825rem; font-weight: 700;
  cursor: pointer; border: none; transition: all var(--transition); margin-top: auto;
}
.btn-view-ad:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-view-ad:disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-get-credit {
  width: 100%; padding: .55rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--success), #15803d);
  color: white; font-family: var(--font-main); font-size: .825rem; font-weight: 700;
  cursor: pointer; border: none; transition: all var(--transition); display: none;
}
.btn-get-credit:hover { box-shadow: 0 4px 14px rgba(22,163,74,.35); }

/* ── VIEW AD PAGE ────────────────────────────────────────── */
.view-ad-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: var(--bg);
}
.view-ad-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; width: 100%; max-width: 520px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12); text-align: center;
}
.timer-ring {
  width: 140px; height: 140px; margin: 1.5rem auto;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.timer-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.timer-ring-track { fill: none; stroke: var(--border); stroke-width: 8; }
.timer-ring-fill { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.timer-number { font-family: var(--font-main); font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.timer-label { font-size: .8rem; color: var(--text-light); font-weight: 600; }
.view-ad-site { font-size: .85rem; color: var(--text-mid); margin-bottom: 1.5rem; }
.view-ad-site a { font-weight: 600; }

/* ── ADVERTISE FORM ──────────────────────────────────────── */
.form-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--card-shadow); border: 1px solid var(--border);
  max-width: 620px;
}
.form-card h2 { font-family: var(--font-main); font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; }
.form-input-plain {
  width: 100%; padding: .7rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: var(--font-body); color: var(--text);
  background: #f8fafc; transition: all var(--transition); outline: none;
}
.form-input-plain:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-textarea {
  resize: vertical; min-height: 90px;
}
.duration-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.duration-opt input[type="radio"] { display: none; }
.duration-opt label {
  display: flex; flex-direction: column; align-items: center;
  padding: .85rem .5rem; border-radius: var(--radius-sm);
  border: 2px solid var(--border); cursor: pointer; transition: all var(--transition);
  font-family: var(--font-main); font-size: .85rem; font-weight: 700; color: var(--text-mid);
}
.duration-opt label span { font-size: .72rem; font-weight: 600; color: var(--text-light); margin-top: .25rem; }
.duration-opt input:checked + label { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.credit-preview {
  background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(124,58,237,.07));
  border: 1px dashed var(--primary); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.credit-preview-label { font-size: .82rem; color: var(--text-mid); font-weight: 600; }
.credit-preview-val { font-family: var(--font-main); font-size: 1.15rem; font-weight: 800; color: var(--primary); }

/* ── DAILY BONUS ─────────────────────────────────────────── */
.bonus-card {
  background: white; border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  max-width: 480px; margin: 0 auto;
}
.bonus-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.bonus-progress-bar {
  height: 10px; background: var(--border); border-radius: 999px;
  overflow: hidden; margin: 1.25rem 0;
}
.bonus-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 999px; transition: width .5s ease; }

/* ── PROFILE ─────────────────────────────────────────────── */
.profile-top {
  display: flex; align-items: center; gap: 1.5rem;
  background: white; border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--card-shadow);
  border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.avatar-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main); font-size: 1.75rem; font-weight: 800; color: white;
  flex-shrink: 0;
}
.profile-name { font-family: var(--font-main); font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.profile-email { font-size: .875rem; color: var(--text-mid); }
.level-bar { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.level-badge {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white; border-radius: 20px; padding: .2rem .75rem;
  font-family: var(--font-main); font-size: .78rem; font-weight: 700;
}
.level-progress { flex: 1; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.level-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #7c3aed); border-radius: 999px; }
.level-text { font-size: .78rem; color: var(--text-light); white-space: nowrap; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.info-card {
  background: white; border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
}
.info-val { font-family: var(--font-main); font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.info-lbl { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); letter-spacing: .07em; margin-top: .25rem; }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-nav {
  background: var(--navy); padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-nav .logo { font-family: var(--font-main); font-size: 1.1rem; font-weight: 800; color: white; }
.admin-nav .logo span { color: #f59e0b; }
.admin-nav-links { display: flex; gap: .5rem; }
.admin-nav-links a {
  padding: .4rem .85rem; border-radius: var(--radius-sm);
  font-size: .835rem; font-weight: 600; color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.admin-nav-links a:hover, .admin-nav-links a.active { color: white; background: rgba(255,255,255,.1); }
.admin-body { padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.admin-stat { background: white; border-radius: var(--radius-sm); padding: 1.25rem; box-shadow: var(--card-shadow); border-left: 4px solid var(--primary); }
.admin-stat-val { font-family: var(--font-main); font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.admin-stat-lbl { font-size: .78rem; font-weight: 600; text-transform: uppercase; color: var(--text-light); letter-spacing: .07em; }
.table-wrap { background: white; border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th { background: var(--bg); padding: .85rem 1rem; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mid); text-align: left; border-bottom: 1px solid var(--border); }
tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.alert-success { background: rgba(22,163,74,.1); color: var(--success); border: 1px solid rgba(22,163,74,.2); }
.alert-error   { background: rgba(220,38,38,.1); color: var(--danger); border: 1px solid rgba(220,38,38,.2); }
.alert-info    { background: rgba(37,99,235,.1); color: var(--primary); border: 1px solid rgba(37,99,235,.2); }
.alert-warning { background: rgba(217,119,6,.1); color: var(--warning); border: 1px solid rgba(217,119,6,.2); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: white; border-top: 1px solid var(--border);
  padding: 1.25rem; text-align: center;
  font-size: .82rem; color: var(--text-light); margin-top: auto;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-mid); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty h3 { font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.empty p { font-size: .875rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ads-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; }
  .hero-img { flex: none; order: -1; }
  .hero h1 { font-size: 1.8rem; }
  .pub-nav-links { display: none; }
  .dash-nav-links a span { display: none; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .info-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .ads-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
