:root {
  --bg: #0b1c2c;
  --bg-2: #0f2438;
  --card: #11273c;
  --accent: #38e0c4;
  --accent-2: #ffb347;
  --text: #e8f2ff;
  --muted: #9ab4cf;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, rgba(56, 224, 196, 0.12), transparent 45%), radial-gradient(120% 120% at 80% 10%, rgba(255, 179, 71, 0.12), transparent 45%), linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 32px 24px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-user {
  color: var(--accent);
  font-weight: 600;
  padding: 12px 0;
}

.nav-dropdown {
  position: relative;
}

.nav-user-btn {
  background: rgba(56, 224, 196, 0.1);
  border: 1px solid rgba(56, 224, 196, 0.25);
  color: var(--accent);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.nav-user-btn:hover {
  background: rgba(56, 224, 196, 0.18);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 1500;
  overflow: hidden;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s ease;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy h1 {
  margin: 12px 0;
  font-size: 36px;
  line-height: 1.15;
}

.hero-copy p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.chip.completed {
  background: rgba(56, 224, 196, 0.12);
  border-color: rgba(56, 224, 196, 0.35);
  color: var(--accent);
}

.primary, .ghost {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #20c9aa);
  color: #08121c;
  box-shadow: var(--shadow);
}

.primary:hover {
  transform: translateY(-1px);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-header {
  font-weight: 600;
  color: var(--accent);
}

/* Roadmap Panel */
.roadmap-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.roadmap-panel::-webkit-scrollbar {
  width: 6px;
}

.roadmap-panel::-webkit-scrollbar-track {
  background: transparent;
}

.roadmap-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.roadmap-panel::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.roadmap-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  width: fit-content;
}

.status-badge.completed {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.status-badge.inprogress {
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.3);
  color: var(--accent-2);
}

.status-badge.pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roadmap-item {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid;
}

.roadmap-section .roadmap-item {
  border-left-color: var(--muted);
  color: var(--text);
}

.roadmap-section:first-child .roadmap-item {
  border-left-color: #4ade80;
}

.roadmap-section:nth-child(2) .roadmap-item {
  border-left-color: var(--accent-2);
}

.roadmap-section:nth-child(3) .roadmap-item {
  border-left-color: var(--border);
  opacity: 0.7;
}

.release-note {
  color: var(--accent);
  font-weight: 600;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.panel-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.label {
  font-size: 12px;
  color: var(--muted);
}

.metric {
  font-size: 20px;
  font-weight: 700;
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 224, 196, 0.6);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal.reveal-up {
  transform: translateY(32px);
}

.reveal.reveal-left {
  transform: translateX(-32px);
}

.reveal.reveal-right {
  transform: translateX(32px);
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Showcase image ── */
.showcase-section {
  margin: 24px 0 40px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: center;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.showcase-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-left .showcase-img-wrap {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.showcase-img-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 6px;
}

.showcase-coming-soon {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.showcase-soon-text {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.showcase-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.showcase-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.showcase-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 30px 10px var(--bg);
  opacity: 0.3;
}

.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.showcase-info {
  padding: 8px 0;
}

.showcase-features {
  list-style: disc;
  padding: 0 0 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-hex-icon {
  margin-bottom: 12px;
}

.showcase-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.showcase-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.showcase-features li {
  font-size: 14px;
  color: var(--text);
  padding: 2px 0;
}

.section {
  margin: 60px 0;
}

.highlight {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.section-heading h2 {
  margin: 8px 0;
  font-size: 28px;
}

.section-heading .lede {
  color: var(--muted);
  max-width: 640px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(56, 224, 196, 0.12);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 224, 196, 0.35);
}

.pricing {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

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

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(56, 224, 196, 0.15), var(--shadow);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #08121c;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.price-tag {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-2);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--muted);
}

.price-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.block {
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* Development alert bar (site-wide, below nav) */
.dev-alert-bar {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.15), rgba(255, 80, 80, 0.1));
  border-bottom: 1px solid rgba(255, 179, 71, 0.35);
  overflow: hidden;
  max-height: 80px;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.dev-alert-bar.dismissed {
  max-height: 0;
  opacity: 0;
  border: none;
}

.dev-alert-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dev-alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.dev-alert-text {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.dev-alert-text strong {
  color: var(--accent-2);
  font-weight: 700;
}

.dev-alert-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.dev-alert-close:hover {
  color: var(--text);
}

/* Development status banner */
.dev-banner {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.08), rgba(56, 224, 196, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.dev-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dev-banner h2 {
  margin: 0 0 8px;
}

.dev-banner .lede {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.dev-banner .lede strong {
  color: var(--accent);
}

.dev-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dev-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.dev-label {
  font-weight: 600;
  font-size: 14px;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(56, 224, 196, 0.15), rgba(255, 179, 71, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.footer {
  max-width: 1200px;
  margin: 20px auto;
  padding: 18px 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.foot-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.foot-note {
  font-size: 13px;
}

.foot-sep {
  margin: 0 2px;
  opacity: 0.4;
  user-select: none;
}
.foot-disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: not-allowed;
  user-select: none;
}
.foot-contact {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}
.foot-contact a {
  color: var(--muted);
  text-decoration: none;
}
.foot-contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Legal / Privacy page */
.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px 60px;
}
.legal-container h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-container h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}
.legal-container h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-container p,
.legal-container li {
  line-height: 1.7;
  color: var(--muted);
}
.legal-container ul {
  padding-left: 24px;
  margin: 8px 0 16px;
}
.legal-container a {
  color: var(--accent);
}
.legal-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.legal-summary {
  margin: 0 0 32px;
  padding: 18px 20px;
  background: rgba(56, 224, 196, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.legal-container code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.privacy-ack-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1200;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.21,.6,.27,1), opacity 0.25s ease;
}
.privacy-ack-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.privacy-ack-body { flex: 1; min-width: 0; }
.privacy-ack-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.privacy-ack-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.privacy-ack-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.privacy-ack-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.privacy-ack-link:hover { text-decoration: underline; }
.privacy-ack-agree {
  background: var(--accent);
  color: #0b1c2c;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.privacy-ack-agree:hover { background: #5ee9d1; }
.privacy-ack-agree:disabled { opacity: 0.55; cursor: wait; }
.privacy-ack-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.privacy-ack-dismiss:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  width: 100%;
}
.form-check-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.form-check-label a { color: var(--accent); }

@media (max-width: 560px) {
  .privacy-ack-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 14px 16px;
  }
  .privacy-ack-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Auth forms */
.auth-page {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 24px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 6px;
}

.auth-card .lede {
  color: var(--muted);
  margin: 0 0 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ff6b6b;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-success {
  background: rgba(56, 224, 196, 0.12);
  border: 1px solid rgba(56, 224, 196, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 14px;
}

.auth-link {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.auth-link a {
  color: var(--accent);
}

/* Map page */
.map-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - 110px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#turb-map {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}

.aircraft-icon {
  background: none !important;
  border: none !important;
}

.radar-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.radar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.radar-btn.active {
  background: rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.4);
  color: #60a5fa;
}
.radar-btn + .radar-btn {
  margin-left: 6px;
}

/* ── Weather overlay blending ── */
/* Match OWM tiles to RainViewer Dark Sky (scheme 8) color palette */
.owm-cloud-tiles {
  mix-blend-mode: screen;
  filter: brightness(0.5) contrast(1.8) saturate(0.15);
}
/* OWM precip → RainViewer style: kill the pale haze with high contrast,
   shift hue to match Dark Sky blue-green-yellow-red, boost saturation.
   'lighten' blend only shows precip that's brighter than the dark map,
   so light drizzle haze disappears while real returns pop. */
.owm-precip-tiles {
  mix-blend-mode: lighten;
  filter: hue-rotate(-30deg) brightness(0.9) contrast(4.0) saturate(2.5);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.map-upgrade {
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.map-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-tools {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: flex;
  gap: 6px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.map-tools:hover {
  background: rgba(11, 28, 44, 0.92);
  border-color: rgba(56, 224, 196, 0.35);
}
.map-tools .radar-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.map-tools .radar-btn + .radar-btn {
  margin-left: 0;
}

.map-legends {
  position: absolute;
  top: 64px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
  user-select: none;
  max-width: 200px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.map-legends:hover {
  background: rgba(11, 28, 44, 0.92);
  border-color: rgba(56, 224, 196, 0.35);
}
.map-legends .legend-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.map-legends .legend-group + .legend-group {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.map-legends .legend-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.map-legends .legend-item {
  font-size: 11px;
  color: var(--text);
  gap: 8px;
}
.map-legends .legend-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.alt-filter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 6px 10px;
  backdrop-filter: blur(6px);
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.alt-filter:hover {
  background: rgba(11, 28, 44, 0.92);
  border-color: rgba(56, 224, 196, 0.35);
}

.alt-all-btn {
  width: 100%;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.alt-all-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.alt-all-btn.active {
  background: rgba(56, 224, 196, 0.18);
  border-color: rgba(56, 224, 196, 0.4);
  color: var(--accent);
}

.alt-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.alt-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.alt-track-wrap {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.alt-track {
  position: relative;
  width: 28px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.alt-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 224, 196, 0.6);
  pointer-events: none;
  transition: bottom 0.1s;
}

/* Vertical range input — overlaid on the track */
.alt-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 200px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  cursor: pointer;
  z-index: 2;
}

.alt-slider::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  width: 28px;
}
.alt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 6px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(56, 224, 196, 0.5);
  cursor: grab;
}
.alt-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 0 10px rgba(56, 224, 196, 0.8);
}

.alt-slider::-moz-range-track {
  background: transparent;
  border: none;
  width: 28px;
}
.alt-slider::-moz-range-thumb {
  width: 28px;
  height: 6px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(56, 224, 196, 0.5);
  cursor: grab;
}
.alt-slider::-moz-range-thumb:active {
  cursor: grabbing;
}

.alt-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  padding: 2px 0;
}
.alt-ticks span {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
}

.alt-readout {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
}

.alt-filter .filter-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0 6px;
}

.source-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 84px;
}

.source-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.source-chip {
  width: 100%;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  opacity: 0.4;
  cursor: not-allowed;
  text-align: center;
}

.source-chip:disabled {
  pointer-events: none;
}

.source-section-note {
  font-size: 9px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  opacity: 0.65;
  margin-top: 2px;
}

/* ── Time filter (horizontal slider at bottom of map) ── */
.time-filter {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px 6px;
  backdrop-filter: blur(6px);
  user-select: none;
  min-width: 520px;
  max-width: 70%;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.time-filter:hover {
  background: rgba(11, 28, 44, 0.92);
  border-color: rgba(56, 224, 196, 0.35);
}

.time-readout-wrap {
  text-align: center;
}

.time-readout {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.time-track-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.time-edge-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  min-width: 24px;
  text-align: center;
}

.time-track {
  position: relative;
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.time-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  background: rgba(56, 224, 196, 0.12);
  border-right: 2px solid var(--accent);
  box-shadow: 2px 0 8px rgba(56, 224, 196, 0.4);
  pointer-events: none;
  transition: width 0.15s;
}

.time-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  z-index: 2;
}

.time-slider::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  height: 20px;
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 20px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(56, 224, 196, 0.5);
  cursor: grab;
}
.time-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 0 10px rgba(56, 224, 196, 0.8);
}

.time-slider::-moz-range-track {
  background: transparent;
  border: none;
  height: 20px;
}
.time-slider::-moz-range-thumb {
  width: 6px;
  height: 20px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(56, 224, 196, 0.5);
  cursor: grab;
}
.time-slider::-moz-range-thumb:active {
  cursor: grabbing;
}

.time-ticks {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 32px;
}
.time-ticks span {
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  text-align: center;
  min-width: 20px;
}

.aircraft-info {
  position: absolute;
  bottom: 36px;
  right: 12px;
  z-index: 1001;
  width: 230px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 10px;
  backdrop-filter: blur(6px);
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}
.aircraft-info[hidden] {
  display: none;
}
.aircraft-info:hover {
  background: rgba(11, 28, 44, 0.92);
  border-color: rgba(56, 224, 196, 0.35);
  opacity: 1;
}

.aircraft-info-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.aircraft-info-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.aircraft-info-callsign {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-right: 24px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.aircraft-info-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 12px;
}
.aircraft-info-rows dt {
  color: var(--muted);
  font-weight: 500;
}
.aircraft-info-rows dd {
  color: var(--text);
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.aircraft-info-route {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--text);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: 0.03em;
  text-align: center;
}
.aircraft-info-route:empty {
  display: none;
}

/* MapLibre dark theme overrides */
.maplibregl-popup {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.maplibregl-popup:hover {
  opacity: 1;
}

.maplibregl-popup-content {
  background: var(--card) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
  padding: 12px 16px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.maplibregl-popup-tip {
  border-top-color: var(--card) !important;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--card) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: var(--card) !important;
}

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

.maplibregl-popup-close-button:hover {
  color: var(--text) !important;
  background: transparent !important;
}

.maplibregl-ctrl-attrib {
  background: rgba(11, 28, 44, 0.7) !important;
  font-size: 11px !important;
}

.maplibregl-ctrl-attrib a {
  color: var(--muted) !important;
}

/* Blog */
.blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.blog-page h1 {
  margin: 0 0 8px;
}

.blog-page > .lede {
  color: var(--muted);
  margin: 0 0 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
}

.blog-card h3 {
  margin: 0 0 8px;
}

.blog-card .excerpt {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
}

.blog-meta {
  font-size: 12px;
  color: var(--muted);
}

.blog-content {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
}

.blog-content h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.blog-content .blog-meta {
  margin-bottom: 32px;
}

.blog-content .body {
  color: var(--muted);
  line-height: 1.8;
}

.blog-content .body h2, .blog-content .body h3 {
  color: var(--text);
  margin-top: 32px;
}

.blog-content .body p {
  margin: 16px 0;
}

.blog-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-content h2 {
  margin: 0 0 12px;
  color: var(--text);
}

.modal-content p {
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.6;
}

.modal-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* Admin */
.admin-page {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-page h2 {
  margin: 0 0 20px;
}

.form-group textarea {
  width: 100%;
  min-height: 300px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Blog Editor */
.editor-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.editor-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 16px;
}

.btn-new {
  background: rgba(56, 224, 196, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 224, 196, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-list-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
  text-align: center;
}

.post-list-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.post-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.post-list-item.active {
  background: rgba(56, 224, 196, 0.08);
  border: 1px solid rgba(56, 224, 196, 0.2);
}

.post-list-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.post-status {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-status.published {
  color: #4ade80;
}

.post-status.draft {
  color: var(--accent-2);
}

.editor-main {
  padding: 24px 32px;
  overflow-y: auto;
}

.editor-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.editor-top-left {
  flex: 1;
  min-width: 200px;
}

.editor-title-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  padding: 8px 0;
  outline: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.editor-title-input:focus {
  border-bottom-color: var(--accent);
}

.editor-title-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.editor-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.toggle-text {
  font-weight: 600;
}

.editor-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.meta-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta-field input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.meta-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-delete {
  background: transparent;
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-delete:hover {
  background: rgba(255, 80, 80, 0.1);
}

/* Quill dark theme overrides */
#quill-editor {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-height: 400px;
  font-size: 15px;
  line-height: 1.7;
}

#quill-editor .ql-editor {
  min-height: 400px;
  padding: 20px 24px;
}

#quill-editor .ql-editor.ql-blank::before {
  color: rgba(255, 255, 255, 0.2);
  font-style: normal;
}

.ql-toolbar.ql-snow {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: var(--muted);
}

.ql-toolbar.ql-snow .ql-fill {
  fill: var(--muted);
}

.ql-toolbar.ql-snow .ql-picker-label {
  color: var(--muted);
}

.ql-toolbar.ql-snow .ql-picker-options {
  background: var(--card);
  border-color: var(--border);
}

.ql-toolbar.ql-snow .ql-picker-item {
  color: var(--text);
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: var(--accent);
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: var(--accent);
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
  color: var(--accent);
}

.ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke {
  stroke: var(--accent);
}

.ql-snow .ql-tooltip {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

.ql-snow .ql-tooltip input[type="text"] {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.ql-snow .ql-tooltip a.ql-action::after,
.ql-snow .ql-tooltip a.ql-remove::before {
  color: var(--accent);
}

.ql-snow a {
  color: var(--accent);
}

#quill-editor h1, #quill-editor h2, #quill-editor h3 {
  color: var(--text);
}

#quill-editor blockquote {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  padding-left: 16px;
}

#quill-editor pre.ql-syntax {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  color: var(--accent);
  padding: 16px;
}

/* ── Ticket System ── */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
  gap: 12px;
}

.ticket-row:hover {
  border-color: var(--accent);
}

.ticket-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ticket-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ticket-row-author {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.ticket-id {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.ticket-subject {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}

.ticket-status-dot.open { background: #38e0c4; }
.ticket-status-dot.in_progress { background: #ffb347; }
.ticket-status-dot.resolved { background: #4caf50; }
.ticket-status-dot.closed { background: #666; }

.ticket-category-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  white-space: nowrap;
}

.ticket-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.ticket-dup-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 179, 71, 0.15);
  color: var(--accent-2);
  font-weight: 600;
  white-space: nowrap;
}

.ticket-route-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 224, 196, 0.1);
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.ticket-admin-controls {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  align-items: center;
}

.ticket-admin-controls select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
}

/* Single ticket view */
.ticket-header {
  margin: 20px 0 16px;
}

.ticket-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ticket-header-top h2 {
  margin: 0;
  font-size: 22px;
}

.ticket-header-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ticket-status-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.ticket-status-badge.open { background: rgba(56,224,196,0.15); color: var(--accent); }
.ticket-status-badge.in_progress { background: rgba(255,179,71,0.15); color: var(--accent-2); }
.ticket-status-badge.resolved { background: rgba(76,175,80,0.15); color: #4caf50; }
.ticket-status-badge.closed { background: rgba(255,255,255,0.06); color: var(--muted); }

.ticket-flight-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.ticket-flight-info h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.ticket-flight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 14px;
}

.ticket-field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

.ticket-related {
  background: rgba(255,179,71,0.05);
  border: 1px solid rgba(255,179,71,0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.ticket-related h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--accent-2);
}

.ticket-related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 0;
}

.ticket-related-link:hover { text-decoration: underline; }

.ticket-message {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 8px;
}

.ticket-admin-reply {
  border-left: 3px solid var(--accent);
}

.ticket-message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.ticket-admin-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56,224,196,0.15);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-message-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ticket-attach-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  max-width: 120px;
}

.ticket-attach-link:hover { text-decoration: underline; }

.ticket-attach-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.ticket-reply-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.ticket-reply-form h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.ticket-prefill {
  background: rgba(56,224,196,0.06);
  border: 1px solid rgba(56,224,196,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.ticket-prefill-label {
  color: var(--muted);
  margin-right: 6px;
}

.ticket-flight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.file-input {
  font-size: 13px;
  color: var(--muted);
}

.file-input::file-selector-button {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  margin-right: 10px;
  font-size: 13px;
}

.file-input::file-selector-button:hover {
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 24px 18px 56px;
  }
  main {
    padding: 18px;
  }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .editor-page {
    grid-template-columns: 1fr;
  }
  .editor-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 200px;
  }
  .editor-meta-row {
    grid-template-columns: 1fr;
  }
  .editor-main {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .showcase-grid .showcase-img-wrap {
    max-width: 400px;
  }
  .showcase-layout {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .showcase-left {
    gap: 12px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    padding: 12px;
    z-index: 100;
  }
  .nav.nav-open .nav-actions,
  .nav-open .nav-actions {
    display: flex;
  }
  .nav {
    position: relative;
  }
  .site-nav {
    padding: 16px 18px 0;
  }
}

/* ══ Early Access Card ══ */
.early-access-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.ea-badge {
  display: inline-block;
  background: var(--accent-2);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.early-access-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.early-access-card > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ea-notice {
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ea-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.ea-detail {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.ea-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ea-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* ══ Application Form ══ */
.form-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.form-container {
  max-width: 640px;
  margin: 0 auto;
}
.form-header {
  margin-bottom: 32px;
}
.form-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.form-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.form-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%239ab4cf' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.required {
  color: #ef4444;
}

/* Checkboxes & Radios */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.radio-group {
  display: flex;
  gap: 24px;
}

/* Terms box */
.terms-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.terms-box p {
  margin-bottom: 12px;
  color: var(--text);
}
.terms-box ol {
  padding-left: 20px;
}
.terms-box li {
  margin-bottom: 10px;
}
.terms-box strong {
  color: var(--text);
}

/* Messages */
.msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.msg.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ff6b6b;
}
.msg.success {
  background: rgba(56, 224, 196, 0.1);
  border: 1px solid rgba(56, 224, 196, 0.3);
  color: var(--accent);
}
.muted { color: var(--muted); }

/* ══ Admin — Beta Applications ══ */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.admin-header {
  margin-bottom: 24px;
}
.admin-header h2 {
  font-size: 28px;
  margin-bottom: 4px;
}
.beta-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.beta-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.beta-filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.beta-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.beta-app-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.beta-app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.beta-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.beta-app-header strong {
  font-size: 17px;
}
.beta-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 10px;
}
.beta-status-badge.pending {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}
.beta-status-badge.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.beta-status-badge.denied {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.beta-status-badge.removed {
  background: rgba(154, 180, 207, 0.15);
  color: var(--muted);
}
.beta-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.beta-app-field {
  font-size: 14px;
}
.beta-field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.beta-app-actions {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.beta-app-actions textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}
.beta-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.beta-action-btns button {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-approve {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #22c55e;
}
.btn-approve:hover { background: rgba(34, 197, 94, 0.3); }
.btn-deny {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444;
}
.btn-deny:hover { background: rgba(239, 68, 68, 0.25); }
.btn-remove {
  background: rgba(154, 180, 207, 0.1);
  border-color: rgba(154, 180, 207, 0.3) !important;
  color: var(--muted);
}
.btn-remove:hover { background: rgba(154, 180, 207, 0.2); }
.btn-pending {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.3) !important;
  color: #facc15;
}
.btn-pending:hover { background: rgba(250, 204, 21, 0.2); }

@media (max-width: 600px) {
  .beta-app-grid {
    grid-template-columns: 1fr;
  }
  .beta-app-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════
   LARGE PHONES / SMALL TABLETS (481–768px)
   fills the gap where fixed grids break
   ══════════════════════════════════════════ */
@media (max-width: 768px) and (min-width: 481px) {
  .hero {
    padding: 20px 18px 48px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
  .map-container {
    height: calc(100vh - 100px);
    min-height: 420px;
  }
  .alt-track,
  .alt-slider,
  .alt-ticks {
    height: 160px;
  }
  .time-filter {
    min-width: 360px;
    max-width: 90%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .early-access-card {
    padding: 24px 20px;
  }
  .form-page {
    padding: 24px 18px 60px;
  }
  .admin-page {
    padding: 24px 18px 60px;
  }
}

/* ══════════════════════════════════════════
   MOBILE — phones (≤ 480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Global spacing ── */
  .hero {
    padding: 16px 14px 40px;
  }
  main {
    padding: 14px;
  }
  .site-nav {
    padding: 12px 14px 0;
  }
  .nav {
    margin-bottom: 16px;
  }

  /* ── Nav mobile menu ── */
  .nav-actions {
    top: 50px;
    padding: 10px;
    gap: 4px;
  }
  .nav-user-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
  .nav-dropdown-menu {
    position: fixed;
    top: auto;
    right: 14px;
    left: 14px;
    width: auto;
  }

  /* ── Dev alert bar ── */
  .dev-alert-inner {
    font-size: 12px;
    padding: 8px 12px;
  }
  .dev-alert-text strong {
    display: block;
    margin-bottom: 2px;
  }

  /* ── Hero ── */
  .hero-copy h1 {
    font-size: 24px;
  }
  .hero-copy p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .primary,
  .cta-row .ghost {
    text-align: center;
    width: 100%;
  }
  .chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* ── Showcase ── */
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .showcase-grid .showcase-img-wrap {
    max-width: 100%;
  }
  .showcase-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .showcase-section {
    margin: 16px 0 24px;
  }

  /* ── Pricing ── */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .price-card {
    width: 100%;
  }

  /* ── Map page ── */
  .map-container {
    height: calc(100vh - 90px);
    min-height: 360px;
  }

  .alt-filter {
    top: 8px;
    right: 8px;
    padding: 6px 4px 8px;
  }
  .alt-track,
  .alt-slider {
    height: 140px;
  }
  .alt-ticks {
    height: 140px;
  }
  .alt-ticks span {
    font-size: 8px;
  }
  .alt-label {
    font-size: 9px;
  }
  .alt-readout {
    font-size: 9px;
  }
  .alt-all-btn {
    font-size: 10px;
    padding: 3px 6px;
  }

  .alt-filter .source-section {
    display: none;
  }
  .alt-filter .filter-divider {
    display: none;
  }

  .map-tools {
    top: 8px;
    left: 8px;
    padding: 4px 6px;
  }
  .map-tools .radar-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .map-legends {
    top: 56px;
    left: 8px;
    padding: 8px 10px;
    max-width: 160px;
  }
  .map-legends .legend-item {
    font-size: 10px;
  }

  .time-filter {
    left: 8px;
    right: 8px;
    transform: none;
    min-width: 0;
    max-width: none;
    padding: 4px 10px 6px;
    bottom: 32px;
  }

  .legend-item {
    font-size: 12px;
  }
  .legend-dot {
    width: 10px;
    height: 10px;
  }
  .map-upgrade {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    padding: 10px 12px;
  }

  /* ── Panel / Stats rows ── */
  .panel-split {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .panel-row {
    font-size: 13px;
  }

  /* ── Forms ── */
  .form-page {
    padding: 20px 14px 40px;
  }
  .form-header h2 {
    font-size: 22px;
  }
  .form-section h3 {
    font-size: 16px;
  }
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  /* ── Early access card ── */
  .early-access-card {
    padding: 20px 16px;
  }
  .early-access-card h3 {
    font-size: 18px;
  }
  .ea-details {
    grid-template-columns: 1fr;
  }

  /* ── Editor page ── */
  .editor-sidebar {
    max-height: 160px;
  }
  .editor-main {
    padding: 12px;
  }

  /* ── Admin / Beta ── */
  .admin-page {
    padding: 20px 14px 40px;
  }
  .admin-header h2 {
    font-size: 22px;
  }
  .beta-app-card {
    padding: 14px 12px;
  }

  /* ── Auth pages ── */
  .auth-page {
    padding: 20px 14px 40px;
  }
  .auth-box {
    padding: 20px 16px;
  }

  /* ── Blog ── */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* ── Roadmap ── */
  .roadmap-item {
    font-size: 11px;
  }

  /* ── Sections spacing ── */
  section {
    margin: 24px 0;
  }
  section h2 {
    font-size: 22px;
  }
  section > p {
    font-size: 14px;
  }

  /* ── Tickets ── */
  .ticket-list {
    gap: 10px;
  }

  /* ── CTA banner ── */
  .cta-banner {
    padding: 20px 16px;
    gap: 12px;
  }
}

/* ─── App Store Badges ─────────────────────────────────────────────── */
.store-badges {
  margin: 8px 0 16px;
}

.store-badges-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px;
}

.store-badges-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge {
  height: 64px;
  width: auto;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .store-badge {
    height: 54px;
  }
}

/* ════════════════════════════════════════════════════════════════════
 * Homepage v2 — cinematic scrollytelling layout
 * Scoped under .home-cinema-main so it doesn't leak into other pages.
 * ════════════════════════════════════════════════════════════════════ */

.home-cinema-main {
  --parallax: 0px;
  margin: 0;
  padding: 0;
  /* Override the global `main { max-width: 1200px; padding: 24px }` rule
     defined earlier in this file — without this, the hero gets squeezed
     into a centered 1152px column with empty bars on either side. */
  max-width: none;
  width: 100%;
  /* Avoid horizontal scrollbar from any 100vw children when a vertical
     scrollbar is present (100vw includes the scrollbar gutter). */
  overflow-x: hidden;
}

/* ── Bigger CTA variants ── */
.primary.big {
  padding: 16px 32px;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 12px;
  font-weight: 700;
}
.primary.huge {
  padding: 22px 56px;
  font-size: 18px;
  letter-spacing: 0.04em;
  border-radius: 14px;
  font-weight: 700;
}
.primary.block {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Eyebrow color helpers */
.eyebrow.accent2 { color: var(--accent-2); }
.eyebrow.muted   { color: var(--muted); }

/* Big headlines for cinema scenes */
.cinema-h1 {
  font-size: clamp(38px, 6.5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 12px 0 18px;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.cinema-h1 em {
  font-style: normal;
  color: var(--accent-2);
  background: linear-gradient(135deg, var(--accent-2) 0%, #ffd28a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cinema-h2 {
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 8px 0 14px;
  color: var(--text);
}
.cinema-h2-huge {
  font-size: clamp(42px, 7vw, 96px);
}

.cinema-lede {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 24px;
}

/* ════════ HERO ════════ */
.cinema-hero {
  position: relative;
  width: 100%;
  /* 88vh / 640px max — leaves a ~12vh sliver of the next section visible at
     the bottom of the viewport so users see there's more below without
     having to take a leap of faith on the scroll indicator. */
  height: 88vh;
  min-height: 540px;
  max-height: 640px;
  overflow: hidden;
  /* Force a clean stacking context. Without this AND the negative z-index
     on the map below, MapLibre's WebGL canvas escapes and paints above the
     hero text on some browsers (Safari/iOS, certain GPU configs). */
  isolation: isolate;
  /* Background fills behind the negative-z map so the map can't fall through
     to the page background. */
  background: var(--bg);
}

.cinema-hero-map {
  /* `!important` here beats MapLibre's `.maplibregl-map { position: relative }`
     rule, which is automatically added once MapLibre initializes the map and
     injects its own class on this same element. Without !important, our
     position:absolute is silently overridden — the map then becomes a flow
     element 640px tall, pushing .cinema-hero-content out the bottom of the
     hero (where it appears to "disappear" below the fold ~5s after page load). */
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  /* NEGATIVE z-index pins the map below all positive-z siblings inside the
     hero's stacking context. The `isolation: isolate` on .cinema-hero keeps
     this negative z scoped — the map can't fall behind the page background. */
  z-index: -1 !important;
  background: var(--bg);
  pointer-events: none;
}
.cinema-hero-map .maplibregl-canvas {
  outline: none;
}

/* Veil: gradient overlay so copy stays readable AND the empty-map state
   never looks like a generic dead world map. The radial mask blacks out the
   left third (where copy sits) and softens the right side; the linear
   gradient darkens top + bottom to feather into the page background.
   Bottom 25% fades to fully opaque var(--bg) so the hero hands off seamlessly
   to the next scene rather than ending in a hard edge. */
.cinema-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(72% 82% at 22% 50%, rgba(11, 28, 44, 0.95) 0%, rgba(11, 28, 44, 0.7) 45%, rgba(11, 28, 44, 0.28) 78%, rgba(11, 28, 44, 0.05) 100%),
    linear-gradient(180deg,
      rgba(11, 28, 44, 0.6) 0%,
      rgba(11, 28, 44, 0.15) 28%,
      rgba(11, 28, 44, 0.15) 55%,
      rgba(11, 28, 44, 0.65) 78%,
      rgba(11, 28, 44, 1) 100%);
}

/* Ambient glow: soft accent-colored halos over the map. Always present,
   so even when no live hexes have arrived yet the right side of the hero
   feels alive — looks like turbulence cells glowing through a haze. */
.cinema-hero-veil::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 62% 38%, rgba(255, 179, 71, 0.22) 0%, transparent 12%),
    radial-gradient(circle at 78% 58%, rgba(56, 224, 196, 0.18) 0%, transparent 14%),
    radial-gradient(circle at 86% 32%, rgba(255, 179, 71, 0.14) 0%, transparent 10%),
    radial-gradient(circle at 70% 72%, rgba(56, 224, 196, 0.14) 0%, transparent 12%),
    radial-gradient(circle at 92% 48%, rgba(255, 179, 71, 0.12) 0%, transparent 9%);
  filter: blur(2px);
  opacity: 0.9;
  animation: cinema-glow-drift 18s ease-in-out infinite alternate;
}
@keyframes cinema-glow-drift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50%  { transform: translate(-8px, 4px) scale(1.04); opacity: 0.95; }
  100% { transform: translate(6px, -3px) scale(0.98); opacity: 0.85; }
}

/* Live network badge — sits over the map area (right side) so the hero
   always reads as "this IS the live system" rather than "static globe". */
.cinema-hero-livebadge {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(11, 28, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cinema-hero-livebadge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 224, 196, 0.22);
  animation: cinema-pulse 1.6s ease-in-out infinite;
}

.cinema-hero-content {
  position: relative;
  z-index: 10 !important;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 28px 120px;
  /* Promote to its own GPU layer + force opacity to defeat anything that
     might inadvertently fade the content. !important on opacity guards
     against accidental .reveal class inheritance. */
  transform: translate3d(0, 0, 1px);
  will-change: transform;
  opacity: 1 !important;
  visibility: visible !important;
}
.cinema-hero-content .eyebrow {
  margin-bottom: 4px;
}
.cinema-hero-content .cinema-lede {
  max-width: 56ch;
}
.cinema-cta-row {
  margin-top: 6px;
  margin-bottom: 36px;
}

/* Scroll indicator at bottom of hero — cinematic invite to scroll, not a
   subtle tag. Includes a vertical accent line that pulses downward to
   visually pull the eye toward the next section. */
.cinema-hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  padding: 8px 18px 4px;
}
.cinema-hero-scroll:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.cinema-hero-scroll::before {
  /* Vertical accent line — the literal "scroll-down channel" */
  content: '';
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg,
    rgba(56, 224, 196, 0) 0%,
    rgba(56, 224, 196, 0.7) 100%);
  position: relative;
  overflow: hidden;
}
.cinema-hero-scroll svg {
  width: 16px;
  height: 22px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(56, 224, 196, 0.4));
  animation: cinema-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes cinema-scroll-bounce {
  0%, 100% { transform: translateY(0);  opacity: 0.7; }
  50%      { transform: translateY(8px); opacity: 1.0; }
}

/* ── Live stat counters in hero ── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 720px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-stats .stat-num {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  color: var(--accent-2);
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero-stats .stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ════════ SHARED SCENE PRIMITIVES ════════ */
.scene {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.scene-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}
.scene-heading {
  margin-bottom: 56px;
  max-width: 720px;
}

/* ── Scene: Problem ── */
.scene-problem {
  background:
    /* Subtle accent glow at top — visually echoes the scroll cue's vertical
       accent line, so when the hero's veil fades to bg the problem section
       picks up with a faint matching glow. Creates a "handoff" feel. */
    radial-gradient(50% 30% at 50% 0%, rgba(56, 224, 196, 0.06) 0%, transparent 70%),
    radial-gradient(70% 100% at 50% 100%, rgba(255, 80, 60, 0.07) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid rgba(56, 224, 196, 0.08);
  /* Reduce top padding slightly so the eyebrow + headline sit closer to the
     hero handoff, encouraging the eye to flow continuously down. */
  padding-top: 100px;
}
.scene-problem .cinema-h2 {
  color: #ffeae0;
}

/* ── Scene: Reveal ── */
.scene-reveal {
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(255, 179, 71, 0.10) 0%, transparent 60%),
    var(--bg-2);
}
.scene-bg-hex {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,179,71,0.35) 0%, transparent 12%),
    radial-gradient(circle at 70% 60%, rgba(56,224,196,0.30) 0%, transparent 14%),
    radial-gradient(circle at 45% 80%, rgba(255,179,71,0.25) 0%, transparent 10%),
    radial-gradient(circle at 85% 25%, rgba(56,224,196,0.20) 0%, transparent 11%),
    radial-gradient(circle at 12% 75%, rgba(255,179,71,0.20) 0%, transparent 11%);
  filter: blur(2px);
}

/* ── Scene: How it works ── */
.scene-how {
  background: var(--bg);
}
.cinema-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  counter-reset: cinemastep;
}
.cinema-step {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cinema-step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.3);
}
.cinema-step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.cinema-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.cinema-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Scene: Showcase ── */
.scene-showcase {
  background: var(--bg-2);
}
.showcase-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-v2-images {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.device-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.device-card img {
  display: block;
  width: 100%;
  height: auto;
}
.device-label {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(11, 28, 44, 0.78);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.device-coming {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02) 0 12px,
    rgba(255, 255, 255, 0.04) 12px 24px
  );
  color: var(--muted);
}
.device-coming-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
  color: var(--muted);
}
.showcase-v2-explainer .hex-icon-big {
  margin-bottom: 10px;
}
.showcase-v2-explainer h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}
.showcase-v2-explainer p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
}
.showcase-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.showcase-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
}
.showcase-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 9px;
  background: var(--accent-2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ── Scene: Roadmap rail ── */
.scene-roadmap {
  background: var(--bg);
}
.roadmap-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
.roadmap-rail::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 16px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    var(--accent) 70%,
    rgba(56, 224, 196, 0.3) 75%,
    rgba(255, 255, 255, 0.1) 100%);
}
.rail-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 16px;
  position: relative;
  z-index: 1;
}
.rail-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 224, 196, 0.18);
  margin-bottom: 14px;
}
.rail-step.doing .rail-dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.22);
  animation: cinema-pulse 1.6s ease-in-out infinite;
}
.rail-step.todo .rail-dot {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}
@keyframes cinema-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.22); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 179, 71, 0.10); }
}
.rail-step strong {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}
.rail-step .rail-sub {
  font-size: 12px;
  color: var(--muted);
}
.rail-step.doing strong { color: var(--accent-2); }

/* ── Scene: Early Access card ── */
.scene-ea {
  background: var(--bg-2);
}
.ea-card-v2 {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg,
    rgba(255, 179, 71, 0.07) 0%,
    rgba(56, 224, 196, 0.04) 100%);
  border: 1px solid rgba(255, 179, 71, 0.20);
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.ea-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.10);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.ea-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.25);
  animation: cinema-pulse 1.6s ease-in-out infinite;
}
.ea-card-v2 .cinema-h2 { margin-bottom: 12px; }
.ea-card-v2 .cinema-lede { margin: 0 auto 26px; }
.ea-row-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}
.ea-stat-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ea-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
}
.ea-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.ea-warning-v2 {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 24px;
  text-align: left;
}
.ea-warning-v2 strong { color: var(--accent-2); }

/* ── Scene: Sim grid ── */
.scene-sims { background: var(--bg); }
.sim-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.sim-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.sim-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.35);
  background: linear-gradient(160deg, rgba(255, 179, 71, 0.06), rgba(255, 255, 255, 0.02));
}
.sim-card strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.sim-card span {
  font-size: 13px;
  color: var(--muted);
}
.sim-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 10px;
  /* Many sim publisher logos are designed for light backgrounds. The brightness
     tweak helps dark logos read on the dark card background without distorting
     light/transparent ones too much. Tune per logo if needed. */
  filter: brightness(1.1) contrast(1.05);
  opacity: 0.95;
}
.sim-disclaimer {
  margin: 32px auto 0;
  max-width: 820px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  opacity: 0.65;
}

/* ── Scene: Final CTA ── */
.scene-final-cta {
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(255, 179, 71, 0.10) 0%, transparent 65%),
    var(--bg-2);
  text-align: center;
  padding: 140px 0 160px;
}
.scene-final-cta .scene-inner { text-align: center; }
.scene-final-cta .cinema-lede {
  margin: 0 auto 40px;
}

/* ════════ Reveal animations ════════ */
.home-cinema-main .reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.21,.6,.27,1),
              transform 0.7s cubic-bezier(.21,.6,.27,1);
  transition-delay: var(--delay, 0s);
}
.home-cinema-main .reveal.reveal-up    { transform: translateY(28px); }
.home-cinema-main .reveal.reveal-left  { transform: translateX(-28px); }
.home-cinema-main .reveal.reveal-right { transform: translateX(28px); }
.home-cinema-main .reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ════════ Reduced motion ════════ */
@media (prefers-reduced-motion: reduce) {
  .home-cinema-main .reveal,
  .home-cinema-main .reveal-up,
  .home-cinema-main .reveal-left,
  .home-cinema-main .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cinema-hero-scroll svg { animation: none; }
  .ea-pill-dot, .rail-step.doing .rail-dot { animation: none; }
}

/* ════════ Responsive ════════ */
@media (max-width: 900px) {
  .scene { padding: 88px 0; }
  /* Below 900px the desktop max-height cap is dropped — phones and tablets
     get the full-bleed dramatic hero the user said works perfectly. */
  .cinema-hero {
    min-height: 560px;
    max-height: none;
    height: 100vh;
  }
  .cinema-hero-content { padding: 60px 22px 100px; }
  .cinema-hero-livebadge { top: 18px; right: 18px; padding: 6px 12px; font-size: 10px; }
  .showcase-v2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .roadmap-rail {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .roadmap-rail::before {
    left: 6px;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      var(--accent) 0%,
      var(--accent) 70%,
      rgba(255, 255, 255, 0.1) 100%);
  }
  .rail-step {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding-left: 24px;
    padding-right: 0;
  }
  .rail-step .rail-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .rail-step strong, .rail-step .rail-sub { display: inline; }
  .rail-step .rail-sub::before { content: ' — '; color: var(--muted); }
  .ea-row-v2 { grid-template-columns: 1fr; }
  .ea-card-v2 { padding: 32px 22px; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 560px) {
  .cinema-hero { min-height: 520px; height: 92vh; }
  .cinema-h1 { font-size: clamp(32px, 9vw, 48px); }
  .cinema-h2 { font-size: clamp(26px, 7vw, 38px); }
  .scene { padding: 64px 0; }
  .scene-heading { margin-bottom: 36px; }
  .hero-stats {
    flex-direction: column;
    gap: 14px;
  }
  .primary.huge { padding: 18px 32px; font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════════════
 * Homepage roadmap → "pipeline" loading bar.
 * Replaces the old dot/line rail with a horizontal segmented progress
 * bar where each milestone is a thin colored segment. Status bar at top
 * shows aggregate completion. The in-progress segment runs a shimmer
 * animation (like a CI pipeline still building).
 * ════════════════════════════════════════════════════════════════════ */
.roadmap-pipe {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Summary header — left: label + value, right: big percent */
.rp-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.rp-summary-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rp-summary-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.rp-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}
.rp-summary-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--accent);
}
.rp-summary-percent {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, #6cf2da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rp-summary-percent-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* Segmented track — 7 equal-width columns on desktop */
.rp-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.rp-seg {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* The bar itself — thin, rounded, status-colored */
.rp-bar {
  height: 6px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.rp-seg.done .rp-bar {
  background: linear-gradient(90deg, var(--accent) 0%, #6cf2da 100%);
  box-shadow: 0 0 14px rgba(56, 224, 196, 0.32);
}
.rp-seg.doing .rp-bar {
  background: rgba(255, 179, 71, 0.14);
  border: 1px solid rgba(255, 179, 71, 0.35);
  height: 6px;
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.18);
}
.rp-seg.doing .rp-bar::before {
  /* Static base fill so the bar always reads as "in progress" even
     between shimmer passes. ~30% filled = "currently building". */
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 30%;
  background: linear-gradient(90deg, var(--accent-2) 0%, #ffd28a 100%);
  border-radius: 3px;
}
.rp-seg.doing .rp-bar::after {
  /* Shimmer sweep — the "loading" feel */
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 226, 168, 0.85) 50%,
    transparent 100%);
  animation: rp-shimmer 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.rp-seg.todo .rp-bar {
  height: 4px;
  margin-top: 1px;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.10) 0 4px,
      rgba(255, 255, 255, 0.02) 4px 8px);
  border-radius: 2px;
}

@keyframes rp-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Per-segment label — name + status */
.rp-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rp-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-status {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-seg.doing .rp-name {
  color: var(--accent-2);
}
.rp-seg.doing .rp-status {
  color: var(--accent-2);
}
.rp-seg.todo .rp-name {
  color: rgba(232, 242, 255, 0.55);
}

/* Mobile: stack vertically with horizontal bars on the left */
@media (max-width: 720px) {
  .rp-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .rp-summary-right {
    align-self: flex-start;
  }
  .rp-summary-percent {
    font-size: 28px;
  }
  .rp-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rp-seg {
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
  }
  .rp-bar {
    flex: 1;
    height: 6px;
  }
  .rp-seg.doing .rp-bar,
  .rp-seg.todo .rp-bar {
    height: 6px;
  }
  .rp-meta {
    flex: 0 0 auto;
    width: 130px;
  }
}

/* Reduced motion — kill the shimmer */
@media (prefers-reduced-motion: reduce) {
  .rp-seg.doing .rp-bar::after { animation: none; opacity: 0; }
}

.acct-page {
  max-width: 880px;
  margin: 48px auto;
  padding: 0 24px 96px;
}
.acct-shell {
  width: 100%;
}

.acct-pagehead {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.acct-pagehead h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.acct-pagehead p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.acct-flash {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
}
.acct-flash.success {
  background: rgba(56, 224, 196, 0.08);
  border: 1px solid rgba(56, 224, 196, 0.28);
  color: var(--accent);
}
.acct-flash svg { flex-shrink: 0; }
.acct-flash strong { color: var(--text); margin-right: 4px; }

.acct-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.acct-section-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
}
.acct-section-head h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.acct-section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.acct-section-body {
  padding: 22px 28px;
}
.acct-body-text {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
.acct-body-text:last-child { margin-bottom: 0; }

.acct-fields {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.acct-fields > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.acct-fields > div:first-child { padding-top: 0; }
.acct-fields > div:last-child { padding-bottom: 0; border-bottom: 0; }
.acct-fields dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acct-fields dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}

.acct-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 224, 196, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.acct-row-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.acct-row-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}
.acct-btn:hover { text-decoration: none; }
.acct-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.acct-btn svg { flex-shrink: 0; }

.acct-btn.primary {
  background: var(--accent);
  color: #06121e;
  border-color: var(--accent);
}
.acct-btn.primary:hover {
  background: #4eecd0;
  border-color: #4eecd0;
  color: #06121e;
}

.acct-btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.acct-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 224, 196, 0.06);
}

.acct-btn.danger-outline {
  background: transparent;
  color: #ff8a8a;
  border-color: rgba(248, 113, 113, 0.4);
  list-style: none;
}
.acct-btn.danger-outline::-webkit-details-marker { display: none; }
.acct-btn.danger-outline:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: #ff8a8a;
  color: #ff8a8a;
}

.acct-btn.danger-solid {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.acct-btn.danger-solid:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.acct-btn.danger-solid:disabled {
  background: #7f1d1d;
  border-color: #7f1d1d;
  cursor: not-allowed;
}

.acct-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.acct-export-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}
.acct-export-status.pending {
  border-color: rgba(56, 224, 196, 0.28);
  background: rgba(56, 224, 196, 0.06);
  color: var(--accent);
}
.acct-export-status.success {
  border-color: rgba(56, 224, 196, 0.28);
  background: rgba(56, 224, 196, 0.06);
  color: var(--text);
}
.acct-export-status.success a {
  color: var(--accent);
  word-break: break-all;
}
.acct-export-status.error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #ff8a8a;
}
.acct-edge-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 179, 71, 0.3);
  background: rgba(255, 179, 71, 0.08);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}
.acct-edge-notice strong { color: var(--accent-2); }
.acct-edge-notice em { color: var(--text); font-style: normal; font-weight: 600; }

.acct-info-list {
  margin: 0 0 18px;
  padding: 14px 18px 14px 38px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: disc;
}
.acct-info-list li {
  margin: 6px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.acct-info-list li strong { color: var(--text); }

.acct-section.danger {
  border-color: rgba(248, 113, 113, 0.28);
}
.acct-section-head.danger {
  background: rgba(248, 113, 113, 0.04);
  border-bottom-color: rgba(248, 113, 113, 0.18);
}
.acct-section-head.danger h2 {
  color: #ff8a8a;
}

.acct-delete-details {
  margin-top: 8px;
}
.acct-delete-details > summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}
.acct-delete-details > summary::-webkit-details-marker { display: none; }
.acct-delete-details[open] > summary { margin-bottom: 18px; }

.acct-delete-form {
  padding: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 10px;
}
.acct-form-group { margin-bottom: 14px; }
.acct-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.acct-form-group label code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
}
.acct-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.acct-form-group input:focus {
  outline: none;
  border-color: #ff8a8a;
}
.acct-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.acct-delete-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #ff8a8a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.loading-bar {
  height: 3px;
  background: var(--border);
  overflow: hidden;
  position: relative;
  border-radius: 3px;
  margin: 12px 0;
}
.loading-bar::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: var(--accent);
  animation: rt-loading-slide 1.2s ease-in-out infinite;
}
@keyframes rt-loading-slide {
  0%   { left: -30%; }
  100% { left: 100%; }
}

.change-password-page,
.forgot-password-page,
.reset-password-page {
  max-width: 460px;
}
.form-hint.ok { color: var(--accent); }
.form-hint.bad { color: #ff6b6b; }

.forgot-password-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  float: right;
}
.forgot-password-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.account-deleted-banner {
  background: rgba(56, 224, 196, 0.08);
  border-bottom: 1px solid rgba(56, 224, 196, 0.28);
  color: var(--accent);
  padding: 14px 24px;
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 100;
}
.account-deleted-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.account-deleted-banner strong {
  color: var(--text);
  margin-right: 4px;
}

@media (max-width: 640px) {
  .acct-page { margin: 24px auto; padding: 0 16px 60px; }
  .acct-pagehead h1 { font-size: 26px; }
  .acct-section-head { padding: 18px 20px 14px; }
  .acct-section-body { padding: 18px 20px; }
  .acct-fields > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }
  .acct-export-row { flex-direction: column; }
  .acct-export-row .acct-btn { width: 100%; }
  .acct-row { flex-direction: column; align-items: stretch; }
  .acct-row .acct-btn { width: 100%; }
  .acct-form-actions { flex-direction: column-reverse; }
  .acct-form-actions .acct-btn { width: 100%; }
}

.faq-landing {
  max-width: 1100px;
  margin: 56px auto 80px;
  padding: 0 24px;
}
.faq-landing-head {
  text-align: center;
  margin-bottom: 40px;
}
.faq-landing-head h1 {
  margin: 6px 0 10px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.faq-landing-head .lede {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.faq-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-landing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.faq-landing-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(56, 224, 196, 0.12);
  text-decoration: none;
  color: var(--text);
}
.faq-landing-card.faq-kb:hover {
  border-color: var(--accent-2);
  box-shadow: 0 20px 50px rgba(255, 179, 71, 0.12);
}
.faq-landing-card.disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}
.faq-landing-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(56, 224, 196, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-landing-card.faq-kb .faq-landing-icon {
  background: rgba(255, 179, 71, 0.12);
  color: var(--accent-2);
}
.faq-landing-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.faq-landing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}
.faq-landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.faq-landing-card.faq-kb .faq-landing-cta {
  color: var(--accent-2);
}
.faq-landing-cta-muted {
  color: var(--muted) !important;
  font-weight: 600;
}
.faq-pdf-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.faq-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.faq-pdf-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 224, 196, 0.06);
  text-decoration: none;
}

.faq-page {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px 96px;
}
.faq-page-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.faq-page-head h1 {
  margin: 6px 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.faq-page-head .lede {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.faq-page-head .lede a {
  color: var(--accent);
}

.faq-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 6px;
}
.faq-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 18px;
  transition: border-color 0.15s;
}
.faq-search:focus {
  outline: none;
  border-color: var(--accent);
}
.faq-sidebar-cat {
  margin-bottom: 18px;
}
.faq-sidebar-cat h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.faq-sidebar-cat h3 a {
  color: inherit;
  text-decoration: none;
}
.faq-sidebar-cat h3 a:hover {
  color: var(--accent);
}
.faq-sidebar-cat.active h3 {
  color: var(--accent);
}
.faq-sidebar-cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-sidebar-cat li a {
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.faq-sidebar-cat li a:hover {
  color: var(--accent);
  background: rgba(56, 224, 196, 0.06);
}

.faq-content {
  min-width: 0;
}
.faq-section {
  margin-bottom: 36px;
}
.faq-section h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 22px;
  font-weight: 700;
}
.faq-question {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary:hover .faq-question-text { color: var(--accent); }
.faq-question-text { flex: 1; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s, color 0.15s;
}
.faq-question[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.faq-answer li { margin: 4px 0; }
.faq-answer a { color: var(--accent); }
.faq-answer code {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13.5px;
}
.faq-answer strong { color: var(--text); }

.faq-empty {
  padding: 40px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
}
.faq-empty p { margin: 6px 0; }
.faq-empty a { color: var(--accent); }

.faq-cta-card {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 179, 71, 0.32);
  background: rgba(255, 179, 71, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.faq-cta-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-2);
}
.faq-cta-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-landing-grid { grid-template-columns: 1fr; }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .faq-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .faq-cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .faq-cta-card .acct-btn { width: 100%; justify-content: center; }
  .faq-page-head h1 { font-size: 26px; }
  .faq-landing-head h1 { font-size: 28px; }
}

