/* IPTV Reviews Evidence Library — 2026 premium layer */
:root {
  --kf-bg: #030711;
  --kf-bg-2: #071123;
  --kf-panel: rgba(9, 22, 43, .86);
  --kf-panel-solid: #0a172c;
  --kf-panel-2: #10223e;
  --kf-line: rgba(180, 201, 232, .15);
  --kf-line-strong: rgba(246, 200, 95, .34);
  --kf-text: #f4f8ff;
  --kf-muted: #afc0d6;
  --kf-soft: #8195af;
  --kf-cyan: #38d8ee;
  --kf-blue: #3b82f6;
  --kf-violet: #8c7bff;
  --kf-gold: #f6c85f;
  --kf-green: #34d399;
  --kf-amber: #fbbf24;
  --kf-rose: #fb7185;
  --kf-gradient: linear-gradient(135deg, #f6c85f 0%, #38d8ee 48%, #8c7bff 100%);
  --kf-gradient-soft: linear-gradient(135deg, rgba(246, 200, 95, .13), rgba(56, 216, 238, .1) 48%, rgba(140, 123, 255, .13));
  --kf-shadow: 0 26px 72px rgba(0, 6, 22, .38);
  --kf-shadow-sm: 0 14px 34px rgba(0, 6, 22, .25);
  --kf-radius: 22px;
  --kf-radius-sm: 14px;
  --kf-container: 1240px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body.site-v2,
body.upgraded-theme {
  color: var(--kf-text);
  background:
    radial-gradient(circle at 8% 2%, rgba(34, 211, 238, .09), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(139, 92, 246, .09), transparent 32rem),
    linear-gradient(180deg, var(--kf-bg), var(--kf-bg-2) 45%, var(--kf-bg));
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

.kf-hero h1,
.kf-section-heading h2,
.kf-card h2,
.kf-card h3,
.kf-article h2,
.kf-article h3,
.kf-sidebar-card h2,
.kf-footer h2 {
  font-family: Sora, Manrope, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.025em;
}

body.site-v2 *,
body.upgraded-theme * {
  box-sizing: border-box;
}

body.site-v2 a,
body.upgraded-theme a {
  text-underline-offset: .18em;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: -8rem;
  padding: .8rem 1rem;
  border-radius: 0 0 12px 12px;
  color: #04101f;
  background: var(--kf-cyan);
  font-weight: 800;
  transition: top .2s ease;
}

.skip-link:focus { top: 0; }

.reading-progress {
  position: fixed;
  z-index: 1200;
  inset: 0 auto auto 0;
  width: var(--reading-progress, 0%);
  height: 3px;
  background: var(--kf-gradient);
  box-shadow: 0 0 18px rgba(34, 211, 238, .7);
  pointer-events: none;
}

.kf-container {
  width: min(calc(100% - 2rem), var(--kf-container));
  margin-inline: auto;
}

.kf-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--kf-line);
  background: rgba(5, 11, 24, .84);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 12px 32px rgba(0, 5, 18, .18);
}

.kf-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kf-brand {
  display: inline-flex;
  align-items: center;
  min-width: 225px;
  text-decoration: none;
}

.kf-brand img {
  width: 250px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.kf-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}

.kf-nav a,
.knowledge-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  padding: .64rem .78rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #c6d6e9;
  font-size: .9rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.kf-nav a:hover,
.kf-nav a[aria-current="page"],
.knowledge-nav a:hover {
  color: #fff;
  border-color: var(--kf-line-strong);
  background: rgba(33, 66, 112, .42);
  transform: translateY(-1px);
}

.kf-nav__primary {
  color: #03111f !important;
  background: var(--kf-gradient) !important;
  box-shadow: 0 10px 28px rgba(34, 211, 238, .17);
}

.kf-menu-toggle,
.kf-theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--kf-line);
  border-radius: 12px;
  color: var(--kf-text);
  background: rgba(17, 36, 65, .72);
  cursor: pointer;
}

.kf-menu-toggle { display: none; }

.knowledge-nav {
  position: relative;
  z-index: 30;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--kf-line);
  background: rgba(7, 18, 38, .92);
}

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

.knowledge-nav__inner {
  width: max-content;
  min-width: 100%;
  max-width: var(--kf-container);
  min-height: 52px;
  margin: 0 auto;
  padding: .35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
}

.upgraded-theme .site-logo {
  min-width: 232px;
  padding: 0;
  background: none !important;
  box-shadow: none !important;
}

.upgraded-theme .site-logo .brand-logo,
.upgraded-theme .brand-logo {
  display: block;
  width: 248px;
  max-width: 42vw;
  height: auto;
}

.legacy-fragment-map {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.kf-breadcrumbs {
  padding: 1.1rem 0 0;
  color: var(--kf-soft);
  font-size: .86rem;
}

.kf-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kf-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: .45rem;
  color: #526680;
}

.kf-breadcrumbs a { color: #a8c7e6; text-decoration: none; }

.kf-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  isolation: isolate;
}

.kf-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(75, 107, 154, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 107, 154, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.kf-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46rem;
  height: 24rem;
  top: -8rem;
  right: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .17), transparent 68%);
  filter: blur(10px);
}

.kf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.kf-eyebrow,
.kf-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .75rem;
  border: 1px solid rgba(34, 211, 238, .27);
  border-radius: 999px;
  color: #b9f6ff;
  background: rgba(34, 211, 238, .08);
  font-size: .76rem;
  font-weight: 820;
  letter-spacing: .065em;
  line-height: 1;
  text-transform: uppercase;
}

.kf-eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--kf-green);
  box-shadow: 0 0 14px rgba(52, 211, 153, .8);
}

.kf-hero h1 {
  max-width: 960px;
  margin: 1.15rem 0 1.25rem;
  color: #fff;
  font-size: clamp(2.35rem, 5.7vw, 5rem);
  font-weight: 880;
  letter-spacing: -.052em;
  line-height: .99;
  text-wrap: balance;
}

.kf-gradient-text {
  color: transparent;
  background: var(--kf-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.kf-lede {
  max-width: 800px;
  margin: 0;
  color: #b9cade;
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  line-height: 1.78;
}

.kf-hero__meta,
.kf-actions,
.kf-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

.kf-hero__meta { margin-top: 1.55rem; }
.kf-actions { margin-top: 1.8rem; }

.kf-meta-chip {
  padding: .5rem .68rem;
  border: 1px solid var(--kf-line);
  border-radius: 10px;
  color: #aebfd3;
  background: rgba(10, 24, 48, .7);
  font-size: .78rem;
  font-weight: 700;
}

.kf-btn {
  min-height: 48px;
  padding: .78rem 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid var(--kf-line);
  border-radius: 13px;
  color: #edf7ff;
  background: rgba(20, 43, 76, .72);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--kf-shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kf-btn:hover {
  transform: translateY(-2px);
  border-color: var(--kf-line-strong);
  box-shadow: 0 20px 42px rgba(0, 7, 24, .34);
}

.kf-btn--primary {
  color: #03111f;
  border-color: transparent;
  background: var(--kf-gradient);
}

.kf-hero-card,
.kf-card,
.kf-article,
.kf-sidebar-card,
.kf-callout,
.kf-table-wrap,
.kf-faq details,
.kf-search-panel {
  border: 1px solid var(--kf-line);
  background: linear-gradient(145deg, rgba(17, 36, 65, .9), rgba(8, 20, 41, .88));
  box-shadow: var(--kf-shadow-sm);
}

.kf-hero-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 26px;
  overflow: hidden;
}

.kf-hero-card::before {
  content: "";
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: -4rem;
  top: -5rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, .13);
  filter: blur(2px);
}

.kf-stat {
  position: relative;
  padding: 1.15rem;
  border-bottom: 1px solid var(--kf-line);
}
.kf-stat:last-child { border-bottom: 0; }
.kf-stat strong { display: block; color: #fff; font-size: 1.55rem; line-height: 1; }
.kf-stat span { display: block; margin-top: .38rem; color: var(--kf-muted); font-size: .84rem; }

.kf-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.kf-section--tight { padding: 2.5rem 0; }
.kf-section--tint { border-block: 1px solid var(--kf-line); background: rgba(7, 18, 38, .58); }

.kf-section-heading {
  max-width: 820px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.kf-section-heading h2 {
  margin: .8rem 0 .65rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.034em;
  text-wrap: balance;
}

.kf-section-heading p { margin: 0; color: var(--kf-muted); font-size: 1.04rem; line-height: 1.72; }

.kf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kf-card {
  position: relative;
  min-width: 0;
  padding: 1.35rem;
  border-radius: var(--kf-radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.kf-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -4rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, .09);
  pointer-events: none;
}

.kf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, .31);
  box-shadow: var(--kf-shadow);
}

.kf-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 211, 238, .23);
  border-radius: 14px;
  color: #a5f3fc;
  background: var(--kf-gradient-soft);
  font-size: 1.25rem;
  font-weight: 900;
}

.kf-card h2,
.kf-card h3 { margin: 0 0 .55rem; color: #f5f9ff; font-size: 1.18rem; line-height: 1.28; }
.kf-card p { margin: 0 0 1rem; color: var(--kf-muted); font-size: .93rem; line-height: 1.68; }
.kf-card a.kf-card__link { position: relative; z-index: 1; color: #78e7f7; font-weight: 800; text-decoration: none; }

.kf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 1.35rem;
}

.kf-article {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border-radius: 26px;
}

.kf-article h2 {
  margin: 2.5rem 0 .8rem;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.kf-article h2:first-child { margin-top: 0; }
.kf-article h3 { margin: 1.7rem 0 .65rem; color: #dff7ff; font-size: 1.22rem; line-height: 1.3; }
.kf-article p,
.kf-article li { color: #bdccdc; font-size: 1rem; line-height: 1.82; }
.kf-article strong { color: #edf7ff; }
.kf-article a { color: #65e4f8; }
.kf-article ul,
.kf-article ol { padding-left: 1.3rem; }
.kf-article li + li { margin-top: .55rem; }

.kf-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 1rem;
}

.kf-sidebar-card {
  padding: 1.15rem;
  border-radius: 18px;
}

.kf-sidebar-card h2,
.kf-sidebar-card h3 { margin: 0 0 .7rem; color: #fff; font-size: .98rem; }
.kf-sidebar-card ul { margin: 0; padding: 0; list-style: none; }
.kf-sidebar-card li + li { border-top: 1px solid var(--kf-line); }
.kf-sidebar-card a { display: block; padding: .62rem 0; color: #a9c5df; font-size: .86rem; line-height: 1.35; text-decoration: none; }
.kf-sidebar-card a:hover { color: #67e8f9; }

.kf-callout {
  margin: 1.5rem 0;
  padding: 1.15rem 1.2rem;
  border-left: 4px solid var(--kf-cyan);
  border-radius: 0 16px 16px 0;
}

.kf-callout--warning { border-left-color: var(--kf-amber); }
.kf-callout--success { border-left-color: var(--kf-green); }
.kf-callout h3 { margin-top: 0; }
.kf-callout p:last-child { margin-bottom: 0; }

.kf-checklist,
.kf-step-list { margin: 1.2rem 0; padding: 0 !important; list-style: none; counter-reset: steps; }
.kf-checklist li,
.kf-step-list li {
  position: relative;
  min-height: 44px;
  margin: 0 !important;
  padding: .7rem .4rem .7rem 2.9rem;
  border-bottom: 1px solid var(--kf-line);
}
.kf-checklist li::before,
.kf-step-list li::before {
  position: absolute;
  left: .25rem;
  top: .72rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #03111f;
  background: var(--kf-gradient);
  font-size: .72rem;
  font-weight: 900;
}
.kf-checklist li::before { content: "✓"; }
.kf-step-list li { counter-increment: steps; }
.kf-step-list li::before { content: counter(steps); }

.kf-table-wrap {
  margin: 1.4rem 0;
  border-radius: 17px;
  overflow-x: auto;
}

.kf-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.kf-table th,
.kf-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--kf-line); text-align: left; vertical-align: top; }
.kf-table th { color: #cff9ff; background: rgba(34, 211, 238, .08); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.kf-table td { color: #b8c9dc; font-size: .9rem; line-height: 1.55; }
.kf-table tr:last-child td { border-bottom: 0; }

.kf-score {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .5rem;
  border-radius: 8px;
  color: #c7fff0;
  background: rgba(52, 211, 153, .12);
  font-size: .76rem;
  font-weight: 800;
}

.kf-faq { display: grid; gap: .75rem; }
.kf-faq details { border-radius: 15px; overflow: hidden; }
.kf-faq summary { position: relative; padding: 1rem 3rem 1rem 1.1rem; color: #edf7ff; font-weight: 780; cursor: pointer; list-style: none; }
.kf-faq summary::-webkit-details-marker { display: none; }
.kf-faq summary::after { content: "+"; position: absolute; right: 1.05rem; top: .78rem; color: var(--kf-cyan); font-size: 1.35rem; }
.kf-faq details[open] summary::after { content: "−"; }
.kf-faq details[open] summary { border-bottom: 1px solid var(--kf-line); background: rgba(34, 211, 238, .05); }
.kf-faq details div { padding: .2rem 1.1rem .95rem; }
.kf-faq p { color: var(--kf-muted); line-height: 1.7; }

.kf-directory-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.kf-directory-card__domain { color: #77ebfb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; word-break: break-word; }
.kf-directory-card__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: .7rem; }
.kf-directory-card__actions a { flex: 1 1 auto; }

.kf-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 15px;
  color: #fff;
  background: var(--brand-gradient, var(--kf-gradient));
  box-shadow: 0 12px 26px rgba(3, 11, 29, .32);
  font-weight: 900;
}

.kf-filter-bar,
.kf-search-panel { padding: 1rem; border-radius: 18px; }
.kf-filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.kf-filter-button { padding: .6rem .8rem; border: 1px solid var(--kf-line); border-radius: 10px; color: #bcd0e5; background: rgba(13, 31, 58, .76); font-weight: 750; cursor: pointer; }
.kf-filter-button[aria-pressed="true"] { color: #03111f; border-color: transparent; background: var(--kf-gradient); }

.kf-search {
  width: 100%;
  min-height: 54px;
  padding: .82rem 1rem;
  border: 1px solid var(--kf-line-strong);
  border-radius: 13px;
  outline: none;
  color: #eef8ff;
  background: rgba(4, 14, 30, .84);
  font: inherit;
}
.kf-search:focus { border-color: var(--kf-cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .1); }
.kf-search-results { display: grid; gap: .7rem; margin-top: 1rem; }
.kf-search-result { display: block; padding: 1rem; border: 1px solid var(--kf-line); border-radius: 14px; color: inherit; background: rgba(12, 29, 55, .72); text-decoration: none; }
.kf-search-result:hover { border-color: var(--kf-line-strong); }
.kf-search-result strong { display: block; color: #fff; }
.kf-search-result span { display: block; margin-top: .35rem; color: var(--kf-muted); font-size: .88rem; line-height: 1.55; }

.kf-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.kf-pagination a { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--kf-line); border-radius: 10px; color: #c1d4e9; background: rgba(14, 31, 57, .7); text-decoration: none; }
.kf-pagination a[aria-current="page"] { color: #03111f; border-color: transparent; background: var(--kf-gradient); }

.kf-thread-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; color: var(--kf-soft); font-size: .82rem; }
.kf-answer { position: relative; margin-top: 1.2rem; padding: 1.2rem; border: 1px solid rgba(52, 211, 153, .2); border-radius: 17px; background: rgba(52, 211, 153, .055); }
.kf-answer__badge { display: inline-flex; margin-bottom: .8rem; padding: .35rem .55rem; border-radius: 8px; color: #c5ffec; background: rgba(52, 211, 153, .12); font-size: .72rem; font-weight: 850; text-transform: uppercase; }

.kf-disclosure {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--kf-line);
  color: var(--kf-soft);
  font-size: .78rem;
  line-height: 1.65;
}

.kf-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--kf-line);
  background: #040a16;
}

.kf-footer__grid {
  padding: 3.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 2rem;
}
.kf-footer__brand img { width: 250px; max-width: 100%; }
.kf-footer h2,
.kf-footer h3 { margin: 0 0 .85rem; color: #edf7ff; font-size: .96rem; }
.kf-footer p { max-width: 390px; color: var(--kf-soft); font-size: .88rem; line-height: 1.65; }
.kf-footer ul { margin: 0; padding: 0; list-style: none; }
.kf-footer li + li { margin-top: .45rem; }
.kf-footer a { color: #9fb4cc; font-size: .87rem; text-decoration: none; }
.kf-footer a:hover { color: var(--kf-cyan); }
.kf-footer__bottom { padding: 1.2rem 0 1.5rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--kf-line); color: #7387a2; font-size: .8rem; }

.kf-back-to-top {
  position: fixed;
  z-index: 700;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--kf-line-strong);
  border-radius: 14px;
  color: #061222;
  background: var(--kf-gradient);
  box-shadow: var(--kf-shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .2s ease;
}
.kf-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

body.upgraded-theme .whatsapp-float,
body.site-v2 .whatsapp-float,
a[href*="wa.me"].whatsapp-float { display: none !important; }

body.upgraded-theme .container { width: min(calc(100% - 2rem), var(--kf-container)); }
body.upgraded-theme .site-header { border-color: var(--kf-line); background: rgba(5, 11, 24, .86); backdrop-filter: blur(20px); }
body.upgraded-theme .glass-card,
body.upgraded-theme .feature-card,
body.upgraded-theme .pricing-card,
body.upgraded-theme .blog-card,
body.upgraded-theme .provider-card,
body.upgraded-theme .testimonial-card { border-color: var(--kf-line) !important; box-shadow: var(--kf-shadow-sm); }

.kf-review-verdict {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.4rem;
  border: 1px solid rgba(246, 200, 95, .28);
  border-radius: var(--kf-radius);
  background: linear-gradient(135deg, rgba(246, 200, 95, .09), rgba(56, 216, 238, .06));
}

.kf-review-verdict h2 { margin-top: .55rem !important; }
.kf-review-verdict p { margin-bottom: 0 !important; }

.kf-evidence-badge {
  min-width: 154px;
  display: grid;
  justify-items: center;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid rgba(56, 216, 238, .28);
  border-radius: 18px;
  color: var(--kf-text);
  background: rgba(5, 14, 29, .72);
  text-align: center;
}

.kf-evidence-badge i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #07101f;
  background: var(--kf-gradient);
  font-size: 1.2rem;
}

.kf-evidence-badge span { color: var(--kf-muted); font-size: .78rem; }
.kf-lens-card .kf-card__icon { color: #07101f; background: var(--kf-gradient); }
.kf-lab-group ul { columns: 2; gap: 1.3rem; margin: 1rem 0 0; padding-left: 1.1rem; }
.kf-lab-group li { break-inside: avoid; margin: .42rem 0; }
.kf-lab-group a { color: #bdeffc; text-decoration-color: rgba(56, 216, 238, .3); }

body.upgraded-theme .knowledge-nav {
  border-color: var(--kf-line);
  background: rgba(5, 14, 29, .94);
}

body.upgraded-theme .hero,
body.upgraded-theme .page-hero {
  position: relative;
  overflow: hidden;
}

body.upgraded-theme .hero::after,
body.upgraded-theme .page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10rem -14rem auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 200, 95, .12), transparent 67%);
  pointer-events: none;
}

body.upgraded-theme .site-logo img,
body.upgraded-theme .footer-logo img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .24)); }

.legacy-seo-breadcrumb {
  width: min(calc(100% - 2rem), var(--kf-container));
  margin: .8rem auto 0;
  padding: .75rem 1rem;
  border: 1px solid var(--kf-line);
  border-radius: 12px;
  color: var(--kf-muted);
  background: rgba(8, 22, 42, .74);
  font-size: .86rem;
}

.legacy-seo-breadcrumb a { color: #bdeffc; text-decoration: none; }
.legacy-seo-breadcrumb span { margin: 0 .45rem; color: var(--kf-soft); }

body.light-theme.site-v2 {
  --kf-bg: #eef5ff;
  --kf-bg-2: #f8fbff;
  --kf-panel: rgba(255, 255, 255, .9);
  --kf-panel-solid: #fff;
  --kf-panel-2: #eef5ff;
  --kf-line: rgba(24, 65, 112, .14);
  --kf-line-strong: rgba(37, 99, 235, .3);
  --kf-text: #0c1b31;
  --kf-muted: #50647d;
  --kf-soft: #6d7f94;
  background: linear-gradient(180deg, #edf5ff, #f8fbff 46%, #edf5ff);
}
body.light-theme.site-v2 .kf-header { background: rgba(248, 251, 255, .88); }
body.light-theme.site-v2 .kf-brand img { filter: drop-shadow(0 5px 12px rgba(15, 31, 57, .1)); }
body.light-theme.site-v2 .kf-card,
body.light-theme.site-v2 .kf-article,
body.light-theme.site-v2 .kf-sidebar-card,
body.light-theme.site-v2 .kf-hero-card,
body.light-theme.site-v2 .kf-callout,
body.light-theme.site-v2 .kf-table-wrap,
body.light-theme.site-v2 .kf-faq details,
body.light-theme.site-v2 .kf-search-panel { background: rgba(255, 255, 255, .88); }
body.light-theme.site-v2 .kf-hero h1,
body.light-theme.site-v2 .kf-section-heading h2,
body.light-theme.site-v2 .kf-card h2,
body.light-theme.site-v2 .kf-card h3,
body.light-theme.site-v2 .kf-article h2,
body.light-theme.site-v2 .kf-article h3,
body.light-theme.site-v2 .kf-article strong,
body.light-theme.site-v2 .kf-sidebar-card h2,
body.light-theme.site-v2 .kf-sidebar-card h3,
body.light-theme.site-v2 .kf-faq summary { color: #0b1a30; }
body.light-theme.site-v2 .kf-nav a { color: #2a4668; }
body.light-theme.site-v2 .kf-search { color: #10223b; background: #fff; }
body.light-theme.site-v2 .kf-evidence-badge { color: #0c1b31; background: rgba(255, 255, 255, .9); }

@media (max-width: 1080px) {
  .kf-nav a:not(.kf-nav__primary) { display: none; }
  .kf-menu-toggle { display: inline-grid; }
  .kf-nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    padding: .75rem;
    display: grid;
    border: 1px solid var(--kf-line);
    border-radius: 0 0 18px 18px;
    background: rgba(5, 13, 29, .98);
    box-shadow: var(--kf-shadow);
  }
  .kf-nav.is-open a { display: flex; justify-content: flex-start; }
  .kf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .kf-hero__grid,
  .kf-layout { grid-template-columns: 1fr; }
  .kf-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --kf-radius: 17px; }
  .kf-container { width: min(calc(100% - 1.15rem), var(--kf-container)); }
  .kf-header__inner { min-height: 68px; }
  .kf-brand { min-width: 0; }
  .kf-brand img { width: 198px; max-width: 60vw; }
  .kf-theme-toggle { display: none; }
  .kf-nav__primary { display: none !important; }
  .kf-hero { padding-top: 3.25rem; }
  .kf-hero h1 { font-size: clamp(2.1rem, 12vw, 3.25rem); }
  .kf-hero__grid { gap: 2rem; }
  .kf-grid,
  .kf-grid--2,
  .kf-grid--4,
  .kf-sidebar,
  .kf-footer__grid { grid-template-columns: 1fr; }
  .kf-article { padding: 1.05rem; border-radius: 19px; }
  .kf-card { padding: 1.1rem; }
  .kf-actions .kf-btn { width: 100%; }
  .kf-footer__bottom { flex-direction: column; }
  .knowledge-nav__inner { justify-content: flex-start; }
  .upgraded-theme .site-logo .brand-logo,
  .upgraded-theme .brand-logo { width: 195px; max-width: 58vw; }
  .kf-review-verdict { grid-template-columns: 1fr; }
  .kf-evidence-badge { justify-items: start; text-align: left; }
  .kf-lab-group ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .kf-header,
  .knowledge-nav,
  .kf-sidebar,
  .kf-footer,
  .kf-back-to-top,
  .reading-progress { display: none !important; }
  body.site-v2 { color: #111; background: #fff; }
  .kf-layout { display: block; }
  .kf-article { border: 0; box-shadow: none; background: #fff; }
  .kf-article p,
  .kf-article li { color: #222; }
}
