/* fanyong customer console: compact operational UI */
:root {
  --bg:#0b1018; --panel:#111a26; --panel-soft:#0f1722; --line:#263447;
  --text:#e7edf5; --muted:#8291a6; --green:#22d3a6; --blue:#78aefc;
  --danger:#ff7d8a; --amber:#f3c66a; --shadow:0 18px 48px rgba(0,0,0,.18);
}
body { background:var(--bg); }
body.light-theme { --bg:#f4f7fb; --panel:#fff; --panel-soft:#f8fafc; --line:#d9e1eb; --text:#152234; --muted:#617188; --green:#078e70; --blue:#246dcc; --shadow:0 12px 32px rgba(23,46,75,.09); }
.app.show { grid-template-columns:236px minmax(0,1fr); background:var(--bg); }
.sidebar { background:var(--panel-soft); border-right:1px solid var(--line); }
.sidebar-brand { height:68px; padding:18px 22px; border-bottom:1px solid var(--line); }
.sidebar-brand .logo { border-radius:7px; }
.sidebar-menu { padding:18px 10px; gap:3px; }
.sidebar-group-label { padding:12px 14px 8px; color:var(--muted); font-size:10px; letter-spacing:.12em; }
.sidebar-btn { min-height:42px; padding:0 14px; border-left-width:2px; border-radius:5px; font-size:13px; }
.sidebar-btn.active { background:rgba(34,211,166,.1); }
.nav-index { width:22px; color:var(--muted); font:700 10px ui-monospace,monospace; }
.sidebar-footer { padding:15px 14px; }
.support-line { color:var(--text); font-size:12px; font-weight:700; }
.support-note { margin-top:5px; color:var(--muted); font-size:10px; line-height:1.5; }
.main { width:100%; max-width:none; padding:0 42px 52px; }
.topbar { min-height:68px; margin:0 -42px 34px; padding:0 42px; border-bottom:1px solid var(--line); gap:18px; }
.announcement-trigger, .icon-action { border:0; background:transparent; color:var(--text); cursor:pointer; font:700 12px inherit; }
.announcement-trigger span { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:4px; border-radius:9px; background:rgba(34,211,166,.14); color:var(--green); font-size:10px; }
.market-strip { min-width:0; max-width:100%; height:38px; display:flex; align-items:center; gap:6px; flex:1 1 auto; overflow-x:auto; scrollbar-width:none; padding:5px 9px; border:1px solid var(--line); border-radius:12px; background:rgba(17,26,38,.72); white-space:nowrap; font:11px ui-monospace,SFMono-Regular,Menlo,monospace; }
.market-strip::-webkit-scrollbar { display:none; }
.market-rate { min-width:0; display:inline-flex; align-items:center; gap:4px; flex:0 0 auto; padding-right:7px; border-right:1px solid rgba(255,255,255,.08); }
.market-rate img { width:17px; height:17px; flex:0 0 auto; border-radius:50%; object-fit:cover; }
.market-rate b { color:#9db0c6; font-size:10px; font-weight:800; }
.market-price { font:800 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.market-rate[data-symbol="BNB"] .market-price { color:#f59e0b; }
.market-rate[data-symbol="SOL"] .market-price { color:#2dd4bf; }
.market-rate[data-symbol="ETH"] .market-price { color:#60a5fa; }
.market-rate[data-symbol="OKB"] .market-price { color:#c7d2e0; }
.market-rate[data-symbol="HYPE"] .market-price { color:#58e4dc; }
.market-strip small { flex:0 0 auto; color:#7f91a7; font:700 9px ui-monospace,SFMono-Regular,Menlo,monospace; }
.topbar-user { gap:10px; }
.ghost-btn.compact { min-height:32px; padding:0 10px; font-size:11px; }
.icon-action { width:30px; height:30px; color:var(--muted); font-size:18px; }
.mobile-menu-btn { display:none; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; }
.page-heading h1 { margin:5px 0 7px; font-size:26px; letter-spacing:0; }
.page-heading p { color:var(--muted); font-size:12px; }
.eyebrow, .section-kicker { color:var(--green); font:800 10px ui-monospace,monospace; letter-spacing:.1em; text-transform:uppercase; }
.instruction-grid, .submit-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.instruction-panel { padding:18px 20px; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow); }
.instruction-panel h2 { margin-bottom:14px; font-size:14px; }
.instruction-panel ol, .instruction-panel ul { margin:0; padding:0; list-style:none; color:var(--muted); font-size:12px; line-height:1.8; }
.instruction-panel li { display:flex; gap:10px; margin:8px 0; }
.instruction-panel ol span { display:inline-grid; place-items:center; flex:none; width:20px; height:20px; border:1px solid rgba(34,211,166,.35); border-radius:50%; color:var(--green); font:700 10px ui-monospace,monospace; }
.instruction-panel.attention { border-color:rgba(243,198,106,.26); }
.instruction-panel.attention h2 { color:var(--amber); }
.form-section { border-radius:5px; background:var(--panel); box-shadow:var(--shadow); }
.scan-history-section { margin-top:14px; }
.submit-panel, .whitelist-panel { min-height:205px; }
.submit-panel h3, .whitelist-panel h3 { margin:6px 0; font-size:16px; }
.helper-text { margin:0 0 14px; color:var(--muted); font-size:11px; line-height:1.6; }
.inline-controls { display:flex; gap:9px; margin-bottom:10px; }
.inline-controls select { flex:1; }
.form-field input, .form-field select, select, .form-section textarea, textarea { border-radius:4px; background:var(--panel-soft); border-color:var(--line); color:var(--text); }
.form-section textarea { width:100%; padding:11px 12px; resize:vertical; font:12px ui-monospace,monospace; outline:none; }
.form-section textarea:focus, select:focus, .form-field input:focus { border-color:var(--green); }
.section-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:14px; }
.section-toolbar h3 { margin:5px 0 0; font-size:15px; }
#addrCount { color:var(--muted); font-size:11px; font-weight:400; }
.stat-line { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:14px; color:var(--muted); font-size:11px; }
.table-wrap { border-radius:4px; background:var(--panel-soft); }
th { padding:11px 13px; font-size:10px; color:var(--muted); border-bottom-color:var(--line); }
td { padding:11px 13px; font-size:12px; border-bottom-color:rgba(128,145,166,.12); }
.empty-state { padding:30px 20px; text-align:center; color:var(--muted); }
.summary-metric { padding:15px 17px; border:1px solid var(--line); background:var(--panel); }
.summary-metric span { display:block; color:var(--muted); font-size:10px; margin-bottom:8px; }
.summary-metric strong { color:var(--text); font:700 14px ui-monospace,monospace; }
.summary-metric .text-green { color:var(--green); }
.chain-tabs { display:flex; gap:4px; margin-bottom:12px; border-bottom:1px solid var(--line); }
.chain-tabs button { padding:9px 18px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); cursor:pointer; font:700 12px inherit; }
.chain-tabs button.active { border-bottom-color:var(--green); color:var(--green); }
.faq-list { max-width:760px; }
.faq-list details { border-bottom:1px solid var(--line); padding:17px 0; }
.faq-list summary { cursor:pointer; color:var(--text); font-size:13px; font-weight:700; }
.faq-list p { padding:12px 22px 0 0; color:var(--muted); font-size:12px; line-height:1.8; }
.light-theme .sidebar, .light-theme .topbar { background:var(--panel); }
.light-theme .market-strip { background:rgba(248,250,252,.9); }
.light-theme .market-rate b { color:#53657b; }
.light-theme .market-rate[data-symbol="BNB"] .market-price { color:#d97706; }
.light-theme .market-rate[data-symbol="SOL"] .market-price { color:#0f9f8f; }
.light-theme .market-rate[data-symbol="ETH"] .market-price { color:#4f7de0; }
.light-theme .market-rate[data-symbol="OKB"] .market-price { color:#475569; }
.light-theme .market-rate[data-symbol="HYPE"] .market-price { color:#07877d; }
@media (max-width:1100px) { .main { padding-left:24px; padding-right:24px; } .topbar { margin-left:-24px; margin-right:-24px; padding-left:24px; padding-right:24px; } .market-strip { order:3; flex-basis:100%; } }
@media (max-width:768px) {
  .app.show { display:block; }
  .sidebar { position:fixed; left:-250px; width:236px; z-index:50; transition:left .2s; box-shadow:var(--shadow); }
  .sidebar.open { left:0; }
  .mobile-menu-btn { display:block; position:fixed; top:17px; left:16px; z-index:45; width:34px; height:34px; border:1px solid var(--line); border-radius:4px; background:var(--panel); color:var(--text); }
  .main { padding:0 15px 35px; }
  .topbar { min-height:68px; margin:0 -15px 25px; padding:0 15px 0 60px; flex-wrap:wrap; }
  .topbar-user .uid, .topbar-user .badge { display:none !important; }
  .topbar-user .compact { display:none; }
  .market-strip { order:3; flex-basis:100%; padding-bottom:9px; }
  .market-strip { gap:2px; padding:5px 4px; overflow:hidden; }
  .market-rate { min-width:0; flex:1 1 0; justify-content:center; gap:1px; padding-right:2px; }
  .market-rate img, .market-strip small { display:none; }
  .market-rate b { font-size:7.5px; }
  .market-price { font-size:8.5px; }
  .page-heading { margin-bottom:18px; }
  .page-heading h1 { font-size:22px; }
  .instruction-grid, .submit-grid { grid-template-columns:1fr; }
  .form-section { padding:17px; }
  .table-wrap { overflow-x:auto; }
  table { min-width:680px; }
}
