@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ================================================================
   OBSCYRON CMS v4 — DARK MODE (default)
   ================================================================ */
:root {
  --bg:      #1e1e1e;
  --bg-2:    #252525;
  --bg-3:    #2d2d2d;
  --bg-4:    #333;
  --line:    rgba(255,255,255,0.08);
  --line-hi: rgba(255,255,255,0.18);
  --dim:     #555;
  --mid:     #888;
  --sub:     #aaa;
  --text:    #d8d8d8;
  --white:   #fff;
  --danger:  rgba(210,80,80,0.9);
  --warn:    rgba(180,140,70,0.9);
  --ok:      rgba(70,155,90,0.9);
  --danger-bg: rgba(210,80,80,0.1);
  --warn-bg:   rgba(180,140,70,0.1);
  --ok-bg:     rgba(70,155,90,0.1);
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --radius:  0px;
  /* Theme toggle button */
  --toggle-bg: #333;
  --toggle-icon: '☀';
}

/* ── LIGHT MODE ──────────────────────────────────────────── */
[data-theme="light"] {
  --bg:      #f4f3ef;
  --bg-2:    #eceae4;
  --bg-3:    #e2e0d8;
  --bg-4:    #d8d6ce;
  --line:    rgba(0,0,0,0.08);
  --line-hi: rgba(0,0,0,0.18);
  --dim:     #aaa;
  --mid:     #666;
  --sub:     #444;
  --text:    #1c1c1c;
  --white:   #111;
  --danger:  rgba(180,50,50,0.9);
  --warn:    rgba(140,100,20,0.9);
  --ok:      rgba(30,120,60,0.9);
  --danger-bg: rgba(180,50,50,0.08);
  --warn-bg:   rgba(140,100,20,0.08);
  --ok-bg:     rgba(30,120,60,0.08);
  --shadow:  0 4px 24px rgba(0,0,0,0.12);
  --toggle-bg: #e0ddd5;
  --toggle-icon: '🌙';
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .main-nav {
  background: rgba(244,243,239,0.92);
}
[data-theme="light"] .brand-mark { color: #111; }
[data-theme="light"] .hero-copy { background: var(--bg); }
[data-theme="light"] .hero-copy h1 { color: #111; }
[data-theme="light"] .hero-panel { background: var(--bg-2); }
[data-theme="light"] .metric-grid strong { color: #111; }
[data-theme="light"] .monitor-card { background: var(--bg-3); }
[data-theme="light"] .report-card  { background: var(--bg-2); }
[data-theme="light"] .report-card:hover { background: var(--bg-3); }
[data-theme="light"] .report-card h3 { color: #111; }
[data-theme="light"] .section-block { background: var(--bg); }
[data-theme="light"] .section-block.alt { background: var(--bg-2); }
[data-theme="light"] .section-head h2 { color: #111; }
[data-theme="light"] .detail-title { color: #111; }
[data-theme="light"] .admin-body { background: var(--bg); }
[data-theme="light"] .admin-topbar { background: rgba(244,243,239,0.96); }
[data-theme="light"] .admin-topbar h1 { color: #111; }
[data-theme="light"] .admin-sidebar { background: var(--bg-2); }
[data-theme="light"] .admin-table { background: var(--bg-2); }
[data-theme="light"] .table-head { background: var(--bg-3); }
[data-theme="light"] .plan-card { background: var(--bg); }
[data-theme="light"] .plan-card.featured { background: var(--bg-3); }
[data-theme="light"] .plan-name { color: #111; }
[data-theme="light"] .plan-price { color: #111; }
[data-theme="light"] .site-footer { background: var(--bg-3); }
[data-theme="light"] .login-card { background: var(--bg-2); }
[data-theme="light"] .button-solid { background: #111; color: #fff; }
[data-theme="light"] .button-solid:hover { background: #333; }
[data-theme="light"] .nav-cta { border-color: rgba(0,0,0,0.2); color: #555; }
[data-theme="light"] .nav-cta:hover { color: #111; border-color: rgba(0,0,0,0.5); background: transparent; }
[data-theme="light"] .tag { background: var(--bg-3); }
[data-theme="light"] .tag.premium { background: rgba(0,0,0,0.07); }
[data-theme="light"] .admin-form input,
[data-theme="light"] .editor-form input,
[data-theme="light"] .admin-form textarea,
[data-theme="light"] .editor-form textarea,
[data-theme="light"] .admin-form select,
[data-theme="light"] .editor-form select { background: var(--bg); border-color: var(--line-hi); }
[data-theme="light"] .boxed-group { background: var(--bg-2); }
[data-theme="light"] .hub-overlay { background: var(--bg); }
[data-theme="light"] .premium-gate { background: var(--bg-3); }
[data-theme="light"] .implication-box { background: var(--bg-2); border-left-color: #111; }

/* ── THEME TOGGLE BUTTON ──────────────────────────────────── */
.theme-toggle {
  background: var(--toggle-bg);
  border: 1px solid var(--line-hi);
  color: var(--mid);
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--white); color: var(--white); }

/* ================================================================
   BASE STYLES
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif; font-size: 16.5px;
  line-height: 1.6; overflow-x: hidden;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── NAV ──────────────────────────────────────────────────── */
.main-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 58px;
  background: rgba(30,30,30,0.94); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); gap: 1rem;
}
[data-theme="light"] .main-nav {
  background: rgba(244,243,239,0.96);
}
.brand-block { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  font-family: 'Oswald', sans-serif;
  font-size: 1.08rem; font-weight: 600; letter-spacing: 0.18em; color: var(--white);
}
.brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim); display: block; margin-top: 2px;
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); transition: color .2s; text-decoration: none;
}
.nav-links a:hover { color: var(--white); }

/* ── NAV ACTION GROUP ─────────────────────────────────────── */
/* 토글 / 로그인 / 기업문의가 하나의 응집된 언어로 보여야 함  */
.nav-action-group {
  display: flex;
  align-items: stretch;          /* 같은 높이 유지 */
  height: 30px;
  border: 1px solid var(--line-hi);
  flex-shrink: 0;
  overflow: hidden;
}
/* 공통 셀 스타일 */
.nav-action-group > * {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s, opacity .15s;
  white-space: nowrap;
  position: relative;
}
/* 셀 간 구분선 */
.nav-action-group > * + * {
  border-left: 1px solid var(--line-hi);
}

/* 테마 토글 — 회색 배경, 아이콘 */
.nav-toggle-cell {
  background: var(--bg-3);
  color: var(--mid);
  width: 38px;
  padding: 0;
  font-size: 0.97rem;
  flex-shrink: 0;
}
.nav-toggle-cell:hover { background: var(--bg-4); color: var(--text); }

/* 로그인 / 마이페이지 — 투명 배경, 서브 텍스트 톤 */
.nav-login-cell {
  background: transparent;
  color: var(--sub);
  padding: 0 1rem;
}
.nav-login-cell:hover { color: var(--white); background: rgba(255,255,255,0.04); }

/* 기업 문의 — 절제된 강조: border만, 흰 텍스트 */
.nav-cta-cell {
  background: transparent;
  color: var(--mid);
  padding: 0 1rem;
}
.nav-cta-cell:hover { color: var(--white); background: rgba(255,255,255,0.04); }

/* 라이트 모드 override */
[data-theme="light"] .nav-action-group {
  border-color: rgba(0,0,0,0.18);
}
[data-theme="light"] .nav-action-group > * + * {
  border-left-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .nav-toggle-cell {
  background: var(--bg-3); color: var(--mid);
}
[data-theme="light"] .nav-toggle-cell:hover { background: var(--bg-4); color: var(--sub); }
[data-theme="light"] .nav-login-cell { color: var(--sub); }
[data-theme="light"] .nav-login-cell:hover { color: #111; background: rgba(0,0,0,0.04); }
[data-theme="light"] .nav-cta-cell { color: var(--mid); }
[data-theme="light"] .nav-cta-cell:hover { color: #111; background: rgba(0,0,0,0.04); }

/* ── 하위 호환: 기존 클래스 유지 ────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-auth  { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--mid);
  border: 1px solid var(--line-hi); padding: 0.48rem 1.1rem;
  cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block;
}
.nav-cta:hover { color: var(--white); border-color: var(--mid); }
.nav-cta-ghost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--mid);
  border: 1px solid var(--line-hi); padding: 0.48rem 1.1rem;
  cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block;
}
.nav-cta-ghost:hover { border-color: var(--white); color: var(--white); }
.nav-login {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--sub);
  border: none; padding: 0; cursor: pointer;
  transition: color .2s; text-decoration: none; display: inline-block;
}
.nav-login:hover { color: var(--white); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.button {
  display: inline-block; padding: 0.78rem 1.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all .2s;
}
.button-solid { background: var(--white); color: var(--bg); }
.button-solid:hover { background: #ccc; }
.button-ghost { background: transparent; color: var(--sub); border: 1px solid var(--line-hi); }
.button-ghost:hover { border-color: var(--white); color: var(--white); }
.button-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(210,80,80,0.25); }
.button-danger:hover { background: rgba(210,80,80,0.2); }

/* ── SECTION HELPERS ──────────────────────────────────────── */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dim); display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 14px; height: 1px; background: var(--dim);
}

/* ── LIVE DOT ─────────────────────────────────────────────── */
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  animation: blink 2.4s ease-in-out infinite; display: inline-block;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.18;} }

/* ── HERO ─────────────────────────────────────────────────── */
.hero-shell {
  display: grid; grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 60px);
}
.hero-copy {
  padding: 6rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line); position: relative; overflow: hidden;
}
.hero-copy::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(142deg, transparent 47%, rgba(255,255,255,0.02) 47.5%, transparent 48%),
    linear-gradient(142deg, transparent 56%, rgba(255,255,255,0.015) 56.5%, transparent 57%);
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-copy h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem,4.5vw,4.2rem);
  font-weight: 600; line-height: 1.02; letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 1.6rem;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.14) 60%);
}
.hero-copy > p {
  font-size: 1.02rem; line-height: 1.85; color: var(--sub);
  max-width: 420px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-panel {
  background: var(--bg-2);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  align-self: start;
  width: 100%;
  max-width: 420px;
}
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; flex-shrink: 0; }
.metric-grid > div {
  padding: 1.45rem 1.35rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metric-grid > div:nth-child(2) { border-right: none; }
.metric-grid > div:nth-child(3) { border-bottom: none; }
.metric-grid > div:nth-child(4) { border-right: none; border-bottom: none; }
.metric-grid strong {
  display: flex; align-items: baseline; gap: 0.18rem;
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem; font-weight: 600; color: var(--white); line-height: 1;
  letter-spacing: 0.02em; white-space: nowrap;
}
.metric-grid strong span {
  display: inline;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--mid);
  letter-spacing: 0;
}
.metric-grid > div > span {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.01em;
  color: var(--sub); margin-top: 0.4rem; display: block;
}
.metric-grid > div > small {
  display: block;
  margin-top: 0.28rem;
  color: var(--mid);
  font-size: 0.68rem;
  line-height: 1.45;
}
.monitor-card { padding: 1.45rem 1.8rem 1.7rem; border-top: 1px solid var(--line); background: var(--bg-3); }
.monitor-title {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--mid); margin-bottom: 1.2rem;
}
.monitor-title > div {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.07em;
  text-transform: uppercase;
}
.monitor-title p {
  margin: 0.48rem 0 0;
  color: var(--sub);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.76rem;
  line-height: 1.6;
  letter-spacing: 0;
}
.monitor-signal {
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}
.monitor-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.9rem; padding: 0; font-size: 0.86rem;
  transition: all .3s;
}
.monitor-signal:last-child { border-bottom: none; }
.monitor-row span {
  color: var(--text);
  line-height: 1.35;
}
.monitor-row b { font-family: 'IBM Plex Mono', monospace; color: var(--white); }
.monitor-signal p {
  margin: 0.38rem 0 0;
  color: var(--mid);
  font-size: 0.72rem;
  line-height: 1.55;
}
.monitor-bar {
  height: 2px; background: var(--line); margin-top: 0.3rem;
  position: relative;
}
.monitor-bar-fill {
  height: 100%; background: var(--white); transition: width 1s ease;
}
.badge-high { color: var(--danger); }
.badge-mid  { color: var(--warn); }
.badge-low  { color: var(--ok); }

/* ── STAT COUNTER (animated) ────────────────────────────── */
.stat-counter {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem; font-weight: 600; color: var(--white); line-height: 1;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section-block { padding: 5rem 2.5rem; }
.section-block.alt { background: var(--bg-2); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.section-head h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 500; letter-spacing: 0.06em; color: var(--white);
}

/* ── REPORT GRID ──────────────────────────────────────────── */
.report-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line-hi); }
.report-card {
  background: var(--bg-2); padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  color: inherit; text-decoration: none;
  cursor: pointer; transition: background .2s; position: relative; overflow: hidden;
}
.report-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform .28s;
}
.report-card:hover { background: var(--bg-3); }
.report-card:hover::after { transform: scaleX(1); }
.report-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.report-meta span, .rc-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid);
}
.report-date { color: var(--dim) !important; }
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem; padding: 0.15rem 0.5rem;
  background: var(--bg-4); color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tag.premium { background: rgba(255,255,255,0.07); color: var(--sub); border: 1px solid var(--line-hi); }
.report-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem; font-weight: 500; line-height: 1.25; color: var(--white); letter-spacing: 0.04em;
}
.report-card p { font-size: 0.9rem; line-height: 1.75; color: var(--mid); flex: 1; }
.sector-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sector-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-hi); color: var(--dim);
}
.report-arrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--mid); margin-top: auto; transition: color .2s; }
.report-card:hover .report-arrow { color: var(--white); }
.card-thumb { margin: -2rem -1.8rem 0; overflow: hidden; height: 160px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.report-card:hover .card-thumb img { transform: scale(1.04); }
.accuracy-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem;
  padding: 0.15rem 0.5rem; background: var(--ok-bg); color: var(--ok);
  border: 1px solid rgba(70,155,90,0.25); text-transform: uppercase; letter-spacing: 0.06em;
}
.bookmark-btn {
  background: none; border: none; color: var(--dim);
  cursor: pointer; font-size: 1rem; padding: 0;
  transition: color .2s; line-height: 1;
}
.bookmark-btn:hover, .bookmark-btn.active { color: var(--warn); }

/* ── DETAIL PAGE ──────────────────────────────────────────── */
.detail-shell { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.back-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); display: inline-block; margin-bottom: 2rem; transition: color .2s;
}
.back-link:hover { color: var(--white); }
.detail-meta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.detail-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem,4vw,3.2rem); font-weight: 500;
  line-height: 1.08; letter-spacing: 0.04em; color: var(--white); margin-bottom: 1.5rem;
}
.detail-summary {
  font-size: 1.05rem; line-height: 1.9; color: var(--sub);
  border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2rem;
}
.detail-section { margin-bottom: 2.5rem; }
.detail-section h2 {
  font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 500;
  color: var(--white); letter-spacing: 0.06em; margin-bottom: 0.7rem;
}
.detail-section p { font-size: 1rem; line-height: 1.9; color: var(--sub); }
.scenario-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.scenario-card { background: var(--bg-3); padding: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.scenario-type { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.scenario-type.bull, .type-bull { color: var(--ok); }
.scenario-type.base, .type-base { color: var(--warn); }
.scenario-type.bear, .type-bear { color: var(--danger); }
.scenario-card h3 { font-family: 'Oswald', sans-serif; font-size: 0.97rem; font-weight: 500; color: var(--white); letter-spacing: 0.04em; }
.scenario-card p { font-size: 0.97rem; color: var(--mid); line-height: 1.6; }
.implication-box { background: var(--bg-2); border-left: 2px solid var(--white); padding: 1.4rem 1.6rem !important; margin-top: 1rem; }
.implication-box h2 { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem !important; letter-spacing: 0.2em !important; text-transform: uppercase; color: var(--mid) !important; }
.premium-gate { background: var(--bg-3); border: 1px solid var(--line-hi); padding: 3rem 2.5rem; margin: 2rem 0; text-align: center; }
.pg-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); margin-bottom: 1rem; display: inline-block; padding: 0.3rem 0.9rem; border: 1px solid var(--line-hi); }
.premium-gate h2 { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 500; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.8rem; }
.premium-gate > p { font-size: 0.94rem; line-height: 1.8; color: var(--sub); max-width: 480px; margin: 0 auto 2rem; }
.pg-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.pg-includes { background: var(--bg); padding: 1.4rem; text-align: left; display: inline-block; min-width: 260px; border: 1px solid var(--line); }
.pg-includes ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pg-includes li { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--sub); padding-left: 1rem; position: relative; }
.pg-includes li::before { content: '—'; position: absolute; left: 0; color: var(--dim); }

/* ── PLAN CARDS ───────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); margin-top: 2.5rem; }
.plan-card { background: var(--bg); padding: 2.4rem 2rem; display: flex; flex-direction: column; gap: 1rem; transition: background .2s; }
.plan-card:hover { background: var(--bg-2); }
.plan-card.featured { background: var(--bg-3); border-top: 2px solid var(--white); }
.plan-tier { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.plan-name { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 500; letter-spacing: 0.08em; color: var(--white); }
.plan-price { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 300; color: var(--white); line-height: 1; }
.plan-price small { font-family: 'IBM Plex Mono', monospace; font-size: 0.97rem; color: var(--mid); }
.plan-card > p { font-size: 0.86rem; color: var(--sub); line-height: 1.7; }
.plan-features { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.plan-features li { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--sub); padding-left: 1.1rem; position: relative; }
.plan-features li::before { content: '—'; position: absolute; left: 0; color: var(--dim); }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.9rem; border: 1px solid var(--line-hi); background: transparent; color: var(--mid); cursor: pointer; transition: all .15s; text-decoration: none; display: inline-block; }
.filter-btn:hover { color: var(--white); border-color: var(--white); }
.filter-btn.active { background: var(--white); color: var(--bg); border-color: var(--white); }

/* ── NOTICES ──────────────────────────────────────────────── */
.notice { padding: 0.8rem 1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.05em; border: 1px solid; margin-bottom: 1.2rem; }
.notice.error   { background: var(--danger-bg); color: var(--danger); border-color: rgba(210,80,80,0.25); }
.notice.success { background: var(--ok-bg);     color: var(--ok);     border-color: rgba(70,155,90,0.25); }
.notice.warn    { background: var(--warn-bg);   color: var(--warn);   border-color: rgba(180,140,70,0.25); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: var(--bg-3); padding: 2rem 2.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-mark { display: flex; align-items: center; gap: 0.6rem; }
.footer-name { font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.18em; color: var(--white); }
.footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--dim); }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ================================================================
   ADMIN STYLES
   ================================================================ */
body.admin-body { min-height: 100vh; display: flex; flex-direction: column; }
.admin-wrap { display: flex; flex: 1; }
.admin-topbar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 0 2rem; height: 56px; background: rgba(30,30,30,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-topbar h1 { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.1em; color: var(--white); }
.admin-topbar p { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; color: var(--dim); margin-top: 2px; }
.admin-actions { display: flex; gap: 0.6rem; align-items: center; }
.admin-sidebar { width: 200px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--line); padding: 1.5rem 0; display: flex; flex-direction: column; min-height: calc(100vh - 56px); }
.sidebar-section { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); padding: 0.4rem 1.5rem; margin-top: 1rem; }
.sidebar-link { display: block; padding: 0.65rem 1.5rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--mid); transition: all .15s; }
.sidebar-link:hover, .sidebar-link.active { color: var(--white); background: var(--bg-3); }
.sidebar-badge { display: inline-block; background: var(--danger); color: white; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 600; padding: 0.15rem 0.45rem; margin-left: 0.5rem; line-height: 1.4; }
.admin-main { flex: 1; padding: 2rem 2.5rem; overflow-x: auto; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card { width: 100%; max-width: 380px; padding: 2.5rem; background: var(--bg-2); border: 1px solid var(--line-hi); }
.login-card .login-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.login-card h1 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.18em; color: var(--white); }
.login-card .admin-sub { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); display: block; margin-top: 2px; }
.admin-form, .editor-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-form label, .editor-form label, .form-group { display: flex; flex-direction: column; gap: 0.4rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.admin-form input, .admin-form select, .admin-form textarea,
.editor-form input, .editor-form select, .editor-form textarea { background: var(--bg); border: 1px solid var(--line-hi); color: var(--text); font-family: 'IBM Plex Sans', sans-serif; font-size: 0.95rem; padding: 0.75rem 0.9rem; outline: none; resize: vertical; transition: border-color .2s; width: 100%; }
.admin-form input:focus, .editor-form input:focus,
.admin-form textarea:focus, .editor-form textarea:focus,
.admin-form select:focus, .editor-form select:focus { border-color: rgba(255,255,255,0.35); }
.admin-form input::placeholder, .editor-form input::placeholder,
.admin-form textarea::placeholder, .editor-form textarea::placeholder { color: var(--dim); }
.admin-form select option, .editor-form select option { background: var(--bg-3); }
.editor-form textarea { min-height: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-full { grid-column: 1 / -1; }
.checkbox-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.checkbox-row label { flex-direction: row; gap: 0.5rem; align-items: center; font-size: 0.78rem; text-transform: none; cursor: pointer; }
.checkbox-row input[type=checkbox] { accent-color: var(--white); width: 14px; height: 14px; }
.stack-group { display: flex; flex-direction: column; gap: 0.8rem; }
.stack-group > h2 { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.boxed-group { background: var(--bg-3); padding: 1.2rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.8rem; }
.admin-table { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.table-head { display: grid; grid-template-columns: 2fr 1fr 0.7fr 0.6fr 1fr; gap: 1rem; padding: 0.75rem 1.2rem; background: var(--bg-3); border-bottom: 1px solid var(--line); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.table-row { display: grid; grid-template-columns: 2fr 1fr 0.7fr 0.6fr 1fr; gap: 1rem; padding: 0.9rem 1.2rem; align-items: center; border-bottom: 1px solid var(--line); transition: background .15s; }
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: var(--bg-3); }
.table-row strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 0.2rem; }
.table-row p { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--dim); }
.table-row > span { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--mid); }
.row-actions { display: flex; gap: 0.5rem; align-items: center; }
.row-actions a, .row-actions button { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.7rem; border: 1px solid var(--line-hi); background: transparent; color: var(--mid); cursor: pointer; transition: all .15s; }
.row-actions a:hover { color: var(--white); border-color: var(--white); }
.row-actions button:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); margin-bottom: 2rem; }
.dash-stat { background: var(--bg-2); padding: 1.5rem; }
.dash-stat strong { display: block; font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 600; color: var(--white); line-height: 1; }
.dash-stat span { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--dim); display: block; margin-top: 0.4rem; letter-spacing: 0.1em; text-transform: uppercase; }
.page-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-title-bar h2 { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 500; letter-spacing: 0.06em; color: var(--white); }
.editor-shell { max-width: 900px; }

/* ── CHART CONTAINER ──────────────────────────────────────── */
.chart-wrap { background: var(--bg-2); border: 1px solid var(--line); padding: 1.5rem; margin-bottom: 1.5rem; }
.chart-wrap h3 { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); margin-bottom: 1rem; }
canvas { display: block; }

/* ── COMMENTS ─────────────────────────────────────────────── */
.comment-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); margin-top: 2rem; }
.comment-item { background: var(--bg-2); padding: 1.2rem 1.5rem; }
.comment-author { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--mid); margin-bottom: 0.5rem; display: flex; gap: 0.8rem; }
.comment-body { font-size: 0.92rem; line-height: 1.8; color: var(--sub); }
.comment-form { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.comment-form textarea { background: var(--bg-2); border: 1px solid var(--line-hi); color: var(--text); font-family: 'IBM Plex Sans', sans-serif; font-size: 0.92rem; padding: 0.8rem; outline: none; resize: vertical; min-height: 80px; transition: border-color .2s; }
.comment-form textarea:focus { border-color: rgba(255,255,255,.35); }

/* ── ACCURACY WIDGET ──────────────────────────────────────── */
.accuracy-bar { height: 2px; background: var(--line-hi); border-radius: 0; margin: 0.6rem 0; }
.accuracy-fill { height: 100%; background: linear-gradient(90deg, var(--ok), var(--warn)); transition: width 1s ease; }

/* ── SECTION HEAD H2 HELPER ───────────────────────────────── */
.section-head-h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 500; letter-spacing: 0.06em;
  color: var(--white); line-height: 1.12; margin-bottom: 0;
}
[data-theme="light"] .section-head-h2 { color: #111; }

/* ── CONSOLE PREVIEW SECTION ──────────────────────────────── */
#console-preview .dash-stat { background: var(--bg-2); }
[data-theme="light"] #console-preview .feature-row { background: var(--bg-2); }

/* ── SIGNUP CTA SECTION ───────────────────────────────────── */
[data-theme="light"] .obs-signup-cta { background: var(--bg-2); }
[data-theme="light"] .obs-signup-cta input {
  background: var(--bg); border-color: var(--line-hi); color: var(--text);
}
[data-theme="light"] .obs-signup-cta .button-ghost {
  border-color: rgba(0,0,0,0.18); color: var(--sub);
}
[data-theme="light"] .obs-signup-cta .button-ghost:hover { color: #111; border-color: rgba(0,0,0,0.5); }

/* ── VERIFICATION SECTION ─────────────────────────────────── */
[data-theme="light"] #verification { background: var(--bg-2); }
[data-theme="light"] #verification .report-card { background: var(--bg); }

/* ── METHODOLOGY SECTION ─────────────────────────────────── */
.obs-methodology {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.obs-methodology .section-head {
  max-width: 820px;
  margin: 0 auto 2.4rem;
}
.methodology-lead {
  color: var(--sub);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 820px;
  margin-top: 1rem;
}
.method-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
}
.methodology-body {
  max-width: 820px;
  margin: 0 auto 2.8rem;
}
.methodology-body p {
  color: var(--sub);
  font-size: 1.06rem;
  line-height: 1.85;
  margin: 0 0 1.35rem;
}
.methodology-body p:last-child {
  margin-bottom: 0;
}
.methodology-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-hi);
}
.method-card {
  background: var(--bg-2);
  padding: 1.8rem 1.5rem;
}
.method-card span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 1rem;
}
.method-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}
.method-card p {
  color: var(--sub);
  font-size: 0.82rem;
  line-height: 1.75;
}
[data-theme="light"] .obs-methodology { background: var(--bg-2); }
[data-theme="light"] .method-card { background: var(--bg-2); }
[data-theme="light"] .method-card h3 { color: #111; }

/* ── RESPONSIVE: console preview ─────────────────────────── */
@media (max-width: 960px) {
  #console-preview > div { grid-template-columns: 1fr !important; }
  #console-preview > div > div:last-child { display: none; }
  .obs-signup-cta .dash-stats { grid-template-columns: 1fr 1fr 1fr !important; }
  .methodology-body,
  .methodology-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FILE MANAGER ─────────────────────────────────────────── */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); }
.file-card { background: var(--bg-2); padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background .2s; }
.file-card:hover { background: var(--bg-3); }
.file-icon { font-size: 1.8rem; }
.file-name { font-size: 0.86rem; color: var(--text); word-break: break-all; }
.file-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--dim); }

/* ── MEMBERSHIP PAGES ─────────────────────────────────────── */
.membership-hero { padding: 6rem 3rem; background: var(--bg); text-align: center; border-bottom: 1px solid var(--line); }
.membership-hero h1 { font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 600; letter-spacing: 0.06em; color: var(--white); margin-bottom: 1rem; }
.membership-hero p { font-size: 1rem; color: var(--sub); max-width: 500px; margin: 0 auto 2.5rem; }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); margin: 3rem 0; }
.feature-item { background: var(--bg-2); padding: 1.8rem; }
.feature-item h3 { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500; color: var(--white); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.8rem; color: var(--sub); line-height: 1.7; }
.enterprise-contact { background: var(--bg-3); border: 1px solid var(--line-hi); padding: 3rem; text-align: center; margin: 3rem 0; }

/* ── VERIFY PAGE ──────────────────────────────────────────── */
.verify-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); }
.verify-card { background: var(--bg-2); padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.verify-card-link { color: inherit; text-decoration: none; transition: background .2s, border-color .2s; }
.verify-card-link:hover { background: var(--bg-3); }
.verify-result-hit   { background: var(--ok-bg); border-left: 3px solid var(--ok); }
.verify-result-miss  { background: var(--danger-bg); border-left: 3px solid var(--danger); }
.verify-result-pending { border-left: 3px solid var(--dim); }
.verify-pct { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 600; color: var(--white); }
.verify-doc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.verify-doc-main { min-width: 0; }
.verify-doc-hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.verify-doc-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: .03em;
  color: var(--white);
  margin: 1rem 0;
}
.verify-doc-meta,
.verify-doc-scoreline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}
.verify-doc-meta span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--dim);
}
.verify-doc-scoreline { margin-top: 1.4rem; }
.verify-doc-scoreline strong {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  line-height: 1;
}
.verify-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border: 1px solid var(--line-hi);
  color: var(--text);
}
.verify-status.hit { color: var(--ok); border-color: rgba(70,155,90,.45); background: var(--ok-bg); }
.verify-doc-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.verify-doc-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  letter-spacing: .05em;
  color: var(--white);
  margin: 0 0 1.2rem;
}
.verify-doc-section p,
.verify-doc-section li {
  color: var(--text);
  line-height: 1.9;
  font-size: .98rem;
}
.verify-doc-section.verdict p {
  font-size: 1.1rem;
  color: var(--white);
}
.verify-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.verify-fact-grid div {
  background: var(--bg-2);
  padding: 1.2rem;
}
.verify-fact-grid span,
.verify-source-list span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .45rem;
}
.verify-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.verify-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--bg-2);
}
.verify-table th,
.verify-table td {
  border-bottom: 1px solid var(--line);
  padding: .8rem .9rem;
  text-align: left;
  vertical-align: top;
  color: var(--text);
  line-height: 1.7;
}
.verify-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bg-3);
}
.verify-table td:nth-child(2),
.verify-table td:nth-child(3) {
  font-family: 'IBM Plex Mono', monospace;
  text-align: right;
  white-space: nowrap;
}
.verify-table.compact td:nth-child(2),
.verify-table.compact td:nth-child(3) { text-align: left; }
.verify-timeline {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
}
.verify-timeline section {
  background: var(--bg-2);
  padding: 1.3rem 1.5rem;
}
.verify-timeline time {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: .8rem;
}
.verify-timeline ul { margin: 0; padding-left: 1.1rem; }
.verify-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.verify-source-list div {
  background: var(--bg-2);
  padding: 1rem 1.2rem;
}
.verify-source-list a,
.verify-source-list p {
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}
.verify-doc-sidebar { min-width: 0; }
.verify-sticky-panel {
  position: sticky;
  top: 96px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.3rem;
}
.verify-sticky-panel > span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.verify-sticky-panel strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  line-height: 1;
  margin: .4rem 0;
}
.verify-sticky-panel em {
  display: inline-block;
  font-style: normal;
  color: var(--ok);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .75rem;
  margin-bottom: 1rem;
}
.verify-sticky-panel dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
  margin: 0;
}
.verify-sticky-panel dt {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--dim);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.verify-sticky-panel dd {
  margin: 0 0 .7rem;
  color: var(--text);
  font-size: .86rem;
}
.verify-sticky-panel a { color: var(--mid); }

/* ── PREVIEW BANNER ───────────────────────────────────────── */
.preview-banner { background: rgba(180,140,70,0.12); border-bottom: 1px solid rgba(180,140,70,0.3); padding: 0.65rem 2rem; display: flex; align-items: center; gap: 1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(200,160,80,0.9); }

/* ── MISC v4 ──────────────────────────────────────────────── */
.subscribe-widget { background: var(--bg-3); border: 1px solid var(--line); padding: 1.6rem; margin: 2rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.subscribe-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-form input { background: var(--bg); border: 1px solid var(--line-hi); color: var(--text); font-family: 'IBM Plex Sans', sans-serif; font-size: 0.97rem; padding: 0.6rem 0.9rem; outline: none; width: 220px; }
.member-stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.4rem; }
.member-stat-value { font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--white); letter-spacing: 0.06em; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-shell {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-copy { padding: 4rem 2rem; border-right: none; border-bottom: 1px solid var(--line); }
  .hero-panel {
    display: grid;
    max-width: none;
    width: 100%;
    align-self: auto;
    border-bottom: 1px solid var(--line);
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-grid > div {
    border-bottom: 1px solid var(--line);
  }
  .metric-grid > div:nth-child(2n) { border-right: none; }
  .metric-grid > div:nth-child(3),
  .metric-grid > div:nth-child(4) {
    border-bottom: none;
  }
  .report-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .verify-doc-shell { grid-template-columns: 1fr; padding-top: 2rem; }
  .verify-doc-sidebar { order: -1; }
  .verify-sticky-panel { position: static; }
  .verify-fact-grid,
  .verify-source-list { grid-template-columns: 1fr; }
  .main-nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 1.2rem; }
  .admin-topbar { padding: 0 1.2rem; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE OPTIMISATION PATCH  (obscyron · 2026-05)
   Targets: 960px ↓ additions, 480px ↓ new breakpoint
   ══════════════════════════════════════════════════════════ */

/* ── 960px: contact section grid → stack ─────────────────── */
@media (max-width: 960px) {
  /* Contact section */
  #contact > div[style*="grid-template-columns:1fr 1fr"],
  #contact > div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
  }

  /* nav-auth: wrap & shrink */
  .nav-auth {
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  /* Hide low-priority nav buttons on tablet */
  .nav-auth .nav-cta-outline:not([href*="login"]):not([href*="register"]) {
    display: none;
  }

  /* Section padding */
  .section-block { padding: 3.5rem 1.5rem; }
}

/* ── 480px: new mobile-first breakpoint ───────────────────── */
@media (max-width: 480px) {

  /* ── NAV ── */
  .main-nav { padding: 0 1rem; height: 52px; gap: 0.5rem; }
  .brand-sub { display: none; }
  .nav-auth { gap: 0.3rem; }
  /* Show only login + hamburger placeholder on small screens */
  .nav-auth > *:not(.nav-login):not(.theme-toggle) { display: none; }
  .nav-auth .nav-login { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

  /* ── SECTION ── */
  .section-block { padding: 2.8rem 1rem; }

  /* ── HERO ── */
  .hero-copy { padding: 3rem 1rem; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }

  /* ── REPORT GRID ── */
  .report-grid { grid-template-columns: 1fr; }
  .report-card { padding: 1.2rem 1rem; }

  /* ── CONTACT (override inline grid) ── */
  #contact > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 0 !important;
  }
  #contact form { width: 100%; }
  #contact input,
  #contact select,
  #contact textarea {
    font-size: 1rem !important; /* prevent iOS zoom */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* inline name/company 2-col → 1-col */
  #contact form > div[style*="grid-template-columns:1fr 1fr"],
  #contact form > div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
  }

  /* ── PLAN GRID ── */
  .plan-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }

  /* ── MEMBERSHIP ── */
  .membership-hero { padding: 3.5rem 1.2rem; }
  .membership-hero h1 { font-size: 2.2rem; }

  /* ── REPORT PAGE (report.php inline styles override) ── */
  /* URL/reference overflow fix */
  .longform-body a,
  .longform-body li { word-break: break-all; overflow-wrap: anywhere; }
  .longform-body { padding: 1.4rem 1rem; }
  .report-shell { padding: 1.5rem 1rem 4rem; }

  /* ── VERIFY ── */
  .verify-doc-shell { padding: 1rem 1rem 3rem; }
  .verify-table-wrap { overflow-x: auto; }

  /* ── FOOTER ── */
  .site-footer { flex-direction: column; gap: 0.8rem; text-align: center; padding: 1.8rem 1rem; }
  .footer-links { justify-content: center; }
}

/* ── Prevent horizontal scroll globally ──────────────────── */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, embed { max-width: 100%; }

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0; order: 99;
  padding: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--mid); transition: transform .25s, opacity .25s, background .2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ────────────────────────────────────────── */
.mobile-drawer {
  position: fixed; top: 52px; right: 0; bottom: 0;
  width: 75vw; max-width: 300px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-overlay {
  display: none;
  position: fixed; inset: 52px 0 0 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.mobile-drawer-overlay.open { display: block; }
.mobile-drawer-links {
  display: flex; flex-direction: column;
  padding: 1.5rem 1.2rem;
  gap: 0;
}
.mobile-drawer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
  display: block;
}
.mobile-drawer-links a:last-child { border-bottom: none; }
.mobile-drawer-links a:hover,
.mobile-drawer-links a:active { color: var(--white); }

@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
}
