/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN TOKENS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --bg:           #09090a;
  --bg-elevated:  #0e0e10;
  --surface:      #131315;
  --surface-2:    #1a1a1e;
  --surface-3:    #222227;
  --border:       #26262b;
  --border-faint: #1c1c20;

  --text:         #eeebe4;
  --text-2:       #a09d9a;
  --text-3:       #5e5b62;

  --gold:         #c9a26a;
  --gold-dim:     rgba(201, 162, 106, 0.10);
  --gold-glow:    rgba(201, 162, 106, 0.05);

  --s-pending:    #c9a26a;
  --s-claimed:    #7aabda;
  --s-delivered:  #72c4a8;
  --s-completed:  #78b87a;
  --s-cancelled:  #c06060;

  --font-d: 'Fraunces', Georgia, serif;
  --font-u: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --r:   8px;
  --r-l: 14px;
  --sidebar: 224px;
  --nav-h:   64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-u);
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
}

button { font: inherit; border: none; cursor: pointer; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AUTH SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

/* Radial warm glow from center */
.auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,
      rgba(201, 162, 106, 0.055) 0%,
      transparent 65%);
  pointer-events: none;
}

/* Fine dot grid — extremely subtle */
.auth-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.auth-wordmark {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-d);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
}

.auth-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.auth-headline {
  font-family: var(--font-d);
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.auth-headline em {
  font-style: italic;
  color: var(--gold);
}

.auth-sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-3);
  margin-bottom: 44px;
  max-width: 280px;
}

/* Input field — underline style */
.auth-field-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.auth-input-row {
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.auth-input-row::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.auth-input-row:focus-within::after { width: 100%; }
.auth-input-row:focus-within { border-color: transparent; }

.auth-input {
  width: 100%;
  padding: 12px 52px 12px 0;
  font-size: 20px;
  font-family: var(--font-d);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text);
  caret-color: var(--gold);
}

.auth-input::placeholder { color: var(--text-3); opacity: 0.5; font-size: 18px; }

.auth-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.auth-arrow:hover { opacity: 1; transform: translateY(-50%) translateX(3px); }

.auth-err {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--s-cancelled);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s, transform 0.2s;
}

.auth-err.on { opacity: 1; transform: none; }

.auth-footer {
  margin-top: 60px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
  max-width: 300px;
  align-self: center;
}

.auth-footer a {
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.auth-footer a:hover { color: var(--gold); border-color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOADING STATE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.loading-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-mark {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DASHBOARD SHELL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.shell {
  display: flex;
  min-height: 100svh;
}

/* ─── Sidebar (desktop) ─── */
.sidebar {
  width: var(--sidebar);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-faint);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.sb-brand {
  padding: 26px 22px 22px;
  font-family: var(--font-d);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border-faint);
}

.sb-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.15s, background 0.15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-link svg { flex-shrink: 0; opacity: 0.65; transition: opacity 0.15s; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link:hover svg { opacity: 0.85; }

.nav-link.on {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 500;
}

.nav-link.on svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sb-foot {
  padding: 14px 14px 18px;
  border-top: 1px solid var(--border-faint);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,162,106,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.user-bal {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 1px;
}

.logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.logout-btn:hover { color: var(--s-cancelled); background: rgba(192,96,96,0.08); }

/* ─── Main content ─── */
.main {
  flex: 1;
  margin-left: var(--sidebar);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.tab-body {
  flex: 1;
  padding: 32px;
  max-width: 860px;
  width: 100%;
}

.page-title {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  .sidebar { display: none !important; }

  .main {
    margin-left: 0;
    padding-bottom: var(--nav-h);
  }

  .tab-body {
    padding: 20px 16px 16px;
    max-width: 100%;
  }

  .page-title { font-size: 22px; margin-bottom: 16px; }

  /* Mobile top bar */
  .topbar {
    display: flex !important;
    align-items: center;
    padding: 14px 18px 14px;
    border-bottom: 1px solid var(--border-faint);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 12px;
  }

  .topbar-brand {
    font-family: var(--font-d);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    flex: 1;
  }

  .topbar-bal {
    font-size: 13px;
    color: var(--text-2);
  }

  .topbar-logout {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
  }

  /* Bottom nav */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-faint);
    align-items: center;
    justify-content: space-around;
    padding: 0 4px env(safe-area-inset-bottom, 0);
    z-index: 20;
  }

  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px;
    color: var(--text-3);
    cursor: pointer;
    transition: color 0.15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .bn-item.on { color: var(--gold); }

  .bn-label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .bn-dot {
    position: absolute;
    top: 8px;
    right: calc(50% - 18px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    border: 1.5px solid var(--bg-elevated);
  }
}

@media (min-width: 769px) {
  .topbar, .bottom-nav { display: none !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILTER PILLS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.filters {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filter {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.filter:hover { color: var(--text-2); border-color: var(--border); }

.filter.on {
  border-color: rgba(201,162,106,0.4);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ORDER CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-left: 3px solid transparent;
  border-radius: var(--r-l);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.order-card:hover { border-color: var(--border); }

.order-card[data-status="pending"]   { border-left-color: var(--s-pending); }
.order-card[data-status="claimed"]   { border-left-color: var(--s-claimed); }
.order-card[data-status="delivered"] { border-left-color: var(--s-delivered); }
.order-card[data-status="completed"] { border-left-color: var(--s-completed); }
.order-card[data-status="cancelled"] { border-left-color: var(--s-cancelled); }

.order-card.open { border-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

.oc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px 16px;
}

.oc-id-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.oc-id {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}

.oc-id small {
  font-family: var(--font-u);
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 300;
}

.oc-ign {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-tag {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.st-pending   { background: rgba(201,162,106,0.10); color: var(--s-pending); }
.st-claimed   { background: rgba(122,171,218,0.10); color: var(--s-claimed); }
.st-delivered { background: rgba(114,196,168,0.10); color: var(--s-delivered); }
.st-completed { background: rgba(120,184,122,0.10); color: var(--s-completed); }
.st-cancelled { background: rgba(192,96,96,0.10);  color: var(--s-cancelled); }

.oc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px 12px 16px;
  font-size: 12.5px;
  color: var(--text-3);
}

.oc-preview { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-date { flex-shrink: 0; font-size: 11.5px; }

/* Expanded detail */
.oc-detail {
  border-top: 1px solid var(--border-faint);
  padding: 16px 18px 18px 16px;
}

.items-table { width: 100%; margin-bottom: 16px; }

.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-faint);
  font-size: 13.5px;
}

.item-row:last-child { border-bottom: none; }

.item-qty { color: var(--gold); font-weight: 500; min-width: 28px; }
.item-name { flex: 1; color: var(--text); }
.item-price { color: var(--text-3); font-size: 13px; }

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
  border-top: 1px solid var(--border-faint);
  margin-top: 2px;
}

.order-total span:first-child { font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.order-total span:last-child { font-family: var(--font-d); font-size: 18px; color: var(--gold); }

/* Messages */
.msg-section { margin-top: 16px; }

.section-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.msg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 2px;
}

.msg-list::-webkit-scrollbar { width: 3px; }
.msg-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg-bubble {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.msg-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 5px;
}

.msg-compose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.msg-ta {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text);
  resize: none;
  min-height: 40px;
  max-height: 110px;
  line-height: 1.5;
  transition: border-color 0.2s;
  caret-color: var(--gold);
}

.msg-ta:focus { border-color: rgba(201,162,106,0.4); }
.msg-ta::placeholder { color: var(--text-3); }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
}

.send-btn:hover { opacity: 0.85; }
.send-btn:active { transform: scale(0.93); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NEW ORDER / ITEMS GRID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .item-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

.ic {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-l);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.ic.selected { border-color: rgba(201,162,106,0.5); background: var(--gold-dim); }

.ic-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.ic-price {
  font-family: var(--font-d);
  font-size: 17px;
  color: var(--gold);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.q-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: var(--text);
  transition: background 0.1s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.q-btn:active { background: var(--border); }

.q-val {
  font-size: 15px;
  font-weight: 500;
  min-width: 22px;
  text-align: center;
  color: var(--text);
}

/* Cart sticky footer */
.cart-bar {
  position: sticky;
  bottom: calc(var(--nav-h) + 12px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  z-index: 5;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

@media (min-width: 769px) {
  .cart-bar { bottom: 20px; }
}

.cart-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.cart-info { flex: 1; }
.cart-count { font-size: 12px; color: var(--text-3); }
.cart-total { font-family: var(--font-d); font-size: 22px; color: var(--gold); line-height: 1.2; }

.cart-btn {
  background: var(--gold);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-btn:hover { opacity: 0.87; }
.cart-btn:active { transform: scale(0.97); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BALANCE PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.balance-hero {
  text-align: center;
  padding: 40px 20px 36px;
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 28px;
}

.bal-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.bal-amount {
  font-family: var(--font-d);
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.bal-amount sup {
  font-size: 0.38em;
  vertical-align: super;
  color: var(--text-3);
  margin-right: 2px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-faint);
  font-size: 13.5px;
}

.activity-row:last-child { border-bottom: none; }
.activity-row .act-desc { flex: 1; color: var(--text); }
.activity-row .act-amount { font-family: var(--font-d); font-size: 15px; }
.activity-row .act-date { font-size: 11.5px; color: var(--text-3); flex-shrink: 0; }
.act-plus { color: var(--s-completed); }
.act-minus { color: var(--s-cancelled); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(9,9,10,0.88);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

@media (min-width: 500px) {
  .modal-bg { align-items: center; }
}

.modal-bg.on { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 24px 22px 30px;
  width: 100%;
  max-width: 420px;
  transform: translateY(16px);
  transition: transform 0.25s var(--ease);
}

@media (min-width: 500px) {
  .modal {
    border-radius: var(--r-l);
    transform: scale(0.97) translateY(0);
  }
}

.modal-bg.on .modal { transform: none; }

.modal-title {
  font-family: var(--font-d);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.btn-prim {
  flex: 1;
  padding: 13px;
  background: var(--gold);
  color: var(--bg);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.15s;
  cursor: pointer;
}

.btn-prim:hover { opacity: 0.87; }
.btn-prim:active { transform: scale(0.97); }

.btn-sec {
  padding: 13px 18px;
  border: 1px solid var(--border);
  color: var(--text-3);
  border-radius: var(--r);
  font-size: 14px;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-sec:hover { color: var(--text); border-color: var(--text-3); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOASTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  max-width: 280px;
  pointer-events: all;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  animation: toastIn 0.3s var(--ease) forwards;
}

.toast.ok  { border-left: 3px solid var(--s-completed); }
.toast.err { border-left: 3px solid var(--s-cancelled); }
.toast.inf { border-left: 3px solid var(--gold); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMPTY & SKELETON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  gap: 10px;
  text-align: center;
}

.empty-ico { font-size: 28px; opacity: 0.25; }
.empty-title { font-family: var(--font-d); font-size: 17px; color: var(--text-2); }
.empty-txt { font-size: 13px; color: var(--text-3); max-width: 220px; line-height: 1.6; }

.skel {
  background: linear-gradient(90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCREEN TRANSITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.fade-in {
  animation: fadeUp 0.35s var(--ease) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLLBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NEW ORDER FORM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.order-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.of-field { display: flex; flex-direction: column; gap: 10px; }

.of-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Player IGN */
.of-ign {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  caret-color: var(--gold);
  transition: border-color 0.2s;
  width: 100%;
}

.of-ign:focus { border-color: rgba(201,162,106,0.45); outline: none; }
.of-ign::placeholder { color: var(--text-3); font-size: 14px; }

/* Order rows */
#order-rows { display: flex; flex-direction: column; gap: 8px; }

.order-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.row-num {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  user-select: none;
  -webkit-user-select: none;
}

/* Item select */
.row-select-wrap {
  position: relative;
}

.row-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-3);
  pointer-events: none;
}

.row-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 36px 10px 12px;
  font-size: 13.5px;
  font-family: var(--font-u);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.row-select:focus { border-color: rgba(201,162,106,0.45); outline: none; }
.row-select option { background: #1a1a1e; color: var(--text); }

/* Qty control */
.row-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.row-q-btn {
  width: 32px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.1s, background 0.1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.row-q-btn:active { background: var(--border); color: var(--text); }

.row-q-inp {
  width: 38px;
  height: 38px;
  text-align: center;
  font-size: 14px;
  font-family: var(--font-u);
  color: var(--text);
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  -moz-appearance: textfield;
  outline: none;
}

.row-q-inp::-webkit-inner-spin-button,
.row-q-inp::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove button */
.row-rm {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.row-rm:hover { color: var(--s-cancelled); background: rgba(192,96,96,0.08); }
.row-rm-ph { width: 30px; flex-shrink: 0; }

/* Add item button */
.of-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 7px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  align-self: flex-start;
  user-select: none;
  -webkit-user-select: none;
}

.of-more:hover { color: var(--gold); border-color: rgba(201,162,106,0.4); }

/* Total row */
.of-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}

.of-total span:first-child {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.of-total-val {
  font-family: var(--font-d);
  font-size: 26px;
  color: var(--gold);
}

/* Submit button */
.of-submit {
  align-self: flex-end;
  padding: 13px 28px;
  background: var(--gold);
  color: var(--bg);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  min-width: 140px;
  text-align: center;
}

.of-submit:hover { opacity: 0.87; }
.of-submit:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .order-row {
    grid-template-columns: 18px 1fr auto auto;
    gap: 7px;
  }
  .row-q-inp { width: 30px; }
  .row-q-btn { width: 28px; }
  .of-submit { align-self: stretch; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE OVERFLOW FIX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html, body { overflow-x: hidden; max-width: 100vw; }

.shell, .main, .tab-body { overflow-x: hidden; }

.orders-list { width: 100%; min-width: 0; }

.order-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Flex children need min-width:0 to actually truncate */
.oc-top      { min-width: 0; }
.oc-id-block { min-width: 0; flex: 1; overflow: hidden; }
.oc-id       { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-meta     { min-width: 0; }
.oc-preview {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filters { max-width: 100%; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHAT BUBBLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Remove old .msg-bubble global rule — override here */
.msg-list { display: flex; flex-direction: column; gap: 10px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}

.chat-msg.mine  { align-self: flex-end;  align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

/* Partner (mine) — right, gold tint */
.chat-msg.mine .chat-bubble {
  background: rgba(201, 162, 106, 0.14);
  border: 1px solid rgba(201, 162, 106, 0.25);
  border-bottom-right-radius: 4px;
  color: var(--text);
}

/* Support/worker (theirs) — left, neutral surface */
.chat-msg.theirs .chat-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border-faint);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.chat-time {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 3px;
  padding: 0 2px;
}

.chat-empty {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   /bolder — DESIGN CONFIDENCE PASS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Stronger page title weight */
.page-title {
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Order ID — bigger, less shrinking */
.oc-id {
  font-size: 16px;
  font-weight: 500;
}

.oc-id small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.55;
}

/* Status tags — stronger, no hesitation */
.status-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
}

/* Filter pills — selected state pops harder */
.filter.on {
  font-weight: 600;
  border-width: 1.5px;
}

/* Nav active — more weight */
.nav-link.on { font-weight: 600; }
.bn-item.on .bn-label { font-weight: 600; }

/* Gold accent text larger in balance */
.bal-amount {
  font-weight: 300;
  letter-spacing: -0.03em;
}

/* Sidebar balance — more readable */
.user-bal { font-size: 12px; color: var(--gold); opacity: 0.8; }

/* CTA buttons — heavier weight, no softness */
.cart-btn, .btn-prim, .of-submit { font-weight: 600; letter-spacing: 0.01em; }

/* Auth arrow — bolder */
.auth-input { font-weight: 400; }

/* Order card hover → more lift */
.order-card:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

/* Message send button — slightly bigger */
.send-btn { width: 44px; height: 44px; }

/* Topbar balance — gold, prominent */
.topbar-bal {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

/* Section labels — slightly stronger */
.section-label {
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

/* Qty value — bigger */
.q-val { font-size: 16px; font-weight: 600; }

/* Item name in order form — easier to read */
.ic-name { font-size: 14px; }

/* Row number — slightly more visible */
.row-num { font-size: 12px; font-weight: 500; color: var(--text-3); }

/* Wordmark slightly stronger */
.auth-wordmark { opacity: 0.85; letter-spacing: 0.30em; }
.sb-brand { letter-spacing: 0.24em; opacity: 0.9; }

/* Chat bubble — slightly more padding */
.chat-bubble { padding: 10px 14px; font-size: 14px; }

/* Empty state icons — more visible */
.empty-title { font-size: 18px; font-weight: 400; }

/* Order total in detail */
.order-total span:last-child { font-size: 20px; }

/* ═══════════════════════════════════════════════════
   TIKTOK MULTISTREAM PAGE
   ═══════════════════════════════════════════════════ */
.tt-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
  padding-bottom: 40px;
}

/* ── Hero card ───────────────────────────────────── */
.tt-hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  padding: 28px 24px 26px;
}
.tt-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%,   rgba(105,201,208, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse at 85% 100%, rgba(238, 29, 82,  0.09) 0%, transparent 55%);
  pointer-events: none;
}
.tt-hero-inner { position: relative; z-index: 1; }
.tt-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.tt-logo-icon svg { display: block; }
.tt-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.tt-logo-text span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #69c9d0;
}
.tt-tagline {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* ── Feature list ────────────────────────────────── */
.tt-features {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tt-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.tt-feat svg { flex-shrink: 0; margin-top: 0.5px; }

/* ── Pricer ──────────────────────────────────────── */
.tt-pricer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 20px;
}
.tt-pricer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.tt-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.tt-step-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tt-step-btn:active  { transform: scale(0.88); }
.tt-step-btn:hover   { background: var(--surface-3); border-color: var(--text-3); }
.tt-step-add { border-color: rgba(105,201,208,0.3); color: #69c9d0; }
.tt-step-add:hover { border-color: rgba(105,201,208,0.6); background: rgba(105,201,208,0.07); }

.tt-count-wrap { text-align: center; min-width: 68px; }
.tt-count {
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -3px;
  line-height: 1;
  transition: color 0.15s;
}
.tt-count-pulse { animation: tt-pulse 0.2s ease-out; }
@keyframes tt-pulse {
  0%   { transform: scale(1.18); color: #69c9d0; }
  100% { transform: scale(1);    color: var(--text); }
}
.tt-count-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

.tt-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tt-price-unit  { font-size: 12.5px; color: var(--text-3); }
.tt-price-per   { font-size: 15px; font-weight: 600; color: var(--text-2); }
.tt-price-total { display: flex; align-items: baseline; gap: 2px; }
.tt-price-total span:first-child {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  transition: all 0.12s;
}
.tt-price-mo {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

/* ── Coming Soon ─────────────────────────────────── */
.tt-soon {
  background: linear-gradient(140deg, rgba(201,162,106,0.07) 0%, rgba(14,14,16,0) 60%);
  border: 1px solid rgba(201,162,106,0.22);
  border-radius: 16px;
  padding: 22px 22px 20px;
}
.tt-soon-toprow {
  margin-bottom: 12px;
}
.tt-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,162,106,0.10);
  color: var(--gold);
  border: 1px solid rgba(201,162,106,0.28);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.tt-soon-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: tt-dot 1.6s ease-in-out infinite;
}
@keyframes tt-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.tt-soon-txt {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 18px;
}
.tt-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.tt-cta:active { transform: scale(0.97); }
.tt-cta:hover  { opacity: 0.88; }
