/* ═══════════════════════════════════════════════════════════════════════════
   ORCA AI — Bloomberg Terminal Style
   Indian Equities Dashboard
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --panel: #111111;
  --border: #222222;
  --border-bright: #333333;
  --text: #cccccc;
  --text-bright: #ffffff;
  --text-dim: #666666;
  --text-label: #888888;
  --green: #00c853;
  --green-dim: #005c26;
  --red: #ff3d3d;
  --red-dim: #5c1515;
  --yellow: #ffcc00;
  --yellow-dim: #3d3100;
  --orange: #ff8c00;
  --blue: #4da6ff;
  --cyan: #00e5ff;
  --magenta: #ff66ff;
  --amber: #ffa726;
  --highlight-row: #1a1a00;
  --tab-active: #cc7a00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'JetBrains Mono', 'Consolas', 'SF Mono', monospace;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }

/* SCROLLBARS — thin terminal style */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── TOP BAR ──────────────────────────────────────────────────────────────── */
nav {
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 36px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 11px;
}

.nav-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-brand span { color: var(--text-dim); font-weight: 400; font-size: 10px; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  color: var(--text-label);
  font-size: 10px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-bright); background: #1a1a1a; text-decoration: none; }
.nav-links a.active {
  color: #000;
  background: var(--tab-active);
  border-color: var(--tab-active);
  font-weight: 700;
}

/* ── SEARCH ───────────────────────────────────────────────────────────────── */
.search-wrap { position: relative; flex: 1; max-width: 360px; }
.search-wrap input {
  width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  background: #050505;
  color: var(--yellow);
}
.search-wrap input:focus { border-color: var(--orange); }
.search-wrap input::placeholder { color: var(--text-dim); }

#search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid var(--orange);
  z-index: 999;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}
.search-item {
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text);
  border-bottom: 1px solid #1a1a1a;
}
.search-item:hover { background: var(--highlight-row); }
.search-item .si-sym { font-weight: 700; color: var(--yellow); }
.search-item .si-exch { font-size: 10px; color: var(--text-dim); }
.search-no-auth { padding: 8px 10px; color: var(--text-dim); font-size: 11px; }
.search-no-auth a { color: var(--orange); font-weight: 600; }

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 8px; }

.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 12px;
  margin-bottom: 4px;
}
.page-header h1 {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-header p { color: var(--text-dim); font-size: 11px; margin-top: 2px; }

/* ── PANELS (replace cards) ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 4px;
  box-shadow: none;
}
.card-header {
  padding: 4px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0d0d;
}
.card-header h2 {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-body { padding: 8px 10px; }

/* ── COMPANY GRID ─────────────────────────────────────────────────────────── */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4px;
  padding: 4px 0;
}
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.1s;
  box-shadow: none;
}
.company-card:hover { border-color: var(--orange); background: #0d0d0d; }
.company-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.company-card-name { font-size: 12px; font-weight: 700; color: var(--text-bright); }
.company-card-sector {
  font-size: 9px;
  color: var(--text-dim);
  background: #1a1a1a;
  padding: 1px 6px;
  margin-top: 2px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.company-card-price { text-align: right; }
.company-card-price .price { font-size: 16px; font-weight: 700; color: var(--text-bright); }
.company-card-price .change { font-size: 11px; margin-top: 1px; }

.pos { color: var(--green); }
.neg { color: var(--red); }

.ratios-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.ratio-item label {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ratio-item span { font-size: 11px; font-weight: 600; color: var(--text); }

/* ── TABLES — Bloomberg dense style ───────────────────────────────────────── */
.fin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.fin-table th {
  background: #111;
  padding: 3px 8px;
  text-align: right;
  font-weight: 600;
  color: var(--text-label);
  font-size: 10px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-bright);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.fin-table th:first-child { text-align: left; min-width: 160px; }
.fin-table td {
  padding: 2px 8px;
  text-align: right;
  border-bottom: 1px solid #1a1a1a;
  white-space: nowrap;
  color: var(--text);
}
.fin-table td:first-child { text-align: left; font-weight: 500; color: var(--text-label); }
.fin-table tr:last-child td { border-bottom: none; }
.fin-table tr:hover td { background: var(--highlight-row); }
.fin-table .highlight td {
  background: var(--green-dim);
  font-weight: 700;
  color: var(--green);
}
.fin-table .section-label td {
  background: #111;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  padding: 4px 8px;
}
.table-scroll { overflow-x: auto; }

/* ── COMPANY HERO — Bloomberg ticker bar ──────────────────────────────────── */
.company-hero {
  background: var(--surface);
  border-bottom: 2px solid var(--orange);
  padding: 6px 0;
  margin-bottom: 4px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-name h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
}
.hero-name .subtitle { color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.hero-price-box { text-align: right; }
.hero-price { font-size: 28px; font-weight: 700; color: var(--text-bright); }
.hero-change { font-size: 13px; margin-top: 2px; }

.key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.metric-item { background: var(--surface); padding: 4px 8px; }
.metric-item label {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.metric-item span { font-size: 12px; font-weight: 700; color: var(--text-bright); }

/* ── TABS — Bloomberg orange tab bar ──────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  gap: 0;
  background: #0a0a0a;
}
.tab-btn {
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-label);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tab-btn:hover { color: var(--text-bright); background: #111; }
.tab-btn.active {
  color: #000;
  background: var(--tab-active);
  border-color: var(--tab-active);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── CHARTS ───────────────────────────────────────────────────────────────── */
.chart-wrap { position: relative; height: 200px; }

/* ── BADGES — terminal colored tags ───────────────────────────────────────── */
.badge { display: inline-block; padding: 0 4px; font-size: 10px; font-weight: 700; }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-blue { background: #0a1a2e; color: var(--blue); }

/* ── FILTER BAR ───────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 10px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-bar label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.filter-bar select, .filter-bar input {
  border: 1px solid var(--border);
  padding: 3px 6px;
  font-size: 11px;
  font-family: inherit;
  background: #050505;
  color: var(--yellow);
}
.filter-bar button {
  background: var(--orange);
  color: #000;
  border: none;
  padding: 4px 12px;
  font-size: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-bar button:hover { background: var(--yellow); }

/* ── COMPARE TABLE ────────────────────────────────────────────────────────── */
.compare-table th { text-align: center; }
.compare-table td { text-align: center; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; }

/* ── LOADING ──────────────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.loading .spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CHATBOT PANEL ────────────────────────────────────────────────────────── */
.chat-panel {
  position: fixed;
  right: 0;
  top: 36px;
  bottom: 0;
  width: 340px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: width 0.2s, min-width 0.2s;
}
.chat-panel.collapsed { width: 32px; min-width: 32px; overflow: hidden; }
.chat-panel.collapsed .chat-body { display: none; }
.chat-panel.collapsed .chat-title { display: none; }
.chat-panel.collapsed .chat-status { display: none; }

.chat-header {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0d0d;
  flex-shrink: 0;
}
.chat-title { font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; }
.chat-status { font-size: 9px; color: var(--green); }
.chat-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 6px;
  font-family: inherit;
}
.chat-toggle:hover { color: var(--orange); border-color: var(--orange); }

.chat-body { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.chat-msg { margin-bottom: 8px; }
.chat-msg.user .chat-msg-text {
  background: #1a1a00;
  border: 1px solid #333300;
  color: var(--yellow);
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.5;
}
.chat-msg.assistant .chat-msg-text {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.5;
}
.chat-msg-text code { background: #1a1a1a; padding: 1px 4px; color: var(--cyan); font-size: 10px; }

.chat-input-wrap {
  display: flex;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-wrap textarea {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: #050505;
  color: var(--yellow);
  font-family: inherit;
  font-size: 11px;
  resize: none;
  outline: none;
}
.chat-input-wrap button {
  padding: 0 12px;
  background: var(--orange);
  color: #000;
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}
.chat-input-wrap button:disabled { background: #333; color: #666; }

.chat-quick-actions {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-quick-actions button {
  flex: 1;
  padding: 3px 2px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 9px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-quick-actions button:hover { border-color: var(--orange); color: var(--text); }

/* Push main content left when chat is open */
body:has(.chat-panel:not(.collapsed)) .container { margin-right: 340px; }
body:has(.chat-panel:not(.collapsed)) nav { padding-right: 352px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .company-grid { grid-template-columns: 1fr; }
  .key-metrics { grid-template-columns: repeat(3, 1fr); }
  .hero-top { flex-direction: column; }
  .hero-price-box { text-align: left; }
  nav { padding: 0 6px; gap: 8px; }
  .container { padding: 0 4px; }
  .order-modal { min-width: 90vw; }
}

/* ── MAIN LAYOUT (content + depth panel) ──────────────────────────────────── */
.main-layout {
  display: flex;
  min-height: calc(100vh - 36px);
}
.main-content { flex: 1; min-width: 0; }

/* ── DEPTH PANEL ─────────────────────────────────────────────────────────── */
.depth-panel {
  width: 320px;
  min-width: 320px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width 0.2s, min-width 0.2s;
}
.depth-panel.collapsed { width: 28px; min-width: 28px; overflow: hidden; }
.depth-panel.collapsed .depth-body { display: none; }

.depth-header {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0d0d;
}
.depth-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.depth-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 6px;
  font-family: inherit;
}
.depth-toggle:hover { color: var(--orange); border-color: var(--orange); }

.depth-body { padding: 6px 8px; flex: 1; }

/* Depth search */
.depth-search-wrap { position: relative; margin-bottom: 6px; }
.depth-search-wrap input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: inherit;
  background: #050505;
  color: var(--yellow);
  outline: none;
}
.depth-search-wrap input:focus { border-color: var(--orange); }
.depth-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid var(--orange);
  z-index: 999;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}
.depth-dd-item {
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid #1a1a1a;
}
.depth-dd-item:hover { background: var(--highlight-row); }

/* Depth stock header */
.depth-stock-header {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.depth-sym {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.5px;
}
.depth-ltp-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.depth-ltp {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  transition: color 0.3s;
}
.depth-ltp.flash { color: var(--orange); }
.depth-change { font-size: 12px; font-weight: 600; }
.depth-meta { font-size: 10px; color: var(--text-dim); margin-top: 2px; display: flex; gap: 12px; }

/* Depth table */
.depth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-bottom: 4px;
}
.depth-table th {
  padding: 2px 4px;
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-bright);
}
.depth-bid-hdr { color: var(--green) !important; }
.depth-ask-hdr { color: var(--red) !important; }
.depth-table td { padding: 2px 4px; white-space: nowrap; }
.depth-bid-cell { text-align: right; color: var(--text); }
.depth-bid-price {
  text-align: right;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  padding-right: 6px !important;
}
.depth-bid-price:hover { text-decoration: underline; }
.depth-ask-price {
  text-align: left;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  padding-left: 6px !important;
}
.depth-ask-price:hover { text-decoration: underline; }
.depth-ask-cell { text-align: left; color: var(--text); }

.depth-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.depth-bid-cell .depth-bar-wrap { justify-content: flex-end; }
.depth-ask-cell .depth-bar-wrap { justify-content: flex-start; }
.depth-bar {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0.2;
}
.bid-bar { background: var(--green); right: 0; }
.ask-bar { background: var(--red); left: 0; }
.depth-bar-wrap span { position: relative; z-index: 1; }

.depth-totals td {
  font-weight: 700;
  font-size: 10px;
  padding: 3px 4px;
  border-top: 1px solid var(--border-bright);
}

/* Buy/sell ratio bar */
.depth-ratio-bar {
  display: flex;
  height: 4px;
  margin: 4px 0 8px;
  border-radius: 2px;
  overflow: hidden;
}
.depth-ratio-buy { background: var(--green); transition: width 0.3s; }
.depth-ratio-sell { background: var(--red); transition: width 0.3s; }

/* Connection status */
.depth-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  margin-top: auto;
  font-size: 10px;
  color: var(--text-dim);
}
.depth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}
.depth-dot.connected { background: var(--green); }
.depth-dot.disconnected { background: var(--red); }

/* ── ORDER FORM ──────────────────────────────────────────────────────────── */
.order-form {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.order-form-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.order-side-btns {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.order-btn-buy, .order-btn-sell {
  flex: 1;
  padding: 6px 0;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #0a0a0a;
  color: var(--text-dim);
}
.order-btn-buy:hover, .order-btn-buy.active {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green);
}
.order-btn-sell:hover, .order-btn-sell.active {
  background: var(--red-dim);
  color: var(--red);
  border-color: var(--red);
}

.order-fields { display: flex; flex-direction: column; gap: 4px; }
.order-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-row label {
  width: 50px;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  flex-shrink: 0;
}
.order-row input, .order-row select {
  flex: 1;
  padding: 3px 6px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: inherit;
  background: #050505;
  color: var(--yellow);
  outline: none;
}
.order-row input:focus, .order-row select:focus { border-color: var(--orange); }

.order-submit {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.order-submit:hover { background: var(--yellow); }
.order-submit:disabled { background: #333; color: #666; border-color: #333; cursor: not-allowed; }

/* ── ORDER CONFIRMATION MODAL ────────────────────────────────────────────── */
.order-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.order-modal {
  background: #111;
  border: 1px solid var(--orange);
  padding: 16px;
  min-width: 300px;
  max-width: 400px;
}
.order-modal-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}
.order-confirm-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-confirm-grid > div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid #1a1a1a;
}
.ocl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.ocv { font-size: 12px; font-weight: 700; color: var(--text-bright); }

.order-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.order-modal-cancel {
  flex: 1;
  padding: 6px 0;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
}
.order-modal-cancel:hover { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.order-modal-confirm {
  flex: 1;
  padding: 6px 0;
  border: 1px solid var(--green);
  background: var(--green-dim);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
}
.order-modal-confirm:hover { background: var(--green); color: #000; }

/* ── ORDER TOAST ─────────────────────────────────────────────────────────── */
.order-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  border: 1px solid var(--orange);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  z-index: 10001;
  animation: toastSlide 0.3s ease-out;
}
@keyframes toastSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── RESPONSIVE — depth panel collapses to bottom on mobile ──────────────── */
@media (max-width: 768px) {
  .main-layout { flex-direction: column; }
  .depth-panel {
    width: 100% !important;
    min-width: 100% !important;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 50vh;
  }
  .depth-panel.collapsed { max-height: 28px; }
}

/* ── UTILS ────────────────────────────────────────────────────────────────── */
.text-right { text-align: right; }
.text-muted { color: var(--text-dim); }
.mt-4 { margin-top: 8px; }
.mb-4 { margin-bottom: 8px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 4px; }
.small { font-size: 10px; }
.note { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
