/* ============================================
   469 Diamond Platform — Premium Styles
   Luxury Tech / Rare Asset / Investor-Ready
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-deepest: #030508;
  --bg: #05070b;
  --bg2: #0b0f16;
  --bg3: #111822;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.07);
  --panel-glass: rgba(255,255,255,0.03);
  --line: rgba(255,255,255,0.08);
  --line-bright: rgba(255,255,255,0.14);
  --text: #f4f6fb;
  --text-dim: #c8d0df;
  --muted: #8a95a8;
  --muted-dim: #6b7587;
  --gold: #d8bb74;
  --gold-bright: #f0d9a0;
  --gold-soft: rgba(216,187,116,.18);
  --gold-glow: rgba(216,187,116,.08);
  --accent: #8fd0ff;
  --accent-soft: rgba(143,208,255,.12);
  --success: #72d39b;
  --success-soft: rgba(114,211,155,.12);
  --warning: #f4c56f;
  --warning-soft: rgba(244,197,111,.12);
  --danger: #ff8d8d;
  --danger-soft: rgba(255,141,141,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.4);
  --shadow-sm: 0 8px 32px rgba(0,0,0,.25);
  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1280px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(143,208,255,.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 5%, rgba(216,187,116,.05), transparent 50%),
    linear-gradient(180deg, var(--bg-deepest), var(--bg) 30%, #06070b 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-soft); }
  50%      { box-shadow: 0 0 32px 8px var(--gold-soft); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.animate-fade-up {
  opacity: 0;
  animation: fadeUp .8s ease forwards;
}
.animate-fade-up:nth-child(2) { animation-delay: .12s; }
.animate-fade-up:nth-child(3) { animation-delay: .24s; }
.animate-fade-up:nth-child(4) { animation-delay: .36s; }
.animate-fade-up:nth-child(5) { animation-delay: .48s; }
.animate-fade-up:nth-child(6) { animation-delay: .6s; }

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

/* ============================================
   TOPBAR / HEADER
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  background: rgba(4,7,12,.82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity var(--transition);
}
.brand:hover { opacity: .88; }
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 10px 36px rgba(0,0,0,.5);
}
.brand h1 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  letter-spacing: .06em;
  font-size: 11px;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switch */
.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: all var(--transition);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-bright);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}
.btn:active { transform: translateY(0); }

.btn.gold {
  background: linear-gradient(135deg, rgba(216,187,116,.22), rgba(216,187,116,.08));
  border-color: rgba(216,187,116,.32);
  color: #fff6de;
  box-shadow: 0 6px 24px rgba(216,187,116,.12);
}
.btn.gold:hover {
  border-color: rgba(216,187,116,.5);
  box-shadow: 0 12px 40px rgba(216,187,116,.2);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.btn.ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--line-bright);
}
.btn.sm {
  padding: 8px 16px;
  font-size: 12px;
}
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 64px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.hero h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 16px 0 12px;
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 720px;
}

/* Eyebrow Badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--gold-glow);
  border: 1px solid rgba(216,187,116,.2);
  border-radius: 999px;
  color: var(--gold-bright);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Stat Row */
.stat-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.stat {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.stat:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 600px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    radial-gradient(circle at 28% 18%, rgba(216,187,116,.14), transparent 28%),
    radial-gradient(circle at 72% 20%, rgba(143,208,255,.10), transparent 32%),
    radial-gradient(circle at 50% 70%, rgba(216,187,116,.06), transparent 40%),
    var(--bg2);
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  overflow: hidden;
}
.hero-visual img.logo-main {
  position: absolute;
  inset: 8% 8% auto auto;
  width: min(85%, 460px);
  opacity: .92;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.6));
  animation: float 6s ease-in-out infinite;
}

/* Orbit Cards */
.orbit-card {
  position: absolute;
  border-radius: var(--radius-md);
  background: rgba(6,10,16,.78);
  border: 1px solid rgba(255,255,255,.1);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
}
.orbit-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-3px);
}
.orbit-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: .03em;
}
.orbit-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.orbit-1 { left: 24px; top: 20px; width: 230px; animation: fadeUp .8s ease .3s both; }
.orbit-2 { left: 28px; bottom: 24px; width: 260px; animation: fadeUp .8s ease .5s both; }
.orbit-3 { right: 24px; bottom: 26px; width: 230px; animation: fadeUp .8s ease .7s both; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 64px 0 32px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h3 {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.005em;
}
.section-head p {
  margin: 0;
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.68;
  font-size: clamp(15px, 1.4vw, 17px);
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--line-bright);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}
.card p, .card li {
  color: var(--text-dim);
  line-height: 1.68;
  font-size: 14.5px;
}
.card ul { padding-left: 18px; margin: 10px 0 0; }

/* ============================================
   COMPARE SECTION
   ============================================ */
.compare-wrap {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
}
.compare-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition: all var(--transition);
}
.compare-card:hover {
  border-color: var(--line-bright);
}
.compare-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.compare-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.compare-head strong {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff6de, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.progress {
  margin-top: 20px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.progress .p57 {
  width: 45%;
  background: linear-gradient(90deg, #4a5568, #718096);
}
.progress .p469 {
  width: 65%;
  background: linear-gradient(90deg, #c5a259, #f0d9a0);
  box-shadow: 0 0 16px rgba(216,187,116,.3);
}
.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.55;
}
.muted { color: var(--muted); }
.muted-dim { color: var(--muted-dim); }

/* Metric Stack */
.metric-stack {
  display: grid;
  gap: 14px;
}
.metric-box {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: all var(--transition);
}
.metric-box:hover {
  border-color: var(--line-bright);
  background: rgba(255,255,255,.05);
}
.metric-box strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-box span {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================
   CUTS / CATALOGUE
   ============================================ */
.cut-controls, .market-controls, .stone-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

/* Inputs */
.input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: all var(--transition);
  outline: none;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: rgba(255,255,255,.05);
}
.input::placeholder { color: var(--muted-dim); }
.input.inline, select.inline {
  width: auto;
  min-width: 200px;
}

/* Cuts Grid */
.cuts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.cut-card {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  transition: all var(--transition);
}
.cut-card:hover {
  border-color: rgba(216,187,116,.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3), 0 0 24px var(--gold-glow);
}
.cut-card::before {
  content: '';
  position: absolute;
  inset: auto -50px -70px auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(216,187,116,.18), transparent 66%);
  filter: blur(10px);
  transition: opacity var(--transition);
  opacity: .5;
}
.cut-card:hover::before { opacity: .8; }
.cut-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(216,187,116,.14);
  border: 1px solid rgba(216,187,116,.2);
  letter-spacing: .04em;
}
.cut-shape {
  width: 90px;
  height: 90px;
  margin: 20px auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.15), rgba(255,255,255,.01));
  position: relative;
  transform: rotate(45deg);
  transition: all var(--transition);
}
.cut-card:hover .cut-shape {
  transform: rotate(45deg) scale(1.05);
  border-color: rgba(216,187,116,.3);
}
.cut-shape::before, .cut-shape::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
}
.cut-shape::before { inset: 16px; }
.cut-shape::after { inset: 32px; border-radius: 10px; }
.cut-card h5 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.cut-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ============================================
   TOKENOMICS
   ============================================ */
.token-wrap {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.05fr .95fr;
}
.token-chart {
  display: grid;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 14px;
  align-items: center;
}
.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c5a259, #f0d9a0);
  border-radius: inherit;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.bar-row strong {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* Flow Steps */
.flow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.flow-step {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 22px;
  transition: all var(--transition);
}
.flow-step:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.flow-step strong {
  display: block;
  font-size: 12px;
  color: var(--gold-bright);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.flow-step p {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   STONE CARDS
   ============================================ */
.stones-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.stone-card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.stone-card:hover {
  border-color: rgba(216,187,116,.22);
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(0,0,0,.3), 0 0 20px var(--gold-glow);
}
.stone-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.stone-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.tier {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #dff3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.status {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.status.available {
  background: var(--success-soft);
  color: #d9ffeb;
}
.status.reserved {
  background: var(--warning-soft);
  color: #fff0c3;
}
.status.limited {
  background: var(--danger-soft);
  color: #ffe0e0;
}
.stone-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  margin: 0 0 20px;
}
.stone-card dt {
  color: var(--muted);
  font-size: 13px;
}
.stone-card dd {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}
.stone-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================
   DOCUMENTS
   ============================================ */
.docs-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.doc-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.doc-card .tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ============================================
   PORTAL / DASHBOARD LAYOUT
   ============================================ */
.portal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  min-height: calc(100vh - 200px);
}
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar .brand {
  margin-bottom: 12px;
}
.side-menu {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}
.side-menu button {
  text-align: left;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
}
.side-menu button:hover {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border-color: var(--line);
}
.side-menu button.active {
  color: var(--text);
  border-color: rgba(216,187,116,.25);
  background: var(--gold-glow);
}

/* Portal Main */
.portal-main {
  display: grid;
  gap: 24px;
}
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.hidden { display: none !important; }

/* ============================================
   FORMS
   ============================================ */
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
.auth-wrap {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrap {
  overflow: auto;
  border-radius: var(--radius-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13.5px;
}
.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td {
  background: rgba(255,255,255,.02);
}

/* ============================================
   MARKETPLACE
   ============================================ */
.market-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.market-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition);
}
.market-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

/* ============================================
   KPI CARDS
   ============================================ */
.kpi-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.kpi {
  border-radius: var(--radius-md);
  padding: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  transition: all var(--transition);
}
.kpi:hover {
  border-color: var(--line-bright);
}
.kpi strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kpi span {
  color: var(--muted);
  font-size: 13px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
.faq-item details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(255,255,255,.02);
  transition: all var(--transition);
}
.faq-item details[open] {
  border-color: var(--line-bright);
  background: rgba(255,255,255,.04);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: color var(--transition);
}
.faq-item summary:hover { color: var(--gold); }
.faq-item p {
  color: var(--text-dim);
  line-height: 1.68;
  margin: 14px 0 0;
  font-size: 14px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  margin: 24px 0 40px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(216,187,116,.2);
  background:
    linear-gradient(135deg, rgba(216,187,116,.14), rgba(143,208,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 0 60px rgba(216,187,116,.06);
}
.cta-banner .inner {
  padding: 42px 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}
.cta-banner h3 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0 52px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.small { font-size: 13px; }
.success { color: var(--success); }
.warning { color: var(--warning); }
.danger  { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 36px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 22px; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deepest); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

/* ============================================
   BURGER MENU
   ============================================ */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .cuts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .hero-grid,
  .compare-wrap,
  .token-wrap,
  .cta-banner .inner,
  .portal-layout { grid-template-columns: 1fr; }

  .grid-4,
  .cuts-grid,
  .docs-grid,
  .stones-grid,
  .market-grid,
  .kpi-grid,
  .flow-grid,
  .grid-3,
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-layout { gap: 18px; }
  .sidebar { position: static; }
  .hero-visual { min-height: 480px; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(4,7,12,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    gap: 0;
    border-bottom: 1px solid var(--line);
    z-index: 150;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    display: block;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav { position: relative; }
}

@media (max-width: 760px) {
  .topbar { position: relative; }
  .nav { padding: 10px 0; min-height: 64px; flex-wrap: wrap; }
  .brand img { width: 38px; height: 38px; }
  .brand h1 { font-size: 12px; letter-spacing: .14em; }
  .brand small { font-size: 10px; }
  .nav-actions { width: 100%; justify-content: flex-end; gap: 8px; margin-top: 4px; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }

  .hero { padding-top: 48px; padding-bottom: 32px; }
  .section { padding: 32px 0 16px; }

  .grid-2,
  .grid-3,
  .grid-4,
  .cuts-grid,
  .docs-grid,
  .stones-grid,
  .market-grid,
  .kpi-grid,
  .flow-grid,
  .faq-grid,
  .stat-row,
  .auth-wrap,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-visual { min-height: 360px; border-radius: 24px; }
  .orbit-1, .orbit-2, .orbit-3 {
    position: static;
    width: auto;
    margin: 10px;
    padding: 14px 16px;
  }
  .hero-visual img.logo-main {
    inset: 16px 16px auto auto;
    width: min(60%, 200px);
  }

  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-row > span:first-child { font-size: 13px; }
  .cta-banner .inner { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }

  .hero h2 { font-size: clamp(18px, 5.5vw, 26px); line-height: 1.2; margin: 12px 0 8px; }
  .hero p.lead { font-size: 14px; line-height: 1.55; margin-bottom: 4px; }
  .section-head h3 { font-size: clamp(17px, 5vw, 24px); }
  .section-head p { font-size: 13.5px; max-width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }

  .stat { padding: 12px 14px; }
  .stat strong { font-size: 20px; margin-bottom: 3px; }
  .stat span { font-size: 12px; }
  .stat-row { gap: 10px; }

  .metric-box { padding: 16px; }
  .metric-box strong { font-size: 20px; }
  .metric-box span { font-size: 13px; }

  .kpi { padding: 16px; }
  .kpi strong { font-size: 22px; }
  .kpi span { font-size: 12px; }

  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .cut-controls, .market-controls, .stone-controls { flex-direction: column; gap: 10px; }
  .cut-controls .input,
  .market-controls .input,
  .stone-controls select {
    width: 100%;
    min-width: auto;
  }
  .cut-controls .inline,
  .market-controls .inline,
  .stone-controls .inline { min-width: auto; }

  .compare-wrap { gap: 14px; }
  .compare-card { padding: 20px; }
  .compare-head strong { font-size: 28px; }
  .compare-head h4 { font-size: 16px; }
  .note { font-size: 12px; }

  .card { padding: 20px; border-radius: 20px; }
  .card h4 { font-size: 17px; }
  .card p { font-size: 13.5px; }

  .cut-card { min-height: 200px; padding: 16px; }
  .cut-shape { width: 64px; height: 64px; margin: 14px auto; }
  .cut-card h5 { font-size: 14px; }
  .cut-card p { font-size: 12px; }
  .cut-badge { font-size: 10px; padding: 4px 10px; }

  .stone-card { padding: 18px; }
  .stone-card h4 { font-size: 16px; }
  .stone-card dl { gap: 6px 10px; }
  .stone-card dt { font-size: 12px; }
  .stone-card dd { font-size: 13px; }

  .faq-item details { padding: 16px; }
  .faq-item summary { font-size: 14px; }
  .faq-item p { font-size: 13px; margin-top: 10px; }

  .doc-card { min-height: auto; padding: 18px; }

  .cta-banner { border-radius: 24px; }
  .cta-banner h3 { font-size: 16px; }
  .cta-banner p { font-size: 13px; }

  .flow-step { padding: 16px; }
  .flow-step strong { font-size: 11px; }
  .flow-step p { font-size: 13px; }

  /* PORTAL MOBILE */
  .portal-layout { gap: 14px; }
  .sidebar {
    padding: 14px;
    border-radius: 20px;
  }
  .sidebar .brand { flex-wrap: wrap; }
  .sidebar .brand img { width: 36px; height: 36px; }
  .sidebar .brand h1 { font-size: 12px; }
  .sidebar > div:last-child { display: none; } /* hide demo creds on mobile */

  .side-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }
  .side-menu button {
    padding: 10px 14px;
    font-size: 12px;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    border-radius: 999px;
    white-space: nowrap;
  }

  .panel { padding: 18px; border-radius: 18px; }
  .panel-head { margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
  .panel-head h4 { font-size: 16px; }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: 12.5px; min-width: 500px; }
  .table th, .table td { padding: 10px 8px; }

  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 18px); }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand h1 { font-size: 11px; }
  .brand small { display: none; }

  .btn { padding: 10px 14px; font-size: 12px; }
  .btn.sm { padding: 8px 12px; font-size: 11px; }

  .hero { padding-top: 40px; padding-bottom: 24px; }
  .section { padding: 24px 0 12px; }
  .section-head { margin-bottom: 14px; }
  .section-head h3 { font-size: 16px; }
  .section-head p { font-size: 12.5px; }

  .hero h2 { font-size: 17px; line-height: 1.25; }
  .hero p.lead { font-size: 12.5px; line-height: 1.5; }
  .hero-visual { min-height: 300px; border-radius: 20px; }
  .hero-visual img.logo-main {
    inset: 12px 12px auto auto;
    width: min(55%, 160px);
  }
  .orbit-card { margin: 8px; padding: 12px 14px; border-radius: 16px; }
  .orbit-card h4 { font-size: 12px; margin-bottom: 4px; }
  .orbit-card p { font-size: 11.5px; }

  .stat { padding: 10px 12px; border-radius: 16px; }
  .stat strong { font-size: 18px; }
  .stat span { font-size: 11px; }
  .stat-row { gap: 8px; }

  .metric-box { padding: 14px; border-radius: 16px; }
  .metric-box strong { font-size: 18px; }
  .metric-box span { font-size: 12px; }

  .kpi { padding: 14px; border-radius: 16px; }
  .kpi strong { font-size: 20px; }
  .kpi span { font-size: 11px; }

  .card { padding: 16px; border-radius: 18px; }
  .card h4 { font-size: 16px; }
  .card p { font-size: 12.5px; }

  .cut-card { min-height: 170px; padding: 14px; }
  .cut-shape { width: 54px; height: 54px; margin: 12px auto; }
  .cut-shape::before { inset: 12px; }
  .cut-shape::after { inset: 24px; }
  .cut-card h5 { font-size: 13px; }
  .cut-card p { font-size: 11px; }
  .cut-badge { font-size: 10px; padding: 3px 8px; }

  .stone-card { padding: 14px; border-radius: 18px; }
  .stone-card h4 { font-size: 15px; }
  .stone-card dl { gap: 5px 8px; font-size: 11.5px; }
  .stone-card dt { font-size: 11px; }
  .stone-card dd { font-size: 12px; }
  .stone-card .btn { width: 100%; justify-content: center; font-size: 12px; padding: 9px 12px; }
  .tier { font-size: 10px; padding: 4px 8px; }
  .status { font-size: 10px; padding: 4px 8px; }

  .faq-item details { padding: 13px; border-radius: 14px; }
  .faq-item summary { font-size: 13px; }
  .faq-item p { font-size: 12px; margin-top: 8px; }

  .doc-card { padding: 14px; }
  .doc-card .tag { font-size: 10px; padding: 4px 8px; }
  .doc-card h4 { font-size: 14px; }
  .doc-card p { font-size: 12px; }

  .cta-banner { border-radius: 20px; }
  .cta-banner .inner { padding: 18px; gap: 14px; }
  .cta-banner h3 { font-size: 15px; }
  .cta-banner p { font-size: 12px; }

  .market-card { padding: 14px; border-radius: 16px; }

  .table { font-size: 11.5px; }
  .table th, .table td { padding: 8px 6px; }

  .side-menu button { padding: 8px 10px; font-size: 11px; }
  .panel { padding: 14px; border-radius: 16px; }
  .panel-head h4 { font-size: 15px; }

  .compare-card { padding: 16px; border-radius: 18px; }
  .compare-head strong { font-size: 24px; }
  .compare-head h4 { font-size: 14px; }
  .progress { height: 10px; }

  .flow-step { padding: 14px; border-radius: 16px; }
  .flow-step strong { font-size: 10px; }
  .flow-step p { font-size: 12px; }

  .input, select, textarea { padding: 11px 12px; font-size: 13px; border-radius: 12px; }
  .form-grid { gap: 10px; }

  .sidebar { padding: 12px; border-radius: 18px; }
  .sidebar .brand img { width: 32px; height: 32px; }

  .burger span { width: 20px; height: 2px; }
  .burger { padding: 6px; }
}
