/* ==========================================================================
   RYNOVACOIN DESIGN SYSTEM & STYLESHEET
   Bespoke Dark Cyber Gold & Neo-Brutalist Financial Aesthetics
   ========================================================================== */

:root {
  --bg: #030504;
  --bg-gradient: radial-gradient(circle at 82% 10%, rgba(240,183,47,0.07), transparent 28%),
                 radial-gradient(circle at 12% 80%, rgba(242,198,109,0.04), transparent 26%),
                 linear-gradient(180deg, #080808 0%, #040504 100%);
  --panel: #0e0e0e;
  --panel-2: #131313;
  --panel-card: #0b0b0b;
  --text: #f6f1e8;
  --text-bright: #ffffff;
  --muted: #a39a8c;
  --muted-dark: #6e675b;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(240, 183, 47, 0.22);
  --line-gold-soft: rgba(240, 183, 47, 0.12);
  
  --gold: #f0b72f;
  --gold-2: #ffd56a;
  --gold-deep: #9e7325;
  --gold-glow: rgba(240, 183, 47, 0.18);
  
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.18);
  --green: #d9a441;
  --green2: #f2c66d;
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
}

::selection {
  background: var(--gold);
  color: #090909;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #060606;
}
::-webkit-scrollbar-thumb {
  background: rgba(240, 183, 47, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 183, 47, 0.5);
}

/* Shell Layout */
.shell {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 100vh;
}

/* Fixed Rail Navigation */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0;
  border-right: 1px solid var(--line);
  background: rgba(4, 6, 5, 0.94);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.rail-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #041109;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(240, 183, 47, 0.25);
  transition: var(--transition);
}

.rail-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 32px rgba(240, 183, 47, 0.4);
}

.rail-nav {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-link {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #819188;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  transition: var(--transition);
}

.rail-link:hover, .rail-link.active {
  color: var(--gold-2);
  border-color: rgba(240, 183, 47, 0.22);
  background: rgba(240, 183, 47, 0.08);
  box-shadow: 0 4px 16px rgba(240, 183, 47, 0.1);
}

.rail-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  padding: 6px 12px;
  border-radius: 8px;
  background: #111;
  border: 1px solid var(--line-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1001;
}

.rail-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.rail-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(240, 183, 47, 0.12), 0 0 16px var(--gold);
  animation: pulseBeacon 2.6s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240, 183, 47, 0.12), 0 0 10px var(--gold); }
  50% { box-shadow: 0 0 0 8px rgba(240, 183, 47, 0.24), 0 0 20px var(--gold-2); }
}

/* Main Area */
.main {
  grid-column: 2;
  position: relative;
  min-width: 0;
}

.container {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

/* Topbar */
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 4, 0.7);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .brand span {
  color: var(--gold);
}

.topbar .brand-subtitle {
  color: #72837a;
  font-size: 13px;
  font-weight: 400;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.top-nav a:hover, .top-nav a.active {
  color: var(--gold-2);
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.btn-dark {
  background: #0d120f;
  color: #e6ede8;
}

.btn-dark:hover {
  background: #151d18;
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.btn-green, .btn-gold {
  border: none;
  color: #041009;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 28px rgba(240, 183, 47, 0.18);
}

.btn-green:hover, .btn-gold:hover {
  background: linear-gradient(135deg, #ffe08c, #f5bd3d);
  box-shadow: 0 12px 36px rgba(240, 183, 47, 0.32);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: rgba(240, 183, 47, 0.05);
  border: 1px solid rgba(240, 183, 47, 0.25);
  color: var(--gold-2);
}

.btn-outline-gold:hover {
  background: rgba(240, 183, 47, 0.12);
  border-color: rgba(240, 183, 47, 0.45);
  box-shadow: 0 4px 18px rgba(240, 183, 47, 0.12);
  transform: translateY(-1px);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 10px;
}

/* Signal / Ticker Bar */
.signal {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #060606;
}

.signal-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
}

.sig {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sig:first-child { padding-left: 0; }
.sig:last-child { border-right: 0; }

.sig small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sig small .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulseBeacon 1.8s infinite ease-in-out;
}

.sig strong {
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
}

.sig .delta-sub {
  font-size: 11px;
  font-family: var(--font-body);
  margin-left: 6px;
  font-weight: 700;
}

/* Hero Section */
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
  padding: 54px 0 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 6.8vw, 88px);
  line-height: 0.92;
  letter-spacing: -4px;
  max-width: 760px;
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 198, 109, 0.55);
}

h1 .green, h1 .gold {
  color: var(--gold);
}

.hero-copy {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 38px;
  font-size: 11px;
  color: #72837a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-meta b {
  display: block;
  color: white;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 5px;
}

/* Network Orbit Graphic */
.network {
  min-height: 560px;
  position: relative;
  border-radius: 34px;
  border: 1px solid rgba(240, 183, 47, 0.16);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(240,183,47,0.1), transparent 40%),
    #0b0b0b;
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(240, 183, 47, 0.2);
  animation: rotateOrbit 40s linear infinite;
}

.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 36px;
  border: 1px dashed rgba(242, 198, 109, 0.18);
}

.orbit::after {
  inset: 82px;
  border-style: solid;
  border-color: rgba(240, 183, 47, 0.1);
}

@keyframes rotateOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #04110a;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  box-shadow: 0 0 80px rgba(240, 183, 47, 0.3);
  z-index: 2;
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(240, 183, 47, 0.12), 0 0 16px var(--gold);
  animation: pulseNode 3s infinite alternate ease-in-out;
}

.n1 { left: 17%; top: 20%; animation-delay: 0s; }
.n2 { right: 18%; top: 28%; animation-delay: 0.7s; }
.n3 { left: 24%; bottom: 22%; animation-delay: 1.4s; }
.n4 { right: 22%; bottom: 18%; animation-delay: 2.1s; }

@keyframes pulseNode {
  0% { transform: scale(1); }
  100% { transform: scale(1.3); }
}

.float-card {
  position: absolute;
  min-width: 180px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(10, 14, 12, 0.92);
  border: 1px solid rgba(240, 183, 47, 0.2);
  backdrop-filter: blur(14px);
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.fc1 { left: 24px; top: 28px; }
.fc2 { right: 24px; bottom: 30px; }
.float-card small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.float-card strong { font-size: 19px; font-family: var(--font-display); }
.up { color: var(--gold); font-size: 12px; margin-left: 6px; }

/* ==========================================================================
   LIVE TRADING CHART SECTION
   ========================================================================== */

.market-live {
  padding: 110px 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(240, 183, 47, 0.08), transparent 28%),
    radial-gradient(circle at 10% 70%, rgba(239, 68, 68, 0.04), transparent 22%),
    linear-gradient(180deg, #080808, #050505);
  border-top: 1px solid rgba(240, 183, 47, 0.12);
  border-bottom: 1px solid var(--line);
}

.market-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
}

.market-dashboard {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 22px;
}

.trading-chart, .watchlist {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    linear-gradient(180deg, #101010, #0a0a0a);
  border: 1px solid rgba(240, 183, 47, 0.16);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.trading-chart::before, .watchlist::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 198, 109, 0.45), transparent);
}

.trading-chart {
  padding: 30px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.chart-asset {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chart-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(240, 183, 47, 0.18), rgba(240, 183, 47, 0.05));
  color: var(--gold-2);
  border: 1px solid rgba(240, 183, 47, 0.25);
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chart-asset strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: #fff;
}

.chart-asset small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.chart-price {
  text-align: right;
}

.chart-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -1.5px;
  color: #fff8e8;
}

.chart-change {
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
  display: inline-block;
}

/* Toolbar & Modes */
.pro-chart-wrap {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 5%, rgba(240, 183, 47, 0.045), transparent 28%),
    linear-gradient(180deg, #0c0c0c, #090909);
}

.chart-toolbar {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #090b0e;
}

.chart-mode, .chart-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-mode-btn, .chart-range span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #777167;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.chart-mode-btn:hover, .chart-range span:hover {
  color: var(--gold-2);
  background: rgba(240, 183, 47, 0.05);
}

.chart-mode-btn.active, .chart-range span.active, .chart-range .range-active {
  color: #f0b72f;
  background: rgba(240, 183, 47, 0.1);
  border-color: rgba(240, 183, 47, 0.22);
}

/* Live Canvas Area */
.live-chart-canvas-wrap {
  height: 380px;
  position: relative;
  background: #080a0f;
  overflow: hidden;
  cursor: crosshair;
}

#liveMarketCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.current-price-tag {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: #0b0b0b;
  padding: 6px 11px;
  border-radius: 6px 0 0 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 900;
  box-shadow: 0 0 20px rgba(240, 183, 47, 0.3);
  pointer-events: none;
  transition: top 0.2s ease-out;
  z-index: 5;
}

/* Market Stats Ribbon */
.market-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.statbox {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #111, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.statbox small {
  display: block;
  color: #8e8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.statbox strong {
  font-size: 15px;
  font-family: var(--font-mono);
  color: #f5efe6;
}

/* Watchlist Sidecar */
.watchlist {
  padding: 26px;
}

.watch-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #f3eadb;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-title span {
  font-family: var(--font-body);
  font-size: 11px;
  color: #8f8574;
}

.coin-row {
  padding: 16px 12px;
  border-radius: 14px;
  margin: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 1fr 90px 65px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.coin-row:hover, .coin-row.selected-pair {
  background: rgba(240, 183, 47, 0.06);
  border-color: rgba(240, 183, 47, 0.18);
  transform: translateX(3px);
}

.coin-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #17130d, #0f0e0b);
  border: 1px solid rgba(240, 183, 47, 0.2);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 15px;
}

.coin-name strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.coin-name small {
  display: block;
  color: #8f8574;
  margin-top: 2px;
  font-size: 11px;
}

.coin-price {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  color: #ece5d8;
}

.delta {
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.market-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8f8574;
  font-size: 11px;
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO & ASSETS PREVIEW SECTION
   ========================================================================== */

.mosaic {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #11100d, #0b0b0b);
  border-radius: 26px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.8px;
  color: #fff;
}

.panel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin-top: 8px;
}

.mini-stack {
  display: grid;
  gap: 20px;
}

.panel.mini {
  min-height: 250px;
}

.metric {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-box {
  padding: 18px;
  border-radius: 18px;
  background: #0b0b0b;
  border: 1px solid var(--line);
}

.metric-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.metric-box strong {
  font-size: 20px;
  font-family: var(--font-display);
  color: #fff;
}

.flow {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.flow-row:last-child {
  border-bottom: none;
}

.flow-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(240, 183, 47, 0.08);
  color: var(--gold-2);
  font-weight: 800;
  border: 1px solid rgba(240, 183, 47, 0.16);
}

/* ==========================================================================
   INVEST & EARN SECTION
   ========================================================================== */

.invest-zone {
  position: relative;
  padding: 110px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 78% 20%, rgba(240, 183, 47, 0.09), transparent 25%),
    linear-gradient(180deg, #050906, #0b0b0b);
}

.invest-head {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 50px;
  align-items: end;
}

.invest-note {
  color: #a89d8b;
  line-height: 1.75;
  font-size: 13px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 183, 47, 0.16);
  border-radius: 18px;
  background: rgba(240, 183, 47, 0.04);
}

.yield-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.yield-card {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, #0a130e, #0b0b0b);
  transition: var(--transition);
}

.yield-card:hover {
  border-color: rgba(240, 183, 47, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.yield-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -65px;
  bottom: -70px;
  background: rgba(240, 183, 47, 0.08);
  filter: blur(45px);
}

.yield-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.asset-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.asset-symbol {
  color: #a89d8b;
  font-size: 11px;
  margin-top: 4px;
}

.risk {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a6b5ad;
}

.apy {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--gold);
  margin-top: 32px;
}

.apy small {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: #a89d8b;
  margin-left: 6px;
}

.yield-desc {
  margin-top: 16px;
  color: #a89d8b;
  font-size: 13px;
  line-height: 1.65;
}

.yield-meta {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #74877c;
  font-size: 11px;
}

.market-benchmark {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.benchmark-card, .calculator {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 26px;
  background: #0c0c0c;
  padding: 30px;
}

.benchmark-card h3, .calculator h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -1px;
  color: #fff;
}

.benchmark-card p, .calculator p {
  color: #a89d8b;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
}

.benchmark-table {
  margin-top: 24px;
  display: grid;
}

.bm-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.bm-row:last-child {
  border-bottom: none;
}

.bm-row span:nth-child(2) {
  color: var(--gold);
  font-weight: 800;
}

.bm-row span:nth-child(3) {
  color: #a89d8b;
}

.calc-grid {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: #0a130e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-line small {
  color: #a89d8b;
}

.calc-result {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240, 183, 47, 0.12), rgba(240, 183, 47, 0.03));
  border: 1px solid rgba(240, 183, 47, 0.2);
}

.calc-result small {
  color: #a89d8b;
}

.calc-result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--gold);
  margin-top: 6px;
}

.invest-disclaimer {
  margin-top: 24px;
  color: #687b70;
  font-size: 11px;
  line-height: 1.75;
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */

.security-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.security-disc {
  width: 360px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  border: 1px solid rgba(240, 183, 47, 0.2);
  background: radial-gradient(circle, rgba(240, 183, 47, 0.12), transparent 45%);
}

.security-core {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #04110a;
  font-size: 40px;
  font-weight: 800;
  box-shadow: 0 0 60px rgba(240, 183, 47, 0.28);
}

.security-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.security-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(240, 183, 47, 0.1);
  color: var(--gold);
  flex: 0 0 auto;
  border: 1px solid rgba(240, 183, 47, 0.2);
}

.security-item b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.security-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT US PAGE STYLES (about.html)
   ========================================================================== */

.page-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
}

.about-stats {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.about-stat-card {
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #101010, #0a0a0a);
  border: 1px solid var(--line-gold-soft);
  position: relative;
  overflow: hidden;
}

.about-stat-card strong {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold);
  letter-spacing: -1.5px;
  display: block;
}

.about-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.pillars-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  padding: 34px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, #101210, #0a0b0a);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: rgba(240, 183, 47, 0.3);
  transform: translateY(-4px);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: rgba(240, 183, 47, 0.25);
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.timeline {
  margin-top: 50px;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid rgba(240, 183, 47, 0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.timeline-item time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin: 6px 0;
}

.timeline-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT US PAGE STYLES (contact.html)
   ========================================================================== */

.contact-layout {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-form-panel {
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(180deg, #111111, #0a0a0a);
  border: 1px solid var(--line-gold-soft);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: #c7beaf;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #060606;
  border: 1px solid var(--line);
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(240, 183, 47, 0.18);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.desk-status {
  padding: 22px;
  border-radius: 20px;
  background: rgba(240, 183, 47, 0.05);
  border: 1px solid rgba(240, 183, 47, 0.2);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.desk-status .beacon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  animation: pulseBeacon 2s infinite ease-in-out;
  flex: 0 0 auto;
}

.desk-status strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.desk-status small {
  color: var(--muted);
  font-size: 12px;
}

.hubs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.hub-card {
  padding: 20px;
  border-radius: 18px;
  background: #0d0d0d;
  border: 1px solid var(--line);
  transition: var(--transition);
}

.hub-card:hover {
  border-color: rgba(240, 183, 47, 0.28);
}

.hub-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.hub-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 18px;
  background: #0b0c0c;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.faq-question:hover {
  color: var(--gold-2);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open {
  border-color: rgba(240, 183, 47, 0.25);
  background: #0e0f0e;
}

/* ==========================================================================
   MARKETS SCREENER PAGE (markets.html)
   ========================================================================== */

.screener-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.screener-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 10px;
  background: #0e0e0e;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(240, 183, 47, 0.1);
  color: var(--gold-2);
  border-color: rgba(240, 183, 47, 0.25);
}

.search-input-wrap {
  position: relative;
  width: 260px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border-radius: 10px;
  background: #0e0e0e;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #fff;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6a6a6a;
  pointer-events: none;
}

.screener-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.screener-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a756b;
  border-bottom: 1px solid var(--line);
}

.screener-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.screener-table tr:hover td {
  background: rgba(240, 183, 47, 0.04);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1050px) {
  .yield-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { grid-column: 1; }
  .hero { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .market-dashboard { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .invest-head, .market-benchmark { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-wrap { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1240px); }
  .top-nav { display: none; }
  .top-actions .btn-dark { display: none; }
  .signal-inner { grid-template-columns: 1fr; }
  .sig { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .sig:last-child { border-bottom: none; }
  .market-heading { flex-direction: column; align-items: flex-start; }
  .market-stats { grid-template-columns: 1fr 1fr; }
  .coin-row { grid-template-columns: 1fr 70px 55px; }
  .live-chart-canvas-wrap { height: 290px; }
  .yield-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hubs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   AUTH MODAL (LOGIN & SIGN UP POPUP)
   ========================================================================== */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-dialog {
  width: min(480px, 100%);
  background:
    radial-gradient(circle at 80% 0%, rgba(240, 183, 47, 0.12), transparent 45%),
    linear-gradient(180deg, #131413, #0a0c0b);
  border: 1px solid rgba(240, 183, 47, 0.28);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 34px;
  position: relative;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.active .auth-modal-dialog {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-modal-close:hover {
  background: rgba(240, 183, 47, 0.15);
  color: #fff;
  border-color: rgba(240, 183, 47, 0.35);
  transform: rotate(90deg);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: #060706;
  border: 1px solid var(--line);
  margin: 22px 0 24px;
}

.auth-tab-btn {
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(240, 183, 47, 0.18), rgba(240, 183, 47, 0.08));
  color: var(--gold-2);
  border: 1px solid rgba(240, 183, 47, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.auth-notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 183, 47, 0.08);
  border: 1px solid rgba(240, 183, 47, 0.2);
  color: var(--gold-2);
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-notice i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

/* Body Action Ribbons for Login & Sign Up */
.auth-action-banner {
  margin-top: 36px;
  padding: 22px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240, 183, 47, 0.1), rgba(240, 183, 47, 0.02)), #0b0d0c;
  border: 1px solid rgba(240, 183, 47, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.auth-action-banner strong {
  font-size: 15px;
  color: #fff;
  display: block;
}

.auth-action-banner p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.auth-buttons-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
