﻿:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0f172a;
  --brand-2: #0b6b6f;
  --accent: #f97316;
  --accent-2: #0ea5e9;
  --danger: #b91c1c;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter','Segoe UI','Helvetica Neue',Arial,sans-serif; background: var(--bg); color: var(--text); }
.topbar { height: 56px; padding: 0 16px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; letter-spacing: 1px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 56px); }
.sidebar { background: #0b1221; color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 56px; height: calc(100vh - 56px); }
.nav-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.nav-item:hover { background: rgba(255,255,255,0.08); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: 0 8px 18px rgba(0,0,0,0.2); }
.content { padding: 16px; }
.panel { display: block; }
.panel.hidden { display: none; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(15,23,42,0.16); }
.form-card { display: flex; flex-direction: column; gap: 10px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; background: #f8fafc; }
input:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(11,107,111,0.15); }
.btn { border: none; cursor: pointer; border-radius: 10px; padding: 10px 14px; font-weight: 600; transition: transform .1s ease, box-shadow .2s ease, opacity .2s ease; }
.btn.primary { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; box-shadow: 0 10px 20px rgba(11,107,111,0.25); }
.btn.ghost { background: #e2e8f0; color: var(--text); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.btn:active { opacity: .9; transform: translateY(0); }
.pill { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; font-size: 12px; }
.pill.muted { background: rgba(255,255,255,0.2); }
.muted { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 26px; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { background: #f1f5f9; color: var(--muted); position: sticky; top: 0; z-index: 1; }
.table tr:nth-child(2n) td { background: #fafbff; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.addr-actions { display: flex; gap: 8px; }
.market-actions { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.banner-strip { display: flex; gap: 10px; overflow-x: auto; }
.banner-strip .chip { padding: 10px; border-radius: 10px; background: #0b1221; color: #fff; white-space: nowrap; }
.grid.market { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.market .card { padding: 12px; }
.tag { padding: 4px 8px; border-radius: 8px; font-size: 12px; }
.tag.up { background: #dcfce7; color: #15803d; }
.tag.down { background: #fee2e2; color: var(--danger); }
.tag.flat { background: #e2e8f0; color: var(--muted); }
.hidden { display: none; }
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal__mask { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); }
.modal__content { position: relative; width: min(420px, 90%); z-index: 1; box-shadow: var(--shadow); border-radius: 16px; }
.tabs { display: flex; margin-bottom: 10px; gap: 6px; }
.tab { flex: 1; border: 1px solid var(--border); background: #f1f5f9; padding: 8px; border-radius: 8px; cursor: pointer; transition: all .2s ease; }
.tab.active { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; border: none; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; position: static; height: auto; }
  .nav-item { flex: 1 1 45%; text-align: center; }
}
