/* ========================================
   ExpertOps — Black & White Theme
   ======================================== */

:root {
  --bg:        #ffffff;
  --bg-2:      #f9fafb;
  --bg-card:   #f4f4f5;
  --bg-card-2: #ebebeb;
  --bg-input:  #ffffff;
  --border:    #d4d4d8;
  --border-2:  #e4e4e7;

  --text:      #111111;
  --text-2:    #52525b;
  --text-muted:#a1a1aa;

  --primary:   #111111;
  --primary-2: #3f3f46;

  --green:     #15803d;
  --yellow:    #a16207;
  --red:       #dc2626;
  --cyan:      #1d4ed8;
  --orange:    #c2410c;

  --grad:        linear-gradient(135deg, #111111, #3f3f46);
  --grad-green:  linear-gradient(135deg, #15803d, #166534);
  --grad-danger: linear-gradient(135deg, #dc2626, #b91c1c);
  --grad-cyan:   linear-gradient(135deg, #1d4ed8, #1e40af);

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow:    0 1px 6px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
p  { color: var(--text-2); }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-2); }

/* ── CONTAINER ─── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; color: var(--text);
  text-decoration: none; flex-shrink: 0; letter-spacing: -0.3px;
}
.brand-icon   { font-size: 18px; }
.brand-accent { color: var(--text); }
.nav-links    { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link-admin { color: var(--yellow) !important; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 12px;
  color: var(--text); cursor: pointer; font-size: 14px; font-family: var(--font);
  transition: var(--transition);
}
.nav-user-btn:hover { border-color: var(--text); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  min-width: 180px; display: none; box-shadow: var(--shadow-lg);
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px;
  color: var(--text-2); font-size: 14px;
}
.user-dropdown a:hover { background: var(--bg-card); color: var(--text); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.logout-link { color: var(--red) !important; }

.badge-pro {
  display: flex; align-items: center; gap: 6px;
  background: var(--text); border-radius: 20px;
  padding: 4px 12px; color: white;
  font-size: 12px; font-weight: 600;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }

/* ── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-xl { padding: 14px 28px; font-size: 16px; }

.btn-gradient {
  background: var(--text); color: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.btn-gradient:hover { background: #333; color: white; }

.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text); border-color: var(--text); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--text); color: white; border-color: var(--text); }

.btn-danger  { background: var(--red); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-cyan    { background: var(--cyan); color: white; }
.btn-green   { background: var(--green); color: white; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── CARDS ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card:hover { border-color: #aaa; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── FORMS — global element styles so bare input tags look modern ─── */
.form-group { margin-bottom: 18px; }
.form-label, label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  letter-spacing: 0.04em; text-transform: uppercase;
}

input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=number],
input[type=search],
input[type=tel],
select,
textarea,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid #d4d4d8;
  border-radius: 8px;
  color: #111111;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type=text]:hover,
input[type=email]:hover,
input[type=password]:hover,
input[type=url]:hover,
input[type=number]:hover,
input[type=search]:hover,
input[type=tel]:hover,
select:hover,
textarea:hover { border-color: #aaa; }

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=url]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}

input::placeholder, textarea::placeholder { color: #a1a1aa; }

input[type=checkbox],
input[type=radio],
input[type=submit],
input[type=button],
input[type=reset],
input[type=hidden] {
  width: auto; padding: 0; border: none; background: none;
  box-shadow: none; border-radius: 0; -webkit-appearance: auto; appearance: auto;
}

textarea { resize: vertical; min-height: 100px; }

.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group .form-input { padding-left: 42px; }

/* ── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-green  { background: #dcfce7; color: var(--green);  border: 1px solid #bbf7d0; }
.badge-yellow { background: #fef9c3; color: var(--yellow); border: 1px solid #fde68a; }
.badge-red    { background: #fee2e2; color: var(--red);    border: 1px solid #fecaca; }
.badge-blue   { background: #dbeafe; color: var(--cyan);   border: 1px solid #bfdbfe; }
.badge-cyan   { background: #e0f2fe; color: #0369a1;       border: 1px solid #bae6fd; }
.badge-gray   { background: var(--bg-card); color: var(--text-2); border: 1px solid var(--border); }
.badge-lg     { padding: 5px 14px; font-size: 12px; }

/* ── PROGRESS BARS ─── */
.progress { background: var(--bg-card-2); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-bar    { height: 100%; border-radius: 99px; transition: width 0.7s ease; }
.progress-green  { background: var(--green); }
.progress-yellow { background: var(--yellow); }
.progress-red    { background: var(--red); }

/* ── FLASH MESSAGES ─── */
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  border-bottom: 1px solid transparent;
}
.flash button { margin-left: auto; background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; opacity: 0.5; }
.flash-error   { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.flash-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.flash-info    { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }

/* ── TABLES ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-2); color: var(--text); }
tr:hover td { background: var(--bg-2); }
tr:last-child td { border-bottom: none; }

/* ── SECTION HEADERS ─── */
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 22px; margin-bottom: 6px; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 12px;
  color: var(--text-2); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
}

/* ── STAT CARDS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 12px; color: var(--text-2); }
.stat-icon  { font-size: 20px; margin-bottom: 4px; }

/* ── SEARCH BAR (HERO) ─── */
.hero-search-wrap { position: relative; max-width: 680px; margin: 0 auto; }
.hero-search {
  width: 100%; padding: 16px 150px 16px 52px;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 60px; color: var(--text);
  font-size: 15px; font-family: var(--font);
  transition: var(--transition); outline: none;
  box-shadow: var(--shadow);
}
.hero-search:focus { border-color: var(--text); box-shadow: 0 0 0 4px rgba(0,0,0,0.06); }
.hero-search::placeholder { color: var(--text-muted); }
.hero-search-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }
.hero-search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--text); color: white; border: none;
  padding: 9px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: var(--transition);
}
.hero-search-btn:hover { background: #333; }

/* ── HERO SECTION ─── */
.hero { padding: 80px 0 64px; text-align: center; }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px); font-weight: 900;
  line-height: 1.1; margin-bottom: 20px; color: var(--text);
}
.hero h1 .highlight { border-bottom: 3px solid var(--text); }
.hero-sub { font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-examples { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.hero-examples span { font-size: 12px; color: var(--text-muted); }
.hero-chip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px; font-size: 12px; color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.hero-chip:hover { background: var(--text); color: white; border-color: var(--text); }

/* ── FEATURES GRID ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--text); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--bg-card-2); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px; border: 1px solid var(--border);
}
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p  { font-size: 14px; line-height: 1.6; }

/* ── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 740px; margin: 2rem auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; position: relative;
}
.pricing-card.popular { border: 2px solid var(--text); background: var(--bg); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: white; border-radius: 20px;
  padding: 3px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.pricing-name  { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.pricing-price { font-size: 40px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.pricing-price sup { font-size: 20px; vertical-align: super; }
.pricing-price sub { font-size: 13px; color: var(--text-2); }
.pricing-desc  { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.pricing-features li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.pricing-features li i.fa-check { color: var(--green); font-size: 12px; }
.pricing-features li i.fa-xmark { color: var(--text-muted); font-size: 12px; }
.pricing-features li.disabled   { color: var(--text-muted); }

/* ── SERP RESULT CARDS ─── */
.serp-results { display: flex; flex-direction: column; gap: 12px; }
.serp-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  border-left: 4px solid var(--border-2); transition: var(--transition);
}
.serp-card:hover { box-shadow: var(--shadow); }
.serp-card.easy     { border-left-color: var(--green); }
.serp-card.moderate { border-left-color: var(--yellow); }
.serp-card.hard     { border-left-color: var(--red); }

.serp-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.serp-pos {
  width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.serp-meta { flex: 1; min-width: 0; }
.serp-domain { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 3px; font-family: monospace; }
.serp-title  { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.serp-desc   { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.serp-badge-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.serp-metrics {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 12px; margin-bottom: 10px;
}
.metric-item { text-align: center; }
.metric-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.metric-value       { font-size: 15px; font-weight: 700; color: var(--text); }
.metric-value.good   { color: var(--green); }
.metric-value.warn   { color: var(--yellow); }
.metric-value.danger { color: var(--red); }

.weakness-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.weakness-tag  { background: #fee2e2; border: 1px solid #fecaca; border-radius: 4px; padding: 2px 7px; font-size: 11px; color: var(--red); font-weight: 500; }

.outrank-bar-wrap { margin-top: 12px; }
.outrank-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.outrank-label span:first-child { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.outrank-pct { font-size: 14px; font-weight: 700; }

/* ── TABS ─── */
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 9px 16px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-2); font-size: 14px; font-weight: 500; font-family: var(--font);
  cursor: pointer; white-space: nowrap; transition: var(--transition);
  margin-bottom: -2px; display: flex; align-items: center; gap: 6px;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.tab-btn:hover  { color: var(--text); }
.tab-pane  { display: none; }
.tab-pane.active  { display: block; }
.tab-panel { display: none; padding-bottom: 3rem; }
.tab-panel.active { display: block; }
.tabs-bar {
  display: flex; align-items: center; gap: 4px;
  border-bottom: 2px solid var(--border); padding: .75rem 0 0;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.tabs-exports { margin-left: auto; display: flex; gap: .5rem; }

/* ── AUTH PAGES ─── */
.page-auth { background: var(--bg-2); }
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; }
.auth-title { font-size: 22px; margin-bottom: 6px; text-align: center; }
.auth-sub   { font-size: 14px; color: var(--text-2); text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); }
.auth-footer { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 24px; }
.auth-footer a { color: var(--text); font-weight: 700; }

/* ── DASHBOARD ─── */
.dash-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.quick-search-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px; margin-bottom: 20px;
}
.quick-search-bar h3 { font-size: 16px; margin-bottom: 12px; }
.search-input-row { display: flex; gap: 8px; }
.search-input-row .form-input { flex: 1; }

/* ── LEAD CARDS ─── */
.lead-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.lead-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lead-domain { font-size: 15px; font-weight: 700; color: var(--text); }
.lead-url    { font-size: 12px; color: var(--text-muted); }
.lead-grade  {
  width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.grade-A { background: #dcfce7; color: var(--green); }
.grade-B { background: var(--bg-card-2); color: var(--text); }
.grade-C { background: #fef9c3; color: var(--yellow); }
.grade-D { background: #fee2e2; color: var(--red); }
.pitch-angle {
  background: var(--bg-2); border-left: 3px solid var(--text);
  border-radius: 0 6px 6px 0; padding: 9px 12px; margin-top: 8px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}

/* ── GEO OPTIMIZER ─── */
.geo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; }
.geo-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; text-align: center;
}
.geo-icon  { font-size: 22px; margin-bottom: 6px; }
.geo-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.geo-status { font-size: 13px; font-weight: 700; margin-top: 4px; }
.status-yes { color: var(--green); }
.status-no  { color: var(--red); }

/* ── ADMIN ─── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 20px 12px; display: flex; flex-direction: column; gap: 4px;
}
.admin-logo { padding: 8px 12px 20px; font-size: 15px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--text-2); font-size: 14px; font-weight: 500; transition: var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active { background: var(--bg-card); color: var(--text); }
.admin-content { padding: 28px; }

/* ── SECTIONS ─── */
section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }

/* ── FOOTER ─── */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; padding-bottom: 40px;
}
.footer-brand { max-width: 260px; }
.footer-brand .brand-text { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 4px; }
.footer-col a  { font-size: 14px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
}

/* ── LOADING ─── */
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--border);
  border-top-color: var(--text); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── EMPTY STATES ─── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon  { font-size: 44px; margin-bottom: 14px; opacity: 0.25; display: block; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ── KEYWORD EXPANSION ─── */
.keyword-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 14px; }
.keyword-bucket h4 { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.keyword-pill {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  transition: var(--transition);
}
.keyword-pill:hover { border-color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════
   ANALYZE PAGE
═══════════════════════════════════════════════════════════════════ */
.analyze-hero { padding: 2.5rem 0 0; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.analyze-hero-inner { max-width: 860px; }
.analyze-breadcrumb { display:flex; align-items:center; gap:.5rem; color:var(--text-muted); font-size:13px; margin-bottom:.75rem; }
.analyze-breadcrumb a { color:var(--text-2); text-decoration:none; }
.analyze-breadcrumb a:hover { color:var(--text); }
.analyze-title { font-size:1.9rem; font-weight:900; margin-bottom:.75rem; }
.analyze-title .highlight { border-bottom:3px solid var(--text); }
.analyze-meta { display:flex; flex-wrap:wrap; gap:1rem; color:var(--text-2); font-size:13px; margin-bottom:1.25rem; }
.analyze-meta span { display:flex; align-items:center; gap:.35rem; }
.analyze-scores { display:flex; align-items:center; gap:2rem; flex-wrap:wrap; margin-bottom:1.5rem; }

.score-ring { position:relative; width:80px; height:80px; }
.score-ring svg { transform:rotate(-90deg); width:100%; height:100%; }
.ring-bg   { fill:none; stroke:var(--border); stroke-width:3; }
.ring-fill { fill:none; stroke:var(--c,#111); stroke-width:3; stroke-linecap:round; }
.ring-num  { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:900; }
.score-label { font-size:11px; color:var(--text-muted); margin-top:.2rem; text-align:center; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.score-card  { display:flex; flex-direction:column; align-items:center; gap:.3rem; }
.score-stats { display:flex; gap:.75rem; flex-wrap:wrap; }
.stat-pill { display:flex; align-items:center; gap:.5rem; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:.55rem .9rem; font-size:13px; }
.stat-pill strong { font-size:17px; font-weight:800; }
.stat-pill span   { color:var(--text-2); font-size:12px; }

.analyze-rerun { display:flex; gap:.5rem; max-width:520px; padding-bottom:2rem; }
.analyze-rerun input { flex:1; padding:.65rem 1rem; background:var(--bg); border:1px solid var(--border); border-radius:8px; color:var(--text); font-family:inherit; font-size:14px; }
.analyze-rerun input:focus { outline:none; border-color:var(--text); }

/* ── SERP Cards (Analyze) ── */
.serp-list { display:flex; flex-direction:column; gap:.75rem; }
.serp-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; border-left:4px solid var(--border-2); }
.serp-card:hover { box-shadow:var(--shadow); }
.serp-card.easy     { border-left-color:var(--green); }
.serp-card.moderate { border-left-color:var(--yellow); }
.serp-card.hard     { border-left-color:var(--red); }
.serp-card-header { display:flex; gap:1rem; align-items:flex-start; }
.serp-pos { width:30px; height:30px; border-radius:6px; background:var(--bg-card); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--text-2); flex-shrink:0; }
.serp-info { flex:1; min-width:0; }
.serp-url  { display:flex; align-items:center; gap:.4rem; margin-bottom:.15rem; }
.domain-text { font-size:12px; color:var(--green); font-family:monospace; font-weight:600; }
.serp-title  { font-size:15px; font-weight:600; color:var(--text); text-decoration:none; display:block; margin-bottom:.25rem; }
.serp-desc   { font-size:13px; color:var(--text-2); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.serp-score-wrap { display:flex; flex-direction:column; align-items:center; gap:.4rem; flex-shrink:0; }
.outrank-score { width:50px; height:50px; border-radius:50%; background:var(--bg-2); border:2px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.os-num   { font-size:14px; font-weight:900; color:var(--text); line-height:1; }
.os-label { font-size:8px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); font-weight:600; }

.serp-metrics { display:flex; flex-wrap:wrap; gap:.6rem 1.25rem; margin-top:.9rem; padding-top:.9rem; border-top:1px solid var(--border-2); align-items:center; }
.metric { display:flex; align-items:center; gap:.4rem; font-size:13px; }
.metric-label { color:var(--text-muted); white-space:nowrap; min-width:48px; font-size:12px; font-weight:600; }
.metric-bar-wrap { width:56px; height:5px; background:var(--bg-card-2); border-radius:3px; overflow:hidden; }
.metric-bar { height:100%; border-radius:3px; }
.metric-val { font-weight:700; font-size:13px; }
.badge-mono { font-family:monospace; background:var(--bg-2); padding:2px 6px; border-radius:4px; font-size:12px; border:1px solid var(--border-2); }
.metric-flags { display:flex; gap:.4rem; flex-wrap:wrap; }
.flag { font-size:11px; font-weight:600; display:flex; align-items:center; gap:.25rem; padding:2px 8px; border-radius:20px; }
.flag-on  { color:var(--green);  background:#dcfce7; border:1px solid #bbf7d0; }
.flag-off { color:var(--red);    background:#fee2e2; border:1px solid #fecaca; }
.serp-weaknesses { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.65rem; }
.weakness-tag { font-size:11px; background:#fee2e2; border:1px solid #fecaca; color:var(--red); padding:2px 8px; border-radius:20px; font-weight:500; }
.serp-toggle { background:none; border:none; color:var(--text-muted); font-size:12px; cursor:pointer; margin-top:.65rem; display:flex; align-items:center; gap:.3rem; font-family:inherit; font-weight:600; }
.serp-details { margin-top:.65rem; padding-top:.65rem; border-top:1px solid var(--border-2); }
.serp-details.hidden { display:none; }
.detail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:.6rem; }
.detail-grid > div { display:flex; flex-direction:column; gap:.15rem; }
.detail-grid label { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
.detail-grid span  { font-size:13px; font-weight:600; }
.serp-locked { background:var(--bg-2); border:2px dashed var(--border); border-radius:var(--radius-lg); padding:3rem; text-align:center; }
.lock-overlay i    { font-size:2rem; color:var(--text-muted); margin-bottom:.75rem; }
.lock-overlay h3   { margin-bottom:.5rem; }
.lock-overlay p    { color:var(--text-2); margin-bottom:1.25rem; font-size:14px; }

.upgrade-banner { display:flex; align-items:center; gap:1rem; background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1rem 1.25rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.upgrade-banner i   { color:var(--text); font-size:1.1rem; flex-shrink:0; }
.upgrade-banner div { flex:1; font-size:14px; }
.pro-teaser-banner { display:flex; align-items:center; justify-content:space-between; background:var(--bg-card); border:2px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem 2rem; margin-bottom:3rem; gap:1.5rem; flex-wrap:wrap; }
.teaser-inner h3   { margin:.4rem 0; }
.teaser-inner p    { color:var(--text-2); font-size:14px; }
.mt-2 { margin-top:1.5rem; }
.mt-3 { margin-top:2rem; }

/* ── Keywords ── */
.kw-header h2 { font-size:1.4rem; margin-bottom:.25rem; }
.kw-header p  { color:var(--text-2); margin-bottom:1.25rem; }
.kw-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:1rem; }
.kw-bucket { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.kw-bucket-head { display:flex; align-items:center; gap:.6rem; padding:.8rem 1rem; background:var(--bg-card); border-bottom:1px solid var(--border); }
.kw-bucket-head i    { color:var(--text); }
.kw-bucket-head span { font-weight:700; font-size:14px; flex:1; }
.kw-bucket-head em   { font-style:normal; font-size:11px; color:var(--text-muted); font-weight:600; }
.kw-list { list-style:none; padding:.5rem; display:flex; flex-direction:column; gap:.25rem; max-height:230px; overflow-y:auto; }
.kw-list li { display:flex; align-items:center; justify-content:space-between; }
.kw-pill { flex:1; padding:.3rem .6rem; border-radius:6px; font-size:13px; cursor:pointer; transition:background .12s; }
.kw-pill:hover { background:var(--bg-card-2); }
.kw-analyze { color:var(--text-muted); padding:.2rem .4rem; border-radius:4px; font-size:11px; text-decoration:none; opacity:0; transition:.12s; }
.kw-list li:hover .kw-analyze { opacity:1; color:var(--text); }

/* ── Lead Cards (Analyze) ── */
.leads-header h2 { font-size:1.4rem; margin-bottom:.25rem; }
.leads-header p  { color:var(--text-2); margin-bottom:1.25rem; }
.leads-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:1rem; }
.lead-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; }
.lead-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:.75rem; }
.lead-info h3  { font-size:15px; font-weight:700; margin-bottom:.25rem; }
.lead-domain   { font-size:12px; color:var(--text-2); text-decoration:none; font-weight:500; }
.lead-domain:hover { color:var(--text); text-decoration:underline; }
.lead-grade    { width:48px; height:48px; border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-weight:800; border:2px solid var(--border); }
.lead-grade span  { font-size:20px; line-height:1; }
.lead-grade small { font-size:8px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); }
.grade-a { background:#dcfce7; color:var(--green); border-color:var(--green); }
.grade-b { background:var(--bg-card); color:var(--text); border-color:var(--border); }
.grade-c { background:#fef9c3; color:var(--yellow); border-color:var(--yellow); }
.grade-d { background:#fee2e2; color:var(--red); border-color:var(--red); }
.lead-pitch-bar { display:flex; align-items:center; gap:.75rem; margin-bottom:.75rem; }
.lead-pitch-bar > span { font-size:12px; color:var(--text-muted); white-space:nowrap; font-weight:600; }
.lead-angle { display:flex; gap:.5rem; font-size:13px; background:var(--bg-2); border:1px solid var(--border); border-left:3px solid var(--text); border-radius:0 var(--radius) var(--radius) 0; padding:.55rem .75rem; margin-bottom:.75rem; line-height:1.5; }
.lead-details { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; font-size:12px; }
.lead-detail-item { display:flex; flex-direction:column; gap:.15rem; }
.lead-detail-item.lead-full { grid-column:1/-1; }
.lead-detail-item label { color:var(--text-muted); text-transform:uppercase; font-size:10px; letter-spacing:.05em; font-weight:700; }
.lead-tags { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.75rem; }

/* ── GEO (Analyze) ── */
.geo-header h2 { font-size:1.4rem; margin-bottom:.25rem; }
.geo-header p  { color:var(--text-2); margin-bottom:1.25rem; }
.geo-readiness { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-bottom:1.5rem; }
.geo-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; }
.geo-card i    { font-size:1.4rem; margin-bottom:.65rem; display:block; }
.geo-card h3   { font-size:14px; font-weight:700; margin-bottom:.35rem; }
.geo-card p    { font-size:13px; color:var(--text-2); line-height:1.5; }
.geo-ready     { border-top:3px solid var(--green); }
.geo-ready i   { color:var(--green); }
.geo-not-ready { border-top:3px solid var(--yellow); }
.geo-not-ready i { color:var(--yellow); }
.geo-metrics-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:.75rem; margin-bottom:1.5rem; }
.geo-metric-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1rem; }
.geo-metric-top  { display:flex; justify-content:space-between; align-items:center; margin-bottom:.5rem; }
.geo-metric-label { font-size:13px; font-weight:600; }
.geo-metric-val   { font-size:16px; font-weight:900; }
.geo-metric-val small { font-size:10px; color:var(--text-muted); font-weight:400; }
.geo-opportunity { background:var(--bg-2); border:1px solid var(--border); border-left:3px solid var(--yellow); border-radius:0 var(--radius-lg) var(--radius-lg) 0; padding:1rem 1.25rem; display:flex; align-items:flex-start; gap:.75rem; font-size:14px; }

/* ═══════════════════════════════════════════════════════════════════
   REPORTS PAGE
═══════════════════════════════════════════════════════════════════ */
.report-kw-link { color:var(--text); text-decoration:none; font-weight:600; }
.report-kw-link:hover { text-decoration:underline; }
.score-inline { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; border:2px solid var(--border); font-size:12px; font-weight:800; color:var(--text); }
.score-inline-sm strong { color:var(--text); }
.actions-cell { display:flex; align-items:center; gap:.25rem; }
.btn-xs { padding:.25rem .5rem !important; font-size:11px !important; }

/* ═══════════════════════════════════════════════════════════════════
   SINGLE REPORT
═══════════════════════════════════════════════════════════════════ */
.inner-breadcrumb { display:flex; align-items:center; gap:.5rem; color:var(--text-muted); font-size:13px; margin-bottom:.75rem; }
.inner-breadcrumb a { color:var(--text-2); text-decoration:none; }
.inner-breadcrumb a:hover { color:var(--text); }
.report-summary { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:.75rem; margin-bottom:2rem; }
.rs-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1rem; display:flex; align-items:center; gap:.75rem; }
.rs-card i      { font-size:1.1rem; color:var(--text); }
.rs-card div    { display:flex; flex-direction:column; gap:.15rem; }
.rs-card strong { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
.rs-card span   { font-size:15px; font-weight:800; }
.section-title  { font-size:1.2rem; font-weight:800; margin-bottom:1rem; }

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS PAGE
═══════════════════════════════════════════════════════════════════ */
.settings-layout { display:grid; grid-template-columns:220px 1fr; gap:2rem; align-items:flex-start; padding-bottom:3rem; }
.settings-sidebar { position:sticky; top:80px; }
.user-card-mini { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; display:flex; gap:.75rem; align-items:flex-start; margin-bottom:1rem; }
.user-card-mini .avatar-lg { width:44px; height:44px; font-size:1rem; flex-shrink:0; background:var(--text); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; }
.user-card-mini div    { display:flex; flex-direction:column; gap:.2rem; }
.user-card-mini strong { font-size:14px; font-weight:700; }
.user-card-mini span   { font-size:12px; color:var(--text-2); }
.badge-upgrade { font-size:11px; background:var(--bg-card-2); color:var(--text); border:1px solid var(--border); padding:2px 8px; border-radius:20px; text-decoration:none; font-weight:600; }
.badge-upgrade:hover { background:var(--text); color:white; }
.settings-nav { display:flex; flex-direction:column; gap:.2rem; }
.snav-link { padding:.5rem .85rem; border-radius:var(--radius); color:var(--text-2); text-decoration:none; font-size:14px; font-weight:500; transition:.12s; }
.snav-link:hover, .snav-link.active { background:var(--bg-card); color:var(--text); font-weight:600; }
.settings-section { padding:1.5rem 0; }
.settings-section h2 { font-size:1.1rem; font-weight:700; margin-bottom:1.25rem; display:flex; align-items:center; gap:.5rem; }
.settings-form { max-width:520px; }
.settings-divider { border:none; border-top:1px solid var(--border); margin:0; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.sub-status-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; max-width:520px; }
.danger-zone h2 { color:var(--red); }
.danger-zone p  { color:var(--text-2); font-size:14px; margin-bottom:1rem; }

/* ═══════════════════════════════════════════════════════════════════
   UPGRADE PAGE
═══════════════════════════════════════════════════════════════════ */
.upgrade-hero { background:var(--bg-2); border-bottom:1px solid var(--border); padding:3rem 0 2rem; text-align:center; }
.upgrade-hero-inner { max-width:580px; margin:0 auto; }
.upgrade-hero h1 { font-size:2rem; font-weight:900; margin:.75rem 0; line-height:1.2; }
.upgrade-hero p  { color:var(--text-2); font-size:15px; }
.badge-lg { font-size:12px; padding:.4rem 1rem; }
.pricing-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; max-width:700px; margin:2rem auto 3rem; }
.pricing-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-xl); padding:2rem; position:relative; }
.pricing-card-pro { border:2px solid var(--text); }
.pricing-badge-top { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--text); color:#fff; font-size:11px; font-weight:700; padding:3px 14px; border-radius:20px; white-space:nowrap; }
.pricing-head   { margin-bottom:1.5rem; }
.pricing-head h2 { font-size:1.3rem; font-weight:800; margin-bottom:.5rem; }
.pricing-price  { margin-bottom:.4rem; }
.price-amount   { font-size:2.5rem; font-weight:900; }
.price-period   { color:var(--text-2); }
.pricing-head p { color:var(--text-2); font-size:13px; }
.pricing-features { list-style:none; display:flex; flex-direction:column; gap:.55rem; margin-bottom:1.5rem; font-size:14px; }
.feat-yes { display:flex; align-items:center; gap:.6rem; }
.feat-no  { display:flex; align-items:center; gap:.6rem; color:var(--text-muted); }
.feat-yes i { color:var(--green); }
.feat-no  i { color:var(--border); }
.btn-full     { width:100%; text-align:center; display:block; }
.pricing-note { font-size:11px; color:var(--text-muted); text-align:center; margin-top:.5rem; }
.compare-section { max-width:700px; margin:0 auto 3rem; }
.compare-table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-lg); }
.compare-table { width:100%; border-collapse:collapse; font-size:14px; }
.compare-table th { padding:.75rem 1rem; text-align:left; background:var(--bg-2); border-bottom:2px solid var(--border); }
.compare-table td { padding:.65rem 1rem; border-bottom:1px solid var(--border-2); }
.compare-table tr:last-child td { border-bottom:none; }
.col-pro    { font-weight:700; color:var(--text); }
.text-green { color:var(--green) !important; }
.text-red   { color:var(--red)   !important; }
.upgrade-faq { max-width:700px; margin:0 auto 3rem; }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.faq-item { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; }
.faq-item h4 { font-size:14px; font-weight:700; margin-bottom:.5rem; }
.faq-item p  { font-size:13px; color:var(--text-2); line-height:1.6; }

/* ═══════════════════════════════════════════════════════════════════
   BILLING SUCCESS / CANCEL
═══════════════════════════════════════════════════════════════════ */
.success-card { text-align:center; }
.success-icon   { font-size:3rem; color:var(--green); margin-bottom:1rem; }
.success-icon i { font-size:3rem; }
.success-features { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:1.25rem 0; }
.success-features span { font-size:13px; background:#dcfce7; border:1px solid #bbf7d0; color:var(--green); padding:4px 12px; border-radius:20px; display:flex; align-items:center; gap:.35rem; font-weight:500; }
.cancel-icon   { font-size:3rem; color:var(--text-muted); margin-bottom:1rem; }
.cancel-icon i { font-size:3rem; }

/* ═══════════════════════════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════════════════════════ */
body.page-admin { display:flex; min-height:100vh; background:var(--bg-2); }
.admin-sidebar { width:220px; background:var(--bg); border-right:1px solid var(--border); flex-shrink:0; display:flex; flex-direction:column; position:fixed; left:0; top:0; bottom:0; z-index:100; }
.admin-brand { padding:1rem 1.25rem 1rem; font-size:15px; font-weight:800; border-bottom:1px solid var(--border); }
.admin-label { background:var(--text); color:#fff; font-size:9px; padding:2px 6px; border-radius:4px; margin-left:.25rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
.admin-sidebar ul { list-style:none; padding:.5rem .75rem; flex:1; }
.admin-sidebar ul a { display:flex; align-items:center; gap:.6rem; padding:.6rem .85rem; border-radius:var(--radius); color:var(--text-2); text-decoration:none; font-size:14px; font-weight:500; transition:.12s; margin-bottom:.15rem; }
.admin-sidebar ul a:hover  { background:var(--bg-card); color:var(--text); }
.admin-sidebar ul a.active { background:var(--text); color:#fff; }
.admin-back { padding:.75rem 1rem; border-top:1px solid var(--border); }
.admin-back a { font-size:13px; color:var(--text-2); text-decoration:none; display:flex; align-items:center; gap:.4rem; font-weight:500; }
.admin-back a:hover { color:var(--text); }
.admin-main { margin-left:220px; flex:1; padding:2rem; max-width:1100px; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.admin-topbar h1 { font-size:1.3rem; font-weight:800; display:flex; align-items:center; gap:.6rem; }
.admin-date { font-size:13px; color:var(--text-muted); }
.admin-stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.admin-stat { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1rem 1.25rem; display:flex; align-items:center; gap:.85rem; }
.stat-icon  { font-size:1.3rem; }
.stat-data  { display:flex; flex-direction:column; gap:.1rem; }
.stat-val   { font-size:1.5rem; font-weight:900; line-height:1; }
.stat-lbl   { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.admin-two-col { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.admin-panel { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; margin-bottom:1.5rem; }
.panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; padding-bottom:.75rem; border-bottom:1px solid var(--border-2); }
.panel-head h2 { font-size:.95rem; font-weight:700; display:flex; align-items:center; gap:.5rem; }
.top-kw-list { display:flex; flex-direction:column; gap:.3rem; }
.top-kw-row  { display:flex; align-items:center; gap:.75rem; padding:.45rem .4rem; border-radius:6px; font-size:14px; }
.top-kw-row:hover { background:var(--bg-2); }
.kw-rank  { width:22px; height:22px; border-radius:50%; background:var(--bg-card-2); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:var(--text-2); flex-shrink:0; }
.kw-text  { flex:1; }
.kw-count { background:var(--bg-card); border:1px solid var(--border); padding:2px 8px; border-radius:20px; font-size:12px; font-weight:700; }
.mb-2 { margin-bottom:1rem; }

/* ═══════════════════════════════════════════════════════════════════
   INNER PAGES
═══════════════════════════════════════════════════════════════════ */
.page-inner .inner-hero { padding:2rem 0; background:var(--bg-2); border-bottom:1px solid var(--border); }
.page-inner .inner-hero h1 { font-size:1.65rem; font-weight:900; display:flex; align-items:center; gap:.6rem; }
.page-inner .inner-hero p  { color:var(--text-2); margin-top:.3rem; }
.inner-content { padding-top:2rem; padding-bottom:3rem; }
.toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1.25rem; }
.toolbar-left, .toolbar-right { display:flex; align-items:center; gap:.5rem; }
.search-form-sm { display:flex; gap:.35rem; align-items:center; }
.search-form-sm input { padding:.5rem .85rem !important; background:var(--bg) !important; border:1.5px solid var(--border) !important; border-radius:var(--radius) !important; color:var(--text) !important; font-family:inherit !important; font-size:13px !important; width:220px !important; }
.search-form-sm input:focus { outline:none; border-color:var(--text); }
.search-form-sm button { padding:.5rem .75rem; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); color:var(--text-2); cursor:pointer; transition:.12s; }
.search-form-sm button:hover { background:var(--text); color:white; border-color:var(--text); }
.reports-table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-lg); }
.data-table { width:100%; border-collapse:collapse; font-size:14px; }
.data-table th { text-align:left; padding:.65rem 1rem; background:var(--bg-2); border-bottom:2px solid var(--border); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-2); white-space:nowrap; }
.data-table td { padding:.65rem 1rem; border-bottom:1px solid var(--border-2); vertical-align:middle; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--bg-2); }
.text-muted { color:var(--text-muted); }
.empty-state i     { font-size:3rem; margin-bottom:1rem; opacity:.2; display:block; }
.empty-state h3    { font-size:1.1rem; font-weight:700; color:var(--text); margin-bottom:.5rem; }
.empty-state p     { margin-bottom:1.5rem; font-size:14px; }
.pagination        { display:flex; gap:.35rem; flex-wrap:wrap; padding-top:1rem; }
.page-btn { padding:.4rem .7rem; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); color:var(--text-2); text-decoration:none; font-size:13px; font-weight:600; transition:.12s; }
.page-btn:hover   { border-color:var(--text); color:var(--text); }
.page-btn.active  { background:var(--text); border-color:var(--text); color:#fff; }
.progress-bar     { flex:1; height:5px; background:var(--bg-card-2); border-radius:3px; overflow:hidden; }
.progress-fill    { height:100%; border-radius:3px; transition:width .5s ease; }

/* Badge extras */
.badge-xs   { font-size:9px !important; padding:1px 5px !important; }
.badge-green { background:#dcfce7; color:var(--green); border:1px solid #bbf7d0; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:700; display:inline-block; }
.badge-blue  { background:#dbeafe; color:var(--cyan);  border:1px solid #bfdbfe; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:700; display:inline-block; }
.badge-red   { background:#fee2e2; color:var(--red);   border:1px solid #fecaca; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:700; display:inline-block; }

/* ── Page Hero (shared) ── */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 2rem 0; }

/* ── Install ── */
.page-install { background: var(--bg-2); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.install-wrap  { width: 100%; max-width: 600px; }
.step-dot      { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.step-dot.done { background: var(--green); }
.step-dot.active { background: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display:none; flex-direction:column; position:absolute; top:60px; left:0; right:0; background:var(--bg); border-bottom:1px solid var(--border); padding:8px; }
  .nav-links.open { display:flex; }
  .nav-toggle { display:flex; }
  .user-name-short { display:none; }
  .hero h1 { font-size: 28px; }
  .hero-search { padding: 14px 120px 14px 48px; font-size: 14px; }
  .footer-inner  { flex-direction: column; }
  .footer-links  { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .faq-grid    { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main    { margin-left: 0; }
  .admin-two-col { grid-template-columns: 1fr; }
  .geo-readiness { grid-template-columns: 1fr; }
  .analyze-scores { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .serp-card-header { flex-wrap: wrap; }
  .serp-score-wrap  { width: 100%; flex-direction: row; justify-content: flex-end; }
  .tab-btn     { font-size: 12px; padding: .5rem .6rem; }
  .analyze-title { font-size: 1.4rem; }
  .leads-grid  { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .auth-card   { padding: 28px 18px; }
}

/* ── Scoped input size overrides (keep small inline inputs compact) ─── */
.analyze-rerun input,
.search-form-sm input,
.search-input-row input,
.quick-search-bar input {
  padding: 9px 14px !important;
  font-size: 14px !important;
}
.nav-user-btn input,
.nav-search input {
  padding: 6px 10px !important;
  font-size: 13px !important;
}
/* Hero search pill shape override */
.hero-search {
  border-radius: 60px !important;
  border-width: 2px !important;
}
/* Settings form label spacing */
.settings-form .form-group label,
.settings-form .form-row .form-group label {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #52525b;
}

/* ═══════════════════════════════════════════════════════════════════
   ELITE LEAD FINDER
═══════════════════════════════════════════════════════════════════ */

/* Stats bar */
.lf-stats-bar {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 1.25rem; overflow: hidden;
}
.lf-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: .9rem 1rem; border-right: 1px solid var(--border);
  gap: .15rem;
}
.lf-stat:last-child { border-right: none; }
.lf-stat-hot { background: #f0fdf4; }
.lf-stat-num { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.lf-stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lf-export-btn {
  padding: .6rem 1.25rem; background: var(--text); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  border-left: 1px solid var(--border); transition: background .15s;
}
.lf-export-btn:hover { background: #333; }

/* Filter bar */
.lf-filters {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.25rem; padding: .75rem 1rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.lf-filter-group { display: flex; gap: .35rem; align-items: center; }
.lf-search {
  padding: .5rem .9rem !important; font-size: 13px !important;
  width: 260px !important; border-radius: 20px !important;
  border: 1.5px solid var(--border) !important;
}
.lf-filter-btn {
  padding: .4rem .85rem; border: 1.5px solid var(--border); border-radius: 20px;
  background: var(--bg); font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-2); font-family: inherit; transition: .12s; white-space: nowrap;
}
.lf-filter-btn:hover { border-color: var(--text); color: var(--text); }
.lf-filter-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.lf-sort-select {
  padding: .45rem .85rem !important; font-size: 12px !important;
  width: auto !important; border-radius: 20px !important;
  border: 1.5px solid var(--border) !important; background: var(--bg) !important;
}

/* Lead Card */
.lf-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: .75rem;
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.lf-card:hover { box-shadow: var(--shadow); border-color: #aaa; }
.lf-card-header { display: flex; gap: 0; }
.lf-card-rank {
  width: 44px; min-height: 44px; display: flex; align-items: flex-start;
  justify-content: center; padding-top: 1.1rem;
  font-size: 12px; font-weight: 800; color: var(--text-muted);
  border-right: 1px solid var(--border); background: var(--bg-2); flex-shrink: 0;
}
.lf-card-main { flex: 1; padding: 1rem 1.25rem; min-width: 0; }
.lf-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.lf-biz-name { font-size: 16px; font-weight: 800; margin-bottom: .3rem; }
.lf-meta-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: 12px; color: var(--text-2); }
.lf-meta-row i { color: var(--text-muted); }
.lf-domain { color: var(--text); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.lf-domain:hover { text-decoration: underline; }
.lf-phone, .lf-addr { display: flex; align-items: center; gap: .3rem; }
.lf-right-col { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex-shrink: 0; }

/* Grade badge */
.lf-grade-badge {
  width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 900; border: 2.5px solid;
}
.grade-aplus { background: #dcfce7; color: #15803d; border-color: #15803d; }
.grade-a     { background: #dcfce7; color: #15803d; border-color: #86efac; }
.grade-bplus { background: #dbeafe; color: #1d4ed8; border-color: #1d4ed8; }
.grade-b     { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.grade-c     { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.grade-d     { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

/* Tier badge */
.lf-tier-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tier-serp      { background: #dbeafe; color: #1d4ed8; }
.tier-invisible { background: #fee2e2; color: #dc2626; }
.tier-page2     { background: #fef9c3; color: #a16207; }

/* Score row */
.lf-score-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.lf-score-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.lf-score-track { flex: 1; height: 6px; background: var(--bg-card-2); border-radius: 3px; overflow: hidden; max-width: 180px; }
.lf-score-fill  { height: 100%; background: var(--text); border-radius: 3px; transition: width .6s ease; }
.lf-score-num   { font-size: 13px; font-weight: 800; white-space: nowrap; }

/* Metrics row */
.lf-metrics { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .65rem; align-items: center; }
.lf-metric {
  display: flex; align-items: center; gap: .3rem; font-size: 12px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 6px; padding: .25rem .6rem;
}
.lf-metric.metric-hot { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.lm-icon { color: var(--text-muted); font-size: 11px; }
.lm-val  { font-weight: 700; font-size: 12px; }
.lm-lbl  { color: var(--text-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lf-flag {
  font-size: 11px; font-weight: 600; padding: .2rem .55rem;
  border-radius: 20px; display: flex; align-items: center; gap: .25rem;
}
.flag-ok  { background: #dcfce7; color: #15803d; }
.flag-bad { background: #fee2e2; color: #dc2626; }

/* Weaknesses */
.lf-weaknesses { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .65rem; }
.lf-weak-tag { font-size: 11px; background: #fee2e2; border: 1px solid #fecaca; color: #dc2626; padding: 2px 8px; border-radius: 20px; font-weight: 500; }

/* Footer row */
.lf-footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--border-2); }
.lf-revenue { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: .4rem; }
.lf-revenue i { color: var(--green); }
.lf-revenue strong { color: var(--green); font-weight: 800; }
.lf-expand-btn {
  padding: .4rem .9rem; background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; color: var(--text); transition: .12s;
  display: flex; align-items: center; gap: .4rem;
}
.lf-expand-btn:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* Expanded Panel */
.lf-expanded {
  border-top: 1.5px solid var(--border); background: var(--bg-2);
  padding: 1.25rem;
}
.lf-expanded-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.lf-section { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.lf-section h4 { font-size: 13px; font-weight: 700; margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.lf-section p  { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.lf-situation-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.sit-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; display: flex; align-items: center; gap: .3rem; }
.sit-red    { background: #fee2e2; color: #dc2626; }
.sit-yellow { background: #fef9c3; color: #a16207; }
.sit-blue   { background: #dbeafe; color: #1d4ed8; }

/* Email template */
.lf-email-section { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lf-email-header { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.lf-email-header h4 { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: .4rem; margin: 0; }
.lf-copy-btn {
  padding: .4rem .85rem; background: var(--text); color: #fff;
  border: none; border-radius: 6px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: .35rem; transition: .15s;
}
.lf-copy-btn:hover { background: #333; }
.lf-email-body {
  font-family: 'Courier New', monospace; font-size: 12.5px; line-height: 1.65;
  color: var(--text-2); padding: 1rem 1.25rem; white-space: pre-wrap;
  word-break: break-word; margin: 0; background: var(--bg);
  max-height: 340px; overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .lf-stats-bar { flex-wrap: wrap; }
  .lf-stat { min-width: 50%; border-bottom: 1px solid var(--border); }
  .lf-filters { gap: .5rem; }
  .lf-search { width: 100% !important; }
  .lf-expanded-grid { grid-template-columns: 1fr; }
  .lf-card-top { flex-wrap: wrap; }
  .lf-right-col { flex-direction: row; align-items: center; }
}

/* Lead Finder — loading note & verified badge */
.lf-loading-note {
  display: flex; align-items: flex-start; gap: .65rem;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--radius-lg);
  padding: .85rem 1rem; font-size: 13px; color: #0369a1; margin-bottom: 1rem; line-height: 1.5;
}
.lf-loading-note i { margin-top: 2px; flex-shrink: 0; }
.tier-real { background: #dcfce7; color: #15803d; }