@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: fallback;
  src: url("/assets/fonts/manrope-latin-variable.woff2?v=20260415a") format("woff2");
}

@font-face {
  font-family: "Albionet Sans Fallback";
  src:
    local("Segoe UI"),
    local("Arial"),
    local("Helvetica Neue"),
    local("Helvetica"),
    local("Noto Sans"),
    local("Liberation Sans");
  ascent-override: 97%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 102%;
}
:root {
  --bg: #131314;
  --bg-deep: #0e0e0f;
  --surface: #1c1b1c;
  --surface-high: #201f20;
  --surface-overlay: rgba(28, 27, 28, 0.72);
  --surface-hover: #2a2a2b;
  --surface-active: #353436;
  --text: #e5e2e3;
  --text-muted: #d0c5af;
  --text-dim: rgba(208, 197, 175, 0.6);
  --gold: #f2ca50;
  --gold-deep: #d4af37;
  --gold-ink: #3c2f00;
  --green: #4edea3;
  --green-deep: #00a572;
  --outline: rgba(77, 70, 53, 0.2);
  --outline-strong: rgba(77, 70, 53, 0.42);
  --shadow-soft: 0 32px 80px rgba(0, 0, 0, 0.42);
  --blur: 12px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --max-shell: 1420px;
  --max-content: 1388px;
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Albionet Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(58, 57, 58, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(242, 202, 80, 0.06), transparent 24%),
    linear-gradient(180deg, #171718 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

body::selection {
  background: rgba(212, 175, 55, 0.28);
  color: var(--text);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

:where(
  .landing-kpi__value,
  .landing-trade-price strong,
  .landing-trade-profit strong,
  .search-status-panel__value,
  .item-detail-metric strong,
  .ledger-cell-main,
  .ledger-cell-sub,
  .calculator-summary__row strong,
  .calculator-profit-card__row strong,
  .trades-ledger__meta,
  .trades-ledger__page,
  .trades-kpi__value,
  .trade-market__price,
  .trade-profit__percent,
  .trade-profit__margin,
  .trade-age,
  .admin-metric-card strong,
  .admin-table td strong,
  .admin-request-mini strong
) {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

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

img.item-icon--fallback {
  object-fit: contain !important;
  box-sizing: border-box;
  padding: 0.08rem;
  filter: saturate(0.92) brightness(0.95);
}

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.site-backdrop__image {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.54;
  filter: saturate(0.92) brightness(0.68);
  transform: scale(1.015);
}

.site-backdrop__shade,
.site-backdrop__glow {
  position: absolute;
  inset: 0;
}

.site-backdrop__shade {
  background:
    linear-gradient(180deg, rgba(19, 19, 20, 0.34) 0%, rgba(19, 19, 20, 0.16) 18%, rgba(19, 19, 20, 0.58) 56%, rgba(14, 14, 15, 0.92) 100%),
    linear-gradient(90deg, rgba(19, 19, 20, 0.48) 0%, rgba(19, 19, 20, 0.12) 7%, rgba(19, 19, 20, 0.12) 93%, rgba(19, 19, 20, 0.48) 100%);
}

.site-backdrop__glow {
  background:
    radial-gradient(circle at 22% 31%, rgba(242, 202, 80, 0.15), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(242, 202, 80, 0.12), transparent 18%);
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(var(--blur));
  background: rgba(19, 19, 20, 0.82);
  border-bottom: 0.5px solid var(--outline);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.site-header__inner,
.site-footer__inner {
  width: min(calc(100% - 2.5rem), var(--max-shell));
  margin: 0 auto;
}

.site-header__inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.topbar__brand-logo {
  height: 3.34rem;
  width: auto;
  flex: 0 0 auto;
  display: block;
}

.topnav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  justify-self: center;
}

.topnav > a {
  position: relative;
  color: rgba(229, 226, 227, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}

.topnav > a:hover,
.topnav > a.is-active {
  color: var(--gold);
}

.topnav > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

.topbar__right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 0.5px solid rgba(77, 70, 53, 0.28);
  background: rgba(28, 27, 28, 0.88);
  color: rgba(208, 197, 175, 0.76);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.region-pill::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(78, 222, 163, 0.75);
}

.page-stack {
  width: min(calc(100% - 2.5rem), var(--max-content));
  margin: 0 auto;
  padding: 0 0 5rem;
}

.page {
  min-height: calc(100vh - var(--header-height));
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 0.5px solid var(--outline);
  background: rgba(14, 14, 15, 0.82);
  backdrop-filter: blur(var(--blur));
}

.site-footer__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.5rem;
}

.site-footer__links,
.site-footer__meta {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__disclaimer {
  justify-self: start;
  max-width: 22rem;
  color: rgba(208, 197, 175, 0.48);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-footer__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: rgba(208, 197, 175, 0.48);
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__meta {
  justify-self: end;
  color: rgba(208, 197, 175, 0.34);
}

.page-placeholder {
  width: min(100%, 72rem);
  margin: 8.5rem auto 0;
  padding: 2.5rem;
}

.page-placeholder__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-placeholder h1 {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-placeholder p {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
  }

  .topbar__brand,
  .topbar__right {
    justify-self: center;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
  }

  .topnav > a.is-active::after {
    bottom: -0.4rem;
  }

  .page-stack {
    width: min(calc(100% - 1.5rem), var(--max-content));
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__disclaimer,
  .site-footer__links,
  .site-footer__meta {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: auto;
  }

  .topbar__brand-logo {
    height: 2.86rem;
  }

  .topbar__right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

