/* Hand Cast Spell — design system (ported from "HCS Design System" in Claude Design).
   Black ground, paper type, the logo's four colours used only as small accents and glow.
   Square, hairline-framed objects with "+" registration marks (.blueprint + .corner). */

:root {
  --night: #000;
  --surface: #0b0b0b;
  --well: #0f0f0f;
  --paper: #f4f2ee;
  --ash: #cfccc6;
  --smoke: #a3a09a;
  --dim: #7d7a75;
  --faint: #5f5c58;

  --ember: #f5a13a;       /* primary CTA, Trending, active, focus — the one solid fill */
  --ember-hover: #ffb85c;
  --teal: #33e1a5;        /* WhatsApp, success, Paid, in-stock */
  --teal-hover: #5cf0bd;
  --pink: #f27ba6;        /* Instagram, New, destructive hover */
  --violet: #a58cf5;      /* Coming soon, Confirmed */

  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .25);
  --line-btn: rgba(255, 255, 255, .35);

  --font-body: 'Barlow', system-ui, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-script: 'UnifrakturMaguntia', 'Old English Text MT', serif;

  --gutter: 20px;
  --max: 1440px;
}
@media (min-width: 900px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--ember); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
::selection { background: rgba(245, 161, 58, .3); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.eyebrow { font-family: var(--font-head); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--smoke); }
.display { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1; font-size: clamp(36px, 4.4vw, 64px); }
.display-xl { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: .92; font-size: clamp(40px, 6.2vw, 88px); text-wrap: balance; }
.heading { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; }
.heading-sm { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 24px; }
.script { font-family: var(--font-script); font-weight: 400; line-height: 1; }
.script-lg { font-family: var(--font-script); font-weight: 400; line-height: 1; font-size: clamp(34px, 3.9vw, 56px); }
.quote { font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.18; text-wrap: pretty; }
.lede { color: var(--ash); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; text-wrap: pretty; }
.body { color: var(--ash); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.muted { color: var(--smoke); }
.dim { color: var(--dim); }
.text-ember { color: var(--ember); }
.text-teal { color: var(--teal); }
.text-pink { color: var(--pink); }
.meta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.link-arrow:hover { color: var(--ember-hover); }

/* ── Blueprint frame: hairline border + four "+" registration marks ───── */
.blueprint { position: relative; border: 1px solid rgba(255, 255, 255, .14); }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: rgba(244, 242, 238, .55); pointer-events: none; }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--line-btn); background: transparent; color: var(--paper);
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; text-align: center;
}
.btn:hover { border-color: var(--ember); color: var(--ember); }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #000; box-shadow: 0 0 28px rgba(245, 161, 58, .35); }
.btn-primary:hover { background: var(--ember-hover); border-color: var(--ember-hover); color: #000; }
.btn-whatsapp { background: var(--teal); border-color: var(--teal); color: #000; letter-spacing: .16em; box-shadow: 0 0 32px rgba(51, 225, 165, .38); }
.btn-whatsapp:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #000; }
.btn-instagram:hover { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 22px rgba(242, 123, 166, .25); }
.btn-light { border-color: var(--paper); }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: 0; text-transform: none; min-height: 46px; }
.btn-outline-teal:hover { background: rgba(51, 225, 165, .1); border-color: var(--teal); color: var(--teal); }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; letter-spacing: .16em; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn > .corner { color: rgba(0, 0, 0, .45); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .16); color: var(--paper); }
.icon-btn:hover { border-color: var(--ember); color: var(--ember); }
.icon-btn.danger { color: var(--smoke); }
.icon-btn.danger:hover { border-color: var(--pink); color: var(--pink); }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid currentColor; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: #050505; }
.badge-trending { color: var(--ember); box-shadow: 0 0 14px rgba(245, 161, 58, .35); }
.badge-new { color: var(--pink); }
.badge-soon { color: var(--violet); }
.badge-soldout { color: var(--smoke); border-color: rgba(255, 255, 255, .3); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--c); color: var(--c); font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; background: var(--c); }
.stock-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--teal); }
.stock-dot::before { content: ""; width: 7px; height: 7px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.stock-dot.out { color: var(--smoke); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ash); }
.field-label { display: flex; justify-content: space-between; gap: 12px; }
.input {
  width: 100%; height: 48px; padding: 0 14px; background: transparent; border: 1px solid var(--line-strong);
  color: var(--paper); font-size: 15px; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(255, 255, 255, .45); }
.input:focus, .input:focus-visible { border-color: var(--ember); box-shadow: 0 0 0 1px rgba(245, 161, 58, .25); outline: none; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
select.input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f4f2ee' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select.input option { background: #0b0b0b; color: var(--paper); }
.input-group { display: flex; height: 48px; border: 1px solid var(--line-strong); }
.input-group:focus-within { border-color: var(--ember); box-shadow: 0 0 0 1px rgba(245, 161, 58, .25); }
.input-group > span { display: flex; align-items: center; padding: 0 12px; border-right: 1px solid var(--line-strong); color: var(--smoke); font-size: 14px; }
.input-group > .input { border: 0; height: 100%; box-shadow: none; flex: 1; min-width: 0; }
.input.is-invalid, .input-group.is-invalid { border-color: var(--pink); }
.error { color: var(--pink); font-size: 13px; }
.check { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 16px; height: 16px; flex: none; border: 1px solid var(--line-btn); display: flex; align-items: center; justify-content: center; }
.check input:checked + .box { border-color: var(--ember); }
.check input:checked + .box::after { content: ""; width: 8px; height: 8px; background: var(--ember); }
.check input:focus-visible + .box { outline: 2px solid var(--ember); outline-offset: 2px; }

/* Square toggle switch: <label class="toggle"><input type="checkbox"><span class="track"></span></label> */
.toggle { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle .track { position: relative; width: 44px; height: 24px; border: 1px solid rgba(255, 255, 255, .3); transition: border-color .15s, box-shadow .15s; }
.toggle .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; background: #5d5d60; transition: left .15s, background-color .15s; }
.toggle input:checked + .track { border-color: var(--ember); box-shadow: 0 0 12px rgba(245, 161, 58, .3); }
.toggle input:checked + .track::after { left: 24px; background: var(--ember); }
.toggle.teal input:checked + .track { border-color: var(--teal); box-shadow: 0 0 12px rgba(51, 225, 165, .25); }
.toggle.teal input:checked + .track::after { background: var(--teal); }
.toggle input:focus-visible + .track { outline: 2px solid var(--ember); outline-offset: 2px; }
.toggle.sm .track { width: 40px; height: 22px; }
.toggle.sm .track::after { width: 12px; height: 12px; }
.toggle.sm input:checked + .track::after { left: 22px; }

/* Quantity stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255, 255, 255, .3); min-height: 52px; }
.stepper button, .stepper .step { width: 44px; height: 100%; min-height: inherit; display: flex; align-items: center; justify-content: center; color: var(--paper); }
.stepper button:hover { color: var(--ember); }
.stepper input { width: 40px; text-align: center; background: transparent; border: 0; font-size: 16px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm { min-height: 38px; }
.stepper.sm button { width: 36px; }
.stepper.sm input { width: 26px; font-size: 14px; }

/* ── Flash / alerts ───────────────────────────────────────────────────── */
.flash { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(51, 225, 165, .5); color: var(--paper); font-size: 14px; background: rgba(51, 225, 165, .06); }
.flash::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.flash.error-flash { border-color: rgba(242, 123, 166, .6); background: rgba(242, 123, 166, .06); }
.flash.error-flash::before { background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* ── Image wells / placeholders ───────────────────────────────────────── */
.well { position: relative; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .07), transparent 62%), var(--surface); overflow: visible; }
.well > img { width: 100%; height: 100%; object-fit: cover; }
.well-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1 { aspect-ratio: 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* ── Tables (admin) ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); border-bottom: 1px solid rgba(255, 255, 255, .16); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover { background: #0e0e0e; }
.table .num { text-align: right; }
.table .order-no { font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.row-link { cursor: pointer; }

/* ── Pagination (Laravel default markup restyled) ─────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; }
.pagination li > * { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); }
.pagination li.active > * { border-color: var(--ember); color: var(--ember); }
.pagination li.disabled > * { color: var(--faint); }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .section { padding-block: 64px; } }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-18 { gap: 18px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.wrap { flex-wrap: wrap; }
.mt-auto { margin-top: auto; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > :first-child { color: var(--smoke); }
.kv > :last-child { text-align: right; }

/* ── Storefront header ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 5, 5, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 60px; padding: 0 16px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.brand img { width: 34px; height: 34px; object-fit: cover; }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: none; }
.header-icons { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.header-icon { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; min-width: 22px; }
.header-search { display: none; }
.cart-count { position: absolute; top: 6px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--ember); color: #050505; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(245, 161, 58, .6); }
.menu-toggle { display: flex; align-items: center; justify-content: flex-start; width: 44px; height: 44px; }
@media (min-width: 900px) {
  .site-header .bar { grid-template-columns: 1fr auto 1fr; height: 76px; padding: 0 var(--gutter); }
  .menu-toggle { display: none; }
  .brand { justify-content: flex-start; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 17px; letter-spacing: .26em; }
  .site-nav { display: flex; gap: 36px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
  .site-nav a[aria-current="page"] { color: var(--ember); }
  .header-search { display: flex; }
}
.mobile-menu { position: fixed; inset: 60px 0 0; z-index: 39; background: #000; border-top: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.mobile-menu a[aria-current="page"] { color: var(--ember); }
.mobile-menu form { margin-top: 24px; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }
.search-panel { border-top: 1px solid var(--line); padding: 16px var(--gutter); max-width: var(--max); margin: 0 auto; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: 36px 20px 24px; }
.site-footer .grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; }
.site-footer .col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .col-title { font-family: var(--font-head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); }
.site-footer .reach { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.site-footer .legal { max-width: 1280px; margin: 32px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--dim); }
@media (min-width: 900px) {
  .site-footer { padding: 56px 80px 28px; }
  .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ── Product card ─────────────────────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; gap: 8px; color: var(--paper); min-width: 0; }
.product-card:hover { color: var(--paper); }
.product-card .frame { position: relative; aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .07), transparent 62%), var(--surface); display: flex; align-items: flex-end; justify-content: center; padding: 10px; transition: border-color .2s, box-shadow .2s; }
.product-card .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .frame { border-color: var(--ember); box-shadow: 0 0 28px rgba(245, 161, 58, .18); }
.product-card .frame .badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.product-card .row-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); }
.product-card .name { font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 1.1; letter-spacing: .01em; text-wrap: pretty; }
.product-card .price { font-size: 15px; font-weight: 500; }
.product-card.is-soldout .frame > img { opacity: .55; }

/* Horizontal scroll strip on phones, grid on desktop */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px var(--gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: none; width: 168px; scroll-snap-align: start; }
@media (min-width: 900px) {
  .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; overflow: visible; }
  .strip > * { width: auto; }
}
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 48px 28px; } }

/* ── Admin shell ──────────────────────────────────────────────────────── */
body.admin { background: #050505; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-sidebar { display: none; }
@media (min-width: 1000px) {
  .admin-shell { grid-template-columns: 240px 1fr; }
  .admin-sidebar { display: flex; position: sticky; top: 0; height: 100vh; }
}
.admin-sidebar, .admin-drawer { width: 240px; background: #000; border-right: 1px solid var(--line); flex-direction: column; }
.admin-sidebar .brand-row, .admin-drawer .brand-row { display: flex; align-items: center; gap: 10px; height: 72px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand-row img { width: 36px; height: 36px; object-fit: cover; }
.brand-row .t1 { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; }
.brand-row .t2 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.admin-nav { display: flex; flex-direction: column; padding: 16px 12px; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 1px solid transparent; font-size: 15px; color: var(--ash); }
.admin-nav a::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--dim); flex: none; }
.admin-nav a:hover { color: var(--ember); border-color: var(--line); }
.admin-nav a .count { margin-left: auto; font-size: 12px; color: var(--dim); }
.admin-nav a[aria-current="page"] { border-color: rgba(245, 161, 58, .5); color: var(--ember); box-shadow: inset 3px 0 0 var(--ember), 0 0 18px rgba(245, 161, 58, .12); }
.admin-nav a[aria-current="page"]::before { background: var(--ember); border-color: var(--ember); }
.admin-nav a[aria-current="page"] .count { color: var(--smoke); }
.admin-user { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.admin-user .avatar { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 14px; flex: none; }
.admin-user .who { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.admin-user .who button { color: var(--dim); font-size: 12px; text-align: left; }
.admin-user .who button:hover { color: var(--ember); }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
@media (min-width: 1000px) { .admin-topbar { padding: 12px 32px; } }
.admin-title { font-family: var(--font-head); font-weight: 600; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.admin-crumb { font-size: 12px; color: var(--dim); }
.admin-body { padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1000px) { .admin-body { padding: 32px 32px 64px; } }
.admin-mobilebar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #000; position: sticky; top: 0; z-index: 30; }
.admin-mobilebar img { width: 34px; height: 34px; object-fit: cover; }
@media (min-width: 1000px) { .admin-mobilebar { display: none; } }
.admin-drawer { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; overflow-y: auto; }
.admin-drawer-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(0, 0, 0, .6); }
.panel { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.panel-title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); }
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-bottom: 2px solid transparent; color: var(--ash); font-size: 14px; white-space: nowrap; }
.tabs a .count { font-size: 12px; color: var(--dim); }
.tabs a:hover { color: var(--ember); }
.tabs a[aria-current="page"] { border-bottom-color: var(--ember); color: var(--ember); }
.tabs a[aria-current="page"] .count { color: var(--ember); }
.search-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2); color: var(--dim); }
.search-box:focus-within { border-color: var(--ember); }
.search-box input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--paper); font-size: 14px; outline: none; }
.thumb { width: 42px; height: 52px; flex: none; background: var(--well); border: 1px solid rgba(255, 255, 255, .14); object-fit: cover; }

/* Responsive tables become cards on phones (A9 "Orders on a phone") */
@media (max-width: 760px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { position: relative; border: 1px solid rgba(255, 255, 255, .16); padding: 14px 16px; margin-bottom: 14px; }
  .table.cards td { border: 0; padding: 3px 0; }
  .table.cards td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 110px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  .table.cards .num { text-align: left; }
}

@media print {
  body, body.admin { background: #fff; color: #000; }
  .no-print { display: none !important; }
}
