/* ============================================================
   Sueños Shipping — Design System v2
   Dark · Gold · Clean
   ============================================================ */

/* ── Variables ── */
:root {
  --bg:      #07070b;
  --surf:    #0c0c12;
  --surf2:   #111118;
  --text:    #f2f3f7;
  --muted:   #8b92a5;
  --line:    rgba(255,255,255,.10);
  --line2:   rgba(255,255,255,.06);

  --gold:    #d4af37;
  --gold2:   #b8962e;
  --pink:    #ff5da2;
  --green:   #22c55e;
  --blue:    #3b82f6;
  --purple:  #8b5cf6;
  --red:     #ef4444;

  --grad-gold: linear-gradient(135deg, var(--gold), var(--gold2));

  --radius:  12px;
  --radius2: 18px;
  --shadow:  0 20px 60px rgba(0,0,0,.5);
  --shadow2: 0 4px 20px rgba(0,0,0,.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 820px at 18% 6%,  rgba(212,175,55,.09),  transparent 60%),
    radial-gradient(980px  720px at 84% 12%,  rgba(255,93,162,.07),  transparent 62%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.15;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
code { font-family: ui-monospace, monospace; font-size: .875em; }

/* ── Utilities ── */
.container  { width: min(1120px, 92%); margin: 0 auto; }
.hidden     { display: none !important; }
.muted      { color: var(--muted); }
.small      { font-size: .875rem; }
.req        { color: var(--red); }
.divider    { height: 1px; background: var(--line); margin: 16px 0; }
.row        { display: flex; align-items: center; gap: 10px; }
.row--wrap  { flex-wrap: wrap; }
.stack      { display: flex; flex-direction: column; gap: 8px; }
.link       { text-decoration: underline; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-family: inherit; font-weight: 700; font-size: .9rem;
  cursor: pointer; user-select: none;
  transition: transform .15s, box-shadow .15s, opacity .15s, background .15s;
  white-space: nowrap;
  background: transparent; color: var(--text);
}
.btn:active  { transform: translateY(1px); }
.btn--primary {
  background: var(--grad-gold);
  color: #07070b;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(212,175,55,.26);
}
.btn--primary:hover { box-shadow: 0 10px 32px rgba(212,175,55,.38); opacity: .94; }
.btn--ghost  { background: rgba(255,255,255,.06); }
.btn--ghost:hover  { background: rgba(255,255,255,.10); }
.btn--sm     { padding: 7px 13px; font-size: .82rem; }
.btn--xs     { padding: 5px 10px; font-size: .78rem; }

/* ── Tags / Badges ── */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .73rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}
.tag--ready    { background: rgba(212,175,55,.15); color: #fbbf24; border-color: rgba(212,175,55,.3); }
.tag--transit  { background: rgba(59,130,246,.15);  color: #60a5fa; border-color: rgba(59,130,246,.3); }
.tag--received { background: rgba(139,92,246,.15);  color: #a78bfa; border-color: rgba(139,92,246,.3); }
.tag--delivered{ background: rgba(34,197,94,.15);   color: #4ade80; border-color: rgba(34,197,94,.3); }
.tag--hold     { background: rgba(239,68,68,.15);   color: #f87171; border-color: rgba(239,68,68,.3); }
.tag--ok       { background: rgba(34,197,94,.12);   color: #4ade80; border-color: rgba(34,197,94,.25); }
.tag--warn     { background: rgba(245,158,11,.12);  color: #fbbf24; border-color: rgba(245,158,11,.25); }
.badge {
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  padding: 4px 10px; border-radius: 999px;
  color: var(--muted);
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(16px);
  background: rgba(7,7,11,.82);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  flex-shrink: 0;
}
.brand__logo   { width: 100%; height: 100%; object-fit: contain; }
.brand__text   { display: flex; flex-direction: column; gap: 1px; }
.brand__name   { font-weight: 800; font-size: .95rem; letter-spacing: -.01em; }
.brand__tag    { font-size: .73rem; color: var(--muted); }
.brand__title  { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.brand__sub    { font-size: .73rem; color: var(--muted); }
.brand--row { display: flex; align-items: center; gap: 10px; }

.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  color: var(--muted); font-size: .88rem; font-weight: 500;
  padding: 7px 12px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__pill { border: 1px solid var(--line) !important; }
.header__actions { display: flex; gap: 8px; align-items: center; }
.nav__toggle {
  display: none;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--text); border-radius: 10px;
  padding: 8px 12px; font-size: 1rem;
}

/* ── Hero ── */
.hero { padding: 56px 0 28px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px; align-items: center;
}
.pill {
  display: inline-flex; gap: 10px; align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--muted); font-size: .84rem;
  width: fit-content; margin-bottom: 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
  50%       { box-shadow: 0 0 0 7px rgba(34,197,94,.06); }
}
.hero__copy h1 {
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}
.hero__copy h1 span { color: var(--gold); }
.hero__copy > p {
  color: var(--muted); margin: 0 0 22px; max-width: 56ch; font-size: 1rem;
}
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.hero__stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.hero__stat-k { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.hero__stat-v { font-weight: 800; font-size: .92rem; }

/* ── Tracking Card (hero visual) ── */
.hero__visual { display: flex; align-items: stretch; }
.trackCard {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.025) 100%);
  box-shadow: var(--shadow);
}
.trackCard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.trackCard__title { font-weight: 800; font-size: .95rem; }
.trackCard__sub   { color: var(--muted); font-size: .8rem; margin-bottom: 22px; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: '';
  position: absolute; left: 9px; top: 12px;
  width: 2px; height: calc(100% - 24px);
  background: linear-gradient(to bottom, rgba(34,197,94,.4), var(--line) 60%);
}
.tl {
  display: flex; gap: 16px; align-items: flex-start;
  padding-bottom: 20px; position: relative;
}
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  background: var(--surf2);
  flex-shrink: 0; margin-top: 1px;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.tl__dot.done {
  background: var(--green); border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.tl__dot.active {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,.2);
}
.tl__dot svg { width: 10px; height: 10px; }
.tl__content { flex: 1; padding-top: 1px; }
.tl__top     { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl__title   { font-weight: 700; font-size: .88rem; }
.tl__sub     { color: var(--muted); font-size: .78rem; margin-top: 3px; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--portal { padding: 28px 0 48px; }
.section__head         { margin-bottom: 24px; }
.section__head h2      { font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.section__head p       { color: var(--muted); max-width: 64ch; }

/* ── Cards ── */
.card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover   { transform: translateY(-2px); box-shadow: var(--shadow2); }
.card--pad    { padding: 22px; }
.card--tight  { padding: 20px; }
.card h3      { font-size: 1rem; font-weight: 800; margin: 0 0 8px; }
.card p       { color: var(--muted); line-height: 1.55; margin: 0; }
.card .icon   { font-size: 1.4rem; margin-bottom: 10px; }
.card__head   { margin-bottom: 12px; }
.card__body   {}
.cards        { display: grid; gap: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.cards--3     { grid-template-columns: repeat(3,minmax(0,1fr)); }

/* Variety Store */
.storeGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.storeItem {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: center;
  font-weight: 700; font-size: .875rem;
  transition: background .15s, border-color .15s, transform .15s;
  cursor: default;
}
.storeItem:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); transform: translateY(-1px); }
.storeItem__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(212,175,55,.10);
  border: 1px solid rgba(212,175,55,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

/* ── Steps ── */
.steps  { display: grid; gap: 12px; grid-template-columns: repeat(3,1fr); }
.step   {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding: 18px;
  display: flex; gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.step__num {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(212,175,55,.28);
  background: rgba(212,175,55,.07);
  color: var(--gold); font-weight: 800; font-size: .9rem;
}
.step h4 { font-size: .93rem; font-weight: 800; margin-bottom: 4px; }
.step p  { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 0; }

/* ── Forms ── */
.form   { display: grid; gap: 14px; }
label {
  display: grid; gap: 6px;
  font-size: .875rem; color: var(--muted); font-weight: 500;
}
.field { display: grid; gap: 5px; font-size: .875rem; color: var(--muted); font-weight: 500; }
.field span { font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text); font-family: inherit; font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: rgba(212,175,55,.45); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.28); }
select option { background: #12121a; color: var(--text); }
.input {
  width: 100%; padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text); font-family: inherit; font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: rgba(212,175,55,.45); }
.input--compact { padding: 8px 11px; font-size: .85rem; }
input[type="file"] {
  border: 1px dashed rgba(255,255,255,.16) !important;
  background: rgba(0,0,0,.2) !important;
  padding: 10px 12px; color: var(--text) !important;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: var(--grad-gold); border: none;
  color: #07070b; font-weight: 700; font-size: .8rem;
  padding: 7px 12px; border-radius: 8px;
  margin-right: 10px; cursor: pointer;
}

/* Grid helpers */
.grid2 { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.grid3 { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
.grid2--calc { align-items: start; }
.calcLeft { display: flex; flex-direction: column; gap: 14px; }

/* ── Calculator ── */
.result__big { font-size: 2.2rem; font-weight: 900; color: var(--gold); letter-spacing: -.03em; }
.result__sub { color: var(--muted); margin-top: 6px; font-size: .875rem; }
.fineprint   { color: var(--muted); font-size: .84rem; margin-top: 8px; }
.ratesList   { display: grid; gap: 8px; }

/* ── Tables ── */
.tableWrap {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow-x: auto;
  background: rgba(255,255,255,.02);
}
.tableWrap--soft {
  border-color: rgba(255,255,255,.07);
  background: rgba(0,0,0,.08);
}
.table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table th {
  padding: 10px 14px;
  font-size: .73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line2);
  text-align: left; vertical-align: middle;
  font-size: .875rem;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover   { background: rgba(255,255,255,.025); cursor: pointer; }
.table--mini th, .table--mini td { padding: 9px 12px; font-size: .82rem; }
.table--fixed { table-layout: fixed; }
.col--xs { width: 80px; max-width: 80px; }
.overviewTable th:nth-child(3),
.overviewTable td:nth-child(3),
.overviewTable th:nth-child(4),
.overviewTable td:nth-child(4) { width: 72px; }

/* ── Lists ── */
.list { list-style: none; display: grid; gap: 8px; }
.list li, .list__item {
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.025);
  padding: 10px 14px; border-radius: var(--radius);
  overflow-wrap: anywhere; word-break: break-word;
  transition: background .15s;
}
.list li:hover, .list__item:hover { background: rgba(255,255,255,.04); }

/* ── Portal / Dashboard ── */
.portal { margin-top: 4px; }
#loginCard { position: relative; z-index: 5; max-width: 520px; }
.dashTop {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0 8px;
}
.dashBrand { display: flex; align-items: center; gap: 12px; }
.dashLogo  { height: 52px; width: auto; object-fit: contain; border-radius: 10px; }
.dashRight { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.userPill  {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,.3);
  border-radius: var(--radius); padding: 8px 12px;
  font-size: .85rem;
}
.iconBtn {
  position: relative;
  border: 1px solid var(--line); background: rgba(0,0,0,.3);
  color: var(--text); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer;
}
.notifDot {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: #e11d48; color: #fff;
  border: 2px solid rgba(0,0,0,.6);
}

/* ── Tabs ── */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text); border-radius: 999px;
  padding: 8px 16px; font-family: inherit; font-weight: 700; font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.tab:hover  { transform: translateY(-1px); border-color: rgba(255,255,255,.16); }
.tab.active { border-color: rgba(212,175,55,.45); background: rgba(212,175,55,.08); color: var(--gold); }

/* Dashboard tabs */
.dashNav {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.dashTab {
  background: transparent; border: none;
  color: rgba(255,255,255,.45); font-family: inherit; font-weight: 700; font-size: .875rem;
  cursor: pointer; padding: 10px 15px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s;
}
.dashTab:hover  { color: rgba(255,255,255,.8); }
.dashTab.active { color: #fff; border-bottom-color: var(--gold); }

.dashSection        { display: none; }
.dashSection.active { display: block; }
.dashGrid2 {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
  gap: 12px; margin-top: 10px;
}
.dashGridSingle { max-width: 1100px; margin: 0 auto; }

/* Overview compact header */
.ovhdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.ovhdr__left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ovhdr__greet { font-size: .93rem; color: var(--muted); }
.ovhdr__greet strong { color: var(--text); font-weight: 700; }
.ovhdr__sep   { color: var(--line); }
.ovhdr__acct  { font-size: .82rem; font-weight: 700; color: var(--gold); background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.2); border-radius: 999px; padding: 2px 10px; }
.ovhdr__right { display: flex; align-items: center; gap: 8px; }

/* Stat row */
.statRow { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 10px; }
.statCard {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.3);
  border-radius: 12px; padding: 10px 14px;
  transition: transform .2s, box-shadow .2s;
}
.statCard:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.statCard.gold  { background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(0,0,0,.3)); border-color: rgba(212,175,55,.18); }
.statCard.blue  { background: linear-gradient(135deg, rgba(59,130,246,.18),  rgba(0,0,0,.3)); border-color: rgba(59,130,246,.18); }
.statCard.green { background: linear-gradient(135deg, rgba(16,185,129,.15),  rgba(0,0,0,.3)); border-color: rgba(16,185,129,.18); }
.statTitle { font-weight: 700; font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.statNum   { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; margin-top: 4px; }

/* Panels */
.panel { margin-bottom: 10px; }
.panel--soft {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  border-radius: var(--radius2); padding: 12px 14px;
}
.panel__head  { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel__title { font-weight: 800; font-size: .9rem; }
.panel__sub   { color: var(--muted); font-size: .77rem; margin-top: 2px; }
.dashRightCol { display: flex; flex-direction: column; gap: 10px; }

/* Ship card */
.shipCard {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.shipCard__lbl { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.shipRow   { display: flex; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.shipLabel { width: 130px; min-width: 130px; color: var(--gold); font-weight: 700; font-size: .84rem; }
.shipValue { color: var(--text); font-weight: 600; font-size: .84rem; flex: 1 1 200px; }
.shipTo    { white-space: pre-wrap; word-break: break-word; margin: 0; font-family: ui-monospace, monospace; font-size: .82rem; }

/* ── Chat Widget ── */
.chatFab {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  width: 52px; height: 52px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,.3);
  background: var(--grad-gold);
  box-shadow: 0 8px 28px rgba(212,175,55,.35);
  display: grid; place-items: center;
  cursor: pointer; font-size: 1.2rem;
  transition: transform .2s, box-shadow .2s;
}
.chatFab:hover { transform: scale(1.07); box-shadow: 0 12px 36px rgba(212,175,55,.48); }
.chat {
  position: fixed; right: 18px; bottom: 82px; z-index: 130;
  width: min(380px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(9,9,14,.97);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat__head {
  padding: 14px;
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  border-bottom: 1px solid var(--line);
  background: rgba(212,175,55,.04);
}
.chat__title { font-weight: 800; font-size: .95rem; }
.chat__sub   { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.chat__close {
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--text); border-radius: 10px; padding: 7px 9px; cursor: pointer; font-size: .9rem;
}
.chat__body {
  height: 300px; padding: 12px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
}
.chat--embedded {
  position: static !important; width: 100% !important;
  right: auto !important; bottom: auto !important;
  border-radius: var(--radius) !important; box-shadow: none !important;
}
.chat--embedded .chat__body { height: 360px; }
.bubble {
  max-width: 84%; padding: 10px 13px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  align-self: flex-start;
  font-size: .875rem;
}
.bubble.me {
  align-self: flex-end; margin-left: auto;
  background: linear-gradient(135deg, rgba(212,175,55,.11), rgba(184,150,46,.09));
  border-color: rgba(212,175,55,.2);
}
.bubble .meta {
  display: flex; justify-content: space-between; gap: 8px;
  color: var(--muted); font-size: .72rem; margin-top: 5px;
}
.chat__form {
  border-top: 1px solid var(--line); padding: 10px;
  display: flex; gap: 8px;
}
.chat__form input { flex: 1; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  background: rgba(0,0,0,.18);
  color: var(--muted); font-size: .875rem;
}
.footer__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.footer__brand  { font-weight: 800; color: var(--text); margin-bottom: 6px; font-size: .95rem; }
.footer__head   { font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: .85rem; }
.footer__links  { display: grid; gap: 6px; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ── Admin shell ── */
.bg         { background: var(--bg); min-height: 100vh; }
.admin-page { background: var(--bg); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,7,11,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.dash__hero { padding: 20px 0 8px; }
.h2 { font-family: Sora, sans-serif; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.h3 { font-family: Sora, sans-serif; font-size: 1rem; font-weight: 800; }

/* Admin panel header */
.panel__top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin: 8px 0 12px;
}
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Admin stats grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 14px 0 10px;
}
.stat {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.45);
  border-radius: 16px; padding: 14px;
  transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.stat__label { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.stat__value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; margin-top: 6px; }
.stat__sub   { color: var(--muted); font-size: .74rem; margin-top: 2px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Admin chat body */
.chatBody {
  height: 340px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; background: var(--surf2); margin-bottom: 12px;
}

/* Admin list items */
.listItem {
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius); padding: 10px 12px; cursor: pointer;
  transition: background .15s;
}
.listItem:hover  { background: rgba(255,255,255,.05); }
.listItem.active { border-color: rgba(59,130,246,.35); }
.listItem__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.convo {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius); padding: 10px 12px; cursor: pointer;
  color: var(--text); font-family: inherit;
  transition: background .15s;
}
.convo:hover  { background: rgba(255,255,255,.05); }
.convo.active { border-color: rgba(59,130,246,.35); }
.rowline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }

/* Public tracking */
#out > div { padding: 6px 0; font-size: .9rem; }

/* ── Toast ── */
.toast-container {
  position: fixed; bottom: 84px; right: 18px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: rgba(18,18,26,.98); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 14px;
  font-size: .875rem; font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  pointer-events: auto; min-width: 220px; max-width: 340px;
  animation: toastIn .2s ease;
}
.toast--success { border-color: rgba(34,197,94,.35); }
.toast--error   { border-color: rgba(239,68,68,.35); }
.toast--info    { border-color: rgba(59,130,246,.35); }
.toast__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.toast--success .toast__dot { background: var(--green); }
.toast--error   .toast__dot { background: var(--red); }
.toast--info    .toast__dot { background: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Drawer ── */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer:not(.hidden) { pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s ease;
}
.drawer:not(.hidden) .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(460px, 100vw);
  background: #0e0e16; border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
}
.drawer:not(.hidden) .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.drawer__title { font-weight: 800; font-size: 1rem; }
.drawer__sub   { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.drawer__body  { flex: 1; overflow-y: auto; padding: 18px; display: grid; gap: 18px; align-content: start; }
.drawer__section-title {
  font-weight: 700; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 10px;
}
.drawer__field { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.drawer__field:last-child { border-bottom: none; }
.drawer__field-k { width: 110px; min-width: 110px; color: var(--muted); font-size: .84rem; }
.drawer__field-v { font-weight: 600; font-size: .84rem; flex: 1; }

/* ── Header auth chip ── */
.header-auth-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,.3);
  border-radius: var(--radius); padding: 6px 12px;
  font-size: .84rem; font-weight: 600; color: var(--text);
}
.avatar-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #07070b;
  flex-shrink: 0; text-transform: uppercase;
}

/* ── Button loading state ── */
.btn--loading { opacity: .6; pointer-events: none; }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,9,14,.97); border-top: 1px solid var(--line);
  display: none; grid-template-columns: repeat(4,1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 680px) {
  .bottom-nav:not(.hidden) { display: grid; }
  .toast-container { bottom: 80px; }
  .chatFab  { bottom: 76px; }
  /* push page content above bottom nav */
  body { padding-bottom: 64px; }
}
.bnav__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 9px 4px; border: none;
  background: transparent; color: var(--muted); font-family: inherit;
  cursor: pointer; transition: color .15s;
}
.bnav__btn.active { color: var(--gold); }
.bnav__icon  { font-size: 1.1rem; line-height: 1; }
.bnav__label { font-size: .68rem; font-weight: 700; letter-spacing: .02em; }

/* ── Responsive ── */
@media (max-width: 1040px) {
  .cards    { grid-template-columns: repeat(2,1fr); }
  .cards--3 { grid-template-columns: repeat(2,1fr); }
  .stats    { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .split    { grid-template-columns: 1fr; }
  .grid3    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero__grid    { grid-template-columns: 1fr; }
  .hero__copy h1 { font-size: 2rem; }
  .steps         { grid-template-columns: 1fr; }
  .dashGrid2     { grid-template-columns: 1fr; }
  .storeGrid     { grid-template-columns: repeat(2,1fr); }
  .footer__grid  { grid-template-columns: 1fr; }
  .grid2         { grid-template-columns: 1fr; }
  .statRow       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav {
    display: none;
    position: absolute; top: 64px; right: 4%; left: 4%;
    background: rgba(7,7,11,.97); border: 1px solid var(--line);
    border-radius: 14px; padding: 10px; flex-direction: column;
    align-items: stretch; z-index: 90;
  }
  .nav a   { padding: 10px 12px; border-radius: 10px; }
  .nav.open { display: flex; }
  .nav__toggle  { display: inline-flex; }
  .header__actions { display: none; }
  .statRow   { grid-template-columns: 1fr; }
  .shipLabel { width: 110px; min-width: 110px; }
  .stats     { grid-template-columns: 1fr 1fr; }
  .grid3     { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards       { grid-template-columns: 1fr; }
  .cards--3    { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .storeGrid   { grid-template-columns: 1fr 1fr; }
  .stats       { grid-template-columns: 1fr; }
}
