:root {
  color-scheme: dark;
  --bg: #040705;
  --panel: #07100b;
  --panel-2: #09140d;
  --line: #173122;
  --green: #46f44a;
  --green-soft: #a1ffa4;
  --text: #f2f4ef;
  --muted: #849189;
  --danger: #ff5c63;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 65% -10%, #0c2715 0, transparent 32rem), var(--bg); color: var(--text); min-height: 100vh; }
button, a { font: inherit; }
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 24px 16px; background: rgba(3, 8, 5, .88); display: flex; flex-direction: column; z-index: 5; }
.brand { color: var(--text); text-decoration: none; display: grid; justify-items: center; gap: 8px; font-weight: 900; font-size: 21px; letter-spacing: -.04em; }
.brand img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; object-position: center 28%; }
.brand b, h1 em { color: var(--green); font-style: normal; }
nav { display: grid; gap: 8px; margin-top: 42px; }
nav a { display: flex; gap: 14px; align-items: center; color: #aab4ad; text-decoration: none; border: 1px solid transparent; border-radius: 12px; padding: 13px 15px; }
nav a:hover, nav a.active { color: var(--green-soft); border-color: #266b37; background: #0b2413; }
nav a span { width: 20px; text-align: center; color: var(--green); }
.sidebar-line { margin-top: auto; color: #6e7b72; font-size: 11px; line-height: 1.8; letter-spacing: .25em; }
main { padding: 0 28px 36px; min-width: 0; }
.topbar { height: 82px; display: flex; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.05em; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.network, .status { display: inline-flex; align-items: center; gap: 8px; color: var(--green-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.network i, .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.contract, .info-button { border: 1px solid #345441; background: #09100c; color: #bcc5bf; padding: 9px 13px; border-radius: 9px; }
.contract:disabled { opacity: .7; }
.mobile-menu { display: none; background: transparent; color: var(--text); border: 0; font-size: 23px; margin-right: 12px; }
.panel { background: linear-gradient(145deg, rgba(10, 22, 14, .95), rgba(4, 10, 7, .95)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.17); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.chart-panel { padding: 18px; }
.panel-heading, .section-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.eyebrow { color: #c7d0ca; font-size: 12px; letter-spacing: .12em; font-weight: 800; }
.panel-heading h2 { font-size: 18px; margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.status { border: 1px solid #1e6630; background: #0b2513; padding: 8px 12px; border-radius: 999px; }
.status.standby i { background: #6d776f; box-shadow: none; }
.chart { position: relative; height: 305px; margin-top: 14px; overflow: hidden; border-radius: 10px; background: #040906; }
.chart-grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 100% 25%, 12.5% 100%; }
.chart svg { position: absolute; inset: 20px 8px 15px; width: calc(100% - 16px); height: calc(100% - 35px); }
.area { fill: url(#area); }
.market-line { fill: none; stroke: var(--green); stroke-width: 3; opacity: .48; }
.buy-dot { fill: var(--bg); stroke: var(--green); stroke-width: 5; }
.trigger-line { position: absolute; z-index: 2; top: 69%; left: 0; right: 0; border-top: 1px dashed var(--green); opacity: .75; }
.trigger-line span { position: absolute; top: -14px; left: 10px; padding: 4px 7px; background: var(--green); color: #021004; font-weight: 850; font-size: 11px; border-radius: 5px; }
.empty-state { position: absolute; right: 15px; bottom: 13px; color: #718078; font-size: 11px; }
.scanner { padding: 20px; display: grid; justify-items: center; align-content: start; text-align: center; }
.countdown { --progress: 0deg; width: 190px; aspect-ratio: 1; margin: 30px auto 18px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) var(--progress), #1c2b22 0); position: relative; }
.countdown::after { content: ""; position: absolute; inset: 14px; border-radius: inherit; background: var(--panel); }
.countdown div { position: relative; z-index: 1; display: grid; }
.countdown strong { font-size: 54px; line-height: 1; }
.countdown small { margin-top: 7px; color: #a8b2ab; letter-spacing: .2em; }
.scanner p { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.stats article { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: var(--panel); min-height: 104px; display: grid; align-content: center; gap: 9px; }
.stats span { color: #9ba69f; font-size: 11px; letter-spacing: .1em; }
.stats strong { color: var(--green); font-size: clamp(17px, 1.55vw, 24px); }
.rules-panel, .activity { padding: 18px; margin-top: 14px; }
.info-button { cursor: pointer; font-size: 12px; }
.info-button:hover { border-color: var(--green); color: var(--green-soft); }
.rules { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; }
.rule { padding: 9px 18px; min-width: 0; border-left: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 13px; }
.rule:first-child { border-left: 0; }
.rule strong { display: block; color: var(--green); font-size: 21px; }
.rule span { color: #8f9b93; font-size: 11px; }
.mini-clock { width: 45px; aspect-ratio: 1; border: 4px solid var(--green); border-radius: 50%; position: relative; }
.mini-clock::after, .mini-clock i { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 14px; background: var(--green); transform-origin: center top; }
.mini-clock i { transform: rotate(120deg); height: 12px; }
.bar { width: 52px; height: 10px; border-radius: 8px; background: #26342b; position: relative; }
.bar i { display: block; width: 60%; height: 100%; background: var(--green); border-radius: inherit; opacity: .55; }
.bar b { position: absolute; right: 0; top: -5px; height: 20px; border-right: 2px solid var(--green); }
.segments { width: 54px; height: 24px; background: repeating-linear-gradient(90deg, #27362d 0 4px, transparent 4px 6px); border-left: 6px solid var(--green); }
.gauge { width: 52px; height: 27px; overflow: hidden; position: relative; }
.gauge::before { content: ""; position: absolute; inset: 0; border: 6px solid #304238; border-bottom: 0; border-radius: 52px 52px 0 0; }
.gauge i { position: absolute; width: 24px; left: 26px; bottom: 0; border-top: 2px solid var(--green); transform-origin: left; transform: rotate(-35deg); }
.halvings { display: flex; align-items: end; height: 34px; gap: 4px; }
.halvings i { width: 10px; background: var(--green); opacity: .9; }
.halvings i:nth-child(1) { height: 32px; }.halvings i:nth-child(2) { height: 23px; }.halvings i:nth-child(3) { height: 15px; }.halvings i:nth-child(4) { height: 8px; }
.explanation { margin-top: 16px; padding: 14px; color: #9eaaa2; background: #050c08; border-left: 2px solid var(--green); font-size: 13px; line-height: 1.55; }
.activity { margin-bottom: 20px; }
.muted { color: var(--muted); font-size: 11px; }
.activity-table { margin-top: 14px; }
.table-head, .activity-row { display: grid; grid-template-columns: 1.1fr .7fr 1fr 1fr; gap: 14px; align-items: center; padding: 11px 8px; border-top: 1px solid #13281b; }
.table-head { color: #6f7e74; font-size: 10px; letter-spacing: .12em; }
.empty-row { text-align: center; color: #708077; padding: 32px 8px 18px; border-top: 1px solid #13281b; }
.activity-row { font-size: 13px; }.activity-row .positive { color: var(--green); }.activity-row a { color: var(--green-soft); text-decoration: none; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand img { width: 58px; height: 58px; }
  .brand span, nav a:not(.active) { font-size: 0; }
  nav a { justify-content: center; padding-inline: 10px; }
  nav a span { font-size: 18px; }
  .sidebar-line { display: none; }
  .rules { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .rule { border: 1px solid var(--line); border-radius: 10px; }
  .rule:first-child { border-left: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; transform: translateX(-105%); transition: transform .2s ease; width: 230px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand span, .sidebar nav a { font-size: 15px; }
  .sidebar nav a { justify-content: flex-start; }
  main { padding: 0 14px 28px; }
  .mobile-menu { display: block; }
  .network { display: none; }
  .contract { font-size: 11px; padding: 8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .chart { height: 260px; }
  .scanner { grid-template-columns: 1fr 150px; align-items: center; text-align: left; }
  .scanner .eyebrow, .scanner p { justify-self: start; }
  .countdown { grid-column: 2; grid-row: 1 / span 2; width: 125px; margin: 0; }
  .countdown strong { font-size: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule:last-child { grid-column: 1 / -1; }
  .table-head, .activity-row { grid-template-columns: 1fr .6fr 1fr; }
  .table-head span:last-child, .activity-row span:last-child { display: none; }
}

@media (max-width: 440px) {
  .topbar h1 { font-size: 21px; }
  .topbar p { display: none; }
  .stats, .rules { grid-template-columns: 1fr; }
  .rule:last-child { grid-column: auto; }
  .empty-state { left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

