:root {
  --bg: #050913;
  --bg-soft: #0b1322;
  --panel: #0f182a;
  --panel-2: #162238;
  --panel-3: #1a2741;
  --line: rgba(141, 167, 205, 0.16);
  --text: #f7fbff;
  --muted: #7f93b5;
  --accent: #ffb400;
  --accent-soft: #f8d575;
  --teal: #10d1b6;
  --red: #ff526d;
  --green: #11d18d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 180, 0, 0.16), transparent 22%),
    radial-gradient(circle at 85% 18%, rgba(16, 209, 182, 0.08), transparent 18%),
    linear-gradient(180deg, #03060d 0%, #08111d 45%, #0b1522 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.auth-body { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 0.85fr; }
.auth-hero, .auth-panel { position: relative; padding: 48px; }
.auth-hero { overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.aurora { position: absolute; border-radius: 50%; filter: blur(18px); opacity: 0.8; }
.aurora-a { width: 280px; height: 280px; top: -90px; left: -40px; background: rgba(255, 180, 0, 0.15); }
.aurora-b { width: 220px; height: 220px; right: 30px; bottom: 60px; background: rgba(16, 209, 182, 0.1); }
.hero-copy, .hero-panels, .auth-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero-copy h1 { margin: 0; max-width: 720px; font-size: clamp(2.7rem, 4vw, 5.4rem); line-height: 0.94; }
.hero-text, .section-copy, .status-card p, .api-card code, .table-sub, .detail-label, .trade-label, .symbol-sub, .asset-note, .profile-handle, .notice-copy { color: var(--muted); }
.hero-text, .section-copy, .status-card p, .notice-copy { line-height: 1.7; }
.hero-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-panel, .glass-card, .surface-card, .status-card, .api-card, .chart-card, .detail-card, .order-card, .watchlist-card, .activity-card, .balance-card, .profile-summary, .profile-actions, .settings-card, .feature-grid, .hot-pair-card, .ticker-strip, .notice-card, .segment-card, .admin-card {
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.98), rgba(11, 18, 31, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.mini-panel { padding: 20px; }
.mini-label { margin: 0 0 10px; color: var(--muted); }
.mini-panel h2 { margin: 0 0 10px; font-size: 1.7rem; }
.mini-panel span { color: var(--muted); font-size: 0.92rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; }
.auth-card, .admin-card { width: min(100%, 460px); padding: 30px; }
.auth-header h2 { margin: 0 0 10px; font-size: 2rem; }
.mode-switch { margin: 26px 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); }
.mode-btn, .pill-btn, .icon-btn, .ghost-btn, .chip-btn, .nav-icon, .action-btn, .tab-btn, .submit-btn, .side-link, .text-link { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.mode-btn, .pill-btn, .tab-btn, .chip-btn, .nav-icon, .side-link { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mode-btn, .tab-btn { border-radius: 14px; padding: 12px 16px; }
.mode-btn-active, .tab-btn.is-active { color: #09111f; background: linear-gradient(135deg, var(--accent), var(--accent-soft)); }
.field-row { margin-bottom: 16px; }
.field-row label, .section-title, .metric-title, .detail-title, .trade-title { display: block; margin-bottom: 10px; }
.input-shell, .select-shell { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; background: #0b1524; border: 1px solid transparent; }
.input-shell:focus-within, .select-shell:focus-within { border-color: rgba(255, 180, 0, 0.34); }
.input-shell input, .select-shell select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 16px 0; }
.ghost-btn, .text-link { border: 0; background: transparent; color: #57d8d5; cursor: pointer; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 24px; }
.checkbox { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); }
.submit-btn, .action-btn { border: 0; cursor: pointer; font-weight: 700; }
.submit-btn { width: 100%; padding: 16px 20px; border-radius: 18px; color: #08101d; background: linear-gradient(135deg, #58d7cb, #ffb177); }
.submit-btn:disabled { opacity: 0.85; cursor: progress; }
.status-card, .api-card { margin-top: 18px; padding: 18px; }
.status-card strong, .api-title { display: block; margin-bottom: 8px; }
.status-card.is-success { border-color: rgba(17, 209, 141, 0.32); }
.status-card.is-error { border-color: rgba(255, 82, 109, 0.38); }

.app-shell { min-height: 100vh; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; overflow: hidden; }
.sidebar { display: none; }
.content {
  width: min(100%, 430px);
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  background: linear-gradient(180deg, #0a1322 0%, #0d1727 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px 18px 14px;
}
.content::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; background: linear-gradient(180deg, rgba(29, 53, 87, 0.45), rgba(29, 53, 87, 0)); pointer-events: none; }
.topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.topbar h1 { margin: 0 0 4px; font-size: 1.65rem; }
.topbar p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.pill-btn, .icon-btn, .nav-icon { border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.pill-btn { padding: 10px 12px; font-size: 0.85rem; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.profile-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #ffd981); color: #07101e; font-weight: 700; }
#pageContent {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 150px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 180, 0, 0.35) transparent;
}
#pageContent::-webkit-scrollbar { width: 6px; }
#pageContent::-webkit-scrollbar-thumb { background: rgba(255, 180, 0, 0.35); border-radius: 999px; }
#pageContent::-webkit-scrollbar-track { background: transparent; }
.grid, .metrics-grid, .cards-grid, .wallet-grid, .profile-grid, .market-grid, .quick-grid, .hot-pair-grid { display: grid; gap: 14px; }
.metrics-grid, .cards-grid, .wallet-grid, .profile-grid, .market-grid { grid-template-columns: 1fr; }
.quick-grid { grid-template-columns: repeat(5, 1fr); }
.hot-pair-grid { grid-template-columns: repeat(2, 1fr); }
.glass-card, .surface-card, .chart-card, .detail-card, .order-card, .watchlist-card, .activity-card, .balance-card, .profile-summary, .profile-actions, .settings-card, .feature-grid, .hot-pair-card, .ticker-strip, .notice-card, .segment-card { padding: 16px; }
.metric-title, .section-title, .detail-title, .trade-title { font-size: 0.96rem; font-weight: 700; }
.metric-value { margin: 0 0 6px; font-size: 1.45rem; font-weight: 700; }
.metric-delta.is-positive, .table-value.is-positive, .trade-positive { color: var(--green); }
.metric-delta.is-negative, .table-value.is-negative, .trade-negative { color: var(--red); }

.ticker-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  scrollbar-width: none;
}
.ticker-strip::-webkit-scrollbar { display: none; }
.ticker-chip {
  min-width: 104px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
.ticker-chip strong { display: block; font-size: 0.86rem; }
.ticker-chip span { font-size: 0.78rem; color: var(--muted); }

.hero-banner {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.26), transparent 16%),
    linear-gradient(135deg, rgba(15, 209, 182, 0.18), transparent 46%),
    linear-gradient(165deg, #183969 0%, #0f1c31 72%, #0d1728 100%);
}
.hero-banner h2 { margin: 0 0 10px; max-width: 260px; font-size: 1.62rem; line-height: 1.14; }
.hero-banner p { margin: 0 0 16px; max-width: 245px; color: var(--muted); line-height: 1.55; font-size: 0.92rem; }
.hero-actions, .chip-row, .action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs-row { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
.action-btn { padding: 11px 16px; border-radius: 14px; }
.action-btn.primary { color: #0a101a; background: linear-gradient(135deg, var(--accent), #ffd873); }
.action-btn.secondary { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.promo-orb { width: 118px; height: 118px; border-radius: 28px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), transparent 18%), radial-gradient(circle at 70% 70%, rgba(16, 209, 182, 0.22), transparent 30%), linear-gradient(145deg, rgba(255, 180, 0, 0.85), rgba(23, 59, 97, 0.18)); transform: rotate(12deg); }
.notice-card { display: flex; align-items: center; gap: 12px; }
.feed-status-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.feed-status-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}
.feed-status-item strong {
  color: var(--text);
  font-size: 0.82rem;
}
.feed-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
}
.feed-dot.is-online { background: var(--green); box-shadow: 0 0 0 4px rgba(17, 209, 141, 0.14); }
.feed-dot.is-offline { background: var(--muted); box-shadow: 0 0 0 4px rgba(127, 147, 181, 0.12); }
.feed-dot.is-error { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 82, 109, 0.12); }
.notice-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 180, 0, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}
.feature-grid { padding: 14px; }
.feature-grid-item { display: grid; justify-items: center; gap: 8px; padding: 10px 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.feature-grid-item span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 180, 0, 0.12); color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.feature-grid-item strong { font-size: 0.74rem; font-weight: 600; text-align: center; }
.hot-pair-card { min-height: 132px; display: grid; gap: 10px; background: linear-gradient(180deg, rgba(24, 35, 56, 0.98), rgba(13, 19, 32, 0.98)); }
.hot-pair-card .table-value { font-size: 1rem; font-weight: 700; }
.market-list, .watchlist-list, .activity-list, .settings-list { display: grid; gap: 10px; }
.diagnostic-list { display: grid; gap: 10px; margin-top: 12px; }
.diagnostic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.diagnostic-pill {
  min-width: 88px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.diagnostic-pill.success { background: rgba(17, 209, 141, 0.14); color: var(--green); }
.diagnostic-pill.error { background: rgba(255, 82, 109, 0.14); color: var(--red); }
.market-row, .watch-row, .activity-row, .settings-row { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.04); }
.market-row { grid-template-columns: 1fr auto; }
.watch-row { grid-template-columns: 1fr auto; }
.activity-row, .settings-row { grid-template-columns: auto 1fr auto; align-items: center; }
.symbol-main, .profile-name, .balance-value, .trade-price { font-weight: 700; }
.symbol-main { font-size: 1rem; }
.symbol-sub, .table-sub, .detail-label, .trade-label { font-size: 0.82rem; }
.sparkline, .mini-sparkline { width: 104px; height: 42px; }
.list-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip-btn { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); }
.tabs-row .chip-btn { flex: 0 0 auto; }
.chip-btn.is-active { color: #0a101a; background: linear-gradient(135deg, var(--accent), #ffd56d); border-color: transparent; }

.trade-quote-card { padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(26, 37, 58, 0.98), rgba(17, 24, 38, 0.98)); border: 1px solid var(--line); }
.trade-hero-price { font-size: 2.2rem; font-weight: 700; color: #ff667d; margin: 4px 0; }
.trade-subline { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.trade-action-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.trade-action-bar .submit-btn { width: 100%; border-radius: 16px; font-size: 1rem; }
.trade-buy-btn { background: linear-gradient(135deg, #12d59a, #10bfb6); color: #04111b; }
.trade-sell-btn { background: linear-gradient(135deg, #ff5f77, #ff7854); color: #fff; }
.segment-card { padding: 10px; }
.segment-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.segment-tab {
  border: 0;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
}
.segment-tab.is-active { background: rgba(255, 180, 0, 0.12); color: var(--accent); }
.segment-pane.is-hidden { display: none; }

.chart-wrap { margin-top: 14px; height: 300px; border-radius: 18px; background: linear-gradient(transparent 95%, rgba(255,255,255,0.05) 95%), linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.05) 95%), linear-gradient(180deg, rgba(255, 180, 0, 0.08), rgba(255, 180, 0, 0.02)); background-size: 100% 56px, 60px 100%, auto; position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.chart-wrap.is-dragging { cursor: grabbing; }
.chart-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-inspector {
  position: absolute;
  inset: 12px 14px auto 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  pointer-events: none;
}
.chart-inspector strong { color: var(--text); font-size: 0.82rem; }
.chart-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chart-crosshair-x, .chart-crosshair-y {
  position: absolute;
  background: rgba(255, 255, 255, 0.24);
}
.chart-crosshair-x { top: 48px; bottom: 28px; width: 1px; transform: translateX(-0.5px); }
.chart-crosshair-y { left: 8px; right: 112px; height: 1px; transform: translateY(-0.5px); }
.chart-tooltip {
  position: absolute;
  min-width: 140px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9, 16, 29, 0.92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  color: var(--muted);
  transform: translate(8px, -100%);
}
.chart-tooltip strong { color: var(--text); }
.is-hidden { display: none !important; }
.chart-grid-line { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.chart-grid-line-vertical { stroke-opacity: 0.55; }
.chart-axis-label { fill: rgba(235, 243, 255, 0.92); font-size: 16px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.chart-price-line { stroke: rgba(255, 180, 0, 0.82); stroke-width: 1.5; stroke-dasharray: 4 6; }
.chart-price-tag { fill: #ffcb57; font-size: 17px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.candle-wick { stroke-width: 2.2; stroke-linecap: round; }
.candle-group.candle-up .candle-wick, .candle-group.candle-up .candle-body { stroke: #11d18d; fill: #11d18d; }
.candle-group.candle-down .candle-wick, .candle-group.candle-down .candle-body { stroke: #ff526d; fill: #ff526d; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); }
.detail-grid, .trade-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-value, .trade-stat-value { font-weight: 700; font-size: 1.04rem; }
.trade-page { padding-bottom: 18px; }
.trade-dock {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 92px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.binary-dock-btn { min-height: 56px; border-radius: 16px; font-size: 1.12rem; }
.binary-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 156px;
  z-index: 6;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(25, 35, 57, 0.98), rgba(16, 24, 40, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(112%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.binary-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.binary-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.binary-sheet-header strong { font-size: 1.08rem; }
.binary-close-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  cursor: pointer;
}
.binary-section-title {
  margin: 12px 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.binary-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.binary-chip, .binary-stake-btn {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
}
.binary-chip {
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}
.binary-chip strong { font-size: 0.95rem; }
.binary-chip span { font-size: 0.75rem; color: var(--teal); }
.binary-chip.is-active, .binary-stake-btn.is-active {
  border-color: var(--accent);
  background: rgba(255, 180, 0, 0.12);
}
.binary-stake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.binary-stake-btn {
  min-height: 46px;
  font-weight: 700;
}
.binary-max-btn {
  grid-column: 1 / -1;
}
.binary-fee-note {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 180, 0, 0.1);
  color: #f2c35f;
  font-size: 0.78rem;
}
.binary-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 14px;
}
.binary-balance-row strong { font-size: 1rem; }
.binary-preview-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.binary-preview-head, .binary-preview-body, .binary-position-head, .binary-position-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.binary-preview-head, .binary-position-head {
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.binary-preview-body, .binary-position-row {
  font-size: 0.78rem;
}
.binary-position-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.binary-empty {
  color: var(--muted);
  padding: 8px 0;
}
.binary-status-note {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}
.binary-status-note.is-success {
  background: rgba(17, 209, 141, 0.12);
  color: var(--green);
}
.binary-status-note.is-error {
  background: rgba(255, 82, 109, 0.12);
  color: var(--red);
}
.binary-confirm-btn {
  margin-top: 14px;
  min-height: 56px;
}
.trade-bottom-space { height: 14px; }
.order-segment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,0.04); margin-bottom: 16px; }
.trade-summary { display: grid; gap: 12px; margin: 18px 0; }
.trade-summary-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.trade-summary-row strong { color: var(--text); }
.balance-card { min-height: 210px; background: radial-gradient(circle at top right, rgba(255, 180, 0, 0.18), transparent 25%), linear-gradient(160deg, #16335d 0%, #112039 70%, #0d1728 100%); }
.balance-value { margin: 12px 0 6px; font-size: 2.2rem; }
.asset-actions { display: flex; gap: 10px; margin-top: 16px; }
.asset-actions .action-btn { flex: 1; }
.table-card { margin-top: 2px; }
.table-row { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.table-row:last-child { border-bottom: 0; }
.profile-summary { text-align: center; background: radial-gradient(circle at top right, rgba(255, 180, 0, 0.16), transparent 24%), linear-gradient(180deg, #17345d 0%, #0f1b2f 100%); }
.profile-avatar { width: 84px; height: 84px; margin: 4px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.65rem; font-weight: 700; color: #07111d; background: linear-gradient(135deg, var(--accent), #ffe08d); }
.profile-balance { margin-top: 16px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.profile-balance strong { display: block; font-size: 1.8rem; margin-top: 8px; }
.profile-actions, .settings-card { display: grid; gap: 10px; }
.settings-row { border-radius: 16px; }
.side-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 180, 0, 0.12); color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.mobile-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(9, 17, 30, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}
.nav-icon { width: 100%; min-height: 58px; border-radius: 16px; display: grid; gap: 4px; align-content: center; justify-items: center; font-size: 0.74rem; color: var(--muted); }
.nav-icon.is-active { color: var(--accent); background: rgba(255, 180, 0, 0.1); }
.nav-icon strong { font-size: 0.72rem; }
.is-hidden { display: none; }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { padding: 20px; }
  .app-shell { padding: 0; }
  .content { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; border: 0; box-shadow: none; padding: 18px 16px 14px; }
}

@media (max-width: 760px) {
  .topbar-tools .pill-btn { display: none; }
  .hero-banner { grid-template-columns: 1fr; }
  .promo-orb { width: 92px; height: 92px; }
  .meta-row { flex-direction: column; align-items: stretch; }
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .hot-pair-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-status-card { grid-template-columns: 1fr; }
  .trade-dock { left: 12px; right: 12px; bottom: 88px; }
  .binary-sheet { left: 8px; right: 8px; bottom: 150px; }
  .binary-choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
