/* ============================================================
   Dude OTP — App design system
   Dark premium · Urbanist · Electric blue #00A9FF → #00FFFF
   ============================================================ */

:root {
  --bg: #05080f;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --text: #f3f7fc;
  --text-dim: #9aa8bd;
  --text-faint: #5f6d84;
  --accent-1: #00a9ff;
  --accent-2: #00ffff;
  --grad: linear-gradient(135deg, #00a9ff 0%, #00ffff 100%);
  --grad-text: linear-gradient(120deg, #4dc3ff 0%, #00ffff 90%);
  --green: #4dffa6;
  --red: #ff6b7a;
  --amber: #ffd479;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 66px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 12% -4%, rgba(0, 169, 255, 0.12), transparent 62%),
    radial-gradient(720px 480px at 88% 6%, rgba(0, 255, 255, 0.07), transparent 60%),
    var(--bg);
}

::selection { background: rgba(0, 255, 255, 0.28); }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ============ Floating pill header ============ */
.app-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  z-index: 100;
}
.pill {
  background: rgba(9, 14, 25, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}
.header-pill {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
  padding: 0 10px 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.brand em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 650;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: #03121f; background: var(--grad); font-weight: 750; }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(0, 255, 255, 0.07);
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.balance-chip:hover { background: rgba(0, 255, 255, 0.13); }
.balance-chip svg { width: 16px; height: 16px; stroke: var(--accent-2); }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  flex: none;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 19px; height: 19px; }

.mobile-nav { display: none; margin-top: 10px; padding: 8px; gap: 2px; overflow-x: auto; }
.mobile-nav .nav-link { flex: 1; text-align: center; }

/* ============ Layout ============ */
.app-main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 52px) 0 90px;
}
.view { display: none; animation: viewIn 0.32s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.view-head h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.muted { color: var(--text-dim); }
.muted-sm { color: var(--text-faint); font-size: 0.88rem; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { font-size: 1.18rem; font-weight: 750; margin-bottom: 6px; }

/* ============ Buttons & forms ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #03121f; box-shadow: 0 12px 32px -10px rgba(0, 200, 255, 0.5); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 42px -10px rgba(0, 200, 255, 0.65); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.btn-danger { background: rgba(255, 107, 122, 0.1); border-color: rgba(255, 107, 122, 0.35); color: var(--red); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 107, 122, 0.18); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea,
.toolbar select, .search input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: var(--text-faint); font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus,
.toolbar select:focus, .search input:focus {
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.field select option, .toolbar select option {
  background: #0b1220;
  color: var(--text);
}
.form-error {
  margin-top: 16px;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 122, 0.09);
  border: 1px solid rgba(255, 107, 122, 0.3);
  color: var(--red);
  font-size: 0.93rem;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-soft);
  margin: 24px 0;
}
.tab {
  flex: 1;
  padding: 11px;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active { background: var(--grad); color: #03121f; }

/* ============ Auth ============ */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.auth-logo { margin: 0 auto 20px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-card > .muted { margin-bottom: 4px; font-size: 0.98rem; }
.auth-card form { text-align: left; }
.auth-card .btn-block { margin-top: 8px; }

/* ============ Buy view ============ */
.balance-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 14px 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.balance-banner-info { display: flex; flex-direction: column; line-height: 1.3; }
.balance-banner-info strong { font-size: 1.3rem; font-weight: 800; }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1 1 220px;
}
.search svg {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--text-faint);
  pointer-events: none;
}
.search input { padding-left: 44px; }
.toolbar select { flex: 0 1 190px; width: auto; cursor: pointer; }

.products { display: flex; flex-direction: column; gap: 10px; }
.product-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.product-row:hover { border-color: rgba(0, 255, 255, 0.18); transform: translateX(3px); }
.p-avatar {
  width: 46px; height: 46px;
  border-radius: 15px;
  background: var(--grad);
  color: #03121f;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.p-info { min-width: 0; }
.p-title { font-weight: 750; font-size: 1.04rem; }
.p-cat { font-size: 0.83rem; color: var(--text-faint); font-weight: 600; }
.p-price { font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.p-stock { white-space: nowrap; }
.poor-hint { font-size: 0.82rem; color: var(--amber); font-weight: 700; white-space: nowrap; }

.stock {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.22);
  color: var(--green);
  white-space: nowrap;
}
.stock.low { background: rgba(255, 190, 60, 0.08); border-color: rgba(255,190,60,0.25); color: var(--amber); }
.stock.out { background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--text-faint); }

/* ============ Status pills ============ */
.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: capitalize;
  white-space: nowrap;
}
.pill-status .sdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-status.live { background: rgba(0, 200, 255, 0.1); border: 1px solid rgba(0,200,255,0.3); color: var(--accent-2); }
.pill-status.live .sdot { animation: pulse 1.6s infinite; box-shadow: 0 0 8px currentColor; }
.pill-status.ok { background: rgba(0, 255, 170, 0.09); border: 1px solid rgba(0,255,170,0.28); color: var(--green); }
.pill-status.bad { background: rgba(255, 107, 122, 0.09); border: 1px solid rgba(255,107,122,0.3); color: var(--red); }
.pill-status.muted { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-faint); }
.pill-status.warn { background: rgba(255, 190, 60, 0.09); border: 1px solid rgba(255,190,60,0.3); color: var(--amber); }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ============ Order view ============ */
.order-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: 40px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.order-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.meta-tag {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-dim);
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
}
.number-hero { text-align: center; margin: 10px 0 8px; }
.number-hero .label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.number-big {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  word-break: break-all;
}
.countdown-wrap { max-width: 420px; margin: 26px auto 6px; text-align: center; }
.countdown-label { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 700; color: var(--text-dim); margin-bottom: 10px; }
.countdown-label strong { color: var(--text); font-variant-numeric: tabular-nums; }
.countdown-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.countdown-fill { height: 100%; border-radius: 999px; background: var(--grad); transition: width 1s linear; box-shadow: 0 0 14px rgba(0,255,255,0.5); }

.sms-section { margin-top: 34px; }
.sms-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sms-head h3 { font-size: 1.15rem; font-weight: 750; }
.live-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; color: var(--accent-2); }
.live-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 1.6s infinite; }

.sms-list { display: flex; flex-direction: column; gap: 12px; }
.sms {
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: rgba(0, 200, 255, 0.045);
  border-radius: 18px;
  padding: 20px 22px;
}
.sms-code-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.sms-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  text-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
}
.sms-text { color: var(--text-dim); font-size: 0.94rem; word-break: break-word; }
.sms-time { font-size: 0.8rem; color: var(--text-faint); font-weight: 600; margin-top: 8px; }

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}

/* ============ Lists, tables ============ */
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}
.list-row .lr-main { font-weight: 700; }
.list-row .lr-sub { font-size: 0.86rem; color: var(--text-faint); font-weight: 600; }
.lr-amount { font-weight: 800; font-size: 1.05rem; }
.lr-amount.pos { color: var(--green); }
.lr-amount.neg { color: var(--red); }

.table-scroll { overflow-x: auto; margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: left;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); font-size: 0.96rem; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.order-row .o-num { font-weight: 800; font-size: 1.06rem; letter-spacing: 0.02em; }
.order-row .o-sub { font-size: 0.86rem; color: var(--text-faint); font-weight: 600; }
.order-row .o-price { font-weight: 800; white-space: nowrap; }

/* ============ Wallet ============ */
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.balance-hero {
  background: linear-gradient(140deg, rgba(0,169,255,0.14), rgba(0,255,255,0.05));
  border-color: rgba(0, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.balance-big {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0 10px;
}

/* ============ Admin ============ */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.admin-card {
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.admin-card .ac-label { font-size: 0.82rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.admin-card .ac-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; }
.admin-card .ac-value.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-section { margin-bottom: 26px; }
.admin-section > h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.admin-section > .muted-sm { display: block; margin-bottom: 16px; }
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.inline-form .field { margin-bottom: 0; }
.review-actions { display: flex; gap: 8px; }

/* ============ Empty / loading ============ */
.empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-faint);
}
.empty svg { width: 44px; height: 44px; stroke: var(--text-faint); margin: 0 auto 16px; }
.empty h4 { color: var(--text-dim); font-size: 1.1rem; font-weight: 750; margin-bottom: 6px; }
.empty p { font-size: 0.95rem; margin-bottom: 18px; }

.skel {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-row { padding: 22px; border-radius: 18px; border: 1px solid var(--border-soft); background: var(--surface); margin-bottom: 10px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.08);
  color: var(--accent-2);
  font-weight: 750;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(0, 255, 255, 0.15); }
.copy-btn svg { width: 15px; height: 15px; }

/* ============ Toasts ============ */
.toasts {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 52px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 19px;
  border-radius: 16px;
  background: rgba(10, 16, 28, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  font-size: 0.93rem;
  font-weight: 600;
  animation: toastIn 0.3s ease;
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.toast.success { border-color: rgba(0, 255, 170, 0.35); }
.toast.success svg { stroke: var(--green); }
.toast.error { border-color: rgba(255, 107, 122, 0.4); }
.toast.error svg { stroke: var(--red); }
.toast.info svg { stroke: var(--accent-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .admin-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  #nav-desktop { display: none; }
  .mobile-nav { display: flex; }
  .app-main { padding-top: calc(var(--header-h) + 96px); }
  .wallet-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: auto 1fr auto; row-gap: 10px; }
  .product-row .p-price { grid-column: 2; }
  .product-row .p-stock { grid-column: 3; grid-row: 1; }
  .product-row .p-buy { grid-column: 1 / -1; }
  .product-row .p-buy .btn { width: 100%; }
  .order-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .order-row .o-meta { grid-column: 1 / -1; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .order-card { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .balance-banner { border-radius: 22px; }
  .auth-card { padding: 34px 26px; }
  .toasts { bottom: 16px; right: 16px; left: 16px; max-width: none; }
  .toolbar select { flex: 1 1 100%; }
}
