:root {
  color-scheme: dark;
  --bg: #06050a;
  --bg-deep: #120d1a;
  --bg-plum: #1a0b2e;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.16);
  --line-hot: rgba(160, 32, 240, 0.58);
  --text: #f7f2ff;
  --muted: #c4bdd1;
  --soft: #91879f;
  --purple: #a020f0;
  --violet: #7b2cbf;
  --magenta: #d0006f;
  --mint: #55e6c1;
  --cyan: #00f5d4;
  --warning: #e0fe00;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(6, 5, 10, 0.98), rgba(18, 13, 26, 0.98) 36%, rgba(6, 5, 10, 1)),
    radial-gradient(circle at 18% 8%, rgba(160, 32, 240, 0.22), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(0, 245, 212, 0.13), transparent 26%),
    #06050a;
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image:
    linear-gradient(rgba(85, 230, 193, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 32, 240, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

body::after {
  z-index: 500;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--cyan);
  color: #06100e;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 5, 10, 0.88);
  border-bottom: 1px solid rgba(160, 32, 240, 0.28);
  box-shadow: 0 10px 32px rgba(26, 11, 46, 0.48);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(0, 245, 212, 0.45);
  border-radius: var(--radius);
  background: url("../img/favicon.ico") center / contain no-repeat;
  box-shadow: 0 0 22px rgba(160, 32, 240, 0.36), 0 0 34px rgba(0, 245, 212, 0.16);
}

.brand-mark::before {
  content: none;
}

.brand span:last-child {
  font-size: 15px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.nav-links button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover,
.nav-links button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-links .nav-cta {
  color: #07020d;
  background: linear-gradient(135deg, var(--warning), var(--cyan) 54%, var(--purple));
  font-weight: 800;
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.22), 0 0 40px rgba(160, 32, 240, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(160, 32, 240, 0.28);
  background: #08060d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(0, 245, 212, 0.12) 22.4% 22.8%, transparent 23.2%),
    linear-gradient(245deg, transparent 0 58%, rgba(208, 0, 111, 0.13) 58.3% 58.7%, transparent 59.2%);
}

.hero::after {
  content: "V0.4  ROUTE  CITY  TAXI";
  position: absolute;
  right: clamp(16px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 2;
  max-width: 260px;
  padding: 8px 12px;
  border: 1px solid rgba(224, 254, 0, 0.45);
  border-radius: var(--radius);
  color: var(--warning);
  background: rgba(6, 5, 10, 0.72);
  font-size: 12px;
  font-weight: 900;
  word-break: break-word;
  box-shadow: 0 0 22px rgba(224, 254, 0, 0.12);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 5, 10, 0.94), rgba(26, 11, 46, 0.62) 48%, rgba(6, 5, 10, 0.42)),
    linear-gradient(180deg, rgba(6, 5, 10, 0.18), rgba(6, 5, 10, 0.98)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.08) brightness(0.58) hue-rotate(8deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 88px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  justify-content: center;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 0 16px rgba(224, 254, 0, 0.18),
    0 0 36px rgba(160, 32, 240, 0.72),
    0 0 70px rgba(208, 0, 111, 0.35);
}

.hero-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
  color: #f4efff;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
}

.hero-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: #07020d;
  border-color: rgba(224, 254, 0, 0.78);
  background: linear-gradient(135deg, var(--warning), var(--cyan) 48%, var(--purple));
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.28), 0 0 44px rgba(160, 32, 240, 0.24);
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(160, 32, 240, 0.48);
  background: linear-gradient(135deg, rgba(160, 32, 240, 0.18), rgba(26, 11, 46, 0.7));
}

.btn-ghost {
  color: var(--cyan);
  border-color: rgba(0, 245, 212, 0.38);
  background: rgba(0, 245, 212, 0.06);
}

.hero-stats {
  width: min(var(--max), calc(100% - 32px));
  position: relative;
  z-index: 3;
  margin: -38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(160, 32, 240, 0.34);
  border: 1px solid rgba(0, 245, 212, 0.34);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-stat {
  min-height: 98px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(18, 13, 26, 0.95), rgba(26, 11, 46, 0.88)),
    #120d1a;
  box-shadow: inset 0 0 26px rgba(160, 32, 240, 0.08);
}

.hero-stat b {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.hero-stat span {
  color: var(--soft);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section.tight {
  padding-top: 58px;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(26, 11, 46, 0.5), rgba(18, 13, 26, 0.74)),
    #120d1a;
  border-block: 1px solid rgba(160, 32, 240, 0.24);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.wide {
  max-width: 980px;
}

.section-kicker {
  margin-bottom: 9px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 14px;
}

h2 {
  margin-bottom: 13px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

p {
  color: var(--muted);
}

.lead {
  color: #ded6ea;
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.feature-card,
.guide-card,
.question-card,
.timeline-item,
.link-card,
.notice-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 32, 240, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(26, 11, 46, 0.78), rgba(18, 13, 26, 0.86)),
    var(--panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), inset 0 0 28px rgba(0, 245, 212, 0.025);
}

.info-card::before,
.feature-card::before,
.guide-card::before,
.question-card::before,
.timeline-item::before,
.link-card::before,
.notice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--magenta));
}

.info-card,
.feature-card,
.guide-card,
.question-card,
.link-card,
.notice-card {
  padding: 22px;
}

.feature-card strong,
.guide-card strong,
.info-card strong {
  color: #ffffff;
}

.accent {
  color: var(--mint);
}

.danger {
  color: #ff75bc;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.entity-panel {
  display: grid;
  gap: 1px;
  position: relative;
  background: rgba(6, 5, 10, 0.92);
  border: 1px solid rgba(0, 245, 212, 0.34);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 38px rgba(160, 32, 240, 0.14), 0 20px 44px rgba(0, 0, 0, 0.32);
}

.entity-panel::before {
  content: "";
  height: 18px;
  background:
    radial-gradient(circle at 14px 9px, var(--magenta) 0 4px, transparent 5px),
    radial-gradient(circle at 30px 9px, var(--warning) 0 4px, transparent 5px),
    radial-gradient(circle at 46px 9px, var(--cyan) 0 4px, transparent 5px),
    linear-gradient(90deg, rgba(160, 32, 240, 0.28), transparent);
}

.entity-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.046);
}

.entity-row dt {
  color: var(--soft);
}

.entity-row dd {
  margin: 0;
  color: #ffffff;
}

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

.media-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(160, 32, 240, 0.38);
  background: #14111c;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.media-tile::before,
.media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.media-tile::before {
  background: linear-gradient(135deg, rgba(160, 32, 240, 0.22), transparent 38%, rgba(0, 245, 212, 0.13));
  mix-blend-mode: screen;
}

.media-tile::after {
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  opacity: 0.55;
}

.media-tile.large {
  min-height: 542px;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.media-tile:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.media-caption {
  z-index: 2;
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 245, 212, 0.42);
  border-radius: var(--radius);
  background: rgba(6, 5, 10, 0.82);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 18px;
}

.route-list,
.plain-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.route-list li,
.plain-list li {
  position: relative;
  padding: 14px 16px 14px 38px;
  border: 1px solid rgba(160, 32, 240, 0.3);
  border-radius: var(--radius);
  background: rgba(26, 11, 46, 0.48);
  color: var(--muted);
}

.route-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.62);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
}

.timeline-date {
  color: var(--warning);
  font-weight: 900;
}

.timeline-item p {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(160, 32, 240, 0.32);
  border-radius: var(--radius);
  background: rgba(26, 11, 46, 0.52);
  overflow: hidden;
}

.faq-item summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 15px 18px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--cyan);
  font-size: 22px;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
}

.relation-section {
  background:
    radial-gradient(circle at 22% 28%, rgba(160, 32, 240, 0.18), transparent 30%),
    radial-gradient(circle at 76% 50%, rgba(0, 245, 212, 0.1), transparent 26%),
    #06050a;
}

.relation-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.relation-map {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(0, 245, 212, 0.34);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(85, 230, 193, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 32, 240, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(160, 32, 240, 0.24), transparent 32%),
    rgba(6, 5, 10, 0.92);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: inset 0 0 48px rgba(160, 32, 240, 0.18), 0 22px 52px rgba(0, 0, 0, 0.32);
}

.relation-map::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(224, 254, 0, 0.24);
  border-radius: var(--radius);
}

.relation-node {
  position: absolute;
  z-index: 2;
  width: 112px;
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid rgba(160, 32, 240, 0.5);
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(26, 11, 46, 0.9), rgba(18, 13, 26, 0.92)),
    #120d1a;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(160, 32, 240, 0.18);
}

.relation-node span {
  font-weight: 900;
}

.relation-node small {
  color: var(--mint);
  font-weight: 800;
}

.relation-node.is-active {
  color: #07020d;
  border-color: rgba(224, 254, 0, 0.85);
  background: linear-gradient(135deg, var(--warning), var(--cyan));
  box-shadow: 0 0 34px rgba(0, 245, 212, 0.38), 0 0 52px rgba(224, 254, 0, 0.18);
}

.relation-node.is-active small {
  color: #180626;
}

.node-home {
  left: 9%;
  top: 38%;
}

.node-city {
  right: 10%;
  top: 14%;
}

.node-item {
  right: 12%;
  bottom: 14%;
}

.node-route {
  left: 40%;
  bottom: 36%;
}

.signal-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.12), rgba(160, 32, 240, 0.86), rgba(208, 0, 111, 0.78));
  box-shadow: 0 0 18px rgba(160, 32, 240, 0.4);
}

.line-a {
  left: 28%;
  top: 45%;
  width: 44%;
  transform: rotate(-25deg);
}

.line-b {
  left: 27%;
  top: 54%;
  width: 48%;
  transform: rotate(18deg);
}

.line-c {
  left: 50%;
  top: 59%;
  width: 26%;
  transform: rotate(-53deg);
}

.chat-stack {
  display: grid;
  gap: 14px;
  align-content: center;
}

.chat-card {
  position: relative;
  padding: 22px 22px 22px 28px;
  border: 1px solid rgba(160, 32, 240, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(26, 11, 46, 0.78), rgba(18, 13, 26, 0.94)),
    #120d1a;
  opacity: 0.52;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.chat-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18px;
  width: 4px;
  height: calc(100% - 36px);
  background: var(--magenta);
  box-shadow: 0 0 18px rgba(208, 0, 111, 0.5);
}

.chat-card.is-active {
  opacity: 1;
  transform: translateX(8px);
  border-color: rgba(0, 245, 212, 0.52);
  box-shadow: 0 0 32px rgba(0, 245, 212, 0.1);
}

.access-section {
  padding-top: 70px;
  background: #06050a;
}

.access-gate {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(224, 254, 0, 0.48);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(6, 5, 10, 0.94), rgba(26, 11, 46, 0.88)),
    #06050a;
  box-shadow:
    0 0 44px rgba(160, 32, 240, 0.28),
    0 0 64px rgba(0, 245, 212, 0.12),
    inset 0 0 48px rgba(208, 0, 111, 0.1);
}

.access-gate::before,
.access-gate::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border-radius: var(--radius);
}

.access-gate::before {
  border: 1px solid rgba(160, 32, 240, 0.48);
}

.access-gate::after {
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(224, 254, 0, 0.4) 9.2% 9.5%, transparent 9.7%),
    linear-gradient(90deg, transparent 90%, rgba(0, 245, 212, 0.34) 90.2% 90.5%, transparent 90.7%);
}

.cipher-strip {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.32);
  border-radius: var(--radius);
  color: var(--warning);
  background: rgba(0, 245, 212, 0.055);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 104px 0 54px;
  background:
    linear-gradient(135deg, rgba(26, 11, 46, 0.96), rgba(6, 5, 10, 0.98)),
    radial-gradient(circle at 78% 16%, rgba(0, 245, 212, 0.16), transparent 26%),
    #120d1a;
  border-bottom: 1px solid rgba(160, 32, 240, 0.3);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.page-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.breadcrumbs {
  color: var(--soft);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--mint);
}

.last-updated {
  color: var(--soft);
  font-size: 14px;
  margin-top: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.side-index {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 13, 26, 0.9), rgba(26, 11, 46, 0.86)),
    rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.side-index strong {
  display: block;
  margin-bottom: 10px;
}

.side-index a {
  display: block;
  color: var(--muted);
  padding: 7px 0;
}

.side-index a:hover {
  color: var(--cyan);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(160, 32, 240, 0.34);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.045);
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffffff;
  background: rgba(160, 32, 240, 0.24);
}

td {
  color: var(--muted);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links a {
  padding: 8px 11px;
  border: 1px solid rgba(160, 32, 240, 0.3);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.friend-links a:hover {
  color: #06100e;
  background: var(--mint);
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid rgba(160, 32, 240, 0.24);
  background:
    linear-gradient(180deg, rgba(18, 13, 26, 0.92), #06050a),
    #06050a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
}

.download-dialog {
  width: min(460px, 100%);
  border: 1px solid rgba(224, 254, 0, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #120d1a, #1a0b2e 58%, rgba(160, 32, 240, 0.34));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 44px rgba(160, 32, 240, 0.26);
  padding: 22px;
}

.download-dialog h2 {
  margin-bottom: 9px;
  font-size: 26px;
}

.download-dialog p {
  margin-bottom: 18px;
}

.download-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(224, 254, 0, 0.5);
  color: #faffbf;
  background: rgba(18, 13, 26, 0.95);
  box-shadow: var(--shadow);
}

.not-found {
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: center;
  padding: 70px 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    display: none;
    width: 100%;
    padding: 16px;
    background: rgba(6, 5, 10, 0.96);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .nav-links {
    display: grid;
    gap: 8px;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-stats,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three,
  .grid.two,
  .summary-band,
  .media-grid,
  .relation-board,
  .page-hero .container,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-tools,
  .footer-links {
    justify-content: flex-start;
  }

  .relation-map {
    min-height: 360px;
  }

  .side-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .container,
  .hero-inner,
  .hero-stats {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: 82svh;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(6, 5, 10, 0.24), rgba(6, 5, 10, 0.94) 62%, rgba(6, 5, 10, 0.98)),
      linear-gradient(90deg, rgba(6, 5, 10, 0.78), rgba(6, 5, 10, 0.34));
  }

  .hero-inner {
    padding-top: 110px;
    padding-bottom: 54px;
  }

  .hero-stats,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    min-height: auto;
  }

  .section {
    padding: 62px 0;
  }

  .media-tile,
  .media-tile.large {
    min-height: 260px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .relation-map {
    min-height: 330px;
  }

  .relation-node {
    width: 92px;
    min-height: 68px;
    font-size: 14px;
  }

  .node-home {
    left: 7%;
  }

  .node-city {
    right: 7%;
  }

  .node-item {
    right: 8%;
  }

  .node-route {
    left: 36%;
  }

  .chat-card.is-active {
    transform: translateX(0);
  }

  .hero::after {
    right: 12px;
    bottom: 12px;
    max-width: 184px;
    font-size: 10px;
  }

  .entity-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .button-row,
  .hero-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Whitehat protocol additions. Existing site styles remain unchanged. */
.my-news-home, .my-news-page { --my-news-surface: var(--panel-strong, rgba(255, 255, 255, 0.105)); --my-news-text: var(--text, #f7f2ff); --my-news-muted: var(--muted, #c4bdd1); --my-news-accent: var(--mint, #55e6c1); --my-news-line: var(--line, rgba(255, 255, 255, 0.16)); }
.my-news-home { width: 100%; padding: 26px 16px 42px; color: var(--my-news-text); }
.my-news-home .my-news-shell, .my-news-page .my-news-shell { width: min(var(--container, var(--max, 1180px)), calc(100% - 0px)); margin: 0 auto; }
.my-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--my-news-line); }
.my-news-kicker { margin: 0 0 3px; color: var(--my-news-accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.my-news-heading h2, .my-news-page h1, .my-news-page h2, .my-news-card h2, .my-news-card h3 { color: var(--my-news-text); }
.my-news-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; }
.my-news-all-link, .my-news-card a, .my-news-back { display: inline-flex; align-items: center; width: fit-content; color: var(--my-news-text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--my-news-accent); }
.my-news-all-link:hover, .my-news-card a:hover, .my-news-back:hover { color: var(--my-news-accent); }
.my-news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.my-news-card { display: flex; flex-direction: column; min-width: 0; min-height: 196px; padding: 20px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-card h2, .my-news-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.my-news-card time { display: block; margin: 10px 0 0; color: var(--my-news-muted); font-size: .86rem; }
.my-news-card p { margin: 10px 0 16px; color: var(--my-news-muted); }
.my-news-card a { margin-top: auto; }
.my-news-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--my-news-muted); background: var(--my-news-surface); border: 1px dashed var(--my-news-line); border-radius: var(--radius, 8px); }
.my-news-page { min-height: 100vh; padding: 44px 16px 64px; color: var(--my-news-text); }
.my-news-page .my-news-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; color: var(--my-news-muted); }
.my-news-page .my-news-brand { margin: 0; color: var(--my-news-muted); font-size: .93rem; }
.my-news-page .my-news-intro { max-width: 760px; margin: 0 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-detail { max-width: 820px; padding: clamp(22px, 5vw, 44px); color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-page .my-news-detail h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.22; }
.my-news-page .my-news-detail time { display: block; margin: 16px 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-summary { margin: 0 0 20px; color: var(--my-news-muted); font-size: 1.05rem; }
.my-news-page .my-news-content { margin: 0; color: var(--my-news-text); white-space: pre-wrap; }
.my-news-page .my-news-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.my-friend-link { color: inherit; }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.64); }
.download-confirm-panel { width: min(460px, 100%); padding: 24px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 24px 70px rgba(0,0,0,.35)); }
.download-confirm-panel h2 { margin: 0 0 10px; color: var(--my-news-text); font-size: 1.3rem; }
.download-confirm-panel p { margin: 0; color: var(--my-news-muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-confirm-actions button { min-height: 40px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--my-news-text); background: transparent; border: 1px solid var(--my-news-line); border-radius: 6px; cursor: pointer; }
.download-confirm-actions .download-confirm-primary { color: #1b140c; background: var(--my-news-accent); border-color: var(--my-news-accent); }
@media (max-width: 640px) { .my-news-home { padding-inline: 12px; } .my-news-heading, .my-news-page .my-news-topbar { align-items: flex-start; flex-direction: column; } .my-news-page { padding: 26px 12px 44px; } .my-news-card { min-height: 0; } }
/* Keep the confirmation opaque and readable on both light and dark themes. */
.download-confirm-backdrop { opacity: 1 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.download-confirm-panel { background: #fff !important; background-color: #fff !important; background-image: none !important; color: #202124 !important; opacity: 1 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.download-confirm-panel h2 { color: #111827 !important; }
.download-confirm-panel p { color: #4b5563 !important; }
.download-confirm-actions button:not(.download-confirm-primary) { color: #374151 !important; background: #fff !important; border-color: #d1d5db !important; opacity: 1 !important; }
