:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --panel2:#f7f8fb;
  --text:#0f172a;
  --muted:rgba(15,23,42,.70);
  --border:rgba(15,23,42,.10);
  --blue:#2563eb;
  --ok:rgba(34,197,94,.12);
  --warn:rgba(245,158,11,.12);
  --fail:rgba(239,68,68,.12);
}

/* Global sizing to prevent mobile overflow */
*, *::before, *::after{ box-sizing:border-box; }
html, body{ max-width:100%; }
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:#1d4ed8;text-decoration:none}a:hover{text-decoration:underline}
.wrap{max-width:1200px;margin:0 auto;padding:22px}
.sr-topbar{width:100%;padding:22px}
.sr-site-nav{width:100%;padding:0 22px 18px;position:relative}
.sr-site-nav-inner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;font-weight:800;letter-spacing:.45px;text-transform:uppercase}
.sr-site-nav-link{color:rgba(15,23,42,.82)}
.sr-site-nav-link:hover{text-decoration:underline}
.sr-site-nav-sep{opacity:.55;font-weight:700}

/* SEOsRank menu bar (requested HTML structure) */
.sr-site-nav-inner.sr-menu-bar{
  background:#004d99;
  border-radius:16px;
  padding:10px 12px;
  box-shadow:0 10px 26px rgba(2,6,23,.10);
  max-width:1160px;
  margin:0 auto;
}

.sr-menu-toggle{
  display:none;
  appearance:none;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.14);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  letter-spacing:.45px;
  text-transform:uppercase;
  cursor:pointer;
}

/* Mobile-only brand logo inside the menu bar */
.sr-nav-mobile-logo{display:none;align-items:center;justify-content:center;}
.sr-nav-mobile-logo img{height:44px;width:auto;display:block;border-radius:12px;}

/* Desktop brand logo inside the blue menu bar (left of HOME) */
.sr-nav-brand{display:none;align-items:center;justify-content:center;}
.sr-nav-brand img{height:52px;width:auto;display:block;border-radius:16px;}


.sr-menu-root{
  list-style:none;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0;
  padding:0;
}

.sr-menu-root > li{position:relative}

.sr-menu-root a{
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  letter-spacing:.45px;
  text-transform:uppercase;
  padding:8px 10px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.sr-menu-root a:hover{background:#00264d;text-decoration:none !important}

.sr-menu-root .sub-menu{
  display:none;
  position:absolute;
  left:0;
  top:100%;
  margin-top:10px;
  min-width:280px;
  max-width:360px;
  background:#012a4a;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:8px;
  box-shadow:0 18px 42px rgba(2,6,23,.25);
  z-index:2000;
}

.sr-menu-root .sub-menu li{list-style:none}

.sr-menu-root .sub-menu a{
  width:100%;
  display:block;
  padding:10px 10px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  letter-spacing:0;
  text-transform:none;
  color:#fff;
}

.sr-menu-root .sub-menu a:hover{background:#004d99;text-decoration:none !important}
.sr-menu-root a:focus,.sr-menu-root a:focus-visible,.sr-menu-root .sub-menu a:focus,.sr-menu-root .sub-menu a:focus-visible{ text-decoration:none !important; }

/* Desktop hover dropdown */
@media (min-width:821px){
  /* Show the brand logo inside the menu bar on desktop */
  .sr-nav-brand{display:inline-flex;}

  /* Hover bridge to prevent dropdown from closing when moving mouse from menu to submenu */
  .sr-menu-root > li.sr-has-sub::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:12px; /* matches the visual gap (margin-top) */
    background:transparent;
  }

  .sr-menu-root > li:hover > .sub-menu{display:block}
}

/* Mobile */
@media (max-width:820px){
  .sr-site-nav-inner.sr-menu-bar{max-width:none; margin:0;}

  .sr-nav-mobile-logo{display:inline-flex;}

  /* On mobile, use the mobile logo inside the menu bar only */
  .sr-nav-brand{display:none !important;}

  /* Move the MENU button to the far right on mobile */
  .sr-menu-toggle{margin-left:auto;}

  .sr-menu-toggle{display:inline-flex;align-items:center;justify-content:center}

  .sr-menu-root{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding-top:8px;
  }

  .sr-site-nav.sr-menu-open .sr-menu-root{display:flex}

  .sr-menu-root > li{width:100%}

  .sr-menu-root > li > a{
    width:100%;
    justify-content:space-between;
    background:rgba(255,255,255,.06);
  }

  /* Mobile clarity: show an icon for items that have a submenu */
  .sr-menu-root > li.sr-has-sub > a::after{
    content:"▾";
    display:inline-block;
    font-size:14px;
    line-height:1;
    opacity:.92;
    transform-origin:center;
    transition:transform .15s ease;
    margin-left:10px;
  }
  .sr-menu-root > li.sr-has-sub.sr-sub-open > a::after{
    transform:rotate(180deg);
  }

  .sr-menu-root .sub-menu{
    position:relative;
    left:auto;
    top:auto;
    margin-top:6px;
    min-width:0;
    max-width:none;
    display:none;
  }

  .sr-menu-root > li.sr-sub-open > .sub-menu{display:block}
}
.brand{font-weight:800;letter-spacing:.2px}
.card{background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:18px;margin:14px 0;box-shadow:0 1px 0 rgba(15,23,42,.03)}
.card.sub{background:var(--panel2)}
h1{font-size:24px;margin:0 0 10px}h2{font-size:18px;margin:0 0 10px}h3{font-size:16px;margin:0 0 10px}
.small{font-size:14px;line-height:1.55;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:1000px){.grid{grid-template-columns:1fr}.grid2{grid-template-columns:1fr}}
input{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(15,23,42,.14);background:#fff;color:var(--text)}
button{padding:12px 16px;border-radius:12px;border:0;background:var(--blue);color:white;cursor:pointer}
button:disabled{opacity:.6;cursor:not-allowed}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pill{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;border:1px solid rgba(15,23,42,.14);color:var(--text);background:#fff}
.pill.ok{background:var(--ok)}.pill.warning{background:var(--warn)}.pill.fail{background:var(--fail)}
.score{font-size:34px;font-weight:800;letter-spacing:.2px}
.kpi{display:flex;flex-direction:column;gap:6px}
.kpi .label{color:var(--muted);font-size:13px}
hr{border:0;border-top:1px solid var(--border);margin:14px 0}
ul{margin:8px 0 0 18px}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12.5px;white-space:pre-wrap;background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px}
.table{width:100%;border-collapse:separate;border-spacing:0}
.table th,.table td{border-bottom:1px solid var(--border);padding:10px 8px;text-align:left;font-size:14px;vertical-align:top}
.table th{color:var(--muted);font-weight:600}
.badge{font-size:12px;color:var(--muted)}

/* Main page: add a small gap between the "URL to analyze" label and the URL input */
.badge-url{margin-bottom:5px;display:inline-block}

/* v4.4 UI: intense status colors + score circles */
:root{
  --okSolid:#16a34a;
  --warnSolid:#f59e0b;
  --failSolid:#dc2626;
  --errSolid:#7c3aed;
}
.card.status-ok{border-left:8px solid var(--okSolid);}
.card.status-warning{border-left:8px solid var(--warnSolid);}
.card.status-fail{border-left:8px solid var(--failSolid);}
.card.status-error{border-left:8px solid var(--errSolid);}

.pill.ok{background:rgba(22,163,74,.18);border-color:rgba(22,163,74,.35);color:#0f3d1c;}
.pill.warning{background:rgba(245,158,11,.22);border-color:rgba(245,158,11,.40);color:#6a3b00;}
.pill.fail{background:rgba(220,38,38,.18);border-color:rgba(220,38,38,.38);color:#5a0b0b;}
.pill.error{background:rgba(124,58,237,.18);border-color:rgba(124,58,237,.38);color:#2f0a64;}

.score-ring{
  width:86px;height:86px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:conic-gradient(var(--okSolid) var(--deg), rgba(15,23,42,.10) 0deg);
  position:relative;flex:0 0 auto;
}
.score-ring::after{
  content:"";
  width:70px;height:70px;border-radius:999px;
  background:#fff;border:1px solid rgba(15,23,42,.10);
  position:absolute;inset:8px;
}
.score-ring .score-num{
  position:relative;z-index:2;font-weight:900;font-size:20px;line-height:1;color:#0f172a;
}
.score-ring.small{width:70px;height:70px;}
.score-ring.small::after{width:56px;height:56px;inset:7px;}
.score-ring.small .score-num{font-size:16px;}

.score-ring.ok{background:conic-gradient(var(--okSolid) var(--deg), rgba(15,23,42,.10) 0deg);}
.score-ring.warning{background:conic-gradient(var(--warnSolid) var(--deg), rgba(15,23,42,.10) 0deg);}
.score-ring.fail{background:conic-gradient(var(--failSolid) var(--deg), rgba(15,23,42,.10) 0deg);}
.score-ring.error{background:conic-gradient(var(--errSolid) var(--deg), rgba(15,23,42,.10) 0deg);}



/* v4.6: circular score gauge */
.donut-wrap{display:flex;flex-direction:column;gap:10px}
.donut{position:relative;width:220px;height:220px;margin:0 auto}
.donut svg{width:100%;height:100%;transform:rotate(-90deg)}
.donut circle{fill:none;stroke-width:12;stroke-linecap:round}
.donut .donut-bg{stroke:rgba(15,23,42,.10)}
.donut .donut-fg{stroke:#3f57ff;stroke-dasharray:314.159;stroke-dashoffset:314.159;transition:stroke-dashoffset .9s ease}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px}
.donut-title{font-weight:700;color:rgba(15,23,42,.72);letter-spacing:.2px}
.donut-value{font-size:56px;font-weight:900;line-height:1;color:#0f172a}
.donut-sub{font-size:14px;color:rgba(15,23,42,.70)}


/* Report History snapshot controls */
.snap-wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:10px;
}
.snap-select{
  min-width:260px;
  padding:8px 10px;
  border:1px solid #d7dbe3;
  border-radius:10px;
  background:#fff;
}




:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(15,23,42,.10);
  --shadow:0 8px 24px rgba(15,23,42,.06);
  --shadow2:0 2px 10px rgba(15,23,42,.06);
  --blue:#1f6fd8;
  --blue2:#2b82e6;
  --blueSoft:rgba(31,111,216,.10);
  --green:#16a34a;
  --orange:#f59e0b;
  --red:#ef4444;
  --purple:#7c3aed;
  --radius:16px;
}

html,body{ background:var(--bg); color:var(--text); }
body{ font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; line-height:1.45; }
a{ color:var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:1200px; }

/* Card polish */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}
.card-h{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
}
.card .h{ font-size:18px; font-weight:700; letter-spacing:-0.01em; }
.card .muted{ color:var(--muted); }
.box{
  background:rgba(15,23,42,.02);
  border:1px solid rgba(15,23,42,.06);
  border-radius:14px;
  padding:14px;
}
.k{ color:var(--muted); font-weight:600; font-size:12px; letter-spacing:.02em; }
.v{ font-size:30px; font-weight:800; letter-spacing:-0.02em; }

/* Buttons */
.btn{
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:var(--text);
  transition:transform .04s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ box-shadow:var(--shadow2); border-color:rgba(31,111,216,.28); }
.btn:active{ transform:translateY(1px); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; box-shadow:none; }
.btn-primary{
  background:linear-gradient(180deg, rgba(31,111,216,1) 0%, rgba(43,130,230,1) 100%);
  color:#fff !important;
  border-color:rgba(31,111,216,.6);
}
.btn-primary:hover{ filter:brightness(1.02); }
.btn-outline{
  background:#fff;
  border-color:rgba(31,111,216,.22);
  color:var(--blue);
}

/* Pills */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  font-weight:800; font-size:12px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
}
.pill-ok{ border-color:rgba(22,163,74,.25); background:rgba(22,163,74,.08); color:var(--green); }
.pill-warn{ border-color:rgba(245,158,11,.25); background:rgba(245,158,11,.10); color:#b45309; }
.pill-fail{ border-color:rgba(239,68,68,.25); background:rgba(239,68,68,.10); color:#b91c1c; }

/* Tables */
.table{ width:100%; border-collapse:separate; border-spacing:0; }
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(15,23,42,.08);
  vertical-align:top;
}
.table th{
  position:sticky; top:0;
  background:#fff;
  z-index:1;
  font-size:12px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--muted);
}
.table tr:hover td{ background:rgba(31,111,216,.04); }

/* Layout: left navigation + content */
.report-shell{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:16px;
  align-items:start;
}
.report-nav{
  position:sticky;
  top:14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.report-nav .nav-top{
  padding:14px 14px 10px 14px;
  border-bottom:1px solid var(--border);
}
.report-nav .nav-top .title{
  font-weight:900;
  letter-spacing:-0.01em;
}
.report-nav .nav-top .sub{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}
.report-nav .nav-items{
  max-height: calc(100vh - 120px);
  overflow:auto;
  padding:8px;
}
.report-nav .nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  user-select:none;
  border:1px solid transparent;
}
.report-nav .nav-item:hover{
  background:rgba(31,111,216,.05);
  border-color:rgba(31,111,216,.12);
}
.report-nav .nav-item.active{
  background:var(--blueSoft);
  border-color:rgba(31,111,216,.22);
  color:var(--blue);
}
.report-nav .dot{
  width:10px; height:10px; border-radius:999px;
  background:rgba(100,116,139,.35);
  flex:0 0 auto;
}
.report-nav .nav-item.active .dot{ background:var(--blue); }

/* section toggling */
.section-hidden{ display:none !important; }

/* Mobile */
@media (max-width: 980px){
  .report-shell{ grid-template-columns: 1fr; }
  .report-nav{ position:relative; top:auto; }
  .report-nav .nav-items{ max-height:none; }
}

/* Reduce visual noise between many cards */
.card{ margin-bottom:14px; }

/* Gauge polish (keeps dynamic colors) */
.gauge{ filter: drop-shadow(0 10px 14px rgba(15,23,42,.08)); }

/* ===== SEOsRank AI Checker — Pro UI v8.2.0 (Semrush/Similarweb-grade) ===== */
:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#5b6b84;
  --border:rgba(11,18,32,.10);
  --border2:rgba(11,18,32,.06);
  --shadow:0 12px 32px rgba(11,18,32,.08);
  --shadow2:0 2px 12px rgba(11,18,32,.08);
  --blue:#1f6fd8;
  --blue2:#2b82e6;
  --indigo:#3b82f6;
  --cyan:#06b6d4;
  --green:#16a34a;
  --orange:#f59e0b;
  --red:#ef4444;
  --purple:#7c3aed;
  --radius:18px;
  --radius2:14px;
}

html,body{ background:var(--bg); color:var(--text); }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
}
a{ color:var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:1280px; padding-left:16px; padding-right:16px; }

/* Top header/hero */
.page-hero{
  background:linear-gradient(180deg, rgba(31,111,216,.12) 0%, rgba(6,182,212,.06) 55%, rgba(255,255,255,0) 100%);
  border-radius:24px;
  padding:18px 18px 6px 18px;
  margin-bottom:14px;
}
.page-hero .hero-title{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:22px; font-weight:900; letter-spacing:-0.02em;
}
.badge{
  display:inline-flex; align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-weight:800; font-size:12px;
  border:1px solid rgba(31,111,216,.22);
  color:var(--blue);
  background:rgba(31,111,216,.08);
}

/* All Checks meta badges (Pillar / Score / Weight) */
#sec-all-checks .badge{
  background:#ffffe6 !important;
  border:3px solid #f2f2f2 !important;
}

/* Prioritized Fixes score badges (these can appear under Overview or Pillars depending on layout) */
#sec-overview .score-badge,
#sec-pillars .score-badge{
  background:#ffffcc !important;
  border:3px solid #e6e6e6 !important;
}
.page-hero .hero-sub{ margin-top:6px; color:var(--muted); }

/* Shell layout */
.report-shell{
  display:grid;
  grid-template-columns: 290px 1fr;
  gap:16px;
  align-items:start;
}

/* Left nav */
.report-nav{
  position:sticky;
  top:14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.report-nav .nav-top{
  padding:14px 14px 10px 14px;
  border-bottom:1px solid var(--border2);
  background:linear-gradient(180deg, rgba(31,111,216,.10), rgba(255,255,255,0));
}
.report-nav .nav-top .title{
  font-weight:900;
  letter-spacing:-0.01em;
}
.report-nav .nav-top .sub{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}
.report-nav .nav-tools{
  padding:10px 12px;
  display:grid;
  gap:8px;
  border-bottom:1px solid var(--border2);
}
.nav-search{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(11,18,32,.12);
  background:#fff;
  outline:none;
}
.nav-search:focus{
  border-color:rgba(31,111,216,.45);
  box-shadow:0 0 0 4px rgba(31,111,216,.10);
}
.nav-toggle{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(11,18,32,.10);
  background:rgba(11,18,32,.02);
  cursor:pointer;
  user-select:none;
  font-weight:800;
}
.nav-toggle:hover{ background:rgba(31,111,216,.06); border-color:rgba(31,111,216,.20); }

.report-nav .nav-items{
  max-height: calc(100vh - 220px);
  overflow:auto;
  padding:10px;
}
.report-nav .nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:14px;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  user-select:none;
  border:1px solid transparent;
  transition:background .12s ease, border-color .12s ease, transform .04s ease;
}
.report-nav .nav-item:hover{
  background:rgba(31,111,216,.06);
  border-color:rgba(31,111,216,.16);
}
.report-nav .nav-item:active{ transform:translateY(1px); }
.report-nav .nav-item.active{
  background:rgba(31,111,216,.10);
  border-color:rgba(31,111,216,.24);
  color:var(--blue);
}
.report-nav .dot{
  width:10px; height:10px; border-radius:999px;
  background:rgba(91,107,132,.35);
  flex:0 0 auto;
}
.report-nav .nav-item.active .dot{ background:linear-gradient(180deg, var(--blue), var(--blue2)); }

.report-content .card{ margin-bottom:14px; }

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}
.card-h{
  padding:16px 18px;
  border-bottom:1px solid var(--border2);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.card .h{ font-size:18px; font-weight:900; letter-spacing:-0.01em; }
.muted{ color:var(--muted); }
.box{
  background:linear-gradient(180deg, rgba(11,18,32,.02), rgba(11,18,32,.01));
  border:1px solid rgba(11,18,32,.06);
  border-radius:var(--radius2);
  padding:14px;
}
.k{ color:var(--muted); font-weight:800; font-size:12px; letter-spacing:.02em; text-transform:uppercase; }
.v{ font-size:32px; font-weight:950; letter-spacing:-0.02em; }
.grid3{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; }
.grid2{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
@media (max-width: 980px){
  .report-shell{ grid-template-columns: 1fr; }
  .report-nav{ position:relative; top:auto; }
  .report-nav .nav-items{ max-height:none; }
  .grid3{ grid-template-columns:1fr; }
  .grid2{ grid-template-columns:1fr; }
}

/* Buttons (premium) */
.btn{
  border-radius:14px;
  padding:11px 14px;
  font-weight:900;
  border:1px solid rgba(11,18,32,.12);
  background:#fff;
  color:var(--text);
  transition:transform .04s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
  white-space:nowrap;
}
.btn:hover{ box-shadow:var(--shadow2); border-color:rgba(31,111,216,.30); }
.btn:active{ transform:translateY(1px); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; box-shadow:none; }
.btn-primary{
  background:linear-gradient(180deg, rgba(31,111,216,1) 0%, rgba(43,130,230,1) 100%);
  color:#fff !important;
  border-color:rgba(31,111,216,.65);
}
.btn-primary:hover{ filter:brightness(1.03); }
.btn-outline{
  background:#fff;
  border-color:rgba(31,111,216,.22);
  color:var(--blue);
}

/* Status pills */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:999px;
  font-weight:950; font-size:12px;
  border:1px solid rgba(11,18,32,.10);
  background:#fff;
}
.pill-ok{ border-color:rgba(22,163,74,.25); background:rgba(22,163,74,.10); color:var(--green); }
.pill-warn{ border-color:rgba(245,158,11,.25); background:rgba(245,158,11,.12); color:#b45309; }
.pill-fail{ border-color:rgba(239,68,68,.25); background:rgba(239,68,68,.12); color:#b91c1c; }

/* Tables (premium) */
.table{ width:100%; border-collapse:separate; border-spacing:0; }
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(11,18,32,.08);
  vertical-align:top;
}
.table th{
  position:sticky; top:0;
  background:#fff;
  z-index:1;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.table tr:hover td{ background:rgba(31,111,216,.05); }
.table td strong{ font-weight:950; }

/* Toggle behavior */
.section-hidden{ display:none !important; }

/* Smooth section entrance */
.ai-section{
  animation: fadeIn .18s ease both;
}
@keyframes fadeIn{
  from{ opacity:.3; transform:translateY(4px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Gauge polish (keeps dynamic colors) */
.gauge{ filter: drop-shadow(0 12px 16px rgba(11,18,32,.10)); }

/* Helpful micro-typography */
ul{ padding-left:18px; }
li{ margin:6px 0; }
hr{ border:0; border-top:1px solid rgba(11,18,32,.10); margin:14px 0; }

/* ---------- Pro report navigation (left sidebar + panels) ---------- */
.ai-layout{display:flex; gap:18px; align-items:flex-start;}

/* Keep the left sidebar stable: the sidebar itself stays fixed via sticky,
   and only the section list scrolls (not the whole page). */
.ai-sidebar{
  width:260px;
  flex:0 0 260px;
  position:sticky;
  top:74px;
  align-self:flex-start;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 24px rgba(16,24,40,0.06);
  display:flex;
  flex-direction:column;
  max-height: calc(100vh - 92px);
  overflow:hidden;
}
.ai-sidebar-title{font-weight:700; font-size:13px; color:#0f172a; letter-spacing:0.02em; margin-bottom:10px;}
.ai-side-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 auto;
  overflow:auto;
  padding-right:4px;
  -webkit-overflow-scrolling:touch;
}
.ai-side-nav a{display:flex; align-items:center; justify-content:space-between; gap:10px; text-decoration:none; color:#334155; font-weight:600; font-size:13px; padding:10px 10px; border-radius:12px; border:1px solid transparent; background:transparent;}
.ai-side-nav a:hover{background:#f1f5ff; border-color:#e0e7ff; color:#1e3a8a;}
.ai-side-nav a.active{background:#eaf2ff; border-color:#cfe0ff; color:#0b4ed1;}
.ai-content{min-width:0; flex:1 1 auto;}

/* Panels: keep the active section rendered at the top of the right column.
   Without this, activating a section that is later in the DOM can leave a large
   blank area above it (making it look like content is "under" the sidebar). */
.ai-panel-host{position:relative; padding-bottom:50px;}
.ai-panel-host .ai-panel{position:absolute; top:0; left:0; right:0; margin:0;
  padding-bottom: 50px;
}
.ai-panel-host .ai-panel.is-hidden{display:none !important;}

/* Stack mode: allow multiple panels (Overview + Pillars) to flow vertically */
.ai-panel-host.is-stack .ai-panel{
  position:static;
  left:auto; right:auto; top:auto;
  margin:0 0 14px 0;
}
.ai-panel-host.is-stack{
  min-height:0 !important;
}

/* ---------- Per-section help blocks (explanations under each section) ---------- */
.section-help{
  margin-top:14px;
  padding:12px 14px;
  /* Keep border neutral (avoid any accidental FAIL/red styling bleed) */

  background:#ffffe6;

  border: 10px solid #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.section-help details{border-radius:12px;}
.section-help summary{
  cursor:pointer;
  list-style:none;
  font-weight:800;
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.section-help summary::-webkit-details-marker{display:none;}
.section-help summary:after{content:'+'; font-weight:900; opacity:.65;}
.section-help details[open] summary:after{content:'–';}
.section-help .help-sub{
  margin-top:10px;
  color:#334155;
  font-size:14px;
  line-height:1.65;
}
.section-help .help-sub h4{margin:10px 0 6px; font-size:14px;}
.section-help .help-sub ul{margin:8px 0 0 18px;}
.section-help .help-sub li{margin:6px 0;}
.section-help .pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  font-weight:800;
  font-size:12px;
  color:#0f172a;
}


/* Hide panels when JS is active (all HTML is still loaded in DOM) */
.js .ai-panel{ }
.js .ai-panel.is-active{display:block;}

/* Mobile: turn sidebar into top tabs */
@media (max-width: 1024px){
  html, body{overflow-x:hidden;}

  /* Prevent any element from extending beyond the viewport on phones/tablets */
  .wrap,
  .container,
  .ai-layout,
  .ai-content,
  .ai-panel-host,
  .ai-panel{
    width:100% !important;
    max-width:100% !important;
  }
  .wrap,.sr-topbar,.sr-site-nav{padding-left:14px !important; padding-right:14px !important;}
  img, svg, canvas{max-width:100% !important; height:auto;}
  .card{width:100% !important;}

  .ai-layout{flex-direction:column;}
  .ai-sidebar{
    position:relative;
    top:auto;
    width:100% !important;
    max-width:100% !important;
    flex:0 0 auto;
    max-height:none;
    overflow:hidden;
    padding:12px;
  }

  /* Hard guard: the top (mobile) sidebar card must never exceed the viewport */
  .ai-sidebar, .ai-sidebar *{max-width:100%;}
  .ai-nav-search{max-width:100%;}

  /* Mobile/tablet nav: a horizontal carousel with arrows.
     The scroll happens inside .ai-nav-scroll so links never overflow the screen. */
  .ai-nav-carousel{position:relative; display:flex; align-items:center; gap:10px; width:100%; max-width:100%;}
  .ai-nav-arrow{
    width:38px; height:38px;
    border-radius:14px;
    border:1px solid rgba(15,23,42,.14);
    background:#fff;
    box-shadow:0 8px 18px rgba(16,24,40,.10);
    color:#0f172a;
    font-weight:900;
    line-height:1;
    display:flex; align-items:center; justify-content:center;
    flex:0 0 auto;
    cursor:pointer;
  }
  .ai-nav-arrow:disabled{opacity:.35; cursor:default;}
  .ai-nav-scroll{flex:1 1 auto; overflow:hidden; min-width:0;}
  .ai-side-nav{
    flex-direction:row;
    flex-wrap:nowrap;
    overflow:auto;
    gap:8px;
    padding:2px 2px 8px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    max-width:100%;
    min-width:0;
  }
  .ai-side-nav::-webkit-scrollbar{display:none;}
  .ai-side-nav a{
    padding:9px 12px;
    white-space:nowrap;
    flex:0 0 auto;
  }

  /* Prevent any section/header content from causing horizontal scroll */
  .ai-content, .ai-panel-host, .ai-panel, .card{max-width:100%; overflow-x:hidden;}
  .small{overflow-wrap:anywhere;}
  .small b{word-break:break-word;}

  /* Mobile/tablet: avoid absolute-position panel stacking issues.
     Let panels flow naturally so the page scrolls correctly. */
  .ai-panel-host{position:static; min-height:0 !important; padding-bottom:30px;}
  .ai-panel-host .ai-panel{position:static;}
}

/* Hide panels until JS selects one (progressive enhancement) */
.js .ai-panel{ }
.js .ai-panel.is-active{display:block;}
.ai-side-nav a.active{background:#e8f0ff; border-color:#c7dbff; color:#1f6fd8; font-weight:700;}


/* Panels + sidebar enhancements */
.ai-panel.is-hidden{display:none !important;}
.ai-nav-search{
  width:100%;
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:12px;
  outline:none;
  font-size:14px;
  margin:10px 0 12px;
  background:#fff;
}
.ai-nav-search:focus{
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}


@media (max-width: 1024px){
  html, body{ overflow-x:hidden !important; }
  .wrap, .container{ width:100%; max-width:100%; }
}



/* Landing (main page) professional layout */
body{
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(37,99,235,.10), rgba(255,255,255,0) 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(2,132,199,.10), rgba(255,255,255,0) 55%),
    var(--bg);
}

/* Constrain landing page content to match the SEOsRank top menu bar width */
.landing{
  margin-top:14px;
  max-width:1160px;
  margin-left:auto;
  margin-right:auto;
  padding:0 14px;
}
.hero{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap:16px;
  align-items:start;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--text);
  opacity:.92;
}

.hero h1{
  font-size:34px;
  line-height:1.1;
  margin:10px 0 10px;
}

.hero-sub{
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  max-width:62ch;
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.pill-solid{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:3px solid #e6e6e6;
  background:#ffffcc;
  font-size:13px;
  color:rgba(15,23,42,.85);
  font-weight:600;
}

.mini-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:14px;
}

.mini-card{
  border:1px solid var(--border);
  background:rgba(255,255,255,.78);
  border-radius:14px;
  padding:12px;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}

.mini-title{ font-weight:800; font-size:13px; margin-bottom:4px; }
.mini-text{ font-size:13px; color:var(--muted); line-height:1.5; }

.landing-card{
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.landing-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:12px;
}

.landing-title{
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
}

.field-label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:rgba(15,23,42,.85);
  margin:0 0 5px;
}

.input{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 12px;
  background:rgba(255,255,255,.9);
  color:var(--text);
  outline:none;
  font-size:15px;
}

.input:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}

.btn-primary{
  appearance:none;
  border:1px solid rgba(37,99,235,.35);
  background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
  color:#fff;
  font-weight:800;
  border-radius:12px;
  padding:11px 14px;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
}

.btn-primary:hover{ filter:brightness(1.02); }
.btn-primary:active{ transform: translateY(1px); }

.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  color:rgba(15,23,42,.85);
  font-weight:800;
  border-radius:12px;
  padding:11px 14px;
  text-decoration:none;
}

.btn-ghost:hover{ text-decoration:none; filter:brightness(1.01); }

.tip{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  line-height:1.55;
  padding-top:10px;
  border-top:1px dashed rgba(15,23,42,.16);
}

.note{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.70);
}

/* Responsive landing */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .mini-cards{ grid-template-columns: 1fr; }
  .hero h1{ font-size:30px; }
  }


/* Report Pro UI (report.php) — elegant, modern, readable */
:root{
  --pro-card-bg: rgba(255,255,255,.86);
  --pro-card-bg-2: rgba(255,255,255,.72);
  --pro-shadow: 0 14px 40px rgba(15,23,42,.10);
  --pro-shadow-sm: 0 6px 16px rgba(15,23,42,.08);
  --pro-radius: 16px;
  --pro-radius-lg: 20px;
  --pro-line: rgba(15,23,42,.12);
  --pro-muted: rgba(15,23,42,.62);
  --pro-ink: rgba(15,23,42,.92);
  --pro-accent: #002db3;
}

/* Page background for report as well */
body{
  background:
    radial-gradient(1200px 650px at 12% 0%, rgba(0,45,179,.10), rgba(255,255,255,0) 62%),
    radial-gradient(1000px 520px at 88% 8%, rgba(2,132,199,.10), rgba(255,255,255,0) 58%),
    var(--bg);
}

/* Layout */
.ai-layout{
  gap: 14px;
}

/* Sidebar */
.ai-sidebar{
  border: 1px solid var(--pro-line);
  background: var(--pro-card-bg);
  border-radius: var(--pro-radius-lg);
  box-shadow: var(--pro-shadow-sm);
  overflow: hidden;
}

.ai-sidebar .ai-side-title{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--pro-line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
}

.ai-sidebar .ai-side-title h2,
.ai-sidebar .ai-side-title h3{
  margin: 0;
  color: var(--pro-ink);
  font-weight: 900;
  letter-spacing: .2px;
}

.ai-side-nav{
  padding: 10px;
}

.ai-side-nav a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(15,23,42,.86);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 800;
}

.ai-side-nav a:hover{
  background: rgba(0,45,179,.06);
  border-color: rgba(0,45,179,.12);
}

.ai-side-nav a.active{
  background: linear-gradient(180deg, rgba(0,45,179,.14), rgba(0,45,179,.08));
  border-color: rgba(0,45,179,.22);
  color: rgba(0,45,179,.95);
  box-shadow: 0 8px 16px rgba(0,45,179,.10);
}

.ai-side-nav a .badge,
.ai-side-nav a .count{
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.78);
}

/* Sidebar inner scroll only */
.ai-sidebar .ai-side-scroll{
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 0 6px 10px;
}
.ai-sidebar .ai-side-scroll::-webkit-scrollbar{ width: 10px; }
.ai-sidebar .ai-side-scroll::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.18);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.9);
}

/* Main content host */
.ai-content{
  border-radius: var(--pro-radius-lg);
}

.ai-panel-host{
  border: 1px solid var(--pro-line);
  background: var(--pro-card-bg-2);
  border-radius: var(--pro-radius-lg);
  box-shadow: var(--pro-shadow);
  overflow: hidden;
}

/* Panel styling */
.ai-panel{
  padding: 16px 16px 50px; /* keep bottom breathing room */
}

.ai-panel .card,
.ai-panel .box,
.ai-panel .panel,
.ai-panel .section{
  border: 1px solid var(--pro-line);
  background: var(--pro-card-bg);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow-sm);
}

/* Headings */
.ai-panel h1{
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--pro-ink);
  font-weight: 950;
  letter-spacing: .2px;
}
.ai-panel h2{
  font-size: 20px;
  margin: 16px 0 10px;
  color: var(--pro-ink);
  font-weight: 950;
}
.ai-panel h3{
  font-size: 16px;
  margin: 14px 0 8px;
  color: rgba(15,23,42,.88);
  font-weight: 900;
}

/* Paragraph text */
.ai-panel p, .ai-panel li{
  color: rgba(15,23,42,.78);
  line-height: 1.65;
}

/* Tables */
.ai-panel table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--pro-line);
  background: rgba(255,255,255,.9);
}
.ai-panel table th{
  text-align: left;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(15,23,42,.86);
  background: rgba(0,45,179,.06);
  border-bottom: 1px solid var(--pro-line);
  padding: 10px 12px;
}
.ai-panel table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  vertical-align: top;
  color: rgba(15,23,42,.78);
}
.ai-panel table tr:last-child td{ border-bottom: none; }

/* Chips / badges */
.badge, .chip{
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  color: rgba(15,23,42,.82);
}

/* Buttons */
.btn, button.btn, a.btn{
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

.btn-primary{
  border: 1px solid rgba(0,45,179,.35);
  background: linear-gradient(180deg, rgba(0,45,179,1), rgba(0,32,140,1));
  box-shadow: 0 12px 22px rgba(0,45,179,.18);
}
.btn-primary:hover{ filter: brightness(1.03); }

/* Code blocks */
pre, code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
pre{
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 12px;
  overflow: auto;
}

/* Help boxes (keep user choices) */
.section-help{
  background: #ffffe6 !important;
  border: 10px solid #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 26px rgba(0,0,0,.18) !important;
  color: rgba(15,23,42,.80);
}
.section-help h4, .section-help h3{
  color: rgba(15,23,42,.92);
  font-weight: 950;
}

/* Panels for mobile: avoid width overflow */
@media (max-width: 980px){
  .ai-layout{
    display:block;
  }
  .ai-sidebar{
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
  .ai-panel-host{
    width: 100%;
    max-width: 100%;
  }
  .ai-panel{
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ai-side-nav{
    padding: 10px;
  }
}

/* Prevent any accidental horizontal overflow from long strings */
.ai-panel-host, .ai-panel, .ai-panel *{
  max-width: 100%;
}
.ai-panel a, .ai-panel .url, .ai-panel .mono{
  overflow-wrap: anywhere;
  word-break: break-word;
}



/* Panels should participate in normal document flow */
  .ai-panel{ }
  .ai-panel.is-active{ display: block; }
}

/* Report visibility safety */
.ai-panel{ display:block; }
.ai-panel.is-hidden{ display:none !important; }

/* Report page scroll: use normal page scrolling (no internal panel scroll) */
.ai-panel-host.is-stack{ height:auto !important; max-height:none !important; overflow:visible !important; }
.ai-panel-host.is-stack .ai-panel{ position:static !important; inset:auto !important; height:auto !important; max-height:none !important; overflow:visible !important; }


/* Ensure header is sticky (not fixed) so it doesn't cover content */
/* Extra safety: add spacing below header area */
.ai-panel-host{
  margin-top: 12px;
}


/* Ensure page content never goes under the fixed topbar */


/* Wrap base spacing */
.wrap{ padding-top: 14px; }


/* Landing page: remove any extra block that appears under the Tip (e.g., "Run an analysis" empty card) */
.landing .tip + .card,
.landing .tip + div,
.landing .tip + section{
  display: none !important;
}


/* Global horizontal padding for main & report pages */
.page-wrapper,
.main-container,
.report-container {
  padding-left: 2%;
  padding-right: 2%;
  box-sizing: border-box;
}


/* Global horizontal padding (2%) - applies to both landing and report */
body{
  padding-left: 2% !important;
  padding-right: 2% !important;
  box-sizing: border-box;
}
.wrap{
  padding-left: 0 !important; /* keep internal consistent; body handles page gutters */
  padding-right: 0 !important;
}

/* Analyze panel (URL to analyze) - highlighted, interactive */
.analyze-panel{
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #f2f2f2;
  border: 10px solid #ffffff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
  transition: box-shadow .16s ease, border-color .16s ease;
}
.analyze-panel:hover{
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
  border-color: #ffffff;
}
.analyze-panel:focus-within{
  border-color: #ffffff;
  box-shadow: 0 16px 36px rgba(0,0,0,0.16), 0 0 0 4px rgba(0,45,179,0.10);
}

.analyze-panel .analyze-label{
  display: inline-block;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 5px;
}

.analyze-panel input[type="url"],
.analyze-panel input[type="text"]{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.analyze-panel input[type="url"]:focus,
.analyze-panel input[type="text"]:focus{
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0,45,179,0.14);
  transform: translateY(-1px);
}

/* Buttons inside the panel */
.analyze-panel .btn,
.analyze-panel button,
.analyze-panel a.btn{
  border-radius: 14px;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.analyze-panel .btn:hover,
.analyze-panel button:hover,
.analyze-panel a.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  filter: brightness(1.03);
}
.analyze-panel .btn:active,
.analyze-panel button:active,
.analyze-panel a.btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0,0,0,0.10);
}

/* Tighter spacing on small screens */
@media (max-width: 720px){
  .analyze-panel{ padding: 14px; border-radius: 16px; }
}

/* v9.6.46: Make Try API button text smaller on mobile */
@media (max-width: 640px){
  .analyze-panel .actions .btn-ghost{
    font-size: 12px;
    padding: 9px 10px;
    white-space: nowrap;
  }
}


/* Analyze panel label spacing */
.analyze-panel .field-label{
  display: block;
  margin-bottom: 10px;
}



/* Fallback: if Analyze button is primary without id */
.analyze-panel .btn.btn-primary:hover{
  background: #00b300 !important;
}
.analyze-panel .btn.btn-primary:active{
  background: #ace600 !important;
}

/* Analyze button colors */
.analyze-panel #analyzeBtn{
  background: #005ce6 !important;
}
.analyze-panel #analyzeBtn:hover{
  background: #001f4d !important;
}
.analyze-panel #analyzeBtn:active,
.analyze-panel #analyzeBtn.active{
  background: #000a1a !important;
}


/* Analyze button corner radius (less rounded) */
.analyze-panel #analyzeBtn{
  border-radius: 10px !important;
}


/* Paywall */
.sr-locked-wrap{position:relative;}
.sr-locked-card{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  background:#ffffff;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,0.10);
}
.sr-locked-title{font-weight:800;font-size:18px;margin:0 0 6px 0;}
.sr-locked-text{color:rgba(0,0,0,0.72);margin:0 0 14px 0;line-height:1.5;}
.sr-locked-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.sr-unlock-btn{
  display:inline-block;text-decoration:none;
  padding:12px 18px;border-radius:12px;
  background:#005ce6;color:#fff !important;font-weight:700;
}

/* Overview upgrade button (top-right) */
.sr-upgrade-top{
  font-size: 13px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}
.sr-unlock-btn:hover{background:#001f4d;}
.sr-unlock-btn:active{background:#000a1a;}
.sr-locked-note{font-size:12px;color:rgba(0,0,0,0.62);}



.report-sections a:hover,
.report-sections .nav-link:hover,
.sidebar a:hover,
.sidebar .nav-link:hover {
  background: #e6f2ff !important;
}

.report-sections a.active,
.report-sections .nav-link.active,
.report-sections .nav-link.is-active,
.report-sections li.active > a,
.sidebar a.active,
.sidebar .nav-link.active,
.sidebar .nav-link.is-active {
  background: #b3d7ff !important;
}


/* v9.3.5 report sidebar hover/active colors (ai-side-nav links) */
.ai-sidebar .ai-side-nav a {
  display: block;
  border-radius: 12px;
}

.ai-sidebar .ai-side-nav a:hover {
  background: #e6f2ff !important;
}

.ai-sidebar .ai-side-nav a.active {
  background: #b3d7ff !important;
}



/* v9.3.6 Overview top action buttons */
.overview-actions .btn,
.overview-actions button,
.overview-actions a {
  background-color: #ffffe6 !important;
  border: 3px solid #f2f2f2 !important;
  border-radius: 10px;
  box-shadow: none;
}

.overview-actions .btn:hover,
.overview-actions button:hover,
.overview-actions a:hover {
  background-color: #ffffe6 !important;
}


/* v9.3.8 Overview top-right buttons (Export JSON / Recheck / New Analysis) */
.overview-actions a,
.overview-actions .btn,
.overview-actions button {
  background-color: #ffffe6 !important;
  border: 3px solid #f2f2f2 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* Fallback selectors if markup changes */
a[href*="export"][class*="btn"],
a[href*="hard"][class*="btn"],
a[href*="new"][class*="btn"],
a[href*="ai-checker.php"][class*="btn"],
 a[href*="index.php"][class*="btn"],
a[href="./"][class*="btn"],
a[href$="/AI-checker/"][class*="btn"],
a[href$="/AI-checker"][class*="btn"],
a[href$="index.php"][class*="btn"],
a[href*="ai-checker"][class*="btn"] {
  background-color: #ffffe6 !important;
  border: 3px solid #f2f2f2 !important;
}

/* v9.6.18: force top bar to start from the far left (not centered) */
.sr-topbar{width:100%;max-width:none;margin:0;}
.sr-topbar-inner{width:100%;max-width:none;margin:0;}

/* v9.6.18: Top bar must start from the far-left (not centered) */
.sr-topbar{max-width:none !important; margin:0 !important; padding-left:14px !important; padding-right:14px !important;}
.sr-topbar-inner{width:100% !important; max-width:none !important; margin:0 !important;}

/* v9.6.23: Primary navigation bar under top header */
.sr-site-nav{max-width:none !important; margin:0 !important; padding-left:14px !important; padding-right:14px !important;}

/* v9.6.46: Landing article block (AEO/GEO article) */
.aeo-geo-article-wrap{
  max-width: 1180px;
  margin: 18px auto 28px;
  padding: 0 14px;
}

.aeo-geo-article{
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.aeo-geo-article h2{
  font-size: 22px;
  font-weight: 800;
  /* v9.6.64: separator line before each H2 in the landing article */
  margin: 22px 0 12px;
  padding-top: 14px;
  border-top: 1px solid #e6e6e6;
  color: #004d99;
}

.aeo-geo-article h3{
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 10px;
  color: #012a4a;
}

.aeo-geo-article p{
  margin: 0 0 12px;
  line-height: 1.7;
  color: #334155;
}

.aeo-geo-article ul{
  margin: 0 0 14px 18px;
  padding: 0;
  color: #334155;
}

.aeo-geo-article li{
  margin: 6px 0;
  line-height: 1.6;
}

@media (max-width: 640px){
  .aeo-geo-article{padding: 18px 16px; border-radius: 18px;}
  .aeo-geo-article h2{font-size: 20px;}
  .aeo-geo-article h3{font-size: 17px;}
}

.btn-danger{
  background:linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color:#fff !important;
  border-color:rgba(220,38,38,.45);
}
.btn-danger:hover{ border-color:rgba(220,38,38,.65); }
