/* ========================================
   ALTABABAH SEO AUDIT REPORT
   Light Mode Premium Theme
   ======================================== */

/* ----------------------------------------
   1. RESET & BASE
   ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------
   2. CSS VARIABLES
   ---------------------------------------- */
:root {
  --bg: #f0f2f8;
  --bg2: #ffffff;
  --bg3: #ffffff;
  --bg3h: #f6f7fb;

  --tx: #1a1d2e;
  --tx2: #4a5068;
  --tx3: #7c8299;

  --ac: #6c63ff;
  --ach: #5b52e0;
  --acg: rgba(108, 99, 255, 0.08);

  --cr: #dc3545;
  --crb: rgba(220, 53, 69, 0.08);
  --hi: #e8590c;
  --hib: rgba(232, 89, 12, 0.08);
  --md: #e67700;
  --mdb: rgba(230, 119, 0, 0.08);
  --lo: #2b8a3e;
  --lob: rgba(43, 138, 62, 0.08);
  --in: #1971c2;
  --inb: rgba(25, 113, 194, 0.08);

  --bd: rgba(0, 0, 0, 0.07);
  --bdh: rgba(0, 0, 0, 0.12);

  --r: 16px;
  --rs: 12px;
  --rx: 8px;
  --sh: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  --shh: 0 4px 24px rgba(0, 0, 0, 0.08);
  --glow: 0 0 24px rgba(108, 99, 255, 0.1);

  --ff: "IBM Plex Sans Arabic", "Segoe UI", "Tahoma", system-ui, sans-serif;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------
   3. TYPOGRAPHY & LINKS
   ---------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.75;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--ac);
  text-decoration: none;
  transition: color var(--tr);
}

a:hover {
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #c5c9d6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a6b8;
}

/* ----------------------------------------
   4. LAYOUT
   ---------------------------------------- */
.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.dash {
  padding: 32px 0 72px;
}

/* ----------------------------------------
   5. HEADER
   ---------------------------------------- */
.hdr {
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f8 100%);
  border-bottom: 1px solid var(--bd);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

.hdr::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hdr::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.03) 0%, transparent 65%);
  pointer-events: none;
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hdr-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--r);
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--bd);
  box-shadow: var(--sh);
  transition: all var(--tr);
}

.hdr-logo:hover {
  box-shadow: var(--glow);
}

.hdr-info {
  flex: 1;
  min-width: 260px;
}

.hdr-t {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.hdr-st {
  color: var(--tx2);
  font-size: .92rem;
}

.hdr-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--tx3);
}

.hdr-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hdr-meta a {
  color: var(--ac);
  font-weight: 500;
}

.hdr-act {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .3px;
}

.badge-cr {
  background: var(--crb);
  color: var(--cr);
  border: 1.5px solid rgba(220, 53, 69, 0.2);
}

.badge-md {
  background: var(--mdb);
  color: var(--md);
  border: 1.5px solid rgba(230, 119, 0, 0.2);
}

.badge-lo {
  background: var(--lob);
  color: var(--lo);
  border: 1.5px solid rgba(43, 138, 62, 0.2);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--rs);
  font-family: var(--ff);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  background: var(--ac);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.25);
}

.btn:hover {
  background: var(--ach);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

/* ----------------------------------------
   6. KPI CARDS
   ---------------------------------------- */
.kpi-g {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.kpi {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--tr);
  box-shadow: var(--sh);
}

.kpi:hover {
  transform: translateY(-4px);
  border-color: var(--bdh);
  box-shadow: var(--shh), var(--glow);
}

.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 var(--r) var(--r) 0;
}

.kpi-cr::before {
  background: var(--cr);
}

.kpi-md::before {
  background: var(--md);
}

.kpi-lo::before {
  background: var(--lo);
}

.kpi-in::before {
  background: var(--in);
}

.kpi-hi::before {
  background: var(--hi);
}

.kpi-lb {
  font-size: .8rem;
  color: var(--tx3);
  margin-bottom: 8px;
  font-weight: 500;
}

.kpi-val {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: .78rem;
  color: var(--tx2);
}

.kpi-ic {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ic-cr {
  background: var(--crb);
  color: var(--cr);
}

.ic-hi {
  background: var(--hib);
  color: var(--hi);
}

.ic-md {
  background: var(--mdb);
  color: var(--md);
}

.ic-lo {
  background: var(--lob);
  color: var(--lo);
}

.ic-in {
  background: var(--inb);
  color: var(--in);
}

/* ----------------------------------------
   7. SCORE RING
   ---------------------------------------- */
.sc-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sc-ring {
  width: 72px;
  height: 72px;
  position: relative;
}

.sc-ring svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.sc-ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.sc-ring .bg {
  stroke: rgba(0, 0, 0, 0.06);
}

.sc-ring .fg {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  filter: drop-shadow(0 0 6px currentColor);
}

.sc-ring .sc-txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ----------------------------------------
   8. TAB NAVIGATION
   ---------------------------------------- */
.tabs-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  background: var(--bg2);
  border-radius: var(--r);
  border: 1px solid var(--bd);
  margin-bottom: 28px;
  box-shadow: var(--sh);
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: var(--rs);
  color: var(--tx3);
  font-family: var(--ff);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover {
  color: var(--tx2);
  background: var(--bg);
}

.tab-btn.active {
  background: var(--ac);
  color: #fff;
  box-shadow: 0 2px 10px rgba(108, 99, 255, 0.3);
}

.tab-p {
  display: none;
  animation: fadeIn .4s ease;
}

.tab-p.active {
  display: block;
}

/* ----------------------------------------
   9. SECTIONS & CARDS
   ---------------------------------------- */
.sec {
  margin-bottom: 28px;
}

.sec-t {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tx);
}

.sec-t .ic {
  width: 34px;
  height: 34px;
  border-radius: var(--rx);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 16px;
  transition: all var(--tr);
  box-shadow: var(--sh);
}

.card:hover {
  border-color: var(--bdh);
}

/* ----------------------------------------
   10. TABLES
   ---------------------------------------- */
.tw {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--bd);
  box-shadow: var(--sh);
  background: var(--bg3);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}

.tbl th {
  background: var(--bg);
  color: var(--tx2);
  padding: 14px 16px;
  text-align: right;
  font-weight: 600;
  border-bottom: 1px solid var(--bd);
  white-space: nowrap;
  font-size: .8rem;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bd);
  vertical-align: top;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tr {
  transition: background var(--tr);
}

.tbl tr:hover td {
  background: rgba(108, 99, 255, 0.03);
}

/* ----------------------------------------
   11. SEVERITY & STATUS BADGES
   ---------------------------------------- */
.sev {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
}

.sev-cr {
  background: var(--crb);
  color: var(--cr);
}

.sev-hi {
  background: var(--hib);
  color: var(--hi);
}

.sev-md {
  background: var(--mdb);
  color: var(--md);
}

.sev-lo {
  background: var(--lob);
  color: var(--lo);
}

.st {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
}

.st-fail {
  background: var(--crb);
  color: var(--cr);
}

.st-pass {
  background: var(--lob);
  color: var(--lo);
}

.st-part {
  background: var(--mdb);
  color: var(--md);
}

.st-unk {
  background: var(--inb);
  color: var(--in);
}

.pri {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--rx);
  font-size: .8rem;
  font-weight: 700;
}

.pri-0 {
  background: var(--crb);
  color: var(--cr);
}

.pri-1 {
  background: var(--hib);
  color: var(--hi);
}

.pri-2 {
  background: var(--mdb);
  color: var(--md);
}

.own {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--rx);
  font-size: .8rem;
  font-weight: 600;
  background: var(--acg);
  color: var(--ac);
}

.htag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--rx);
  font-size: .8rem;
  font-weight: 600;
  background: rgba(230, 119, 0, 0.06);
  color: var(--md);
  border: 1px dashed rgba(230, 119, 0, 0.25);
}

/* ----------------------------------------
   12. LISTS & CHIPS
   ---------------------------------------- */
.slist {
  list-style: none;
  counter-reset: s;
}

.slist li {
  counter-increment: s;
  padding: 14px 18px;
  border-right: 3px solid var(--ac);
  margin-bottom: 10px;
  background: rgba(108, 99, 255, 0.04);
  border-radius: 0 var(--rs) var(--rs) 0;
  position: relative;
  padding-right: 52px;
  transition: all var(--tr);
  font-size: .92rem;
}

.slist li:hover {
  background: rgba(108, 99, 255, 0.07);
  transform: translateX(-4px);
}

.slist li::before {
  content: counter(s);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid;
  transition: all var(--tr);
}

.chip:hover {
  transform: scale(1.05);
}

.chip-cr {
  background: var(--crb);
  color: var(--cr);
  border-color: rgba(220, 53, 69, 0.2);
}

.chip-hi {
  background: var(--hib);
  color: var(--hi);
  border-color: rgba(232, 89, 12, 0.2);
}

.chip-md {
  background: var(--mdb);
  color: var(--md);
  border-color: rgba(230, 119, 0, 0.2);
}

.chip-lo {
  background: var(--lob);
  color: var(--lo);
  border-color: rgba(43, 138, 62, 0.2);
}

/* ----------------------------------------
   13. GALLERY
   ---------------------------------------- */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gal-i {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--bg3);
  transition: all var(--tr);
  cursor: pointer;
  box-shadow: var(--sh);
}

.gal-i:hover {
  transform: translateY(-4px);
  box-shadow: var(--shh), var(--glow);
  border-color: var(--ac);
}

.gal-i img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gal-i .cap {
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--tx2);
  font-weight: 500;
}

.img-ph {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--tx3);
  font-size: .88rem;
  border: 2px dashed var(--bd);
}

/* ----------------------------------------
   14. IMPACT CARDS
   ---------------------------------------- */
.imp-g {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.imp {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 22px;
  border-top: 3px solid;
  transition: all var(--tr);
  box-shadow: var(--sh);
}

.imp:hover {
  transform: translateY(-3px);
  box-shadow: var(--shh);
}

.imp-seo {
  border-top-color: var(--cr);
}

.imp-perf {
  border-top-color: var(--hi);
}

.imp-trust {
  border-top-color: var(--md);
}

.imp h4 {
  font-size: .93rem;
  margin-bottom: 8px;
  color: var(--tx);
}

.imp p {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.85;
}

/* ----------------------------------------
   15. CONTAINMENT & BASELINE
   ---------------------------------------- */
.ctn {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.04), rgba(220, 53, 69, 0.01));
  border: 1px solid rgba(220, 53, 69, 0.12);
  border-radius: var(--r);
  padding: 26px;
}

.ctn h3 {
  color: var(--cr);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.ctn ol {
  padding-right: 24px;
}

.ctn li {
  margin-bottom: 10px;
  font-size: .88rem;
  line-height: 1.85;
  color: var(--tx2);
}

.bsl {
  background: #fff;
  border: 1px solid rgba(43, 138, 62, 0.15);
  border-radius: var(--r);
  padding: 26px;
}

.bsl h3 {
  color: var(--lo);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.bsl ul {
  padding-right: 24px;
  list-style: disc;
}

.bsl li {
  margin-bottom: 8px;
  font-size: .86rem;
  color: var(--tx2);
  line-height: 1.85;
}

/* ----------------------------------------
   16. PLACEHOLDER & ISSUE CARDS
   ---------------------------------------- */
.phbox {
  text-align: center;
  padding: 64px 30px;
  background: var(--bg3);
  border: 2px dashed var(--bd);
  border-radius: var(--r);
}

.phbox .ic {
  font-size: 3.2rem;
  margin-bottom: 14px;
  opacity: .35;
}

.phbox h3 {
  margin-bottom: 12px;
  color: var(--tx2);
}

.phbox p {
  color: var(--tx3);
  font-size: .88rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.iss {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
  border-right: 4px solid var(--md);
  transition: all var(--tr);
  box-shadow: var(--sh);
}

.iss:hover {
  border-color: var(--bdh);
  background: var(--bg3h);
  transform: translateX(-3px);
}

.iss h4 {
  margin-bottom: 6px;
  font-size: .93rem;
  color: var(--tx);
}

.iss p {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.85;
}

.iss .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: var(--rx);
  font-size: .78rem;
  font-weight: 600;
  background: var(--acg);
  color: var(--ac);
}

/* ----------------------------------------
   17. INFO GRID & SCORING
   ---------------------------------------- */
.inf-g {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.inf-i {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  transition: all var(--tr);
  box-shadow: var(--sh);
}

.inf-i:hover {
  border-color: var(--bdh);
}

.inf-i .inf-lb {
  display: block;
  font-size: .84rem;
  color: var(--tx3);
  font-weight: 500;
}

.inf-i .vl {
  font-size: .88rem;
  font-weight: 600;
  color: var(--tx);
}

.scb {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sc-cat {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  padding: 18px;
  box-shadow: var(--sh);
}

.sc-cat .cn {
  font-size: .8rem;
  color: var(--tx3);
  margin-bottom: 10px;
}

.sc-cat .cb {
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sc-cat .cf {
  height: 100%;
  border-radius: 3px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px currentColor;
}

.sc-cat .cm {
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  color: var(--tx2);
}

/* ----------------------------------------
   18. LIGHTBOX
   ---------------------------------------- */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lb.show {
  display: flex;
}

.lb img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--r);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lb-x {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
}

.lb-x:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ----------------------------------------
   19. FOOTER
   ---------------------------------------- */
.ftr {
  text-align: center;
  padding: 28px;
  margin-top: 48px;
  border-top: 1px solid var(--bd);
  color: var(--tx3);
  font-size: .8rem;
}

.ftr a {
  color: var(--ac);
}

/* ----------------------------------------
   20. ERROR BOX
   ---------------------------------------- */
.err-box {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background: var(--crb);
  border: 1px solid rgba(220, 53, 69, 0.15);
  border-radius: var(--r);
  color: var(--cr);
  text-align: center;
}

/* ----------------------------------------
   21. CHECKLIST / TODO TAB
   ---------------------------------------- */
.todo-prog {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--sh);
}

.todo-prog-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ac);
}

.todo-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.todo-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ac), #8b83ff);
  border-radius: 8px;
  transition: width .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.todo-list {
  list-style: none;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  margin-bottom: 8px;
  transition: all var(--tr);
  box-shadow: var(--sh);
  cursor: pointer;
}

.todo-item:hover {
  border-color: var(--ac);
  box-shadow: var(--shh);
}

.todo-item.done {
  opacity: .5;
  background: var(--bg);
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--tx3);
}

.todo-item.done .todo-check {
  background: var(--lo);
  border-color: var(--lo);
}

.todo-item.done .todo-check::after {
  opacity: 1;
}

/* Custom Checkbox */
.todo-cb {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.todo-cb input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.todo-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--bd);
  border-radius: var(--rx);
  background: var(--bg);
  transition: all var(--tr);
  margin-top: 2px;
}

.todo-check::after {
  content: '\2713';
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--tr);
}

.todo-cb input:checked+.todo-check {
  background: var(--lo);
  border-color: var(--lo);
}

.todo-cb input:checked+.todo-check::after {
  opacity: 1;
}

.todo-item:hover .todo-check {
  border-color: var(--ac);
}

.todo-body {
  flex: 1;
  min-width: 0;
}

.todo-text {
  font-size: .92rem;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  line-height: 1.6;
  transition: all var(--tr);
}

.todo-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Owner badges */
.own {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

.own-client {
  background: rgba(25, 113, 194, 0.08);
  color: var(--in);
}

.own-dev {
  background: rgba(108, 99, 255, 0.08);
  color: var(--ac);
}

.own-host {
  background: rgba(230, 119, 0, 0.08);
  color: var(--md);
}

/* ----------------------------------------
   22. SEO-SPECIFIC COMPONENTS
   ---------------------------------------- */

/* Crawl Statistics Cards */
.crawl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.crawl-stat {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  padding: 18px;
  text-align: center;
  box-shadow: var(--sh);
  transition: all var(--tr);
}

.crawl-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shh);
}

.crawl-stat .stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ac);
}

.crawl-stat .stat-lb {
  font-size: .78rem;
  color: var(--tx3);
  margin-top: 4px;
}

/* CWV Metric Cards */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.cwv-card {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 22px;
  border-top: 3px solid var(--in);
  box-shadow: var(--sh);
  transition: all var(--tr);
}

.cwv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shh);
}

.cwv-card h4 {
  font-size: .88rem;
  margin-bottom: 8px;
  color: var(--tx);
}

.cwv-card .cwv-target {
  font-size: .78rem;
  color: var(--tx3);
  margin-bottom: 6px;
}

.cwv-card .cwv-desc {
  font-size: .82rem;
  color: var(--tx2);
  line-height: 1.7;
}

/* Category Tag */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--rx);
  font-size: .78rem;
  font-weight: 600;
  background: var(--inb);
  color: var(--in);
}

/* Robots.txt Code Block */
.robots-block {
  background: #1a1d2e;
  color: #e0e0e0;
  padding: 20px;
  border-radius: var(--rs);
  font-family: "Courier New", monospace;
  font-size: .8rem;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}

.robots-block .blocked {
  color: var(--cr);
}

.robots-block .comment {
  color: #7c8299;
}

/* ----------------------------------------
   23. ANIMATIONS
   ---------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(108, 99, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 16px rgba(108, 99, 255, 0.2);
  }
}

.anim {
  animation: fadeUp .6s ease both;
}

.anim-d1 {
  animation-delay: .06s;
}

.anim-d2 {
  animation-delay: .12s;
}

.anim-d3 {
  animation-delay: .18s;
}

.anim-d4 {
  animation-delay: .24s;
}

.anim-d5 {
  animation-delay: .32s;
}

/* ----------------------------------------
   24. PRINT STYLES
   ---------------------------------------- */
@media print {

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    background: #fff !important;
    color: #222 !important;
  }

  body::before {
    display: none;
  }

  .hdr {
    background: #fff !important;
    border-bottom: 2px solid #ddd !important;
    padding: 15px 0 !important;
  }

  .hdr::before,
  .hdr::after {
    display: none;
  }

  .hdr-t,
  .sec-t,
  .kpi-val,
  h3,
  h4 {
    color: #222 !important;
  }

  .hdr-st,
  .kpi-sub,
  .kpi-lb,
  p,
  li,
  td {
    color: #444 !important;
  }

  .badge {
    animation: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .kpi-g {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .kpi {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }

  .kpi:hover {
    transform: none !important;
  }

  .kpi::before {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .tabs-nav {
    display: none !important;
  }

  .tab-p {
    display: block !important;
    page-break-before: always;
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
  }

  .tab-p:first-child {
    page-break-before: avoid;
    border-top: none;
  }

  .btn,
  .lb,
  .no-print {
    display: none !important;
  }

  .tbl th {
    background: #eee !important;
    color: #333 !important;
  }

  .tbl td {
    color: #444 !important;
  }

  .sev,
  .st,
  .pri,
  .chip,
  .badge,
  .own,
  .htag,
  .cat-tag {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .card,
  .ctn,
  .bsl,
  .imp,
  .iss,
  .tw {
    background: #fff !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }

  .gal {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .gal-i img {
    height: 150px !important;
  }

  .gal-i:hover {
    transform: none !important;
  }

  .todo-prog {
    display: none !important;
  }

  .todo-item {
    background: #fff !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }

  .todo-item.done {
    opacity: .6 !important;
  }

  .todo-check,
  .own,
  .pri {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .ftr {
    color: #888 !important;
    border-top-color: #ddd !important;
  }

  .robots-block {
    background: #f5f5f5 !important;
    color: #222 !important;
    border: 1px solid #ddd !important;
  }

  .crawl-stat,
  .cwv-card {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
}

/* ----------------------------------------
   25. RESPONSIVE
   ---------------------------------------- */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hdr-in {
    flex-direction: column;
    text-align: center;
  }

  .hdr-meta {
    justify-content: center;
  }

  .hdr-act {
    justify-content: center;
  }

  .kpi-g {
    grid-template-columns: 1fr 1fr;
  }

  .tab-btn {
    min-width: 100px;
    font-size: .8rem;
    padding: 10px 10px;
  }

  .imp-g,
  .inf-g,
  .gal,
  .scb,
  .crawl-stats,
  .cwv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kpi-g {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 0 16px;
  }
}

/* ----------------------------------------
   26. REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sc-ring .fg {
    transition-duration: 0.01ms !important;
  }

  .sc-cat .cf {
    transition-duration: 0.01ms !important;
  }
}