/* Relay · 中转站 — Native New API console gold theme */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Outfit:wght@300;400;500;600;700&display=swap");

html.relay-console {
  --relay-bg: #faf8f4;
  --relay-gold: #b8923a;
  --relay-gold-soft: #d4af37;
  --relay-gold-deep: #8a6a1f;
  --relay-text: #1a1a24;
  --relay-muted: rgba(26, 26, 36, 0.62);
  --relay-border: rgba(26, 26, 36, 0.08);
  --relay-shadow: 0 16px 48px rgba(26, 26, 36, 0.06);
}

html.relay-console,
html.relay-console body,
html.relay-console #root {
  font-family: "Outfit", system-ui, sans-serif !important;
}

html.relay-console.light body,
html.relay-console:not(.dark) body {
  background: var(--relay-bg) !important;
  color: var(--relay-text);
}

/* ── Sidebar ── */
html.relay-console [data-slot="sidebar"],
html.relay-console [data-sidebar="sidebar"] {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--relay-border) !important;
}

html.relay-console [data-sidebar="group-label"] {
  color: rgba(26, 26, 36, 0.42) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

html.relay-console [data-sidebar="menu-button"] {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

html.relay-console [data-sidebar="menu-button"]:hover {
  background: rgba(212, 175, 55, 0.08) !important;
  color: var(--relay-text) !important;
}

html.relay-console [data-sidebar="menu-button"][data-active="true"] {
  background: rgba(212, 175, 55, 0.14) !important;
  color: var(--relay-gold-deep) !important;
  box-shadow: inset 0 0 0 1px rgba(184, 146, 58, 0.22) !important;
}

html.relay-console [data-sidebar="menu-button"][data-active="true"] svg {
  color: var(--relay-gold) !important;
}

/* ── Header / top nav ── */
html.relay-console header[data-slot="header"] {
  background: rgba(250, 248, 244, 0.85) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--relay-border) !important;
}

/* ── Page titles ── */
html.relay-console h1,
html.relay-console [data-slot="card-title"] {
  letter-spacing: -0.02em !important;
}

html.relay-console h1 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
}

/* ── Cards (overview panels) ── */
html.relay-console [data-slot="card"] {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--relay-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--relay-shadow) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html.relay-console [data-slot="card"]:hover {
  border-color: rgba(184, 146, 58, 0.18) !important;
}

/* KPI numbers on overview */
html.relay-console .text-3xl,
html.relay-console .text-2xl {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em !important;
}

/* ── Primary buttons (Wallet, etc.) ── */
html.relay-console button[data-slot="button"].bg-primary,
html.relay-console a[data-slot="button"].bg-primary {
  background: linear-gradient(135deg, var(--relay-gold-soft) 0%, var(--relay-gold) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 32px rgba(184, 146, 58, 0.22) !important;
  font-weight: 600 !important;
}

html.relay-console button[data-slot="button"].bg-primary:hover,
html.relay-console a[data-slot="button"].bg-primary:hover {
  box-shadow: 0 14px 36px rgba(184, 146, 58, 0.3) !important;
}

html.relay-console button[data-slot="button"] {
  border-radius: 999px !important;
}

/* ── Success / status green kept, links gold ── */
html.relay-console a:not([data-slot="button"]) {
  color: var(--relay-gold-deep);
}

html.relay-console [data-slot="tabs-trigger"][data-state="active"] {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--relay-gold-deep) !important;
}

/* ── Tables ── */
html.relay-console thead th {
  background: #f7f5f0 !important;
  color: rgba(26, 26, 36, 0.52) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html.relay-console tbody tr:hover {
  background: rgba(212, 175, 55, 0.04) !important;
}

/* ── Charts ── */
html.relay-console .recharts-cartesian-grid-horizontal line,
html.relay-console .recharts-cartesian-grid-vertical line {
  stroke: rgba(26, 26, 36, 0.06) !important;
}

html.relay-console .recharts-line-curve,
html.relay-console .recharts-area-area {
  stroke: var(--relay-gold) !important;
  fill: rgba(212, 175, 55, 0.12) !important;
}

/* ── Inputs ── */
html.relay-console input[data-slot="input"],
html.relay-console [data-slot="select-trigger"],
html.relay-console textarea[data-slot="textarea"] {
  border-radius: 12px !important;
  background: #fff !important;
}

html.relay-console input[data-slot="input"]:focus,
html.relay-console [data-slot="select-trigger"]:focus {
  border-color: rgba(184, 146, 58, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12) !important;
}

/* ── Badges ── */
html.relay-console [data-slot="badge"].bg-primary,
html.relay-console .bg-primary\/10 {
  background: rgba(212, 175, 55, 0.14) !important;
  color: var(--relay-gold-deep) !important;
}

/* ── Main area background ── */
html.relay-console main,
html.relay-console [data-slot="sidebar-inset"] {
  background: transparent !important;
}

html.relay-console [data-slot="sidebar-inset"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(212, 175, 55, 0.12), transparent 58%),
    radial-gradient(700px 360px at 92% 0%, rgba(184, 146, 58, 0.08), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, var(--relay-bg) 100%);
}
