/* =========================================================
   九博体育 · Deep Space Console — Shared System Styles
   /assets/site.css
   ========================================================= */

:root {
  --header-h: 76px;
  --content-max: 1280px;
  --bg-deep: #0b1d3a;
  --bg-card: #1a3a6e;
  --bg-grad: #2a5a9a;
  --bg-footer: #101828;
  --accent: #ff6a00;
  --purple: #a64df4;
  --text: #f5f7fb;
  --text-dim: rgba(245, 247, 251, 0.74);
  --text-faint: rgba(245, 247, 251, 0.46);
  --border: rgba(255, 255, 255, 0.12);
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Roboto Condensed', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius: 3px;
  --shadow-card: 0 14px 44px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- Reset & Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

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

body {
  padding-top: var(--header-h);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

strong {
  color: #fff;
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-grad);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Focus & Skip Link ---------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 3px 3px;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.site-header[data-header-scrolled] {
  background: rgba(11, 29, 58, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.header-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.18), rgba(166, 77, 244, 0.1));
  pointer-events: none;
}

.header-beam-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand:hover .brand-name {
  color: var(--accent);
}

.brand-slogan {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---------- Primary Navigation ---------- */

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 14px;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
}

.nav-idx {
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.22s ease;
}

.nav-link:hover .nav-idx {
  color: var(--accent);
}

.nav-label {
  white-space: nowrap;
}

.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-link::before {
  top: 3px;
  left: 3px;
  border-width: 2px 0 0 2px;
  transform: translate(-3px, -3px);
}

.nav-link::after {
  right: 3px;
  bottom: 3px;
  border-width: 0 2px 2px 0;
  transform: translate(3px, 3px);
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link[aria-current="page"]::before,
.nav-link[aria-current="page"]::after,
.nav-link:focus-visible::before,
.nav-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"] .nav-idx {
  color: var(--accent);
}

/* ---------- Header Chip & Toggle ---------- */

.chip-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.5);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.chip-link::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  opacity: 0.6;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.chip-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
}

.chip-link:hover::after {
  opacity: 1;
  width: 16px;
  height: 16px;
}

.chip-label {
  line-height: 1;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.5);
  animation: chip-pulse 2.4s ease-out infinite;
}

.chip-link:hover .chip-dot {
  background: #fff;
  box-shadow: none;
  animation: none;
}

@keyframes chip-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 106, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle:active {
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Navigation ---------- */

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 110;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    margin-left: 0;
    padding: 18px 24px 30px;
    background: #081530;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-14px);
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border);
  }

  .nav-item:first-child {
    border-top: 1px solid var(--border);
  }

  .nav-link {
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 8px;
    color: var(--text);
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .header-shell {
    gap: 14px;
    padding-inline: 20px;
  }
}

@media (max-width: 700px) {
  .brand-slogan {
    display: none;
  }
}

@media (max-width: 460px) {
  .chip-label {
    display: none;
  }

  .chip-link {
    padding: 10px 11px;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 18px;
  }

  .header-shell {
    padding-inline: 16px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
}

.footer-ticks {
  height: 10px;
  background-color: rgba(166, 77, 244, 0.05);
  background-image:
    repeating-linear-gradient(90deg, rgba(245, 247, 251, 0.22) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 106, 0, 0.75) 0 1px, transparent 1px 56px);
  border-bottom: 1px solid var(--border);
}

.footer-shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 64px 28px 28px;
}

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

.footer-brand-block {
  max-width: 440px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.footer-logo-text {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-logo:hover .footer-logo-text {
  color: var(--accent);
}

.footer-desc {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 15px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 13px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
}

.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px rgba(166, 77, 244, 0.7);
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(245, 247, 251, 0.3);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-heading::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: var(--text);
  transform: translateX(6px);
}

.footer-link:hover::before {
  width: 16px;
}

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

.copy-chip {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.copy-chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--border);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.copy-chip:hover {
  color: var(--text);
}

.copy-chip:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.copy-label {
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.copy-value {
  word-break: break-all;
}

.copy-chip.is-copied {
  color: var(--accent);
}

.copy-chip.is-copied .copy-value::after {
  content: "（已复制）";
  margin-left: 8px;
  color: var(--accent);
  font-size: 12px;
}

.copy-chip.is-error {
  color: var(--accent);
}

.copy-chip.is-error .copy-value::after {
  content: "（复制失败）";
  margin-left: 8px;
  color: var(--accent);
  font-size: 12px;
}

.contact-note {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

.footer-copy,
.footer-icp {
  margin: 0;
}

.footer-icp {
  letter-spacing: 0.06em;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.to-top:hover {
  background: #ff851a;
  transform: translateY(-3px);
}

.to-top:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--text);
}

.to-top[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand-block {
    max-width: 100%;
  }

  .footer-shell {
    padding: 48px 20px 24px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Containers & Sections ---------- */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 28px;
}

.container-narrow {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(44px, 6vw, 84px);
  background:
    linear-gradient(180deg, rgba(166, 77, 244, 0.1), transparent 55%),
    radial-gradient(1200px 300px at 85% 0%, rgba(255, 106, 0, 0.12), transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(56px, 8vw, 100px);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.section-desc {
  max-width: 620px;
  color: var(--text-dim);
}

.rule-line {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--border), rgba(255, 106, 0, 0.3), var(--border));
}

.text-dim {
  color: var(--text-dim);
}

/* ---------- Grid & Cards ---------- */

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

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

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

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

@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  padding: 30px;
  background: linear-gradient(160deg, var(--bg-card), rgba(26, 58, 110, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.42);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 106, 0, 0.12);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card-text {
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 15px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Buttons & Badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.25);
}

.btn-primary:hover {
  background: #ff851c;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.4);
}

.btn-ghost {
  background: rgba(166, 77, 244, 0.08);
  border-color: rgba(166, 77, 244, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(166, 77, 244, 0.18);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}

.btn-line:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-orange {
  background: rgba(255, 106, 0, 0.08);
  border-color: rgba(255, 106, 0, 0.4);
  color: var(--accent);
}

.badge-purple {
  background: rgba(166, 77, 244, 0.08);
  border-color: rgba(166, 77, 244, 0.4);
  color: var(--purple);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  color: var(--text-dim);
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--text-dim);
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-faint);
}

.breadcrumb-current {
  color: var(--text);
}

/* ---------- Media Frames ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-deep));
  border: 1px solid var(--border);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-frame:hover img {
  transform: scale(1.04);
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 8px, transparent 8px 16px);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.16em;
}

[data-media] {
  aspect-ratio: 4 / 3;
}

[data-media="wide"] {
  aspect-ratio: 16 / 9;
}

[data-media="tall"] {
  aspect-ratio: 3 / 4;
}

[data-media="screen"] {
  aspect-ratio: 21 / 9;
}

/* ---------- Dashboard Numbers ---------- */

.stat-number {
  color: var(--text);
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .chip-dot {
    animation: none;
  }
}
