/* Elysium Trade — shared styles for the website and admin panel */
:root {
  --bg: #050705;
  --bg-2: #080b07;
  --panel: #0d110c;
  --panel-2: #121811;
  --border: #1c2519;
  --border-2: #2a3726;
  --text: #ecf3e6;
  --muted: #8d9c87;
  --faint: #5d6b58;
  --lime: #c3fb40;
  --lime-2: #a6e01f;
  --lime-ink: #0b1103;
  --lime-glow: rgba(195, 251, 64, 0.35);
  --red: #ff6464;
  --amber: #ffc14d;
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.lime { color: var(--lime); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #172016; }
.btn-primary {
  background: var(--lime); color: var(--lime-ink); border-color: transparent;
  box-shadow: 0 0 0 1px rgba(195, 251, 64, .3), 0 10px 40px -10px var(--lime-glow);
}
.btn-primary:hover { background: #d0ff5e; box-shadow: 0 0 0 1px rgba(195, 251, 64, .5), 0 14px 50px -10px var(--lime-glow); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- site: nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 7, 5, .72); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(28, 37, 25, .7);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand img, .brand svg { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(195, 251, 64, .45)); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--lime-ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- site: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid transparent;
}
/* the logo's glowing arcs */
.hero::before {
  width: 1100px; height: 1100px; right: -640px; top: -720px;
  border-bottom-color: rgba(195, 251, 64, .5); border-left-color: rgba(195, 251, 64, .16);
  filter: drop-shadow(0 0 16px rgba(195, 251, 64, .5));
  transform: rotate(10deg);
}
.hero::after {
  width: 1600px; height: 1600px; left: -260px; bottom: -1500px;
  border-top-color: rgba(195, 251, 64, .4); border-right-color: rgba(195, 251, 64, .1);
  filter: drop-shadow(0 0 16px rgba(195, 251, 64, .45));
  transform: rotate(-8deg);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-2); background: rgba(13, 17, 12, .8); color: var(--muted); font-size: 13px; font-weight: 500;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--lime); text-shadow: 0 0 40px rgba(195, 251, 64, .35); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero::before { display: none; }
}

/* bot preview mock */
.phone {
  justify-self: center; width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #0f150e, #0a0e09); border: 1px solid var(--border-2);
  border-radius: 26px; padding: 16px; box-shadow: 0 40px 120px -30px rgba(195, 251, 64, .25), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); }
.phone-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: #000; display: grid; place-items: center; border: 1px solid var(--border-2); }
.phone-head .avatar svg { width: 20px; }
.phone-head b { font-size: 14px; display: block; }
.phone-head span { font-size: 12px; color: var(--muted); }
.bubble { margin-top: 14px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.bubble .tok { font-weight: 700; }
.bubble code { color: var(--lime); font-size: 11.5px; word-break: break-all; }
.bubble .row { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); }
.bubble .row b { color: var(--text); font-weight: 600; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.keys span {
  text-align: center; padding: 9px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  background: rgba(195, 251, 64, .08); border: 1px solid rgba(195, 251, 64, .22); color: #dff9a6;
}
.keys span.sell { background: rgba(255, 100, 100, .07); border-color: rgba(255, 100, 100, .22); color: #ffc0c0; }
.toast { margin-top: 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(195, 251, 64, .07); border: 1px solid rgba(195, 251, 64, .25); }

/* ---------- site: stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stats > div { background: var(--panel); padding: 20px 22px; }
.stats b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- site: sections ---------- */
section.block { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { color: var(--lime); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 780; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } section.block { padding: 64px 0; } }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(195, 251, 64, .1); border: 1px solid rgba(195, 251, 64, .25); color: var(--lime);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 680; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); font-weight: 600; font-size: 14px; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 6px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--lime); color: var(--lime-ink); font-weight: 800;
}

.fee-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .fee-box { grid-template-columns: 1fr; } }
.fee-box .card b { font-size: 34px; letter-spacing: -0.02em; display: block; margin: 4px 0 6px; }

.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

.final-cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--border); background: radial-gradient(600px 240px at 50% 100%, rgba(195, 251, 64, .12), transparent 70%); }
.final-cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.final-cta p { color: var(--muted); margin: 14px auto 28px; max-width: 520px; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--border); background: var(--bg-2); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { padding: 4px 8px 22px; font-size: 15px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; margin-bottom: 2px;
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14px;
}
.side nav a svg { width: 18px; height: 18px; }
.side nav a:hover { background: var(--panel-2); color: var(--text); }
.side nav a.on { background: rgba(195, 251, 64, .1); color: var(--lime); }
.side .who { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.side .who form { margin-top: 8px; }
.side .who button { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 750; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .brand { padding: 0 8px 0 0; }
  .side nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .side .who { margin: 0 0 0 auto; border: 0; padding: 0 6px; display: flex; gap: 10px; align-items: center; }
  .side .who form { margin: 0; }
  .main { padding: 20px 16px 48px; }
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 550; text-transform: uppercase; letter-spacing: .05em; }
.kpi .value { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; margin-top: 6px; }
.kpi .value small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.kpi.accent { border-color: rgba(195, 251, 64, .35); background: linear-gradient(180deg, rgba(195, 251, 64, .07), var(--panel) 70%); }
.kpi.accent .value { color: var(--lime); }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head h2 { font-size: 15px; font-weight: 650; }
.panel-body { padding: 18px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .cols-2 { grid-template-columns: 1fr; } }

.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--lime); opacity: .85; }
.chart .bar:hover { opacity: 1; }
.chart .axis { fill: var(--muted); font-size: 13px; font-family: var(--sans); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-2); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border-2); }
td a:hover { color: var(--lime); border-color: var(--lime); }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid transparent; }
.badge.buy, .badge.success { color: var(--lime); background: rgba(195, 251, 64, .1); border-color: rgba(195, 251, 64, .25); }
.badge.sell { color: #ffb0b0; background: rgba(255, 100, 100, .08); border-color: rgba(255, 100, 100, .25); }
.badge.failed, .badge.reverted { color: var(--red); background: rgba(255, 100, 100, .08); border-color: rgba(255, 100, 100, .3); }
.badge.pending { color: var(--amber); background: rgba(255, 193, 77, .08); border-color: rgba(255, 193, 77, .3); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input, .filters select {
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); border-radius: 9px;
  padding: 8px 11px; font: inherit; font-size: 13.5px; min-width: 0;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(195, 251, 64, .15); }
.filters input[type="search"] { width: 260px; max-width: 100%; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pager .links { display: flex; gap: 8px; }

.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(700px 400px at 50% 0%, rgba(195, 251, 64, .1), transparent 70%); }
.login .card { max-width: 420px; text-align: center; }
.login .card svg { width: 56px; margin: 0 auto 18px; filter: drop-shadow(0 0 16px rgba(195, 251, 64, .5)); }
.login h1 { font-size: 22px; margin-bottom: 10px; }
.login p { color: var(--muted); }
.login code { color: var(--lime); }
.note { margin-top: 18px; max-width: 640px; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.login-form input {
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px;
}
.login-form input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(195, 251, 64, .15); }
.login .error { color: var(--red); }
