/* ============================================================
   voXon — Themed Stylesheet (Dark default, Light toggle)
   ============================================================ */

/* ── Theme Variables ─────────────────────────────────────── */

:root {
  --bg: #000;
  --bg-surface: #111;
  --bg-surface-alt: #0a0a0a;
  --bg-surface-dim: #0d0d0d;
  --bg-hover: #1a1a1a;
  --bg-header: rgba(10,10,10,0.92);
  --bg-footer: #080808;
  --text: #fff;
  --text-secondary: #ccc;
  --text-muted: #888;
  --text-dim: #666;
  --text-faint: #555;
  --text-label: #999;
  --text-lead: #9a9a9a;
  --text-card: #8a8a8a;
  --text-heading: #e0e0e0;
  --border: #222;
  --border-subtle: #1a1a1a;
  --border-medium: #333;
  --border-light: #1e1e1e;
  --border-hover: #444;
  --accent: #a8d4ff;
  --accent-bright: #2f80ff;
  --accent-deep: #4a90e2;
  --accent-dark: #1a4a7a;
  --error: #ff6666;
  --error-bg: #220000;
  --error-border: #440000;
  --error-btn: #ff4444;
  --error-btn-hover: #cc3333;
  --success-bg: #1a2a4a;
  --success-border: #2a4a7a;
  --info-bg: #0a0a1a;
  --info-border: #222244;
  --info-text: #aabbff;
  --warning: #ffaa00;
  --gold: #ffd700;
  --gold-hover: #ffed4a;
  --btn-bg: #fff;
  --btn-text: #000;
  --btn-hover: #ddd;
  --overlay: rgba(0,0,0,0.75);
  --shadow: rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f0f0f2;
  --bg-surface-dim: #f8f8fa;
  --bg-hover: #e8e8ea;
  --bg-header: rgba(255,255,255,0.92);
  --bg-footer: #f0f0f2;
  --text: #1a1a1a;
  --text-secondary: #444;
  --text-muted: #666;
  --text-dim: #888;
  --text-faint: #999;
  --text-label: #666;
  --text-lead: #666;
  --text-card: #555;
  --text-heading: #222;
  --border: #ddd;
  --border-subtle: #e5e5e5;
  --border-medium: #ccc;
  --border-light: #e0e0e0;
  --border-hover: #bbb;
  --accent: #2563eb;
  --accent-bright: #1d4ed8;
  --accent-deep: #3b82f6;
  --accent-dark: #93c5fd;
  --error: #dc3545;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-btn: #dc3545;
  --error-btn-hover: #b91c1c;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info-text: #1d4ed8;
  --warning: #f59e0b;
  --gold: #eab308;
  --gold-hover: #ca8a04;
  --btn-bg: #1a1a1a;
  --btn-text: #fff;
  --btn-hover: #333;
  --overlay: rgba(0,0,0,0.4);
  --shadow: rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  flex: 1;
}

a { color: var(--text-secondary); text-decoration: none; }
a:hover { color: var(--text); }

/* ── Header ───────────────────────────────────────────────── */

.header {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  padding: 10px 24px;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 56px;
}

.header .logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}

.header .logo .brand-mark {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  flex-shrink: 0;
  display: block;
}

.header .logo span { color: var(--accent); }

.header-search {
  display: flex;
  justify-content: center;
}

.header-search input {
  width: 100%;
  max-width: 420px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search input:focus {
  border-color: var(--text-faint);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.header-search input::placeholder { color: var(--text-faint); }

.header nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.header nav a,
.header nav button {
  background: none;
  border: none;
  color: var(--text-label);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.header nav a:hover,
.header nav button:hover { background: var(--border); color: var(--text); }

.header-nav-desktop a,
.header-login-text {
  background: none;
  border: none;
  color: var(--text-label);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header-nav-desktop a:hover,
.header-login-text:hover { background: var(--border); color: var(--text); }

/* ── Mobile shell (desktop: hide mobile-only controls) ─────── */

.header-shell { position: relative; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.header-nav-auth {
  display: flex;
  align-items: center;
}

.header-nav-mobile,
.mobile-nav-toggle,
.mobile-nav-drawer,
.mobile-nav-backdrop,
.footer-credits-ticker {
  display: none;
}

.header-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text-label);
  transition: background 0.2s, color 0.2s;
}

.header-login-icon:hover {
  background: var(--border);
  color: var(--text);
}

.mobile-nav-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-label);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-toggle:hover {
  background: var(--border);
  color: var(--text);
}

.mobile-nav-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 1002;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px var(--shadow);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.mobile-nav-drawer:not([hidden]) {
  display: flex;
}

.mobile-nav-drawer a {
  display: block;
  padding: 14px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-drawer a:hover {
  color: var(--accent);
  background: var(--bg-surface);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  top: 56px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-nav-backdrop:not([hidden]) {
  display: block;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .header-search:not(.header-search--desktop) {
    visibility: hidden;
    pointer-events: none;
  }

  .header-search:not(.header-search--desktop) input {
    opacity: 0;
    width: 0;
    padding: 0;
    border: none;
  }
}

.footer-credits-ticker {
  overflow: hidden;
  min-width: 0;
}

.footer-credits-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.footer-credit-segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.footer-credit-segment a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-credit-segment a:hover {
  text-decoration: underline;
}

.footer-credit-brand {
  color: var(--text-faint);
}

.footer-brand-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-credit-brand sup {
  font-size: 8px;
  vertical-align: super;
  opacity: 0.85;
}

.footer-doge {
  vertical-align: middle;
  border-radius: 50%;
  margin-left: 4px;
}

.profile-menu { position: relative; }
.profile-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  max-width: 200px;
}
.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  color: var(--text-muted);
}
.profile-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 1100;
}
.profile-menu-dropdown a,
.profile-menu-dropdown .profile-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.profile-menu-dropdown a:hover,
.profile-menu-dropdown .profile-logout:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.pricing-blockchain-note {
  font-size: 12px;
  color: var(--gold);
  margin: 8px 0 12px;
  line-height: 1.4;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn:hover { background: var(--btn-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-medium); }
.btn-outline:hover { border-color: var(--text-dim); background: var(--bg-surface); }

.btn-sm { padding: 6px 14px; font-size: 13px; }

.btn-danger { background: var(--error-btn); color: #fff; }
.btn-danger:hover { background: var(--error-btn-hover); }

/* ── Layout ───────────────────────────────────────────────── */

.main {
  padding-top: 56px;
  padding-bottom: 44px;
  min-height: 100vh;
  flex: 1;
}
.main.main-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px - 44px);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

/* ── Badges ───────────────────────────────────────────────── */

.badge-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-green { color: var(--accent); border: 1px solid var(--accent-dark); background: rgba(168,212,255,0.12); box-shadow: inset 0 0 0 1px rgba(168,212,255,0.08); }
.badge-white { color: #e8c547; border: 1px solid #b8860b; background: rgba(212,175,55,0.14); box-shadow: inset 0 0 0 1px rgba(212,175,55,0.2); }
.badge-red { color: var(--error); border: 1px solid #7a2424; background: rgba(255,102,102,0.12); box-shadow: inset 0 0 0 1px rgba(255,102,102,0.08); }

/* ── Clickable Badge ───────────────────────────────────────── */
.badge-clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.badge-clickable:hover { transform: scale(1.08); box-shadow: 0 0 12px rgba(168,212,255,0.25); }

/* ── Badge Trend Modal ─────────────────────────────────────── */
.trend-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(6px); }
.trend-overlay.visible { opacity: 1; }
.trend-modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; max-width: 520px; width: 92%; max-height: 85vh; overflow-y: auto; padding: 32px 28px 24px; position: relative; transform: translateY(30px) scale(.96); transition: transform .35s cubic-bezier(.22,1,.36,1); scrollbar-width: thin; scrollbar-color: #333 transparent; }
.trend-overlay.visible .trend-modal { transform: translateY(0) scale(1); }
.trend-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-dim); font-size: 28px; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; transition: color .15s, background .15s; }
.trend-close:hover { color: var(--text); background: var(--border); }
.trend-dot { opacity: 0; animation: trendDotIn .4s ease forwards; }
.trend-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: trendLineIn 1.5s ease forwards; }
@keyframes trendDotIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes trendLineIn { to { stroke-dashoffset: 0; } }

/* ── Blockchain Toggle (Pricing) ───────────────────────────── */
.blockchain-toggle-row { margin: 12px 0 16px; padding: 10px 12px; background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: 8px; }
.blockchain-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-muted); }
.blockchain-toggle { display: none; }
.blockchain-toggle-switch { position: relative; width: 36px; height: 20px; background: #333; border-radius: 10px; flex-shrink: 0; transition: background .2s; }
.blockchain-toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #666; border-radius: 50%; transition: transform .2s, background .2s; }
.blockchain-toggle:checked + .blockchain-toggle-switch { background: var(--accent-dark); }
.blockchain-toggle:checked + .blockchain-toggle-switch::after { transform: translateX(16px); background: var(--accent); }
.blockchain-toggle-text { font-weight: 600; }
.blockchain-info-card { margin-top: 12px; padding: 12px 14px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; }
.blockchain-info-card p { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin: 0 0 8px; }
.blockchain-info-card ul { list-style: none; padding: 0; margin: 0 0 8px; }
.blockchain-info-card ul li { color: var(--text-faint); font-size: 12px; padding: 3px 0; }
.blockchain-info-card ul li::before { content: '\2713 '; color: var(--accent); }
.blockchain-doge-note { color: var(--text-faint) !important; font-size: 11px !important; font-style: italic; }

/* ── Home / Map Layout ─────────────────────────────────────── */

.home-layout {
  flex: 1 1 auto;
  position: relative;
  min-height: 300px;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* ── Search Result Overlay ────────────────────────────────── */

.search-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.search-overlay.visible { opacity: 1; pointer-events: auto; }

.search-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  min-width: 320px;
  max-width: 440px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.search-result-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.search-result-card .entity-name { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.search-result-card .entity-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.search-result-card .big-badge {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.big-badge.badge-green { background: var(--accent-dark); color: var(--accent); border: 2px solid var(--accent-deep); }
.big-badge.badge-white { background: rgba(212,175,55,0.12); color: #e8c547; border: 2px solid #b8860b; }
.big-badge.badge-red   { background: #330000; color: var(--error); border: 2px solid #660000; }

.search-result-card .rating-num { font-size: 32px; font-weight: 700; margin-top: 4px; }
.search-result-card .rating-sub { font-size: 12px; color: var(--text-dim); }

.search-no-result {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  padding: 24px;
}

/* ── Login ────────────────────────────────────────────────── */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 20px;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-card h2 { margin-bottom: 8px; }
.login-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ── Form Elements ────────────────────────────────────────── */

input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--text-faint); }
textarea { resize: vertical; min-height: 80px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-label); margin-bottom: 6px; }

/* ── Entity Detail Page ───────────────────────────────────── */

.entity-page { max-width: 800px; margin: 0 auto; padding: 32px 24px; }

.entity-header { margin-bottom: 24px; }
.entity-header h1 { font-size: 28px; margin-bottom: 4px; }
.entity-header .meta { color: var(--text-muted); font-size: 14px; }

.entity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.stat-card .value { font-size: 24px; font-weight: 700; }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Tabs ─────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--text); border-bottom-color: var(--text); }

/* ── Rating Bars ──────────────────────────────────────────── */

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rating-row .question { flex: 1; font-size: 14px; }

.rating-bar-bg {
  width: 120px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.rating-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }

.rating-row .value { width: 40px; text-align: right; font-size: 14px; font-weight: 600; }

/* ── Star Rating Input ────────────────────────────────────── */

.star-rating { display: flex; gap: 4px; margin-top: 6px; }
.star-rating .star {
  font-size: 28px;
  cursor: pointer;
  color: var(--border-medium);
  transition: color 0.15s;
  user-select: none;
}
.star-rating .star.active { color: var(--gold); }
.star-rating .star:hover { color: var(--gold-hover); }

/* ── Perspective Toggle ───────────────────────────────────── */

.perspective-toggle { display: flex; gap: 0; margin-bottom: 20px; }
.perspective-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.perspective-btn:first-child { border-radius: 8px 0 0 8px; }
.perspective-btn:last-child { border-radius: 0 8px 8px 0; }
.perspective-btn.active { background: var(--border); color: var(--text); border-color: var(--text-faint); }

/* ── Admin Page ───────────────────────────────────────────── */

.admin-page { max-width: 100%; margin: 0; padding: 0; }
.admin-page h1 { font-size: 24px; margin-bottom: 24px; }

.admin-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-row {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 12px;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

.admin-filter-select {
  padding: 9px 12px;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

.admin-entity-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.admin-entity-row {
  background: var(--bg-surface-alt);
}

.admin-entity-row:first-child { border-radius: 10px 10px 0 0; }
.admin-entity-row:last-child  { border-radius: 0 0 10px 10px; }

.admin-entity-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: background 0.15s;
}

.admin-entity-main:hover {
  background: var(--bg-hover);
}

.admin-entity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bg-surface-dim);
  border-top: 1px solid var(--border-subtle);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Messages ─────────────────────────────────────────────── */

.msg-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--accent); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.msg-error   { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.msg-info    { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

/* ── Loading & Empty States ───────────────────────────────── */

.loading { display: flex; align-items: center; justify-content: center; min-height: 200px; color: var(--text-muted); }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty p { margin-bottom: 16px; }

/* ── Map Markers ──────────────────────────────────────────── */

.map-marker {
  width: 26px;
  height: 26px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 8px var(--shadow);
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-marker svg,
.map-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.map-marker:hover { transform: scale(1.3); }

/* ── MapLibre Popup Overrides ─────────────────────────────── */

.maplibregl-popup-content {
  background: var(--bg-surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  box-shadow: 0 8px 24px var(--shadow) !important;
}

.maplibregl-popup-close-button { color: var(--text-muted) !important; font-size: 18px !important; }
.maplibregl-popup-close-button:hover { color: var(--text) !important; }

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--bg-surface) !important; }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--bg-surface) !important; }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--bg-surface) !important; }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--bg-surface) !important; }

/* ── AI Ticker Bar ──────────────────────────────────────── */

.ticker-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 5;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.ticker-item:hover { color: var(--text-secondary); }

.ticker-item .ticker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker-item .ticker-name { color: var(--text-secondary); font-weight: 600; }
.ticker-item .ticker-insight { color: var(--text-dim); }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Org Admin Enhanced ───────────────────────────────────── */

.org-admin-top-bar {
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.org-admin-hero {
  padding: 16px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.org-admin-alert {
  padding: 10px 24px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.org-admin-alert-warning { background: rgba(255,170,0,0.07); color: var(--warning); }
.org-admin-alert-error   { background: rgba(255,102,102,0.07); color: var(--error); }
.org-admin-alert-success { background: rgba(168,212,255,0.06); color: var(--accent); }

.org-admin-container {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 200px);
}

.org-admin-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 200px);
  overflow-y: auto;
  transition: width 0.25s;
}

.org-admin-sidebar.collapsed {
  width: 52px;
  overflow: hidden;
}

.org-admin-sidebar.collapsed .sidebar-item span,
.org-admin-sidebar.collapsed .sidebar-divider {
  display: none;
}

.org-admin-sidebar.collapsed .sidebar-item {
  justify-content: center;
  padding: 12px;
}

.sidebar-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s;
  margin-bottom: 4px;
}
.sidebar-toggle:hover { color: var(--text); }

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 12px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  padding: 11px 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.sidebar-item.active {
  background: rgba(168, 212, 255, 0.08);
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-admin-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.org-admin-main > div {
  display: none;
  padding: 24px 28px;
}

.org-admin-main > div:first-child {
  display: block;
}

.org-admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.org-admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .org-admin-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .org-admin-container {
    flex-direction: column;
  }

  .org-admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
  }

  .org-admin-sidebar.collapsed {
    width: 100%;
    max-height: 44px;
    overflow: hidden;
  }

  .sidebar-toggle {
    padding: 8px 12px;
  }

  .sidebar-item span {
    display: none;
  }

  .sidebar-item {
    padding: 8px 12px;
    justify-content: center;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .sidebar-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .sidebar-divider {
    display: none;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .org-admin-main > div {
    padding: 16px;
  }

  .org-admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
}

.org-admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.org-admin-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}
.org-admin-tab:hover { color: #aaa; }
.org-admin-tab.active { color: var(--text); border-bottom-color: var(--text); }

.org-admin-breadcrumbs {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.org-admin-breadcrumb {
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.15s;
}
.org-admin-breadcrumb:hover { color: var(--text-muted); }

.org-admin-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.org-admin-header-badge {
  font-size: 13px;
  padding: 5px 12px;
  flex-shrink: 0;
}

.org-admin-row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.org-admin-card-title {
  margin-bottom: 12px;
}

.org-admin-card-subtext {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.org-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.perspective-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.perspective-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.perspective-card h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.perspective-card .pval { font-size: 28px; font-weight: 700; }
.perspective-card .psub { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.custom-q-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.custom-q-row:last-child { border-bottom: none; }
.custom-q-row .q-text { flex: 1; font-size: 14px; }
.custom-q-row .q-actions { display: flex; gap: 8px; }

/* ── Pricing Page ──────────────────────────────────────────── */

.pricing-page { max-width: 1100px; margin: 0 auto; padding: 40px 16px 60px; }
.pricing-header { text-align: center; margin-bottom: 40px; }
.pricing-header h1 { font-size: 32px; margin-bottom: 10px; }
.pricing-header p { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pricing-card {
  background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 28px 22px; display: flex; flex-direction: column; position: relative;
}
.pricing-highlight {
  border-color: var(--accent); box-shadow: 0 0 20px rgba(168,212,255,0.08);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--btn-text); font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.pricing-early-access {
  display: inline-block; margin-bottom: 10px;
  background: rgba(255,170,0,0.12); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.3px;
}
.pricing-plan-name { font-size: 18px; margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.pricing-period { font-size: 14px; color: var(--text-dim); font-weight: 400; margin-left: 2px; }
.pricing-features {
  list-style: none; padding: 0; margin: 20px 0; flex: 1;
}
.pricing-features li {
  padding: 6px 0; font-size: 13px; color: #aaa; border-bottom: 1px solid var(--bg-surface);
}
.pricing-features li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.pricing-cta { width: 100%; margin-top: auto; }
.pricing-footer { text-align: center; margin-top: 40px; color: var(--text-faint); font-size: 13px; }
.pricing-desc { color: #777; font-size: 13px; margin: 4px 0 0; line-height: 1.5; }

/* Badge explainer */
.pricing-how-it-works { margin-top: 60px; text-align: center; }
.pricing-how-it-works h2 { font-size: 24px; margin-bottom: 28px; }
.badge-explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.badge-explain-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px 16px;
}
.badge-explain-icon { width: 56px; height: 56px; }
.badge-explain-item strong { font-size: 15px; }
.badge-explain-item p { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; line-height: 1.5; }

/* R&D section */
.pricing-rnd-section { margin-top: 60px; text-align: center; }
.pricing-rnd-section h2 { font-size: 24px; margin-bottom: 8px; }
.pricing-rnd-section > p { color: var(--text-muted); font-size: 14px; max-width: 560px; margin: 0 auto 28px; line-height: 1.6; }
.pricing-pro-tag {
  font-size: 11px; font-weight: 700; background: var(--accent); color: var(--btn-text);
  padding: 2px 10px; border-radius: 20px; vertical-align: middle; margin-left: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.rnd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.rnd-feature {
  background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px 18px; text-align: left;
}
.rnd-feature strong { color: var(--accent); font-size: 14px; }
.rnd-feature p { color: var(--text-muted); font-size: 13px; margin: 8px 0 0; line-height: 1.5; }

/* ── Register Page ──────────────────────────────────────────── */

.register-page { max-width: 720px; margin: 0 auto; padding: 40px 16px 60px; }
.register-header { text-align: center; margin-bottom: 32px; }
.register-header h1 { font-size: 28px; margin-bottom: 10px; }
.register-header p { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto; }
.register-form .card { margin-bottom: 16px; }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.main.main-register {
  min-height: calc(100vh - 56px - 44px);
  max-height: calc(100vh - 56px - 44px);
  overflow-y: auto;
}

.main.main-privacy {
  min-height: calc(100vh - 56px - 44px);
  max-height: calc(100vh - 56px - 44px);
  overflow-y: auto;
}

.main.main-register .register-page {
  height: auto;
  min-height: calc(100vh - 56px - 44px);
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
}

.main.main-register .register-header {
  margin-bottom: 14px;
}

.register-scroll {
  overflow: visible;
  padding-right: 4px;
}

.privacy-scroll {
  height: auto;
  overflow: visible;
}

/* ── Site Footer ──────────────────────────────────────────── */

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-dim);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
  flex: 0 0 44px;
}

/* ── Compact bar ──────────────────────────────────────────── */
.footer-bar {
  width: 100%;
  height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.footer-logo .brand-mark {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  flex-shrink: 0;
  display: block;
}
.footer-logo span { color: var(--accent); }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.footer-copy { color: var(--text-faint); font-size: 11px; white-space: nowrap; }
.doge-dark { display: inline-block; }
.doge-light { display: none; }
[data-theme="light"] .doge-dark { display: none; }
[data-theme="light"] .doge-light { display: inline-block; }
.map-credit {
  font-size: 10px;
  color: var(--text-muted);
  margin-right: 8px;
}
.map-credit a {
  color: var(--text-dim);
  text-decoration: none;
}
.map-credit a:hover {
  text-decoration: underline;
}

/* ── Theme Toggle ──────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  padding: 0;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline; }

/* ── Org Admin Coming Soon: transio visual ─────────────── */
.transio-coming-soon {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(1200px 240px at 10% 0%, rgba(168, 212, 255, 0.04), rgba(0, 0, 0, 0)),
    radial-gradient(1200px 240px at 90% 100%, rgba(120, 255, 180, 0.03), rgba(0, 0, 0, 0)),
    #070707;
  display: grid;
  place-items: center;
}

.transio-bg-word {
  position: absolute;
  font-size: clamp(46px, 8.8vw, 98px);
  letter-spacing: 6px;
  font-weight: 800;
  text-transform: lowercase;
  color: #ffffff;
  opacity: 0.018;
  user-select: none;
  pointer-events: none;
  filter: blur(0.7px);
  animation: transio-ghost-drift 26s linear infinite;
}

.transio-w1 { top: 10%; left: -14%; transform: rotate(-11deg); animation-delay: 0s; }
.transio-w2 { top: 40%; right: -18%; transform: rotate(8deg); animation-delay: -8s; }
.transio-w3 { bottom: 10%; left: -16%; transform: rotate(7deg); animation-delay: -15s; }

.transio-flow {
  width: min(920px, 92%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 2;
}

.transio-lane {
  height: 72px;
  border: 1px solid #151515;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(10, 10, 10, 0.52), rgba(0, 0, 0, 0.64));
  position: relative;
  overflow: hidden;
}

.transio-lane-input {
  box-shadow: inset 0 0 26px rgba(63, 106, 143, 0.12);
}

.transio-lane-output {
  box-shadow: inset 0 0 26px rgba(110, 168, 136, 0.12);
}

.transio-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  opacity: 0;
}

.transio-lane-input .transio-node {
  background: #7fb7eb;
  box-shadow: 0 0 12px rgba(127, 183, 235, 0.45);
  animation: transio-input-flow 6.4s ease-in-out infinite;
}

.transio-lane-output .transio-node {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #95f3bf;
  box-shadow: 0 0 10px rgba(149, 243, 191, 0.5);
  animation: transio-output-burst 4.8s cubic-bezier(.35, .02, .19, .98) infinite;
}

.transio-node.n1 { animation-delay: 0s; }
.transio-node.n2 { animation-delay: -1s; }
.transio-node.n3 { animation-delay: -2s; }
.transio-node.n4 { animation-delay: -3s; }
.transio-node.n5 { animation-delay: -4s; }

.transio-center-chip {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9b9b9b;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}

@keyframes transio-ghost-drift {
  0% { transform: translateX(0) rotate(-9deg); opacity: 0.012; }
  50% { transform: translateX(32px) rotate(-11deg); opacity: 0.022; }
  100% { transform: translateX(0) rotate(-9deg); opacity: 0.012; }
}

@keyframes transio-input-flow {
  0% { left: 8%; transform: translate(-50%, -50%) scale(0.45); opacity: 0; }
  14% { opacity: 0.7; }
  46% { left: 46%; transform: translate(-50%, -50%) scale(0.95); opacity: 0.95; }
  66% { left: 58%; transform: translate(-50%, -50%) scale(0.65); opacity: 0.5; }
  100% { left: 92%; transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
}

@keyframes transio-output-burst {
  0% { left: 52%; transform: translate(-50%, -50%) rotate(0deg) scale(0.25); opacity: 0; }
  18% { opacity: 0.85; }
  40% { left: 66%; transform: translate(-50%, -50%) rotate(36deg) scale(1.12); opacity: 1; }
  58% { left: 78%; transform: translate(-50%, -50%) rotate(86deg) scale(0.72); opacity: 0.62; }
  100% { left: 92%; transform: translate(-50%, -50%) rotate(128deg) scale(0.2); opacity: 0; }
}

/* ── About page ───────────────────────────────────────────── */
.about-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 28px;
  min-height: calc(100vh - 56px - 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-hero {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.about-icon {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-surface-alt);
}
.about-hero h1 {
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.about-lead {
  font-size: 14px;
  color: var(--text-lead);
  line-height: 1.4;
  max-width: 680px;
  margin: 0 auto 14px;
}
.about-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.about-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.about-stat span { font-size: 12px; color: var(--text-dim); }

.about-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.about-card {
  background: var(--bg-surface-dim);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 14px;
}
.about-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.about-card p {
  color: var(--text-card);
  line-height: 1.45;
  font-size: 13px;
}

.about-cta {
  text-align: center;
  padding: 14px 12px;
  background: var(--bg-surface-dim);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.about-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.about-cta p { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.about-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


/* ── Modal Animations ─────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.modal {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-hover) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 0;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.4s ease-out;
  box-shadow: 0 20px 60px var(--shadow);
}

.modal-how-it-works {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-medium);
}
.modal-header h3 {
  font-size: 24px;
  color: var(--accent);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: var(--border-medium);
  color: var(--text);
}

.steps-container {
  padding: 32px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.step-item:last-child {
  border-bottom: none;
}
.step-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(168,212,255,0.3);
}

.step-icon {
  font-size: 32px;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}
.step-content h4 {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 8px 0;
  font-weight: 600;
}
.step-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border-medium);
  text-align: center;
}

/* ── Animations ───────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .header { grid-template-columns: 80px 1fr 80px; padding: 10px 12px; }
  .header-search input { max-width: 100%; font-size: 13px; padding: 7px 12px; }
  .entity-stats { grid-template-columns: repeat(2, 1fr); }
  .rating-row { flex-wrap: wrap; }
  .rating-row .question { flex-basis: 100%; }
  .perspective-split { grid-template-columns: 1fr; }
  .search-result-card { min-width: auto; margin: 0 16px; padding: 24px; }
  .home-layout { min-height: 260px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .badge-explainer { grid-template-columns: 1fr; max-width: 320px; }
  .rnd-features { grid-template-columns: 1fr; max-width: 320px; }
  .register-grid { grid-template-columns: 1fr; }
  .main.main-register {
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
  .main.main-privacy {
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
  .main.main-register .register-page {
    height: auto;
    display: block;
    padding: 20px 16px 42px;
  }
  .register-scroll {
    overflow: visible;
    padding-right: 0;
  }
  .privacy-scroll {
    height: auto;
    overflow: visible;
  }
  .org-admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .org-admin-tab { white-space: nowrap; flex-shrink: 0; }
  .footer-bar { height: 44px; flex-wrap: nowrap; padding: 0 12px; gap: 8px; }
  .footer-left { gap: 10px; flex-wrap: nowrap; min-width: 0; }
  .footer-nav { display: none; }
  .footer-right { gap: 8px; }
  .footer-credits-static { display: none; }
  .footer-credits-ticker { display: block; }
  .footer-bar {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .footer-left { grid-column: 1; }
  .footer-right {
    grid-column: 2;
    display: flex;
    align-items: center;
  }
  .footer-credits-ticker { grid-column: 3; }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .transio-coming-soon { min-height: 320px; }
  .transio-lane { height: 58px; }
  .transio-center-chip { font-size: 10px; letter-spacing: 1px; }
  .about-stats { gap: 20px; }
  .about-body { grid-template-columns: 1fr; }
  .about-main {
    min-height: auto;
    justify-content: flex-start;
  }
  .about-cta-buttons { flex-direction: column; align-items: center; }


  .modal-how-it-works { max-width: 90%; }
  .step-item { flex-direction: column; text-align: center; gap: 16px; }
  .step-number { margin: 0 auto; }
  .step-icon { width: auto; }

  .header {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-template-columns: unset;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    height: auto;
    min-height: 52px;
  }

  .header .logo {
    flex-shrink: 0;
    font-size: 16px;
  }

  .header-search {
    display: flex;
    flex: 1;
    min-width: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .header-search input {
    max-width: none;
    width: 100%;
    font-size: 13px;
    padding: 6px 10px;
    opacity: 1;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .header-nav-desktop,
  .header-login-text {
    display: none;
  }

  .header-nav-mobile,
  .mobile-nav-toggle {
    display: flex;
  }

  .header-nav-mobile .profile-menu-trigger,
  .header-nav-auth .profile-menu-trigger {
    width: 40px;
    height: 40px;
    padding: 4px;
    justify-content: center;
  }

  .profile-email { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .login-container { padding: 16px; }
  .register-grid { grid-template-columns: 1fr; }
}
