/* =========================================================
   مِقياس — دليل وترتيب شركات الأمن السيبراني
   Design system & components
   ========================================================= */

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../assets/fonts/NotoSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../assets/fonts/NotoSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../assets/fonts/NotoKufiArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../assets/fonts/NotoKufiArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Noto Kufi Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-ui: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --bg: #f4f5ee;
  --bg-deep: #ecefe5;
  --surface: #ffffff;
  --surface-2: #f8f9f3;
  --surface-3: #eef2e9;
  --ink: #0b2721;
  --ink-2: #355049;
  --muted: #71857d;
  --muted-2: #8ea099;
  --line: #dfe6dc;
  --line-strong: #cbd7cb;
  --accent: #0a7d60;
  --accent-strong: #045a44;
  --accent-deep: #0a332a;
  --accent-soft: #e3f3eb;
  --accent-soft-2: #cdecdf;
  --gold: #b88a3b;
  --gold-strong: #8f6520;
  --gold-soft: #f6edda;
  --danger: #b74b3f;
  --danger-soft: #fbe9e6;
  --shadow-xs: 0 1px 2px rgba(9, 40, 32, 0.05);
  --shadow-sm: 0 6px 20px rgba(9, 40, 32, 0.06);
  --shadow-md: 0 18px 50px rgba(9, 40, 32, 0.10);
  --shadow-lg: 0 40px 100px rgba(3, 22, 18, 0.22);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-height: 74px;
  --max-width: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #071713;
  --bg-deep: #05110e;
  --surface: #0d211c;
  --surface-2: #102a23;
  --surface-3: #15332b;
  --ink: #e8f0ea;
  --ink-2: #bfd0c7;
  --muted: #8da69b;
  --muted-2: #708b7f;
  --line: #213b32;
  --line-strong: #315046;
  --accent: #48d6ab;
  --accent-strong: #7be6c5;
  --accent-deep: #d8f8ed;
  --accent-soft: #12362c;
  --accent-soft-2: #1c4c3e;
  --gold: #ddb76d;
  --gold-strong: #f0cd8c;
  --gold-soft: #332b18;
  --danger: #f08b7e;
  --danger-soft: #3b211d;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 20px 55px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 44px 110px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html:not([lang="ar"]):not([lang="ur"]) {
  --font-body: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
html[lang="zh-CN"] {
  --font-body: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Noto Sans Arabic", sans-serif;
}
html[lang="zh-TW"] {
  --font-body: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Noto Sans Arabic", sans-serif;
}
html[lang="ja"] {
  --font-body: "Segoe UI", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", "Noto Sans Arabic", sans-serif;
}
html[lang="ko"] {
  --font-body: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
}
html[lang="hi"] {
  --font-body: "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", "Mangal", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", "Mangal", "Noto Sans Arabic", sans-serif;
}
html[lang="bn"] {
  --font-body: "Segoe UI", "Nirmala UI", "Noto Sans Bengali", "Vrinda", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Nirmala UI", "Noto Sans Bengali", "Vrinda", "Noto Sans Arabic", sans-serif;
}
html[lang="th"] {
  --font-body: "Segoe UI", "Leelawadee UI", "Tahoma", "Noto Sans Thai", "Noto Sans Arabic", sans-serif;
  --font-display: "Segoe UI", "Leelawadee UI", "Tahoma", "Noto Sans Thai", "Noto Sans Arabic", sans-serif;
}
html[lang="ur"] {
  --font-body: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", "Jameel Noori Nastaleeq", Tahoma, sans-serif;
  --font-display: "Noto Naskh Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--accent-soft-2); color: var(--ink); }
h1, h2, h3, h4, p, dl, dd, dt { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; top: -100px; right: 20px; z-index: 9999;
  background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.section-shell { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: 28px; }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(10, 125, 96, .22); }
.btn-primary:hover { background: var(--accent-strong); }
html[data-theme="dark"] .btn-primary { color: #06241c; background: var(--accent); }
html[data-theme="dark"] .btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-text { background: transparent; color: var(--ink-2); padding-inline: 8px; }
.btn-text:hover { color: var(--accent); background: transparent; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 11px; transition: .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.text-btn { border: 0; background: none; padding: 2px; color: var(--accent); font-size: 13px; font-weight: 700; }
.text-btn:hover { color: var(--accent-strong); text-decoration: underline; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 13px; }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  width: min(100%, 1400px); margin-inline: auto; min-height: var(--header-height);
  padding-inline: 28px; display: flex; align-items: center; gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 42px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -.5px; }
.brand-copy small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-inline-start: 10px; }
.main-nav a { position: relative; font-size: 13.5px; font-weight: 700; color: var(--ink-2); padding-block: 8px; }
.main-nav a::after {
  content: ""; position: absolute; right: 0; bottom: 2px; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-picker { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 11px; transition: .2s; max-width: 190px;
}
.lang-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.lang-flag, .lang-option-flag {
  display: inline-block; object-fit: cover; border-radius: 2.5px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(12, 40, 32, .13);
}
.lang-flag { width: 21px; height: 15px; }
.lang-current {
  font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 115px;
}
.lang-chevron { width: 13px; height: 13px; color: var(--muted); transition: transform .2s; }
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 90;
  width: min(410px, calc(100vw - 32px)); max-height: min(72vh, 640px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 15px; animation: langIn .22s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.lang-menu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lang-menu-head > div { display: flex; flex-direction: column; gap: 3px; }
.lang-menu-head strong { font-family: var(--font-display); font-size: 15px; }
.lang-menu-head span { font-size: 9.5px; color: var(--muted); line-height: 1.7; max-width: 290px; }
.lang-menu-close { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.lang-menu-close .icon { width: 14px; height: 14px; }
.lang-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.lang-option {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink-2);
  border-radius: 9px; text-align: start; transition: .18s;
}
.lang-option:hover { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.lang-option.is-active { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.lang-option-flag { width: 26px; height: 18px; }
.lang-option-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; flex: 1; }
.lang-option-copy strong {
  font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lang-option-copy small { font-size: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-option-check { width: 14px; height: 14px; color: var(--accent); opacity: 0; flex-shrink: 0; }
.lang-option-check .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.lang-option.is-active .lang-option-check { opacity: 1; }
.lang-menu-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 8.5px; color: var(--muted);
}
.lang-menu-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.lang-menu-foot .icon { width: 12px; height: 12px; color: var(--gold); }
.lang-count {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 99px;
  padding: 1px 7px; font-family: var(--font-display); font-size: 9px;
}
body.lang-menu-open { overflow: hidden; }
html[dir="ltr"] .search-kbd { margin-inline-start: 4px; }

.app-loading {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--bg); transition: opacity .3s ease;
}.app-loading.is-hidden { opacity: 0; pointer-events: none; }
.loading-brand { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.loading-brand .brand-mark { width: 46px; height: 50px; }
.loading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: loadingPulse 1s infinite ease-in-out; }
.loading-dot:nth-child(3) { animation-delay: .15s; }
.loading-dot:nth-child(4) { animation-delay: .3s; }
@keyframes loadingPulse { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* Google Translate fallback for languages translated at runtime */
#google_translate_element,
.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-gadget-icon,
.goog-te-spinner-pos,
.goog-te-balloon-frame,
.goog-tooltip,
#goog-gt-tt {
  display: none !important;
}
body { top: 0 !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
html.translated-ltr body,
html.translated-rtl body { top: 0 !important; }
.notranslate { unicode-bidi: isolate; }
html.translation-failed .lang-toggle { border-color: var(--gold); }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon { position: absolute; transition: transform .35s var(--ease), opacity .25s; }
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-40deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(40deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #f2f8f3;
  background:
    radial-gradient(1000px 620px at 88% -10%, rgba(54, 194, 148, .20), transparent 60%),
    radial-gradient(700px 500px at 3% 103%, rgba(197, 157, 80, .13), transparent 60%),
    linear-gradient(118deg, #071d18 0%, #0a2a23 52%, #0c3127 100%);
  width: min(calc(100% - 32px), 1400px); margin: 16px auto 0;
  border-radius: 30px; overflow: hidden;
  box-shadow: 0 28px 70px rgba(5, 32, 26, 0.18);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .22;
  background-image:
    linear-gradient(rgba(236, 248, 240, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 248, 240, .11) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 72% 40%, black 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 40%, black 5%, transparent 72%);
}
.hero-orbit { position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(185, 231, 211, .13); pointer-events: none; }
.hero-orbit::before { content: ""; position: absolute; inset: 16%; border: 1px solid rgba(185, 231, 211, .10); border-radius: 50%; }
.hero-orbit-a { width: 720px; height: 720px; left: -250px; top: -360px; }
.hero-orbit-b { width: 510px; height: 510px; right: -170px; bottom: -290px; border-color: rgba(197, 157, 80, .15); }
.hero-inner {
  width: min(100%, 1280px); margin-inline: auto; padding: 70px 46px 54px;
  display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(340px, .83fr);
  gap: 64px; align-items: center;
}
.hero-copy { max-width: 650px; }
.eyebrow-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .2px; color: #b7e9d5;
}
.eyebrow-muted { color: rgba(226, 241, 232, .55); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #53d9ac;
  box-shadow: 0 0 0 0 rgba(83, 217, 172, .55); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(83, 217, 172, .45); }
  70% { box-shadow: 0 0 0 7px rgba(83, 217, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(83, 217, 172, 0); }
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.32; font-weight: 700; letter-spacing: -1.2px; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal; color: #8fe3c4; position: relative; display: inline-block;
}
.hero h1 em::after {
  content: ""; position: absolute; right: 2px; left: 2px; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, rgba(143, 227, 196, 0), rgba(143, 227, 196, .9), rgba(197, 157, 80, .8));
  border-radius: 99px; transform: rotate(-.5deg);
}
.hero-lede {
  color: rgba(230, 243, 234, .76); font-size: 15.5px; line-height: 1.95; max-width: 590px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero .btn-primary { background: #81e2c0; color: #073126; box-shadow: 0 12px 30px rgba(51, 210, 164, .22); }
.hero .btn-primary:hover { background: #a1eed3; }
.hero .btn-text { color: rgba(236, 248, 240, .82); }
.hero .btn-text:hover { color: #b8f2dd; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 0; width: fit-content;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(198, 235, 218, .16);
}
.hero-stats > div { padding-inline: 26px; border-inline-start: 1px solid rgba(198, 235, 218, .14); }
.hero-stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-stats > div:last-child { padding-inline-end: 0; }
.hero-stats dt { order: 2; font-size: 10.5px; color: rgba(221, 240, 229, .55); margin-top: 2px; white-space: nowrap; }
.hero-stats dd { order: 1; font-family: var(--font-display); font-size: 25px; font-weight: 700; color: #f4faf5; line-height: 1.2; }
.hero-stats > div { display: flex; flex-direction: column; }

/* Spotlight card */
.spotlight {
  position: relative; color: #102e26; background: #f5f2e6;
  border: 1px solid rgba(255, 255, 255, .52); border-radius: 22px;
  padding: 20px; box-shadow: 0 30px 70px rgba(0, 10, 7, .32);
  min-width: 0;
}
.spotlight::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(17, 61, 48, .10);
  border-radius: 17px; pointer-events: none;
}
.spotlight-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 3px 14px; position: relative; }
.spotlight-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: #275c4b; }
.spotlight-label .icon { width: 16px; height: 16px; color: #a4792f; }
.spotlight-live { font-size: 9.5px; color: #6d8379; display: inline-flex; align-items: center; gap: 5px; }
.spotlight-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #2ca77f; }
.spotlight-company { display: flex; align-items: center; gap: 12px; position: relative; }
.company-logo {
  flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.5px;
  color: #fff; background: var(--brand, #0c4a3b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  width: 48px; height: 48px; font-size: 15px;
}
.spotlight-company h2 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; color: #0b2921; }
.spotlight-company .company-sub { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #62766c; margin-top: 3px; }
.spotlight-company .company-sub .flag { font-size: 14px; }
.spotlight-rank {
  margin-inline-start: auto; align-self: flex-start; font-family: var(--font-display);
  font-size: 11px; color: #8a6a2d; background: #ede4cb; border: 1px solid #dfd0ac;
  padding: 3px 8px; border-radius: 99px;
}
.spotlight-score-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; position: relative; }
.score-ring {
  --score: 80; --ring-size: 84px; --ring-width: 7px;
  width: var(--ring-size); height: var(--ring-size); border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(#0a7d60 calc(var(--score) * 1%), #dce6dc 0);
  display: grid; place-items: center; position: relative;
}
.score-ring::after {
  content: ""; position: absolute; inset: var(--ring-width); border-radius: 50%; background: #f5f2e6;
}
.score-ring-inner { position: relative; z-index: 1; text-align: center; line-height: 1.05; }
.score-ring-inner b { display: block; font-family: var(--font-display); font-size: 22px; color: #0b3b2d; }
.score-ring-inner small { font-size: 8px; color: #70847a; }
.spotlight-bars { flex: 1; display: grid; gap: 7px; min-width: 0; }
.sbar { display: grid; grid-template-columns: 70px 1fr 28px; gap: 8px; align-items: center; font-size: 9.5px; color: #5a7167; }
.sbar-track { height: 5px; background: #dfe7dc; border-radius: 99px; overflow: hidden; }
.sbar-track i { display: block; height: 100%; background: #0a7d60; border-radius: inherit; }
.sbar b { font-size: 9.5px; color: #234b3d; font-weight: 700; text-align: left; }
.spotlight-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; position: relative; flex-wrap: wrap; }
.spotlight-tag {
  font-size: 10px; padding: 4px 9px; border-radius: 99px; background: #e9e4d4;
  color: #5c6454; border: 1px solid #ded6c2;
}
.spotlight-open {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #0a644c; background: #e0eee4;
  border: 1px solid #c9ded1; border-radius: 8px; padding: 7px 11px; transition: .2s;
}
.spotlight-open:hover { background: #d0e7d9; }
.spotlight-open .icon { width: 14px; height: 14px; }

.hero-foot { border-top: 1px solid rgba(198, 235, 218, .13); background: rgba(2, 17, 13, .16); }
.hero-foot-inner {
  width: min(100%, 1280px); margin-inline: auto; padding: 14px 46px;
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
}
.hero-foot-inner span { display: inline-flex; align-items: center; gap: 8px; color: rgba(220, 241, 230, .65); font-size: 11px; font-weight: 400; }
.hero-foot-inner .icon { width: 15px; height: 15px; color: #80d6b9; }

/* ---------- Sections & headings ---------- */
.section-kicker {
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .2px; margin-bottom: 9px;
}
.section-kicker .icon { width: 16px; height: 16px; }
.section-kicker-light { color: #8ed6bb; }
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: 22px;
}
.section-heading h2, .directory-heading h2 {
  font-family: var(--font-display); font-size: clamp(25px, 2.4vw, 33px); line-height: 1.4;
  letter-spacing: -.7px; color: var(--ink); margin-bottom: 7px;
}
.section-heading p, .directory-heading p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 640px; }

/* ---------- Weights ---------- */
.weights-section { padding-top: 64px; }
.weights-section .section-heading { align-items: flex-end; }
.preset-wrap { flex-shrink: 0; }
.preset-label { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 7px; text-align: end; }
.preset-row { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.preset-chip {
  border: 0; background: transparent; color: var(--muted); border-radius: 8px;
  padding: 7px 11px; font-size: 11.5px; font-weight: 700; transition: .2s; white-space: nowrap;
}
.preset-chip:hover { color: var(--ink); background: var(--surface); }
.preset-chip.is-active { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-xs); }
html[data-theme="dark"] .preset-chip.is-active { color: var(--accent); }
.weights-panel {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.weights-controls { padding: 12px 26px 12px; }
.weight-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.weight-row:last-child { border-bottom: 0; }
.weight-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.weight-index { font-family: var(--font-display); font-size: 10px; color: var(--muted-2); width: 19px; flex-shrink: 0; }
.weight-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.weight-title strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.weight-title small { font-size: 10px; color: var(--muted); }
.weight-percent {
  font-family: var(--font-display); font-size: 12px; color: var(--accent-strong); min-width: 46px;
  text-align: center; padding: 3px 7px; border-radius: 7px; background: var(--accent-soft);
}
html[data-theme="dark"] .weight-percent { color: var(--accent); }
.range {
  --val: 20%; -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  direction: ltr; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--val), var(--line) var(--val));
  margin: 2px 0 0; padding: 0;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(10, 125, 96, .25);
  transition: transform .15s, box-shadow .15s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 0 0 5px var(--accent-soft); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-soft); }
.range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); }
.range::-moz-range-track { background: transparent; }
.weights-side {
  background:
    radial-gradient(600px 380px at 108% 0%, rgba(79, 193, 151, .20), transparent 62%),
    linear-gradient(140deg, #0b2c25, #09332a);
  color: #edf6ef; padding: 24px 24px 22px; display: flex; flex-direction: column;
}
.weights-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.weights-side .section-kicker { margin-bottom: 0; }
.normalized-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: rgba(224, 243, 232, .66);
  border: 1px solid rgba(188, 228, 207, .18); border-radius: 99px; padding: 3px 8px;
}
.normalized-badge b { color: #a9eed1; font-size: 9.5px; }
.weight-insight { font-size: 13px; line-height: 1.9; color: rgba(233, 246, 236, .82); margin-top: 16px; min-height: 50px; }
.mini-ranking { margin-top: 18px; border-top: 1px solid rgba(188, 228, 207, .15); padding-top: 14px; }
.mini-ranking-label { display: block; font-size: 9.5px; color: rgba(221, 241, 230, .5); margin-bottom: 9px; }
.mini-ranking-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; counter-reset: mini; }
.mini-ranking-list li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #e5f4e9; }
.mini-ranking-list li::before {
  counter-increment: mini; content: counter(mini); display: grid; place-items: center;
  width: 19px; height: 19px; border-radius: 6px; background: rgba(165, 232, 204, .12);
  color: #9be5c9; font-size: 9px; font-family: var(--font-display);
}
.mini-ranking-list .mini-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-ranking-list .mini-score { font-size: 10px; color: #92e0c2; }
.reset-weights {
  margin-top: auto; padding-top: 17px; display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: rgba(216, 241, 228, .64); font-size: 10.5px;
  align-self: flex-start; transition: color .2s;
}
.reset-weights:hover { color: #b5f0d7; }
.reset-weights .icon { width: 14px; height: 14px; }

/* ---------- Directory ---------- */
.directory { padding-top: 74px; padding-bottom: 20px; }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.view-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; flex-shrink: 0; }
.view-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 700; transition: .2s;
}
.view-btn .icon { width: 16px; height: 16px; }
.view-btn:hover { color: var(--ink); }
.view-btn.is-active { background: var(--ink); color: var(--surface); }
html[data-theme="dark"] .view-btn.is-active { background: var(--accent); color: #07231b; }
.directory-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-box {
  flex: 1; position: relative; display: flex; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 13px; padding: 0 15px; height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box > .icon { color: var(--muted); width: 19px; height: 19px; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 13px; height: 100%; }
.search-box input::placeholder { color: var(--muted-2); }
.search-kbd {
  border: 1px solid var(--line); border-bottom-width: 2px; color: var(--muted-2);
  border-radius: 5px; font-size: 10px; padding: 0 6px; line-height: 18px; font-family: var(--font-body);
}
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.toolbar-actions .btn { min-height: 48px; }
.filters-toggle { display: none; position: relative; }
.filter-count {
  position: absolute; top: -7px; inset-inline-end: -7px; background: var(--accent); color: #fff;
  width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; font-size: 9px;
}
html[data-theme="dark"] .filter-count { color: #062018; }
.directory-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 22px; align-items: start; }

/* Filters */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 17px 15px; position: sticky; top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 34px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.filters::-webkit-scrollbar { width: 5px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.filters-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 13px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.filters-head > div { display: flex; flex-direction: column; }
.filters-head strong { font-size: 14px; }
.filters-head span { font-size: 10px; color: var(--muted); }
.filters-head .text-btn { font-size: 10.5px; padding-top: 2px; }
.filters-close { display: none; }
.filter-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-label { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; inset-inline-end: 11px; top: 50%; width: 6px; height: 6px;
  border-left: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted);
  transform: translateY(-70%) rotate(-45deg); pointer-events: none;
}
.select-wrap select {
  appearance: none; width: 100%; height: 37px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); border-radius: 9px;
  padding: 0 10px 0 28px; font-size: 11.5px; outline: none; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.select-wrap select:hover { border-color: var(--line-strong); }
.select-wrap select:focus { border-color: var(--accent); background: var(--surface); }
.cost-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.cost-pill {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-size: 9.5px; border-radius: 7px; padding: 4px 7px; transition: .2s;
}
.cost-pill:hover { border-color: var(--accent); color: var(--accent); }
.cost-pill.is-active { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent-strong); font-weight: 700; }
html[data-theme="dark"] .cost-pill.is-active { color: var(--accent); }
.filter-switch-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-switch-group .filter-label { margin-bottom: 1px; }
.filter-switch-group small { display: block; font-size: 9px; color: var(--muted-2); line-height: 1.5; }
.switch { position: relative; display: inline-flex; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); display: inline-block; position: relative; transition: .2s; cursor: pointer; }
.switch-thumb { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(-16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.filter-note {
  margin-top: 13px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 10px; display: flex; gap: 7px; color: var(--muted);
  font-size: 9.5px; line-height: 1.7;
}
.filter-note .icon { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.filters-scrim { display: none; }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--accent-soft-2);
  background: var(--accent-soft); color: var(--accent-strong); font-size: 10px;
  border-radius: 99px; padding: 4px 8px;
}
html[data-theme="dark"] .filter-chip { color: var(--accent); }
.filter-chip button { border: 0; background: none; padding: 0; display: flex; color: currentColor; opacity: .7; }
.filter-chip button:hover { opacity: 1; }
.filter-chip .icon { width: 12px; height: 12px; }

/* Company cards */
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.company-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: transform .28s var(--ease), border-color .2s, box-shadow .28s;
  animation: cardIn .36s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.company-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.company-card.is-top { border-color: #d9c18c; background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 44%, var(--surface)) 0%, var(--surface) 28%); }
html[data-theme="dark"] .company-card.is-top { border-color: #5f4e2b; }
.company-card.is-compared { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.card-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.rank-badge {
  position: absolute; top: -1px; inset-inline-end: 13px; min-width: 28px; height: 24px; display: grid;
  place-items: center; background: var(--surface-2); border: 1px solid var(--line);
  border-top: 0; border-radius: 0 0 7px 7px; font-family: var(--font-display);
  font-size: 9.5px; color: var(--muted); z-index: 1;
}
.rank-badge.rank-1 { background: var(--gold); color: #fff; border-color: var(--gold); }
.rank-badge.rank-2 { background: #aab6b2; color: #fff; border-color: #aab6b2; }
.rank-badge.rank-3 { background: #b88d69; color: #fff; border-color: #b88d69; }
.company-card .company-logo { width: 44px; height: 44px; border-radius: 12px; font-size: 13px; }
.card-company { min-width: 0; flex: 1; padding-inline-end: 26px; }
.card-company h3 {
  font-family: var(--font-display); font-size: 15.5px; line-height: 1.4; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-company .company-sub { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flag { font-size: 13px; line-height: 1; }
.flag-img {
  display: inline-block; width: 21px; height: 15px; object-fit: cover;
  border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(12, 40, 32, .14), 0 1px 2px rgba(12, 40, 32, .08);
  vertical-align: -2px; flex-shrink: 0; background: var(--surface-3);
}
.flag-fallback { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 15px; color: var(--muted); }
.flag-fallback .icon { width: 14px; height: 14px; }
.card-company .flag-img { width: 19px; height: 14px; }
.table-country .flag-img { margin-inline-end: 5px; }
.compare-chip .flag-img { width: 17px; height: 12px; }
.compare-company-head .flag-img { width: 17px; height: 12px; margin-inline-end: 3px; }
.card-compare {
  position: absolute; top: 34px; inset-inline-end: 12px; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px; color: var(--muted);
  transition: .2s; z-index: 2;
}
.card-compare .icon { width: 13px; height: 13px; }
.card-compare:hover { color: var(--accent); border-color: var(--accent); }
.card-compare.is-checked { color: #fff; background: var(--accent); border-color: var(--accent); }
html[data-theme="dark"] .card-compare.is-checked { color: #062018; }
.card-score-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.card-score { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; }
.card-score b { font-family: var(--font-display); font-size: 23px; color: var(--ink); line-height: 1; letter-spacing: -.8px; }
.card-score span { font-size: 9px; color: var(--muted); }
.score-track { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.score-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #62cda9); transition: width .5s var(--ease); }
.score-label { font-size: 8.5px; color: var(--muted); flex-shrink: 0; }
.card-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 3px 7px;
  font-size: 9px; line-height: 1.5; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.tag-category { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-soft-2); font-weight: 700; }
html[data-theme="dark"] .tag-category { color: var(--accent); }
.tag-cost { direction: rtl; letter-spacing: 1px; }
.card-summary {
  color: var(--ink-2); font-size: 11.5px; line-height: 1.8; margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 61px;
}
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; font-size: 9.5px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.card-meta .icon { width: 13px; height: 13px; }
.card-cert-row { display: flex; align-items: center; gap: 5px; margin-top: 10px; flex-wrap: wrap; min-height: 20px; }
.cert-mini {
  font-size: 8.5px; font-weight: 700; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; white-space: nowrap;
}
.cert-more { font-size: 8.5px; color: var(--muted); }
.card-divider { height: 1px; background: var(--line); margin: 12px 0 10px; }
.card-access { display: flex; align-items: center; gap: 4px; }
.access-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 28px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 7px; padding: 0 7px; font-size: 8.5px; transition: .2s; flex: 1; white-space: nowrap;
}
.access-link .icon { width: 12px; height: 12px; }
.access-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.card-profile-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px;
  border: 0; background: transparent; color: var(--accent); font-size: 9px; font-weight: 700; flex-shrink: 0;
}
.card-profile-btn:hover { text-decoration: underline; }
.card-profile-btn .icon { width: 12px; height: 12px; }

/* Table */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: auto; max-height: none;
}
.ranking-table { width: 100%; border-collapse: collapse; min-width: 940px; font-size: 11px; }
.ranking-table th {
  background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 9.5px;
  text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.ranking-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ranking-table tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr { transition: background .15s; cursor: pointer; }
.ranking-table tbody tr:hover { background: var(--surface-2); }
.ranking-table .rank-cell { font-family: var(--font-display); font-size: 11px; color: var(--muted); }
.table-company { display: flex; align-items: center; gap: 9px; min-width: 155px; }
.table-company .company-logo { width: 30px; height: 30px; border-radius: 8px; font-size: 9px; }
.table-company strong { display: block; font-size: 11px; line-height: 1.35; }
.table-company small { display: block; font-size: 8.5px; color: var(--muted); }
.table-score { font-family: var(--font-display); font-size: 13px; color: var(--accent-strong); }
html[data-theme="dark"] .table-score { color: var(--accent); }
.table-country { white-space: nowrap; }
.table-country .flag { margin-inline-end: 4px; }
.table-score-mini { font-size: 10px; color: var(--ink-2); }
.table-cert { color: var(--muted); font-size: 9px; max-width: 135px; }
.table-access { display: flex; gap: 3px; }
.table-icon-btn {
  width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-2); display: inline-grid; place-items: center; color: var(--muted);
}
.table-icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.table-icon-btn .icon { width: 12px; height: 12px; }
.table-compare {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); display: inline-grid; place-items: center;
}
.table-compare.is-checked { background: var(--accent); border-color: var(--accent); color: #fff; }
.table-compare .icon { width: 12px; height: 12px; }

/* Empty & footer */
.empty-state {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 60px 24px; text-align: center;
}
.load-more-wrap { display: flex; justify-content: center; padding: 22px 0 4px; }
.load-more-btn { min-width: 250px; gap: 9px; }
.load-more-btn #loadMoreCount { font-size: 10px; color: var(--muted); font-weight: 400; }
.load-more-btn .icon { width: 15px; height: 15px; }
.empty-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin: 0 auto 15px; }
.empty-icon .icon { width: 26px; height: 26px; }
.empty-state h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 12.5px; max-width: 420px; margin: 0 auto; }
.empty-actions { display: flex; justify-content: center; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.results-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding: 12px 2px; border-top: 1px solid var(--line);
}
.results-footer p { color: var(--muted); font-size: 9.5px; line-height: 1.7; max-width: 680px; }
.results-footer .text-btn { font-size: 10px; white-space: nowrap; }

/* ---------- Methodology ---------- */
.methodology { padding-top: 74px; padding-bottom: 72px; }
.methodology-heading { align-items: flex-end; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.method-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.method-num { position: absolute; top: 13px; left: 16px; font-family: var(--font-display); font-size: 34px; color: var(--surface-3); line-height: 1; font-weight: 700; }
html[data-theme="dark"] .method-num { color: var(--surface-2); }
.method-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 13px; position: relative; }
.method-icon .icon { width: 19px; height: 19px; }
.method-card h3 { font-family: var(--font-display); font-size: 15px; margin-bottom: 7px; position: relative; }
.method-card p { font-size: 11.5px; color: var(--muted); line-height: 1.9; position: relative; }
.formula { display: flex; align-items: center; gap: 8px; margin-top: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 9px; color: var(--ink-2); }
.formula b { color: var(--accent); }
.method-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 15px; }
.method-tags span { font-size: 8.5px; padding: 3px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong); }
html[data-theme="dark"] .method-tags span { color: var(--accent); }
.method-card .text-link { margin-top: 16px; }
.glossary-preview {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 19px 22px; display: flex; align-items: center; gap: 26px;
}
.glossary-preview-head { flex-shrink: 0; max-width: 230px; }
.glossary-preview-head h3 { font-family: var(--font-display); font-size: 13px; margin-bottom: 3px; }
.glossary-preview-head p { font-size: 9.5px; color: var(--muted); }
.glossary-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.glossary-chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: 7px; font-size: 9px; padding: 5px 8px; transition: .2s;
}
.glossary-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.data-notes { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 16px; }
.data-notes > div { display: flex; gap: 9px; align-items: flex-start; }
.data-notes .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.data-notes p { font-size: 9.5px; color: var(--muted); line-height: 1.8; max-width: 960px; }
.data-notes p strong { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #071b16; color: rgba(233, 246, 238, .7); padding: 40px 28px 0; }
.footer-inner { width: min(100%, 1280px); margin-inline: auto; display: grid; grid-template-columns: 1.2fr .8fr .7fr; gap: 40px; align-items: start; padding-bottom: 30px; }
.brand-footer .brand-copy strong { color: #f0f8f2; }
.brand-footer .brand-copy small { color: rgba(215, 236, 224, .48); }
.brand-footer .brand-mark { color: #63d9b3; }
.footer-brand p { font-size: 11px; color: rgba(219, 239, 228, .48); margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 11px; }
.footer-links a:hover, .footer-btn:hover { color: #a8e9cf; }
.footer-btn { border: 0; background: none; padding: 0; color: inherit; font-size: 11px; text-align: right; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 10px; color: rgba(219, 239, 228, .42); }
.footer-bottom {
  width: min(100%, 1280px); margin-inline: auto; display: flex; justify-content: space-between;
  gap: 15px; border-top: 1px solid rgba(188, 228, 207, .12); padding: 14px 0 20px;
  font-size: 9.5px; color: rgba(217, 238, 226, .3);
}

/* ---------- Compare tray ---------- */
.compare-tray {
  position: fixed; bottom: 16px; right: 50%; transform: translateX(50%);
  width: min(calc(100% - 32px), 900px); z-index: 70;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 15px;
  box-shadow: var(--shadow-md); animation: trayIn .3s var(--ease);
}
@keyframes trayIn { from { opacity: 0; transform: translate(50%, 16px); } to { opacity: 1; transform: translate(50%, 0); } }
.compare-tray-inner { display: flex; align-items: center; gap: 14px; padding: 10px 12px; }
body.has-compare .results-column { padding-bottom: 76px; }
body.has-compare .site-footer { padding-bottom: 64px; }
.compare-tray-info { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.compare-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.compare-icon .icon { width: 16px; height: 16px; }
.compare-tray-info > div { display: flex; flex-direction: column; line-height: 1.4; }
.compare-tray-info strong { font-size: 11px; }
.compare-tray-info span { font-size: 9px; color: var(--muted); }
.compare-chips { flex: 1; display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.compare-chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 7px; font-size: 9.5px;
}
.compare-chip button { border: 0; background: none; padding: 0; color: var(--muted); display: flex; }
.compare-chip button:hover { color: var(--danger); }
.compare-chip .icon { width: 11px; height: 11px; }
.compare-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 22, 17, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative; width: min(100%, 720px); max-height: min(92vh, 940px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 30px; animation: modalIn .35s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.modal-panel::-webkit-scrollbar { width: 7px; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.modal-panel-wide { width: min(100%, 1020px); }
.modal-panel-medium { width: min(100%, 820px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: sticky; top: 1px; z-index: 5; float: inline-end; margin-inline-start: auto;
  width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: .2s; box-shadow: var(--shadow-xs);
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-close .icon { width: 17px; height: 17px; }
.modal-head { margin-bottom: 22px; padding-top: 4px; }
.modal-head h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.4; margin-bottom: 7px; }
.modal-head p { color: var(--muted); font-size: 12px; line-height: 1.85; max-width: 640px; }

/* Detail */
#detailContent { margin-top: -1px; }
.detail-hero {
  position: relative; overflow: hidden; margin: 0 0 0; padding: 30px 30px 24px;
  background:
    radial-gradient(600px 300px at 105% -20%, rgba(87, 208, 165, .22), transparent 60%),
    linear-gradient(135deg, #0a2c24, #0a211c);
  color: #eef8f1; border-radius: 20px; margin-top: -14px;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(rgba(210, 245, 228, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(210, 245, 228, .1) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(100deg, black, transparent 65%);
}
.detail-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 15px; }
.detail-hero .company-logo { width: 58px; height: 58px; font-size: 17px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.detail-title-wrap { min-width: 0; flex: 1; }
.detail-kicker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.detail-kicker span { font-size: 9px; padding: 3px 7px; border-radius: 5px; background: rgba(216, 245, 232, .1); color: #b4ddca; border: 1px solid rgba(216, 245, 232, .15); }
.detail-title-wrap h2 { font-family: var(--font-display); font-size: clamp(21px, 3vw, 29px); line-height: 1.35; color: #f6fcf8; margin-bottom: 4px; }
.detail-location { display: flex; align-items: center; gap: 6px; color: rgba(224, 243, 232, .6); font-size: 11px; flex-wrap: wrap; }
.detail-location .flag { font-size: 15px; }
html:not([lang="ar"]):not([lang="ur"]) .native-company-name { display: none; }
.detail-rank-badge {
  margin-inline-start: auto; flex-shrink: 0; text-align: center; padding: 7px 10px;
  border: 1px solid rgba(200, 235, 217, .19); background: rgba(2, 22, 16, .28);
  border-radius: 10px; line-height: 1.3;
}
.detail-rank-badge b { display: block; font-family: var(--font-display); color: #88e1c1; font-size: 17px; }
.detail-rank-badge span { font-size: 8px; color: rgba(220, 243, 230, .5); }
.detail-hero-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(200, 235, 217, .13); flex-wrap: wrap; }
.detail-score-big { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.detail-score-big b { font-family: var(--font-display); font-size: 38px; line-height: 1; color: #9beacb; letter-spacing: -1.5px; }
.detail-score-big span { font-size: 10px; color: rgba(221, 241, 230, .5); }
.detail-score-track { flex: 1; min-width: 130px; height: 5px; border-radius: 99px; background: rgba(220, 245, 230, .14); overflow: hidden; }
.detail-score-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4bce9f, #a7ecd4); }
.detail-score-meta { font-size: 9px; color: rgba(221, 241, 230, .48); white-space: nowrap; }
.detail-body { padding: 25px 4px 4px; }
.detail-summary {
  font-size: 13px; color: var(--ink-2); line-height: 1.95; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px;
}
.detail-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.detail-mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.detail-mini-card span { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.detail-mini-card span .icon { width: 13px; height: 13px; color: var(--accent); }
.detail-mini-card p { font-size: 11px; line-height: 1.8; color: var(--ink-2); }
.detail-section { margin-top: 24px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-section-head h3 { font-family: var(--font-display); font-size: 15px; display: flex; align-items: center; gap: 7px; }
.detail-section-head h3 .icon { width: 16px; height: 16px; color: var(--accent); }
.detail-section-head small { font-size: 9.5px; color: var(--muted); }
.gates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gate {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 11px; padding: 11px 12px; transition: .2s; min-width: 0;
}
.gate:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.gate-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex-shrink: 0; }
.gate-icon .icon { width: 15px; height: 15px; }
.gate-copy { min-width: 0; }
.gate-copy strong { display: block; font-size: 10.5px; line-height: 1.45; }
.gate-copy small { display: block; font-size: 8.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.gate > .icon { width: 13px; height: 13px; color: var(--muted); margin-inline-start: auto; flex-shrink: 0; }
.detail-2col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.score-breakdown { display: grid; gap: 10px; }
.breakdown-row { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-2); }
.breakdown-row .b-track { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.breakdown-row .b-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.breakdown-row b { font-size: 10px; text-align: left; font-family: var(--font-display); color: var(--ink); }
.radar-wrap { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; justify-content: center; align-items: center; min-height: 220px; }
.radar-svg { width: 100%; max-width: 290px; height: auto; overflow: visible; }
.radar-axis-label { font-family: var(--font-body); fill: var(--muted); font-size: 9px; }
.radar-tick-label { fill: var(--muted-2); font-size: 7px; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; justify-content: center; }
.radar-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted); }
.radar-legend-swatch { width: 10px; height: 3px; border-radius: 99px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; border-top: 1px solid var(--line); }
.fact { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fact-icon { width: 25px; height: 25px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.fact-icon .icon { width: 13px; height: 13px; }
.fact-copy { min-width: 0; }
.fact-copy span { display: block; font-size: 8.5px; color: var(--muted); margin-bottom: 1px; }
.fact-copy strong { display: block; font-size: 10.5px; line-height: 1.6; color: var(--ink-2); font-weight: 700; word-break: break-word; }
.fact-copy small { display: block; font-size: 8px; color: var(--muted-2); }
.stock-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); border-radius: 6px; padding: 2px 6px; margin-top: 2px; font-size: 8px; color: var(--accent-strong); }
html[data-theme="dark"] .stock-pill { color: var(--accent); }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-list { display: grid; gap: 7px; }
.info-list li { list-style: none; display: flex; align-items: flex-start; gap: 8px; font-size: 10.5px; color: var(--ink-2); line-height: 1.8; }
.info-list li .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }
.info-list.cons li .dot { background: var(--gold); }
.token-list { display: flex; flex-wrap: wrap; gap: 5px; }
.token { font-size: 9px; padding: 4px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); }
.cert-list { display: grid; gap: 7px; }
.cert-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.cert-badge { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.cert-badge .icon { width: 13px; height: 13px; }
.cert-copy strong { display: block; font-size: 9.5px; }
.cert-copy p { font-size: 9px; color: var(--muted); line-height: 1.7; margin-top: 1px; }
.pricing-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pricing-box { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 11px 13px; }
.pricing-box span { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted); margin-bottom: 3px; }
.pricing-box span .icon { width: 12px; height: 12px; color: var(--accent); }
.pricing-box p { font-size: 10px; line-height: 1.8; color: var(--ink-2); }
.detail-actions { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.detail-actions .btn-danger-soft { color: var(--danger); border: 1px solid var(--danger-soft); background: var(--danger-soft); }
.detail-actions .btn-danger-soft:hover { border-color: var(--danger); }
.detail-actions .spacer { flex: 1; }
.custom-note { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-strong); font-size: 8.5px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }

/* Compare modal */
.compare-head h2 { font-family: var(--font-display); font-size: 25px; margin-bottom: 5px; }
.compare-head p { color: var(--muted); font-size: 12px; }
.compare-radar { display: flex; justify-content: center; margin: 15px 0 0; }
.compare-radar .radar-svg { max-width: 440px; }
.compare-radar .radar-wrap { width: min(100%, 470px); }
.compare-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.compare-table th, .compare-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 9.5px; vertical-align: top; }
.compare-table th { background: var(--surface-2); font-size: 9px; color: var(--muted); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { color: var(--muted); white-space: nowrap; }
.compare-table .best-cell { color: var(--accent-strong); font-weight: 700; background: var(--accent-soft); }
html[data-theme="dark"] .compare-table .best-cell { color: var(--accent); }
.compare-company-head { display: flex; align-items: center; gap: 6px; }
.compare-company-head .company-logo { width: 26px; height: 26px; border-radius: 7px; font-size: 8px; }
.compare-company-head strong { font-size: 9.5px; }
.compare-section { margin-top: 18px; }
.compare-section h3 { font-family: var(--font-display); font-size: 14px; margin-bottom: 8px; }
.compare-gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; margin-top: 10px; }
.compare-gate { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 9px; color: var(--ink-2); }
.compare-gate:hover { border-color: var(--accent); color: var(--accent); }
.compare-gate .icon { width: 12px; height: 12px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span:first-child { font-size: 10px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px;
  padding: 9px 11px; font-size: 11.5px; outline: none; transition: .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field-full { grid-column: 1 / -1; }
.check-line { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); }
.check-line input { width: 15px; height: 15px; accent-color: var(--accent); }
.score-form { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; margin-top: 18px; }
.score-form legend { font-family: var(--font-display); font-size: 12px; padding: 0 6px; }
.score-form-row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 12px; padding: 5px 0; }
.score-form-row label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--ink-2); gap: 8px; }
.score-form-row output { font-family: var(--font-display); font-size: 10px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; }
.range-small { height: 4px; }
.range-small::-webkit-slider-thumb { width: 13px; height: 13px; border-width: 3px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 8px 10px; font-size: 10px; margin-top: 10px; }

/* Glossary modal */
.glossary-list { display: grid; gap: 8px; }
.glossary-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 11px 13px; display: flex; gap: 10px; }
.glossary-item-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.glossary-item-icon .icon { width: 14px; height: 14px; }
.glossary-item strong { display: block; font-size: 11px; margin-bottom: 2px; }
.glossary-item p { font-size: 9.5px; color: var(--muted); line-height: 1.8; }
.glossary-item code { font-size: 8.5px; color: var(--accent-strong); background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; direction: ltr; display: inline-block; }

/* Toast */
.toast {
  position: fixed; bottom: 22px; right: 50%; transform: translate(50%, 20px);
  background: var(--ink); color: var(--surface); border-radius: 10px; padding: 9px 16px;
  font-size: 11px; z-index: 200; opacity: 0; pointer-events: none;
  transition: .3s var(--ease); box-shadow: var(--shadow-md); max-width: calc(100% - 30px);
}
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
html[data-theme="dark"] .toast { background: var(--accent); color: #062018; }

/* Skeleton for spotlight */
.spotlight-skeleton { display: grid; gap: 10px; padding: 5px 0; }
.skeleton { background: var(--surface-3); border-radius: 7px; height: 12px; animation: shimmer 1.2s infinite linear; }
.skeleton-lg { height: 44px; border-radius: 12px; }
.skeleton-circle { width: 44px; height: 44px; border-radius: 12px; }
@keyframes shimmer { 0% { opacity: .55; } 50% { opacity: 1; } 100% { opacity: .55; } }

/* Misc states */
.is-disabled { opacity: .48; cursor: not-allowed; }
.access-link.is-disabled:hover { color: var(--muted); border-color: var(--line); background: var(--surface); }
.spotlight-empty { position: relative; padding: 10px 2px 4px; }
.spotlight-empty h2 { font-family: var(--font-display); font-size: 17px; margin: 10px 0 4px; color: #0b2921; }
.spotlight-empty p { font-size: 11px; line-height: 1.8; color: #62766c; margin-bottom: 14px; }
.muted-copy { color: var(--muted); font-size: 10px; line-height: 1.8; }
.best-dot { color: var(--accent); font-size: 7px; vertical-align: 1px; }
.radar-chart { width: 100%; display: flex; flex-direction: column; align-items: center; }
.radar-series { transition: opacity .2s; }
.radar-point { transition: r .15s ease; cursor: help; }
.radar-point:hover { r: 4.5; }
.table-access .access-link { flex: 0 0 25px; width: 25px; height: 25px; padding: 0; border-radius: 6px; }
.table-access .access-link span { display: none; }
.table-access .access-link .icon { width: 12px; height: 12px; }
.table-country .flag { font-size: 15px; }
.results-footer + .compare-tray { margin-top: 0; }
.compare-section:first-of-type { margin-top: 16px; }

/* Add company certificate picker */
.cert-picker {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 15px;
}
.cert-picker legend { font-family: var(--font-display); font-size: 12px; padding: 0 6px; }
.cert-picker legend span { color: var(--muted); font-family: var(--font-body); font-size: 9px; }
.cert-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; }
.cert-choice { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.cert-choice input { accent-color: var(--accent); width: 14px; height: 14px; margin-top: 3px; flex-shrink: 0; }
.cert-choice span { display: flex; flex-direction: column; line-height: 1.4; }
.cert-choice small { color: var(--muted); font-size: 8px; }

/* Slight spacing refinements */
.detail-section .radar-wrap { min-height: 235px; }
.detail-2col > .detail-section { margin-top: 24px; }
.detail-actions .btn.is-selected { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent-strong); }
html[data-theme="dark"] .detail-actions .btn.is-selected { color: var(--accent); }
.compare-table th:first-child { width: 150px; }
.compare-table td, .compare-table th { min-width: 135px; }
.compare-table th:first-child, .compare-table td:first-child { min-width: 135px; }
.compare-table td { line-height: 1.65; }
.compare-company-head small { display: block; color: var(--muted); font-size: 8px; font-weight: 400; }

@media (max-width: 980px) {
  .cert-picker-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .lang-current { max-width: 82px; }
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 40px; padding-inline: 38px; }
  .hero-foot-inner { padding-inline: 38px; }
  .hero-stats > div { padding-inline: 18px; }
  .directory-layout { grid-template-columns: 238px minmax(0, 1fr); }
  .glossary-preview { align-items: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .preset-wrap { width: 100%; }
  .preset-row { width: fit-content; }
}
@media (max-width: 980px) {
  .header-inner { gap: 18px; }
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 50px; padding-bottom: 42px; }
  .hero-copy { max-width: 720px; }
  .spotlight { max-width: 560px; }
  .hero-stats { width: 100%; }
  .weights-panel { grid-template-columns: 1fr; }
  .weights-side { min-height: 265px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-card:last-child { grid-column: 1 / -1; }
  .directory-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 330px); z-index: 110;
    border-radius: 18px 0 0 18px; max-height: 100vh; transform: translateX(105%);
    transition: transform .32s var(--ease); padding: 20px;
  }
  .filters.is-open { transform: translateX(0); }
  .filters-close { display: inline-grid; }
  .filters-toggle { display: inline-flex; }
  .filters-scrim { display: block; position: fixed; inset: 0; background: rgba(4, 20, 15, .5); z-index: 105; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(3px); }
  .filters-scrim.is-open { opacity: 1; pointer-events: auto; }
  .filters-head { position: sticky; top: -20px; background: var(--surface); z-index: 2; padding-top: 3px; }
  .results-column { min-width: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 760px) {
  .section-shell { padding-inline: 18px; }
  .header-inner { padding-inline: 18px; min-height: 66px; gap: 10px; }
  :root { --header-height: 66px; }
  .header-actions { gap: 6px; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { min-width: 40px; padding: 0; }
  .lang-toggle { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .lang-current, .lang-chevron { display: none; }
  .lang-menu {
    position: fixed; top: calc(var(--header-height) + 8px); inset-inline: 12px;
    width: auto; max-height: calc(100vh - var(--header-height) - 20px); padding: 14px;
  }
  .lang-menu-grid { grid-template-columns: 1fr; }
  .lang-option { padding: 9px 10px; }
  .lang-option-copy strong { font-size: 12px; }
  .lang-option-copy small { font-size: 9px; }
  .brand-copy small { display: none; }
  .hero { width: calc(100% - 20px); margin-top: 10px; border-radius: 24px; }
  .hero-inner { padding: 38px 22px 32px; }
  .hero h1 { font-size: 34px; letter-spacing: -.7px; }
  .hero-lede { font-size: 13px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 15px 0; }
  .hero-stats > div { border-inline-start: 0; padding: 0; }
  .hero-stats > div:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid rgba(198, 235, 218, .14); }
  .hero-stats dd { font-size: 21px; }
  .hero-foot-inner { padding: 12px 22px; gap: 11px 18px; }
  .hero-foot-inner span { font-size: 9.5px; }
  .spotlight { padding: 17px; }
  .spotlight-company h2 { font-size: 16px; }
  .weights-section { padding-top: 47px; }
  .weights-controls { padding: 5px 16px; }
  .weight-row { padding: 13px 0; }
  .weight-title strong { font-size: 12px; }
  .weights-side { padding: 20px 18px; min-height: 250px; }
  .directory { padding-top: 50px; }
  .directory-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .directory-toolbar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .toolbar-actions { width: 100%; }
  .filters-toggle { flex: 1; }
  .toolbar-actions #exportBtn { flex: 1; }
  .company-grid { grid-template-columns: 1fr; }
  .company-card { padding: 15px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card:last-child { grid-column: auto; }
  .glossary-preview { flex-direction: column; gap: 12px; padding: 16px; }
  .glossary-preview-head { max-width: none; }
  .data-notes { align-items: flex-start; flex-direction: column; }
  .results-footer { flex-direction: column; align-items: flex-start; }
  .footer-inner { padding-inline: 2px; grid-template-columns: 1fr; gap: 22px; }
  .site-footer { padding-inline: 20px; }
  .footer-meta { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .compare-tray { bottom: 8px; width: calc(100% - 16px); }
  .compare-tray-inner { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .compare-chips { order: 3; flex-basis: 100%; }
  .compare-tray-info { flex: 1; }
  .compare-actions { margin-inline-start: auto; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-height: 95vh; border-radius: 20px 20px 0 0; padding: 20px; width: 100%; }
  .modal-panel-wide { width: 100%; }
  .detail-hero { padding: 22px 16px 18px; margin-top: -8px; border-radius: 16px; }
  .detail-hero-top { flex-wrap: wrap; }
  .detail-hero .company-logo { width: 50px; height: 50px; }
  .detail-rank-badge { margin-inline-start: 0; order: 4; }
  .detail-title-wrap { flex-basis: calc(100% - 68px); }
  .detail-body { padding: 18px 0 0; }
  .detail-summary-grid { grid-template-columns: 1fr; }
  .gates-grid { grid-template-columns: 1fr; }
  .detail-2col, .detail-columns { grid-template-columns: 1fr; }
  .detail-facts { grid-template-columns: 1fr; }
  .pricing-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .score-form-row { grid-template-columns: 115px 1fr; }
  .compare-table { min-width: 560px; }
  .compare-head h2 { font-size: 21px; }
}
@media (max-width: 440px) {
  .hero h1 { font-size: 29px; }
  .hero-actions .btn { width: 100%; }
  .spotlight-score-row { gap: 12px; }
  .score-ring { --ring-size: 74px; }
  .spotlight-bars { min-width: 0; }
  .sbar { grid-template-columns: 62px 1fr 24px; font-size: 8.5px; }
  .weights-controls { padding-inline: 13px; }
  .weight-index { display: none; }
  .view-btn span { display: none; }
  .toolbar-actions .btn { padding: 0 12px; }
  .export-label { display: none; }
  .toolbar-actions #exportBtn { flex: 0 0 48px; }
  .filters-toggle { flex: 1; }
  .compare-actions .btn-text { display: none; }
  .detail-score-big b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

