/* AUREA Network DEX Kit — white-label DEX theme.
   AUREA shared shell: dark navy, gold/purple neon frames.
   Theme colors are injected per tenant by the provisioner. */
:root {
  --bg: #0A0F1E;
  --surface: #111830;
  --border: #39415F;
  --text: #EDF0FA;
  --muted: #A7ACC2;
  --accent: #F5C542;
  --accent2: #9B6BFF;
  --up: #2EBD85;
  --down: #E5484D;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0B0F1E; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 14px var(--accent);
  overflow: hidden;
}
.brand-mark img { max-height: 30px; max-width: 120px; display: block; }
.brand-name { font-weight: 700; font-size: 18px; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.main-nav a:hover, .main-nav a.on { color: var(--accent); }
.btn {
  display: inline-block; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 16px; font-size: 14px; font-weight: 700; text-decoration: none;
  cursor: pointer; background: var(--surface); color: var(--text);
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0B0F1E; border: none; box-shadow: 0 0 16px -4px var(--accent);
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-lg { padding: 12px 24px; font-size: 15.5px; }
.btn-block { width: 100%; text-align: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.hero { padding: 56px 20px 18px; text-align: center; }
.hero-kicker {
  color: var(--accent2); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: 12.5px; margin: 0 0 6px;
}
.hero h1 {
  margin: 0 0 8px; font-size: clamp(34px, 6.5vw, 54px); font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13.5px; max-width: 700px; margin: 18px auto 0; }
.section { max-width: 1080px; margin: 0 auto; padding: 30px 16px 8px; }
.section-title { font-size: 24px; margin: 0 0 14px; }
.section-note { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 760px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; box-shadow: 0 0 0 rgba(0,0,0,0); transition: box-shadow .15s, border-color .15s;
}
.feature-card:hover { border-color: var(--accent); box-shadow: 0 0 18px -6px var(--accent); }
.feature-card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--accent); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.chain-list { color: var(--text) !important; font-weight: 600; }
.pair-table-wrap {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.pair-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pair-table th, .pair-table td { padding: 11px 16px; text-align: left; }
.pair-table thead th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.pair-table tbody tr + tr td { border-top: 1px solid var(--border); }
.pair-symbol { font-weight: 700; }
.pair-status { color: var(--muted); font-size: 13px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; color: var(--muted); font-size: 14.5px;
}
.about-card p { margin: 4px 0; }
.about-card strong { color: var(--text); }
.site-footer {
  border-top: 1px solid var(--border); padding: 22px 20px 30px;
  color: var(--muted); font-size: 13px; text-align: center;
  max-width: 880px; margin: 26px auto 0;
}
/* ---- Trade shell ---- */
.engine-banner {
  margin: 14px 16px 0; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--accent); background: var(--surface);
  color: var(--text); font-size: 13.5px;
  box-shadow: 0 0 16px -6px var(--accent);
}
.engine-banner strong { color: var(--accent); }
.trade-layout {
  display: grid; gap: 12px; padding: 14px 16px 6px;
  grid-template-columns: 210px 1fr 240px 260px;
  grid-template-areas: "pairs chart book order";
  align-items: start;
}
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px;
}
.panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.pair-panel { grid-area: pairs; }
.chart-panel { grid-area: chart; }
.book-panel { grid-area: book; }
.order-panel { grid-area: order; }
.pair-list { list-style: none; margin: 0; padding: 0; }
.pair-list li {
  padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; gap: 8px;
}
.pair-list li:hover { background: var(--bg); }
.pair-list li.on { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pair-list .pair-type { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-pair { font-size: 18px; font-weight: 800; }
.chart-legend { color: var(--muted); font-size: 12.5px; }
.chart-placeholder {
  position: relative; height: 340px; border: 1px dashed var(--border);
  border-radius: 12px; overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.chart-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
}
.chart-placeholder-text { position: relative; color: var(--muted); text-align: center; font-size: 14px; padding: 0 16px; }
.position-strip {
  display: flex; gap: 18px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted);
  flex-wrap: wrap; align-items: baseline;
}
.position-note { margin: 0; font-size: 12.5px; }
.book-cols {
  display: flex; justify-content: space-between; color: var(--muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
}
.book-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0; line-height: 1.9; }
.side-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.side-tab {
  flex: 1; padding: 9px 0; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); font-weight: 700; font-size: 13.5px;
}
.side-tab.buy { color: var(--up); }
.side-tab.sell { color: var(--down); }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; font-size: 14px;
}
.fee-line { color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; }
@media (max-width: 1080px) {
  .trade-layout { grid-template-columns: 1fr 1fr; grid-template-areas: "chart chart" "pairs order" "book order"; }
}
@media (max-width: 640px) {
  .trade-layout { grid-template-columns: 1fr; grid-template-areas: "chart" "order" "pairs" "book"; }
  .main-nav { display: none; }
  .chart-placeholder { height: 260px; }
}
