﻿/* OrderRelay design system â€” "warm, elevated, simple"
   Brand: warm orange on cream. Soft depth, rounded, calm. */

:root {
  --bg: #faf7f3;
  --bg-soft: #f3ede6;
  --card: #ffffff;
  --ink: #23201c;
  --muted: #8a8177;
  --line: #ece5dc;
  --line-strong: #ddd2c4;
  --brand: #d56b2c;
  --brand-d: #b4571f;
  --brand-soft: #fbeee3;
  --new: #e8462a;
  --green: #1a8f4c;
  --green-soft: #e6f6ec;
  --red: #c0392b;
  --red-soft: #fdecea;
  --amber: #9a6a00;
  --amber-soft: #fff3d6;
  --shadow-sm: 0 1px 2px rgba(60, 42, 24, .05), 0 2px 8px rgba(60, 42, 24, .04);
  --shadow-md: 0 2px 6px rgba(60, 42, 24, .06), 0 10px 28px rgba(60, 42, 24, .08);
  --r: 14px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
main { max-width: 1080px; margin: 0 auto; padding: 26px 20px 70px; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; font-weight: 700; }
h3 { letter-spacing: -.01em; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 14px; }
code { background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 22px; position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  padding: 8px 13px; border-radius: 10px; color: var(--ink);
  font-size: 13.5px; font-weight: 600; transition: background .15s;
}
.topbar nav a:hover { background: var(--bg-soft); text-decoration: none; }
.topbar nav a.active { background: var(--brand-soft); color: var(--brand-d); }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 12.5px; color: var(--muted); max-width: 160px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.badge {
  background: var(--new); color: #fff; border-radius: 10px; padding: 1px 7px;
  font-size: 11.5px; font-weight: 800;
}
.cur-shop {
  display: flex; align-items: center; gap: 10px; padding: 6px 13px;
  background: var(--brand-soft); border-radius: 10px; white-space: nowrap;
}
.cur-shop-name { font-weight: 700; color: var(--brand-d); font-size: 13.5px; }
.switch-link { font-size: 12px; color: var(--muted); }

/* ---------- buttons ---------- */
button { font: inherit; cursor: pointer; }
.btn-primary {
  background: linear-gradient(180deg, #e07a3c, var(--brand));
  color: #fff; border: 0; border-radius: 11px; padding: 10px 16px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: var(--shadow-md); text-decoration: none; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 7px 12px; color: var(--ink); font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--brand); text-decoration: none; }
.btn-cancel {
  background: var(--card); border: 1px solid var(--red); color: var(--red);
  border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 700;
  transition: all .15s;
}
.btn-cancel:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; white-space: nowrap; text-decoration: none; }
.btn-sm:hover { text-decoration: none; }
.inline { display: inline; }
.export-btn { text-decoration: none; white-space: nowrap; }
.export-btn:hover { text-decoration: none; }

/* ---------- inputs ---------- */
input, select, textarea { font: inherit; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input:not([type]), select {
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 9px 12px;
  background: var(--card); transition: border-color .15s, box-shadow .15s; outline: none;
}
input:focus, select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(213, 107, 44, .14);
}

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}

/* ---------- login / signup ---------- */
.login-wrap { max-width: 400px; margin: 7vh auto 0; }
.login { padding: 30px; }
.login h1 { margin-bottom: 6px; font-size: 22px; }
.login label { display: block; font-size: 13px; color: var(--muted); margin: 15px 0 0; font-weight: 600; }
.login input { width: 100%; padding: 11px 12px; margin-top: 6px; }
.login button { width: 100%; margin-top: 20px; padding: 12px; font-size: 15px; }
.center { text-align: center; margin-top: 16px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 18px; padding: 11px; border: 1.5px solid var(--line-strong);
  border-radius: 11px; background: #fff; color: var(--ink); font-weight: 700;
  font-size: 14px; text-decoration: none; transition: all .15s; box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #fafafa; border-color: #c9c9c9; text-decoration: none;
  transform: translateY(-1px); }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px;
  color: var(--muted); font-size: 12px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- page head / tabs ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.head-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px;
  border-radius: 12px; }
.tabs a { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); transition: all .15s; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.empty { color: var(--muted); padding: 48px 20px; text-align: center;
  background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.notice { background: #eaf3fe; color: #1a4fb4; border-radius: 12px; padding: 12px 15px;
  margin-bottom: 16px; font-size: 14px; border: 1px solid #d4e5fb; }
.error { background: var(--red-soft); color: var(--red); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; margin: 8px 0; }

/* ---------- orders ---------- */
.order { transition: box-shadow .15s; }
.order.shipped { opacity: .78; }
.order.cancelled { opacity: .6; }
.order-top { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.order-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-id { font-weight: 800; font-size: 15px; }
.shop-tag { font-size: 11.5px; color: var(--muted); background: var(--bg-soft);
  border-radius: 7px; padding: 3px 9px; margin-left: 8px; font-weight: 600; }
.order-total { font-weight: 800; font-size: 15px; }
.pill { font-size: 11px; font-weight: 800; border-radius: 20px; padding: 4px 11px;
  margin-left: 8px; letter-spacing: .02em; }
.pill-new { background: #fde7e2; color: var(--new); }
.pill-done { background: var(--green-soft); color: var(--green); }
.pill-draft { background: var(--amber-soft); color: var(--amber); }
.pill-warn { background: var(--amber-soft); color: var(--amber); }
.pill-cancel { background: var(--bg-soft); color: var(--muted); }
.order-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-bottom: 12px; }
.field .flabel, .flabel { font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; }
.fval { margin-top: 4px; }
.addr { white-space: pre-line; line-height: 1.5; }
.special { background: var(--amber-soft); border: 1px solid #f0deb2; border-radius: 11px;
  padding: 11px 14px; margin: 12px 0; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items th, .pricing th { text-align: left; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1.5px solid var(--line);
  padding: 8px; font-weight: 700; }
.items td, .pricing td { padding: 10px 8px; border-bottom: 1px solid #f4efe8; }
.items tbody tr:hover td, .pricing tbody tr:hover td { background: var(--bg-soft); }
.num { text-align: right; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

/* ---------- tracking / added price ---------- */
.tracking { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.track-form { display: flex; gap: 8px; flex-wrap: wrap; }
.track-form select, .track-form input { padding: 10px 12px; }
.track-form input[name=tracking_code] { flex: 1; min-width: 180px; }
.track-done { color: var(--green); font-size: 14px; font-weight: 600; }
.added-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.added-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.added-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.added-form input[name=added_price] { width: 110px; }
.added-form input[name=added_note], .added-form input[name=telegram_chat_id] { flex: 1; min-width: 150px; }
.needprice { background: var(--red-soft); border: 1px solid #f3c0ba; border-radius: 12px;
  padding: 15px 17px; }
.needprice-title { color: var(--red); font-weight: 800; font-size: 15px; }
.needprice-sub { font-size: 13px; margin: 5px 0 11px; }
.needprice-list { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 8px; }
.needprice-list li { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 13px; }

/* ---------- products ---------- */
.prod-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 12px; margin-bottom: 12px; position: sticky; top: 62px; z-index: 5;
  box-shadow: var(--shadow-sm); }
.search-wrap { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0 12px;
  background: var(--bg); transition: all .15s; }
.search-wrap:focus-within { border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(213, 107, 44, .12); }
.search-ico { color: var(--muted); font-size: 14px; }
#prodSearch { flex: 1; border: 0 !important; background: transparent; padding: 11px 0;
  outline: none; box-shadow: none !important; }
.toggle { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 9px 13px; cursor: pointer; background: var(--card); }
.toggle input { accent-color: var(--brand); }
.showing-note { font-size: 13px; color: var(--muted); white-space: nowrap; }
.prod-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px; }
.sum-chip { display: flex; flex-direction: column; align-items: center; min-width: 86px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 15px; box-shadow: var(--shadow-sm); }
.sum-chip .sum-n { font-size: 20px; font-weight: 800; line-height: 1.1; }
.sum-chip .sum-l { font-size: 10.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; }
.sum-chip.ok { border-color: #bfe6cd; background: var(--green-soft); }
.sum-chip.ok .sum-n { color: var(--green); }
.sum-chip.warn { border-color: #f0deb2; background: var(--amber-soft); }
.sum-chip.warn .sum-n { color: var(--amber); }
.sum-progress { flex: 1; min-width: 140px; height: 10px; background: var(--bg-soft);
  border-radius: 6px; overflow: hidden; }
.sum-bar { height: 100%; background: linear-gradient(90deg, #27a45c, var(--green));
  border-radius: 6px; transition: width .3s; }
.thumb { width: 58px; height: 58px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); flex: 0 0 auto; }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
  flex-wrap: wrap; }
.product-head-text { min-width: 0; flex: 1; }
.product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.product { scroll-margin-top: 120px; }
.product:target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(213, 107, 44, .25); }
.cost-form { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.cost-form input { width: 92px; padding: 7px 9px; text-align: right; }
.cost-ro { font-weight: 600; }
.dollar { color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat.highlight { border-color: var(--brand); background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; }
.stat-value { font-size: 25px; font-weight: 800; margin-top: 7px; letter-spacing: -.02em; }
.stat-value.big { font-size: 33px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- payments ---------- */
.pay-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-form input[name=amount] { width: 120px; }
.pay-form input[name=note] { flex: 1; min-width: 160px; }
.pay-line { padding: 3px 0; font-size: 13px; }

/* ---------- settings / shops / forms ---------- */
.shop-select { padding: 9px 12px; background: var(--card); }
.shop-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 660px; }
.shop-form label { display: flex; flex-direction: column; font-size: 13px;
  color: var(--muted); gap: 6px; font-weight: 600; }
.shop-form label.wide { grid-column: 1 / -1; }
.shop-form button { grid-column: 1 / -1; justify-self: start; }
.wizard-steps { margin: 10px 0 16px; padding-left: 20px; line-height: 2; font-size: 14px; }
.copyable { user-select: all; }

/* ---------- supplier creds ---------- */
.creds-card { border-color: var(--green); background: linear-gradient(180deg, #fff, var(--green-soft)); }
.creds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 14px 0; }
.cred { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; }
.cred-val { font-family: ui-monospace, Consolas, monospace; font-size: 15px;
  font-weight: 700; margin-top: 4px; word-break: break-all; }

/* ---------- shop picker ---------- */
.select-wrap { max-width: 880px; margin: 7vh auto 0; padding: 0 8px; }
.select-head { text-align: center; margin-bottom: 32px; }
.select-head h1 { font-size: 31px; }
.select-head p { color: var(--muted); font-size: 15px; margin: 12px auto 0;
  max-width: 520px; line-height: 1.6; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.shopc { display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  text-decoration: none; color: var(--ink); position: relative; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.shopc:hover { transform: translateY(-3px); border-color: var(--brand);
  box-shadow: var(--shadow-md); text-decoration: none; }
.shopc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.shopc-avatar { width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #e07a3c, var(--brand-d));
  color: #fff; font-size: 25px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.shopc-badge { background: #fde7e2; color: var(--new); font-weight: 800;
  font-size: 12px; border-radius: 20px; padding: 4px 12px; }
.shopc-name { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.shopc-meta { font-size: 13px; color: var(--muted); margin-top: 5px; }
.shopc-go { margin-top: 18px; color: var(--brand-d); font-weight: 700; font-size: 14px; }
.select-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* ---------- bottom nav (hidden on desktop) ---------- */
.bottom-nav { display: none; }
#moreSheet { display: none; }

/* ============ MOBILE ============ */
@media (max-width: 680px) {
  main { padding: 14px 12px 92px; }  /* room for the bottom nav */
  h1 { font-size: 20px; }

  .topbar { flex-wrap: nowrap; gap: 8px; padding: 9px 12px; }
  .topbar nav { display: none; }          /* replaced by the bottom nav */
  .brand { font-size: 14px; }
  .who { display: none; }
  .cur-shop { padding: 5px 10px; gap: 7px; overflow: hidden; }
  .cur-shop-name { font-size: 12.5px; max-width: 110px; overflow: hidden;
    text-overflow: ellipsis; }
  .userbox { gap: 6px; }

  /* bottom tab bar */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    position: relative; flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted);
    font-size: 10.5px; font-weight: 700; text-decoration: none; border: 0;
    background: none; border-radius: 12px;
  }
  .bottom-nav .bn-ico { font-size: 21px; line-height: 1; }
  .bottom-nav a.active { color: var(--brand-d); }
  .bottom-nav .bn-badge { position: absolute; top: 1px; left: 50%;
    transform: translateX(6px); background: var(--new); color: #fff;
    border-radius: 9px; min-width: 16px; height: 16px; font-size: 10px;
    line-height: 16px; text-align: center; padding: 0 4px; font-weight: 800; }

  /* "More" sheet */
  #moreSheet.open { display: block; position: fixed; left: 10px; right: 10px;
    bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 59;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-md); padding: 8px; }
  #moreSheet a { display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 15px;
    text-decoration: none; }
  #moreSheet a:active, #moreSheet a:hover { background: var(--bg-soft); }

  .page-head { flex-direction: column; align-items: flex-start; }
  .head-controls { width: 100%; }
  .shop-select { width: 100%; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs a { white-space: nowrap; }

  .order-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-grid { grid-template-columns: 1fr; gap: 10px; }
  .track-form { flex-direction: column; align-items: stretch; }
  .track-form select, .track-form input, .track-form button { width: 100%; }

  /* tables -> stacked cards */
  table.items, table.pricing { display: block; }
  table.items thead, table.pricing thead { display: none; }
  table.items tbody, table.pricing tbody { display: block; }
  table.items tr, table.pricing tr {
    display: block; border: 1px solid var(--line); border-radius: 12px;
    padding: 5px 13px; margin-bottom: 10px; background: var(--bg-soft); }
  table.items td, table.pricing td {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    border: 0; padding: 8px 0; text-align: right; }
  table.items td::before, table.pricing td::before {
    content: attr(data-label); color: var(--muted); font-size: 11px;
    text-transform: uppercase; letter-spacing: .04em; text-align: left;
    flex: 0 0 auto; font-weight: 700; }
  table.items tbody tr:hover td, table.pricing tbody tr:hover td { background: transparent; }

  .cost-form { justify-content: flex-end; }
  .cost-form input { width: 110px; height: 42px; font-size: 16px; }
  .prod-toolbar { position: static; }
  .stat-value { font-size: 22px; }
  .stat-value.big { font-size: 28px; }
}

/* per-order paid marking */
.btn-paid { border-color: var(--green); color: var(--green); font-weight: 700; }
.btn-paid:hover { background: var(--green-soft); border-color: var(--green); }
.link-undo { background: none; border: 0; color: var(--muted); font-size: 12px;
  text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.link-undo:hover { color: var(--red); }

/* ============ DARK MODE — brand-image tones (deep navy + orange) ============ */
[data-theme="dark"] {
  --bg: #161b24;
  --bg-soft: #1f2632;
  --card: #212936;
  --ink: #eef1f6;
  --muted: #98a1b3;
  --line: #2d3646;
  --line-strong: #3a4557;
  --brand: #e07a3c;
  --brand-d: #f09a63;
  --brand-soft: rgba(224, 122, 60, .16);
  --new: #ff6347;
  --green: #3ecf7f;
  --green-soft: rgba(62, 207, 127, .14);
  --red: #ff7061;
  --red-soft: rgba(255, 112, 97, .13);
  --amber: #e8bc52;
  --amber-soft: rgba(232, 188, 82, .13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .4);
}
[data-theme="dark"] .topbar { background: rgba(22, 27, 36, .92); }
[data-theme="dark"] .bottom-nav { background: rgba(22, 27, 36, .96); }
[data-theme="dark"] .notice { background: rgba(80, 140, 255, .12);
  color: #9cc0ff; border-color: rgba(80, 140, 255, .25); }
[data-theme="dark"] .pill-new { background: rgba(255, 99, 71, .16); color: #ff8a73; }
[data-theme="dark"] .shopc-badge { background: rgba(255, 99, 71, .16); color: #ff8a73; }
[data-theme="dark"] .special { background: var(--amber-soft); border-color: rgba(232, 188, 82, .3); }
[data-theme="dark"] .stat.highlight { background: linear-gradient(180deg, var(--card), rgba(224, 122, 60, .12)); }
[data-theme="dark"] .creds-card { background: linear-gradient(180deg, var(--card), rgba(62, 207, 127, .1)); }
[data-theme="dark"] .items td, [data-theme="dark"] .pricing td { border-bottom-color: #2a3240; }
[data-theme="dark"] .btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
[data-theme="dark"] .btn-google:hover { background: #ececec; }
[data-theme="dark"] .btn-primary { box-shadow: 0 2px 10px rgba(224, 122, 60, .25); }
[data-theme="dark"] .search-wrap { background: var(--bg); }
[data-theme="dark"] .needprice { border-color: rgba(255, 112, 97, .3); }
[data-theme="dark"] .track-form select { background: var(--card); }

/* theme toggle button */
.theme-btn { background: none; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 6px 9px; font-size: 15px; line-height: 1;
  cursor: pointer; color: var(--ink); }
.theme-btn:hover { border-color: var(--brand); }

/* copy connect-link box (AdsPower users) */
.copylink-box { margin-top: 16px; padding: 14px 16px; background: var(--bg-soft);
  border: 1px dashed var(--line-strong); border-radius: 12px; }
.copylink-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copylink-row input { flex: 1; min-width: 220px; font-size: 12.5px;
  font-family: ui-monospace, Consolas, monospace; color: var(--muted);
  background: var(--card); }
