:root {
  --bg: #070b14;
  --bg-2: #0d1622;
  --surface: #111c2c;
  --surface-2: #16263a;
  --ink: #e8f0fb;
  --ink-2: #aebfd4;
  --ink-3: #6f819a;
  --line: #1e2e44;
  --brand: #1ea7fd;
  --brand-d: #0b6fc2;
  --accent: #ff7a00;
  --accent-d: #e36400;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --bad: #ff5a52;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 167, 253, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 122, 0, 0.10), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.section { padding: 38px 20px; }

/* ---------- top nav ---------- */
.nav {
  background: rgba(10, 17, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.nav .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: .6px; color: #fff; }
.nav .logo:hover { text-decoration: none; }
.nav .logo .logo-mark { width: 30px; height: 30px; display: inline-flex; flex: none; }
.nav .logo .logo-mark svg { width: 100%; height: 100%; display: block; border-radius: 8px; }
.nav .logo .logo-word { color: #fff; }
.nav .logo .logo-reg { font-size: 9px; line-height: 1; align-self: flex-start; margin-top: 2px; color: var(--ink-3); }
.nav .search {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.nav .search input {
  border: 0; background: transparent; color: var(--ink); outline: none; width: 170px; font-size: 13px;
}
.nav .search input::placeholder { color: var(--ink-3); }
.nav .search svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.nav .links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.nav .links a:hover, .nav .links a.active { color: #fff; text-decoration: none; }
.nav .links a.active { color: var(--brand); }
.cart-count {
  display: none; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  background: var(--accent); color: #1a1205; border-radius: 999px; font-size: 11px; font-weight: 800;
  text-align: center; line-height: 18px; vertical-align: middle;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; cursor: pointer; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid var(--brand); background: var(--brand); color: #04121f;
  font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(30, 167, 253, 0.35); transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.btn--accent:hover { box-shadow: 0 8px 24px rgba(255, 122, 0, 0.35); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: #fff; box-shadow: none; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 75% 20%, rgba(30, 167, 253, 0.20), transparent 60%),
    linear-gradient(180deg, #0a1322, #070b14);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 64px 20px 72px; }
.hero h1 {
  font-size: 44px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.5px;
  background: linear-gradient(90deg, #fff 10%, #9fd6ff 60%, #ffb066 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 540px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 26px; margin-top: 34px; }
.hero .stats .n { font-size: 26px; font-weight: 800; color: #fff; }
.hero .stats .l { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }
.hero-art { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.hero-art .grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(30,167,253,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(30,167,253,.08) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.hero-prod { position: relative; width: 100%; max-width: 470px; display: flex; align-items: center; justify-content: center; }
.hero-prod img { width: 100%; height: auto; border-radius: 16px; filter: drop-shadow(0 24px 46px rgba(255,122,0,.28)); }
.hero-prod img:not([hidden]) { display: block; }
.hero-fallback { width: 100%; }
.hero-art svg { position: relative; width: 100%; max-width: 470px; filter: drop-shadow(0 22px 44px rgba(255,122,0,.28)); }
.hero-chips { position: absolute; top: 4%; right: -6px; display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; z-index: 2; }
.hero-chips li { display: flex; align-items: center; gap: 8px; white-space: nowrap; background: rgba(17,28,44,.94); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 999px; padding: 7px 15px 7px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.hero-chips .ci { color: var(--accent); font-size: 14px; }

/* ---------- section heading ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 26px; margin: 0; color: #fff; }
.sec-head p { margin: 4px 0 0; color: var(--ink-3); }

/* ---------- value props ---------- */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prop {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.prop:hover { border-color: var(--brand); transform: translateY(-3px); }
.prop .ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(30,167,253,.14); color: var(--brand); margin-bottom: 12px; font-size: 20px; }
.prop h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.prop p { margin: 0; color: var(--ink-3); font-size: 14px; }

/* ---------- brand tiles ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 10px; text-align: center; color: var(--ink); font-weight: 700; font-size: 13px;
  transition: border-color .2s ease, transform .2s ease;
}
.brand-tile:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); color: #fff; }
.brand-tile .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.brand-tile small { display: block; color: var(--ink-3); font-weight: 500; margin-top: 4px; }

/* ---------- product layout (sidebar + grid) ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.sidebar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  position: sticky; top: 82px;
}
.sidebar h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); margin: 0 0 12px; }
.filter-group { margin-bottom: 18px; }
.filter-group > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.filter-group select, .filter-group input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; padding: 9px 10px; font-size: 13px; outline: none;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; cursor: pointer; user-select: none;
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #04121f; font-weight: 700; }

/* ---------- product grid + cards ---------- */
.grid.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { height: 168px; background: linear-gradient(180deg, #0c1726, #0a1320); display: flex; align-items: center; justify-content: center; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .batt-svg { width: 86%; height: 86%; }
.card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  background: rgba(30,167,253,.14); color: var(--brand); border: 1px solid rgba(30,167,253,.3); border-radius: 999px; padding: 3px 10px; }
.card .name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.card .meta { font-size: 12px; color: var(--ink-3); }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.card .price { font-size: 18px; font-weight: 800; color: #fff; }
.card .price small { font-size: 11px; color: var(--ink-3); font-weight: 500; display: block; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 50px 0; }

.loading { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* ---------- detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.detail-media { background: linear-gradient(180deg, #0c1726, #0a1320); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-media .batt-svg, .detail-media img { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.detail-info h1 { font-size: 26px; margin: 0 0 6px; color: #fff; }
.detail-info .sub { color: var(--ink-3); margin-bottom: 16px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.spec .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.spec .box .k { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; }
.spec .box .v { font-size: 18px; font-weight: 800; color: #fff; margin-top: 3px; }
.detail-info .price-lg { font-size: 30px; font-weight: 800; color: #fff; margin: 8px 0; }
.detail-info .desc { color: var(--ink-2); }
.note-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); font-size: 13px; margin: 14px 0; line-height: 1.6; }
.add-row { display: flex; gap: 12px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.panel h2 { color: #fff; margin: 0 0 14px; font-size: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 46px; text-align: center; border: 0; background: var(--bg-2); color: #fff; font-size: 14px; height: 34px; outline: none; }

/* ---------- forms ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 12px; font-size: 14px; outline: none; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-table th { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.cart-table .thumb-sm { width: 56px; height: 44px; border-radius: 8px; background: #0c1726; border: 1px solid var(--line); overflow: hidden; vertical-align: middle; }
.cart-table .thumb-sm .batt-svg { width: 100%; height: 100%; }
.cart-summary { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cart-summary .line { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 8px; }
.cart-summary .total { font-size: 20px; font-weight: 800; color: #fff; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.auth-card .sub { color: var(--ink-3); margin: 0 0 18px; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); padding: 9px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; }
.tabs button.active { background: var(--brand); border-color: var(--brand); color: #04121f; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #060a12; margin-top: 50px; }
.footer .wrap { padding: 36px 20px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.footer p { margin: 4px 0; color: var(--ink-3); font-size: 14px; }
.footer .legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; line-height: 1.7; }

/* ---------- toast ---------- */
#app-toast { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: all .22s ease; max-width: 320px; }
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast--ok { border-left-color: var(--ok); }
.toast--bad { border-left-color: var(--bad); }

/* ---------- back link ---------- */
.back { display: inline-block; margin-bottom: 18px; color: var(--ink-2); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; margin-top: 6px; }
  .hero-chips { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; margin: 16px 0 0; }
  .props { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid.products { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav .links { display: none; position: absolute; top: 62px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: rgba(10,17,28,.98); border-bottom: 1px solid var(--line); padding: 8px 20px 14px; }
  .nav.is-open .links { display: flex; }
  .nav .links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav .search { display: none; }
  .hero h1 { font-size: 32px; }
  .props, .brands, .grid.products { grid-template-columns: 1fr 1fr; }
  .form-2 { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN BACKEND
============================================================ */
.admin-tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.admin-nav { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-nav button { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; }
.admin-nav button.active { background: var(--brand); border-color: var(--brand); color: #04121f; }
.admin-nav .badge { margin-left: 6px; }

.badge { display: inline-block; font-size: 11px; font-weight: 800; background: var(--accent); color: #1a1205; border-radius: 999px; padding: 2px 9px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .4px; }
.tag--pub, .tag--new { background: rgba(46, 204, 113, .16); color: var(--ok); border: 1px solid rgba(46, 204, 113, .4); }
.tag--draft { background: rgba(111, 129, 154, .16); color: var(--ink-2); border: 1px solid var(--line); }
.tag--replied { background: rgba(30, 167, 253, .16); color: var(--brand); border: 1px solid rgba(30, 167, 253, .4); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-cards--sm { grid-template-columns: repeat(3, 1fr); max-width: 520px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.stat .lbl { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input, .toolbar select { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; min-width: 150px; }
.toolbar input#prodSearch { flex: 1; min-width: 200px; }
.toolbar .spacer { flex: 1; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.table th { color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; background: var(--bg-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .nowrap { white-space: nowrap; }
.thumb-cell { width: 64px; }
.thumb-cell img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb-cell .batt-svg { width: 48px; height: 48px; }

.prod-groups { display: flex; flex-direction: column; gap: 16px; }
.prod-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prod-group-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.prod-group-head h3 { margin: 0; font-size: 17px; color: #fff; }
.prod-group-head .muted { color: var(--ink-3); }
.cg-toggle { color: var(--brand); font-size: 13px; transition: transform .15s ease; }
.prod-group.collapsed .cg-toggle { transform: rotate(-90deg); }
.prod-group.collapsed .prod-group-body { display: none; }
.prod-group-body { padding: 4px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cat-box h3 { margin: 0 0 14px; font-size: 16px; color: #fff; }
.cat-add { display: flex; gap: 8px; margin-bottom: 14px; }
.cat-add input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: 9px 10px; font-size: 14px; outline: none; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.cat-list li { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 14px; }
.cat-list li .link-btn { font-size: 12px; }

.inq-list { display: flex; flex-direction: column; gap: 14px; }
.inq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.inq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inq-head strong { color: #fff; font-size: 15px; }
.inq-msg { margin: 12px 0; color: var(--ink); font-size: 14px; white-space: pre-wrap; }
.inq-items { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.inq-item { font-size: 13px; padding: 3px 0; }
.inq-reply { background: rgba(30, 167, 253, .08); border-left: 3px solid var(--brand); padding: 8px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.inq-reply-input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; min-height: 70px; resize: vertical; font-family: inherit; margin-bottom: 10px; }
.inq-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.modal-bg { position: fixed; inset: 0; background: rgba(4, 9, 16, .72); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 300; overflow: auto; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 18px; color: #fff; font-size: 20px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.cover-preview { margin-bottom: 12px; }
.cover-preview img { border-radius: 10px; border: 1px solid var(--line); }
.cover-preview .muted { font-size: 13px; }
