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

:root {
  --primary: #000;
  --primary-dark: #222;
  --primary-light: #555;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f2f2f2;
  --text: #000000;
  --text-muted: #555555;
  --text-dim: #999999;
  --border: #dddddd;
  --success: #22cc66;
  --warning: #d97706;
  --text-on-warning: #ffffff;
  --danger: #ef4444;
  --info: #000;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 200ms ease;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-elevated: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #aaaaaa;
  --text-dim: #777777;
  --border: #333333;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --text-on-warning: #000000;
}

[data-redesign="true"] {
  --primary: #000000;
  --primary-dark: #000000;
  --primary-light: #333333;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f2f2f2;
  --text: #000000;
  --text-muted: #333333;
  --text-dim: #666666;
  --border: #dddddd;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --success: #000000;
  --warning: #000000;
  --danger: #000000;
  --info: #000000;
  --text-on-warning: #ffffff;
}
[data-redesign="true"][data-theme="dark"] {
  --primary: #ffffff;
  --primary-dark: #ffffff;
  --primary-light: #cccccc;
  --bg: #000000;
  --bg-card: #111111;
  --bg-elevated: #222222;
  --text: #ffffff;
  --text-muted: #cccccc;
  --text-dim: #888888;
  --border: #333333;
  --shadow: 0 4px 24px rgba(255,255,255,0.05);
  --success: #ffffff;
  --warning: #ffffff;
  --danger: #ffffff;
  --info: #ffffff;
  --text-on-warning: #000000;
}
[data-redesign="true"] .welcome-icon { display: none !important; }
[data-redesign="true"] .redesign-logo-light,
[data-redesign="true"] .redesign-logo-dark { max-width: 180px; height: auto; }
[data-redesign="true"] .redesign-logo-light { display: inline-block !important; margin: 0 auto 16px; }
[data-redesign="true"] .redesign-logo-dark { display: none !important; }
[data-redesign="true"][data-theme="dark"] .redesign-logo-light { display: none !important; }
[data-redesign="true"][data-theme="dark"] .redesign-logo-dark { display: inline-block !important; margin: 0 auto 16px; }

/* ---- Redesign Component Overrides ---- */
[data-redesign="true"] .dock-track {
  background: none;
  box-shadow: none;
}
[data-redesign="true"] .track-fill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 220%;
  transform: translateY(-50%);
  background: #000;
  box-shadow: 0 0 0 2px var(--bg);
  transition: left 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-redesign="true"][data-theme="dark"] .track-fill {
  background: #fff;
}
[data-redesign="true"] .dock-item-circle {
  color: rgba(0,0,0,0.3);
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 250ms ease, color 250ms ease;
}
[data-redesign="true"][data-theme="dark"] .dock-item-circle {
  color: rgba(255,255,255,0.3);
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-redesign="true"] .dock-item.active .dock-item-circle {
  color: #000;
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-redesign="true"][data-theme="dark"] .dock-item.active .dock-item-circle {
  color: #fff;
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-redesign="true"] .dock-item.active .dock-item-circle::before { display: none; }
[data-redesign="true"][data-theme="dark"] .dock-item.active .dock-item-circle::before { display: none; }
[data-redesign="true"] .dock-item:hover .dock-item-circle {
  color: rgba(0,0,0,0.5);
}
[data-redesign="true"][data-theme="dark"] .dock-item:hover .dock-item-circle {
  color: rgba(255,255,255,0.5);
}
[data-redesign="true"] .dock-item.active { position: relative; }
[data-redesign="true"] .btn-primary {
  background: #000;
  color: #fff;
}
[data-redesign="true"] .btn-primary:hover {
  background: #333;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
[data-redesign="true"][data-theme="dark"] .btn-primary {
  background: #fff;
  color: #000;
}
[data-redesign="true"][data-theme="dark"] .btn-primary:hover {
  background: #ccc;
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}
[data-redesign="true"] .btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
[data-redesign="true"] .btn-outline:hover {
  background: #f3f4f6;
  border-color: #000;
  color: #000;
}
[data-redesign="true"][data-theme="dark"] .btn-outline {
  background: #000;
}
[data-redesign="true"][data-theme="dark"] .btn-outline:hover {
  background: #222;
  border-color: #fff;
  color: #fff;
}
[data-redesign="true"] .btn-danger {
  background: #000;
  color: #fff;
}
[data-redesign="true"][data-theme="dark"] .btn-danger {
  background: #fff;
  color: #000;
}
[data-redesign="true"] .btn-icon {
  background: #fff;
  border-color: var(--border);
}
[data-redesign="true"] .btn-icon:hover {
  background: #f3f4f6;
}
[data-redesign="true"][data-theme="dark"] .btn-icon {
  background: #111;
}
[data-redesign="true"][data-theme="dark"] .btn-icon:hover {
  background: #222;
}
[data-redesign="true"] input,
[data-redesign="true"] select,
[data-redesign="true"] textarea,
[data-redesign="true"] .form-input,
[data-redesign="true"] .form-select,
[data-redesign="true"] .form-textarea,
[data-redesign="true"] .search-box,
[data-redesign="true"] .chat-input {
  border-color: #ddd;
  background: #fff;
  color: var(--text);
}
[data-redesign="true"] input:focus,
[data-redesign="true"] select:focus,
[data-redesign="true"] textarea:focus,
[data-redesign="true"] .form-input:focus,
[data-redesign="true"] .form-select:focus,
[data-redesign="true"] .form-textarea:focus,
[data-redesign="true"] .search-box:focus,
[data-redesign="true"] .chat-input:focus {
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}
[data-redesign="true"][data-theme="dark"] input,
[data-redesign="true"][data-theme="dark"] select,
[data-redesign="true"][data-theme="dark"] textarea,
[data-redesign="true"][data-theme="dark"] .form-input,
[data-redesign="true"][data-theme="dark"] .form-select,
[data-redesign="true"][data-theme="dark"] .form-textarea,
[data-redesign="true"][data-theme="dark"] .search-box,
[data-redesign="true"][data-theme="dark"] .chat-input {
  border-color: #333;
  background: #111;
}
[data-redesign="true"][data-theme="dark"] input:focus,
[data-redesign="true"][data-theme="dark"] select:focus,
[data-redesign="true"][data-theme="dark"] textarea:focus,
[data-redesign="true"][data-theme="dark"] .form-input:focus,
[data-redesign="true"][data-theme="dark"] .form-select:focus,
[data-redesign="true"][data-theme="dark"] .form-textarea:focus,
[data-redesign="true"][data-theme="dark"] .search-box:focus,
[data-redesign="true"][data-theme="dark"] .chat-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}
[data-redesign="true"] .badge.badge-status {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
[data-redesign="true"] .badge-status.active { background: #000; color: #fff; }
[data-redesign="true"] .badge-status.delivered { background: #000; color: #fff; }
[data-redesign="true"] .badge-subscription { background: #000; color: #fff; }
[data-redesign="true"][data-theme="dark"] .badge-status.active { background: #fff; color: #000; }
[data-redesign="true"][data-theme="dark"] .badge-status.delivered { background: #fff; color: #000; }
[data-redesign="true"][data-theme="dark"] .badge-subscription { background: #fff; color: #000; }
[data-redesign="true"] .toast { border-left-color: #000; }
[data-redesign="true"][data-theme="dark"] .toast { border-left-color: #fff; }
[data-redesign="true"] .toast.success,
[data-redesign="true"] .toast.info,
[data-redesign="true"] .toast.error {
  background: var(--bg-card);
  border-left: 3px solid #000;
}
[data-redesign="true"][data-theme="dark"] .toast.success,
[data-redesign="true"][data-theme="dark"] .toast.info,
[data-redesign="true"][data-theme="dark"] .toast.error {
  border-left-color: #fff;
}
[data-redesign="true"] .auth-tabs { border-bottom-color: #ddd; }
[data-redesign="true"] .auth-tab { color: #999; }
[data-redesign="true"] .auth-tab.active { color: #000; }
[data-redesign="true"] .auth-tab.active::after { background: #000; }
[data-redesign="true"][data-theme="dark"] .auth-tabs { border-bottom-color: #333; }
[data-redesign="true"][data-theme="dark"] .auth-tab { color: #666; }
[data-redesign="true"][data-theme="dark"] .auth-tab.active { color: #fff; }
[data-redesign="true"][data-theme="dark"] .auth-tab.active::after { background: #fff; }
[data-redesign="true"] .auth-msg.error {
  background: #f5f5f5;
  color: #000;
  border-left-color: #000;
}
[data-redesign="true"] .auth-msg.success {
  background: #f5f5f5;
  color: #000;
  border-left-color: #000;
}
[data-redesign="true"][data-theme="dark"] .auth-msg.error {
  background: #222;
  color: #fff;
  border-left-color: #fff;
}
[data-redesign="true"][data-theme="dark"] .auth-msg.success {
  background: #222;
  color: #fff;
  border-left-color: #fff;
}
[data-redesign="true"] .chat-msg.sent {
  background: #000;
  color: #fff;
}
[data-redesign="true"][data-theme="dark"] .chat-msg.sent {
  background: #fff;
  color: #000;
}
[data-redesign="true"] .admin-tab.active {
  border-color: #000;
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
[data-redesign="true"][data-theme="dark"] .admin-tab.active {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}
[data-redesign="true"] .role-option input:checked + .role-card {
  border-color: #000;
  background: rgba(0,0,0,0.05);
}
[data-redesign="true"][data-theme="dark"] .role-option input:checked + .role-card {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
[data-redesign="true"] .order-card:hover { border-color: #000; }
[data-redesign="true"][data-theme="dark"] .order-card:hover { border-color: #fff; }
[data-redesign="true"] .action-card:hover .action-icon {
  border-color: #000;
  color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
[data-redesign="true"][data-theme="dark"] .action-card:hover .action-icon {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
[data-redesign="true"] .badge-status {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
[data-redesign="true"] .order-status.accepted { background: #000; color: #fff; }
[data-redesign="true"] .order-status.in_transit { background: #000; color: #fff; }
[data-redesign="true"] .order-status.delivered { background: #000; color: #fff; }
[data-redesign="true"][data-theme="dark"] .order-status.accepted { background: #fff; color: #000; }
[data-redesign="true"][data-theme="dark"] .order-status.in_transit { background: #fff; color: #000; }
[data-redesign="true"][data-theme="dark"] .order-status.delivered { background: #fff; color: #000; }
[data-redesign="true"] .package-option:has(input:checked),
[data-redesign="true"] .load-option:has(input:checked) {
  background: none;
  border-color: transparent;
}
[data-redesign="true"][data-theme="dark"] .package-option:has(input:checked),
[data-redesign="true"][data-theme="dark"] .load-option:has(input:checked) {
  background: none;
}
[data-redesign="true"] .settings-item:hover { background: var(--bg-elevated); }
[data-redesign="true"] .profile-avatar { background: #000; color: #fff; }
[data-redesign="true"][data-theme="dark"] .profile-avatar { background: #fff; color: #000; }
[data-redesign="true"] #landmark-snap-display {
  background: rgba(0,0,0,0.05) !important;
}
[data-redesign="true"][data-theme="dark"] #landmark-snap-display {
  background: rgba(255,255,255,0.05) !important;
}
[data-redesign="true"] .welcome-page.auth-upgraded {
  background: #fff;
}
[data-redesign="true"] .welcome-page.auth-upgraded .welcome-container {
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.08);
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded {
  background: #000;
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .welcome-container {
  background: #111;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
}
[data-redesign="true"] .welcome-page.auth-upgraded .form-input {
  border-color: #ddd;
  background: #fff;
}
[data-redesign="true"] .welcome-page.auth-upgraded .form-input:focus {
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
}
[data-redesign="true"] .welcome-page.auth-upgraded .form-input:hover {
  border-color: #bbb;
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .form-input {
  border-color: #333;
  background: #111;
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .form-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.2);
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .form-input:hover {
  border-color: #555;
}
[data-redesign="true"] .welcome-page.auth-upgraded .btn {
  background: #000;
  color: #fff;
}
[data-redesign="true"] .welcome-page.auth-upgraded .btn:hover {
  background: #333;
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .btn {
  background: #fff;
  color: #000;
}
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .btn:hover {
  background: #ccc;
  box-shadow: 0 15px 25px rgba(255,255,255,0.1);
}
[data-redesign="true"] .welcome-page.auth-upgraded .auth-field label { color: #666; }
[data-redesign="true"][data-theme="dark"] .welcome-page.auth-upgraded .auth-field label { color: #999; }
[data-redesign="true"] #code-display-box {
  background: #f5f5f5;
}
[data-redesign="true"][data-theme="dark"] #code-display-box {
  background: #222;
}
[data-redesign="true"] .btn-ripple { background: rgba(0,0,0,0.4); }
[data-redesign="true"][data-theme="dark"] .btn-ripple { background: rgba(255,255,255,0.3); }
[data-redesign="true"] .snap-info.status-success {
  color: #000;
  background: rgba(0,0,0,0.05);
}
[data-redesign="true"][data-theme="dark"] .snap-info.status-success {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Redesign: no background on cards */
[data-redesign="true"] .stat-card,
[data-redesign="true"] .order-card,
[data-redesign="true"] .action-card,
[data-redesign="true"] .profile-card,
[data-redesign="true"] .settings-item,
[data-redesign="true"] .quick-stats .stat-card,
[data-redesign="true"] .package-option,
[data-redesign="true"] .load-option,
[data-redesign="true"] .role-card,
[data-redesign="true"] .snap-info {
  background: none !important;
  border-color: var(--border);
}

/* ---- Dashboard Redesign ---- */
[data-redesign="true"] .dash-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 16px;
}
[data-redesign="true"] .dash-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
[data-redesign="true"] .dash-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-redesign="true"] .dash-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
[data-redesign="true"] .dash-greeting {
  font-size: 13px;
  color: var(--text-dim);
}
[data-redesign="true"] .dash-greeting strong {
  color: var(--text-muted);
}
[data-redesign="true"] .dash-header-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
[data-redesign="true"] .dash-go-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--text);
  color: var(--bg);
  width: fit-content;
  letter-spacing: 0.3px;
}
[data-redesign="true"] .dash-go-chip.hidden { display: none !important; }
[data-redesign="true"] .dash-go-chip .fa-crown { font-size: 10px; }

/* --- Stat cards --- */
[data-redesign="true"] .dash-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
[data-redesign="true"] .dash-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 150ms ease, border-color 150ms ease;
}
[data-redesign="true"] .dash-stat:active {
  transform: scale(0.97);
}
[data-redesign="true"] .dash-stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
}
[data-redesign="true"] .dash-stat-body {
  display: flex;
  flex-direction: column;
}
[data-redesign="true"] .dash-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
[data-redesign="true"] .dash-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* Premium stat accents */
body.premium-tier-active[data-redesign="true"] .dash-stat {
  border-left: 3px solid var(--premium-glow);
}

/* --- Section --- */
[data-redesign="true"] .dash-section {
  margin-bottom: 20px;
}
[data-redesign="true"] .dash-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* --- Quick Actions Grid --- */
[data-redesign="true"] .dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
[data-redesign="true"] .dash-action {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: transform 120ms ease, border-color 120ms ease;
}
[data-redesign="true"] .dash-action:active {
  transform: scale(0.96);
  border-color: var(--text-dim);
}
[data-redesign="true"] .dash-action i {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
[data-redesign="true"] .dash-action-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
[data-redesign="true"] .dash-action-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* --- Earnings --- */
[data-redesign="true"] .dash-earnings {
  display: flex;
  gap: 8px;
}
[data-redesign="true"] .dash-earn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
[data-redesign="true"] .dash-earn-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
[data-redesign="true"] .dash-earn-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
[data-redesign="true"] .dash-earn-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
[data-redesign="true"] .dash-earn-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 150ms ease;
}
[data-redesign="true"] .dash-earn-btn:active {
  background: var(--bg-elevated);
}
[data-redesign="true"] .dash-earn-btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 700;
}
[data-redesign="true"] .dash-earn-btn-primary:active {
  opacity: 0.8;
}
[data-redesign="true"] .dash-txn-list {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* --- Order list --- */
[data-redesign="true"] .dash-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-redesign="true"] .dash-empty {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
[data-redesign="true"] .dash-empty-icon {
  font-size: 32px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
[data-redesign="true"] .dash-empty h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
[data-redesign="true"] .dash-empty p {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ---- Create Order Redesign ---- */
[data-redesign="true"] .dash-back {
  background: none; border: none;
  font-size: 18px; color: var(--text-muted);
  cursor: pointer; padding: 0 8px 0 0; margin-right: 4px;
}
[data-redesign="true"] .dash-header-info { flex-direction: row; align-items: center; }

[data-redesign="true"] .pkg-pills {
  display: flex; gap: 8px;
}
[data-redesign="true"] .pkg-pill {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted);
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 150ms ease;
}
[data-redesign="true"] .pkg-pill i { font-size: 16px; }
[data-redesign="true"] .pkg-pill.active {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}
[data-redesign="true"] .pkg-pill:active { transform: scale(0.97); }

[data-redesign="true"] .load-chips {
  display: flex; gap: 6px;
}
[data-redesign="true"] .load-chip {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-dim);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 150ms ease; text-align: center;
}
[data-redesign="true"] .load-chip.active {
  background: var(--bg-elevated); color: var(--text);
  border-color: var(--text-dim);
}
[data-redesign="true"] .load-chip:active { transform: scale(0.97); }

[data-redesign="true"] .map-container {
  height: 250px; margin: 12px 0;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  isolation: isolate;
  z-index: 0;
}

[data-redesign="true"] .loc-actions {
  display: flex; gap: 8px; margin-bottom: 10px;
}
[data-redesign="true"] .loc-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-dim);
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 150ms ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
[data-redesign="true"] .loc-btn:active { background: var(--bg-elevated); }

[data-redesign="true"] .loc-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px;
}
[data-redesign="true"] .loc-slot {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px; border-radius: 10px;
  cursor: pointer; transition: background 150ms ease;
  min-width: 0;
}
[data-redesign="true"] .loc-slot:active { background: var(--bg-elevated); }
[data-redesign="true"] .loc-slot-dot {
  font-size: 10px; color: var(--text-dim); flex-shrink: 0;
}
[data-redesign="true"] .loc-slot-text {
  display: flex; flex-direction: column; min-width: 0;
}
[data-redesign="true"] .loc-slot-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-dim);
}
[data-redesign="true"] .loc-slot-text span:last-child {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-redesign="true"] .loc-divider {
  font-size: 14px; color: var(--text-dim); flex-shrink: 0;
}

[data-redesign="true"] .select-wrap {
  position: relative; display: flex; align-items: center;
}
[data-redesign="true"] .select-icon {
  position: absolute; left: 14px; font-size: 14px; color: var(--text-dim);
  pointer-events: none; z-index: 1;
}
[data-redesign="true"] .select-wrap .form-select {
  padding-left: 38px; flex: 1;
}

[data-redesign="true"] .input-with-prefix {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
[data-redesign="true"] .input-prefix {
  padding: 12px 14px; font-size: 13px; font-weight: 700;
  color: var(--text-dim); background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex; align-items: center;
}
[data-redesign="true"] .input-with-prefix .form-input {
  border: none; border-radius: 0; flex: 1;
}

[data-redesign="true"] .pricing-cards {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 12px;
}
[data-redesign="true"] .price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
[data-redesign="true"] .price-row:last-child { border-bottom: none; }
[data-redesign="true"] .price-row span:first-child { color: var(--text-dim); }
[data-redesign="true"] .price-row span:last-child { font-weight: 600; color: var(--text); }
[data-redesign="true"] .surcharge-row span:last-child { color: var(--warning); }
[data-redesign="true"] .price-total-row { padding: 12px 0; }
[data-redesign="true"] .price-total-row span:first-child { font-weight: 700; color: var(--text); font-size: 14px; }
[data-redesign="true"] .price-total-row span:last-child { font-weight: 800; font-size: 16px; }

[data-redesign="true"] .dash-submit {
  width: 100%; margin-top: 16px;
  padding: 16px; border: none; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 150ms ease;
  display: flex; justify-content: space-between; align-items: center;
}
[data-redesign="true"] .dash-submit:disabled {
  opacity: 0.35; cursor: not-allowed;
}
[data-redesign="true"] .dash-submit:not(:disabled):active {
  transform: scale(0.98);
}
[data-redesign="true"] .dash-submit-label { font-size: 15px; }
[data-redesign="true"] .dash-submit-price {
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
}

/* ---- Vendor Batch & Group Order ---- */
[data-redesign="true"] .vendor-dropoff-info {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; margin-bottom: 16px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); font-size: 13px; color: var(--text-dim);
}
[data-redesign="true"] .vendor-dropoff-info i { color: var(--danger); }

[data-redesign="true"] .group-member-inputs {
  display: flex; gap: 8px;
}
[data-redesign="true"] .group-member-inputs .input-with-prefix {
  flex: 1;
}
[data-redesign="true"] .group-member-inputs .input-prefix {
  font-size: 11px; min-width: 32px; justify-content: center;
}
[data-redesign="true"] .group-member-inputs .form-input {
  text-align: center; font-weight: 700;
}

/* ---- Phone chip UI ---- */
[data-redesign="true"] .phone-input-row {
  display: flex; gap: 8px;
}
[data-redesign="true"] .phone-input-row .form-input { flex: 1; }
[data-redesign="true"] .phone-add-btn {
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  transition: all 150ms ease;
}
[data-redesign="true"] .phone-add-btn:active { background: var(--bg-elevated); }
[data-redesign="true"] .phone-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
[data-redesign="true"] .phone-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 12px; border-radius: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text-muted);
}
[data-redesign="true"] .phone-chip-remove {
  background: none; border: none; cursor: pointer;
  font-size: 10px; color: var(--text-dim); padding: 2px;
  display: flex; align-items: center;
}
[data-redesign="true"] .phone-chip-remove:hover { color: var(--danger); }

/* ---- Form hint ---- */
[data-redesign="true"] .form-hint {
  font-size: 12px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.4;
}

/* ---- Biometric Gate ---- */
[data-redesign="true"] .bio-icon {
  font-size: 48px; color: var(--text-muted); margin-bottom: 12px;
}

/* ---- Withdrawal Modal ---- */
[data-redesign="true"] .withdraw-modal {
  max-width: 360px;
}
[data-redesign="true"] .withdraw-stats {
  display: flex; gap: 8px; margin-bottom: 12px;
}
[data-redesign="true"] .withdraw-stat {
  flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); text-align: center;
}
[data-redesign="true"] .withdraw-stat-label {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); margin-bottom: 4px;
}
[data-redesign="true"] .withdraw-stat-value {
  font-size: 20px; font-weight: 800;
}
[data-redesign="true"] .withdraw-pending-items {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; margin-bottom: 12px;
}
[data-redesign="true"] .withdraw-pending-row {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
[data-redesign="true"] .withdraw-pending-row:last-child { border-bottom: none; }
[data-redesign="true"] .withdraw-bank-info {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card);
}

/* ---- Install Banner ---- */
[data-redesign="true"] .install-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card);
}
[data-redesign="true"] .install-banner-icon {
  font-size: 24px; color: var(--text-muted); flex-shrink: 0;
}
[data-redesign="true"] .install-banner-text {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
[data-redesign="true"] .install-banner-text strong {
  font-size: 13px; color: var(--text);
}
[data-redesign="true"] .install-banner-text span {
  font-size: 11px; color: var(--text-dim); line-height: 1.3;
}

/* ---- WCAG / Accessibility ---- */

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

[aria-current="page"] {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 110px;
}

.hidden { display: none !important; }

.page {
  padding: 16px;
  animation: fadeIn 250ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 3D Capsule Navigation ---- */
.dock {
  position: fixed;
  z-index: 9999;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  max-width: 340px;
  width: fit-content;
}

[data-theme="dark"] .dock {
  background: rgba(30,30,36,0.3);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

[data-redesign="true"] .dock {
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(0,0,0,0.12);
}
[data-redesign="true"][data-theme="dark"] .dock {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
}


.dock-track {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(0,0,0,0.06);
  box-shadow: inset 0 0.5px 1px rgba(0,0,0,0.06);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .dock-track {
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0.5px 1px rgba(0,0,0,0.3);
}

.track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 16%;
  border-radius: 2px;
  background: linear-gradient(90deg,
    #000 0%,
    rgba(0,0,0,0.2) 60%,
    transparent 100%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-items {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.dock-item {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(0,0,0,0.04);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.03),
    0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .dock-item-circle {
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.2),
    0 2px 8px rgba(0,0,0,0.15);
}

.dock-item:hover .dock-item-circle {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.8);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.06),
    0 2px 8px rgba(0,0,0,0.03);
}

[data-theme="dark"] .dock-item:hover .dock-item-circle {
  background: rgba(255,255,255,0.1);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.3),
    0 2px 8px rgba(0,0,0,0.15);
}

.dock-item:active {
  transform: scale(0.92);
}

.dock-item.active .dock-item-circle {
  width: 50px;
  height: 50px;
  color: #fff;
  background: #000;
  border-color: transparent;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    0 0 32px rgba(0,0,0,0.08),
    inset 0 -1px 2px rgba(0,0,0,0.08);
}

[data-theme="dark"] .dock-item.active .dock-item-circle {
  background: #fff;
  box-shadow:
    0 4px 20px rgba(255,255,255,0.25),
    0 0 40px rgba(255,255,255,0.08),
    inset 0 -1px 2px rgba(0,0,0,0.1);
}

.dock-item.active .dock-item-circle::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255,255,255,0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.dock-item.active:hover .dock-item-circle {
  transform: translateY(-1px);
}

/* ---- Dark Theme Overrides for ALL elements ---- */
[data-theme="dark"] .btn-outline {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--bg-elevated);
}
[data-theme="dark"] .btn-icon {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .btn-icon:hover {
  background: var(--bg-elevated);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .search-box,
[data-theme="dark"] .chat-input {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .toast.info {
  background: #2a2a2a;
}
[data-theme="dark"] .code-box {
  background: #2a2a1a !important;
  border-color: #664400 !important;
}
[data-theme="dark"] .tracking-info .info-row {
  border-color: var(--border);
}
[data-theme="dark"] .chat-header,
[data-theme="dark"] .chat-section {
  border-color: var(--border);
}
[data-theme="dark"] .chat-msg.received {
  background: var(--bg-elevated);
}
[data-theme="dark"] .order-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .setting-item,
[data-theme="dark"] .settings-item {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .empty-state i,
[data-theme="dark"] .empty-state .empty-icon {
  opacity: 0.3;
}
[data-theme="dark"] .quick-stats .stat-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .action-icon {
  background: var(--bg-elevated);
  border-color: var(--border);
}
[data-theme="dark"] #code-display-box {
  background: #2a2a1a !important;
  border-color: #664400 !important;
}

/* ---- Page Header ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.header-greeting {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-back {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  font-family: inherit;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #f3f4f6; }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-block { width: 100%; }

.btn-lg { padding: 18px 36px; font-size: 16px; }

.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 12px; }

.btn-icon {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 18px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-icon:hover { background: #f3f4f6; transform: scale(1.05); }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.badge-status.active { background: var(--success); color: white; }
.badge-status.delivered { background: var(--info); color: white; }

.badge-subscription {
  background: var(--primary);
  color: white;
}

/* ---- Cards ---- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.quick-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

/* ---- Sections ---- */
.section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Quick Actions ---- */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  overflow-x: auto;
  padding: 8px 4px;
  -webkit-overflow-scrolling: touch;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  min-width: 56px;
  transition: transform 200ms ease;
  color: var(--text);
}

.action-card:active {
  transform: scale(0.92);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 200ms ease;
}

.action-card:hover .action-icon {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,84,204,0.08);
}

.action-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---- Order List ---- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}

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

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.order-id {
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
}

.order-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-elevated);
}

.order-status.accepted { background: var(--info); color: white; }
.order-status.in_transit { background: var(--warning); color: black; }
.order-status.delivered { background: var(--success); color: white; }

.order-locations {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-pickup::before { content: 'From: '; color: var(--text-dim); }
.order-dropoff::before { content: 'To: '; color: var(--text-dim); }

.order-fee {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 8px;
}

.batch-stops {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border-radius: 10px;
}
.batch-stops-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.batch-stops-title i { margin-right: 4px; color: var(--primary); }
.batch-stops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.batch-stops-list li {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.batch-stop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}


.empty-state {
  text-align: center;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state i,
.empty-state .empty-icon {
  font-size: 52px;
  color: var(--text-dim);
  opacity: 0.5;
  margin-bottom: 4px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  max-width: 280px;
  line-height: 1.4;
}

.empty-state .btn {
  margin-top: 12px;
}

/* ---- Form Elements ---- */
.form-section {
  margin-bottom: 20px;
}

.form-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 25px;
  border: 2px solid #f3f3f3;
  border-radius: 18px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.form-select {
  width: 100%;
  padding: 18px;
  background: #ffffff;
  border: 2px solid #f3f3f3;
  border-radius: 18px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.form-textarea {
  width: 100%;
  padding: 18px;
  background: #ffffff;
  border: 2px solid #f3f3f3;
  border-radius: 18px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.search-box {
  width: 100%;
  padding: 18px 28px;
  border-radius: 20px;
  border: 2px solid #f3f3f3;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #ffffff;
  color: var(--text);
}

.search-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.form-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* ---- Package Type Selector (with sliding ring) ---- */
.package-type-selector,
.load-tier-selector {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.load-tier-selector {
  grid-template-columns: 1fr 1fr 1fr;
}

.sel-ring {
  position: absolute;
  pointer-events: none;
  border: 2.5px solid transparent;
  border-radius: var(--radius);
  z-index: 0;
  box-sizing: border-box;
  transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-redesign="true"] .sel-ring {
  border-color: #000;
  display: block;
}
[data-redesign="true"][data-theme="dark"] .sel-ring {
  border-color: #fff;
}

.package-option,
.load-option {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition);
}

.package-option:has(input:checked),
.load-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.08);
}

.package-option input,
.load-option input {
  display: none;
}

.pkg-icon,
.load-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.pkg-name,
.load-name {
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.pkg-desc,
.load-desc {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

.load-multiplier {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* ---- Location ---- */
.location-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landmark-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.landmark-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: border-color var(--transition);
}

.landmark-label:has(input:checked) {
  border-color: var(--primary);
}

.snap-info {
  font-size: 13px;
  color: var(--success);
  padding: 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
}

/* ---- Pricing ---- */
.pricing-breakdown {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.price-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* ---- Login ---- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 0;
}

.login-container {
  text-align: center;
  max-width: 320px;
}

.login-brand {
  margin-bottom: 8px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  margin: 0 auto 12px;
  color: white;
}

.brand-title {
  font-size: 28px;
  font-weight: 900;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.login-tagline {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.login-consent {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ---- Tracking Map ---- */
.map-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  height: 240px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  isolation: isolate;
  z-index: 0;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.marker {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.marker.pickup { background: var(--info); color: white; top: 20%; left: 20%; }
.marker.trekker { background: var(--primary); color: white; top: 40%; left: 45%; }
.marker.dropoff { background: var(--success); color: white; bottom: 20%; right: 20%; }

.landmark-snap {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--primary-light);
  z-index: 2;
}

/* ---- Tracking Info ---- */
.tracking-info {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.info-label { color: var(--text-dim); }
.info-value { color: var(--text); font-weight: 500; }

/* ---- Chat ---- */
.chat-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.chat-header h3 { font-size: 14px; }

.chat-container {
  height: 200px;
  overflow-y: auto;
}

.chat-messages {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-msg {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg.sent {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.received {
  background: var(--bg-elevated);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg .msg-sender {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  opacity: 0.8;
}

.chat-msg .msg-time {
  font-size: 10px;
  opacity: 0.6;
  display: block;
  margin-top: 4px;
}

.chat-msg.system {
  background: transparent;
  color: var(--text-dim);
  align-self: center;
  font-size: 11px;
  font-style: italic;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  background: #ffffff;
  border: 2px solid #f3f3f3;
  border-radius: 18px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

/* ---- Profile ---- */
.profile-card {
  text-align: center;
  padding: 24px 0;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.profile-card h3 { font-size: 18px; margin-bottom: 4px; }
.profile-card p { font-size: 13px; color: var(--text-dim); }

.profile-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.stat-row + .stat-row { border-top: 1px solid var(--border); }

.badge-tier {
  font-size: 12px;
}

.subscription-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-info h4 { font-size: 15px; margin-bottom: 2px; }
.sub-info p { font-size: 13px; color: var(--text-dim); }

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}

.settings-item:hover { background: var(--bg-elevated); }
.settings-item:last-child { border-bottom: none; }
.settings-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.settings-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.toggle {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.settings-item-icon {
  width: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.settings-item-label {
  flex: 1;
  margin-left: 12px;
  text-align: left;
}

.toggle-badge {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: auto;
}

.modal-content h3 {
  font-size: 18px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions .btn { flex: 1; }

/* ---- Rating Stars ---- */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 32px;
}

.star {
  color: var(--bg-elevated);
  cursor: pointer;
  transition: color var(--transition);
}

.star.active,
.star:hover {
  color: var(--warning);
}

/* ---- Toast ---- */
#toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  width: calc(100% - 32px);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: slideDown 300ms ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Welcome Page ---- */
.welcome-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 0;
  background: var(--bg);
  color: var(--text);
}

.welcome-container {
  text-align: center;
  max-width: 320px;
  padding: 0 24px;
}

.welcome-icon {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  margin: 0 auto 16px;
  color: #ffffff;
}

.welcome-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
}

.welcome-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.welcome-tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

.welcome-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-welcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
  border: none;
  font-family: inherit;
  background: var(--primary);
  color: #ffffff;
}

.btn-welcome:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-welcome:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-welcome .btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-weight: 700;
}

.welcome-consent {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 20px;
}

/* ---- Auth Tabs ---- */
.auth-tabs {
  display: flex;
  gap: 20px;
  margin: 24px 0 30px;
  border-bottom: 1px solid #eee;
}

.auth-tab {
  padding: 0 0 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #999;
  font-family: inherit;
  position: relative;
  transition: color 200ms ease;
}

.auth-tab:hover { color: var(--primary); }

.auth-tab.active {
  color: var(--ws-black, #1a1a1b);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  animation: tabUnderline 0.3s ease-out;
}

@keyframes tabUnderline {
  from { width: 0; left: 50%; }
  to { width: 100%; left: 0; }
}

/* ---- Auth Page Upgrade (auth.php style) ---- */
.welcome-page.auth-upgraded {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-page.auth-upgraded .welcome-container {
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(10px);
  padding: 36px 32px;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.08);
  max-width: 380px;
  width: 100%;
  animation: containerSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes containerSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-page.auth-upgraded .welcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 26px;
  animation: logoPop 0.5s ease-out 0.2s both;
}

@keyframes logoPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-page.auth-upgraded .welcome-title {
  font-size: 26px;
}

.welcome-page.auth-upgraded .welcome-subtitle {
  font-size: 13px;
}

.welcome-page.auth-upgraded .auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.welcome-page.auth-upgraded .auth-field label i {
  width: 16px;
  margin-right: 4px;
}

.welcome-page.auth-upgraded .form-input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #eef2f6;
  border-radius: 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: white;
  color: var(--text);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  box-sizing: border-box;
}

.welcome-page.auth-upgraded .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.05);
  transform: scale(1.01);
}

.welcome-page.auth-upgraded .form-input:hover {
  border-color: #d0d9e8;
}

.welcome-page.auth-upgraded .btn {
  width: 100%;
  padding: 16px;
  background: #1a1a1b;
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  transition: background 200ms ease, transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 350ms ease;
  font-family: inherit;
}

.welcome-page.auth-upgraded .btn:hover {
  background: #2d2d2e;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.welcome-page.auth-upgraded .btn:active {
  transform: translateY(0) scale(0.98);
}

/* Password toggle */
.password-wrapper {
  position: relative;
  margin: 0 0 14px;
}

.password-wrapper .form-input {
  padding-right: 52px;
  margin: 0;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: color 200ms ease, transform 200ms ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.toggle-password:hover {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  background: rgba(0,0,0,0.03);
}

.toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
  border-radius: 50%;
}

/* Auth message bubbles */
.auth-msg {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-left: 4px solid transparent;
  animation: msgSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes msgSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-msg.error {
  background: #fee2e2;
  color: #b91c1c;
  border-left-color: #ef4444;
}

.auth-msg.success {
  background: #dcfce7;
  color: #15803d;
  border-left-color: #10b981;
}

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

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake { animation: shake 0.4s ease-in-out; }

/* ---- Auth Panels ---- */
.auth-panel {
  text-align: left;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: left;
}

.auth-field label i {
  width: 16px;
  margin-right: 4px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #f3f3f3;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.auth-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 10px;
  text-align: center;
}

/* ---- Role Picker ---- */
.role-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-option {
  display: block;
  cursor: pointer;
}

.role-option input {
  display: none;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: border-color 200ms ease;
  text-align: left;
}

.role-card i {
  font-size: 22px;
  color: var(--primary);
  width: 32px;
  text-align: center;
}

.role-card strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.role-card small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.role-option input:checked + .role-card {
  border-color: var(--primary);
  background: rgba(0,0,0,0.08);
}

/* ---- Manual Location Sheet ---- */
.lm-sheet-modal {
  padding: 0 !important;
  align-items: flex-end;
}

.lm-sheet {
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lm-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}

.lm-sheet-head h3 {
  font-size: 17px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lm-sheet-head h3 i {
  color: var(--primary);
}

.lm-sheet-close {
  border: none;
  background: var(--bg-elevated);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-sheet-seg {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
}

.lm-sheet-seg-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 150ms ease;
  flex-direction: column;
}

.lm-sheet-seg-btn i {
  font-size: 15px;
}

.lm-sheet-seg-btn .lm-sheet-seg-val {
  font-size: 11px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
}

.lm-sheet-seg-btn.active {
  border-color: var(--primary);
  background: var(--bg-elevated);
  color: var(--text);
}

.lm-sheet-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 20px 12px;
}

.lm-sheet-search i {
  color: var(--text-dim);
  font-size: 14px;
}

.lm-sheet-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.lm-sheet-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}

.lm-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  padding: 12px 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.lm-sheet-item:hover {
  background: var(--bg-elevated);
}

.lm-sheet-item-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.lm-sheet-item-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lm-sheet-item-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lm-sheet-cat {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: capitalize;
}

.lm-sheet-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
}

.lm-sheet-item.selected .lm-sheet-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lm-sheet-item.selected .lm-sheet-item-icon {
  background: var(--primary);
  color: #fff;
}

.lm-sheet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.lm-sheet-empty i {
  font-size: 26px;
}

.lm-sheet-foot {
  display: flex;
  gap: 8px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.lm-sheet-foot .btn {
  flex: 1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }

/* ---- Enhanced Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fadeIn { animation: fadeIn 350ms ease both; }
.animate-fadeInUp { animation: fadeInUp 400ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-scaleIn { animation: scaleIn 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-slideInRight { animation: slideInRight 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-slideInLeft { animation: slideInLeft 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }

.animate-stagger > * {
  animation: fadeInUp 400ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-stagger > *:nth-child(1) { animation-delay: 30ms; }
.animate-stagger > *:nth-child(2) { animation-delay: 60ms; }
.animate-stagger > *:nth-child(3) { animation-delay: 90ms; }
.animate-stagger > *:nth-child(4) { animation-delay: 120ms; }
.animate-stagger > *:nth-child(5) { animation-delay: 150ms; }
.animate-stagger > *:nth-child(6) { animation-delay: 180ms; }
.animate-stagger > *:nth-child(7) { animation-delay: 210ms; }
.animate-stagger > *:nth-child(8) { animation-delay: 240ms; }
.animate-stagger > *:nth-child(9) { animation-delay: 270ms; }
.animate-stagger > *:nth-child(10) { animation-delay: 300ms; }
.animate-stagger > *:nth-child(11) { animation-delay: 330ms; }
.animate-stagger > *:nth-child(12) { animation-delay: 360ms; }

/* ---- Toast Enhancements ---- */
#toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  width: calc(100% - 32px);
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  border-left: 3px solid var(--success);
  background: #f0fdf4;
}

.toast.error {
  border-left: 3px solid var(--danger);
  background: #fef2f2;
}

.toast.info {
  border-left: 3px solid var(--info);
  background: #fff7ed;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--info); }

/* ---- Admin Tabs ---- */
.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: inherit;
  transition: all 250ms ease;
  white-space: nowrap;
}

.admin-tab.active {
  border-color: #111;
}

.admin-tab.active {
  background: #111;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.admin-tab:active {
  transform: scale(0.95);
}

.admin-tab:not(.active) {
  color: var(--text);
}
.admin-tab:not(.active) i {
  margin-right: 6px;
  color: var(--text);
  opacity: 0.85;
}
[data-theme="dark"] .admin-tab:not(.active) {
  color: #ecedf5;
  background: #23232c;
  border-color: #33333f;
}
[data-theme="dark"] .admin-tab:not(.active) i {
  color: #ecedf5;
}

.admin-panel {
  display: none;
  animation: fadeInUp 350ms ease both;
}

.admin-panel.active {
  display: block;
}

/* ---- Stat Card Enhancements ---- */
.stat-card {
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.stat-card:active {
  transform: scale(0.96);
}

/* ---- Card Entry Animation ---- */
.order-card,
.settings-item,
.subscription-card,
.broadcast-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.order-card:active,
.broadcast-card:active {
  transform: scale(0.98);
}

/* ---- Badge Enhancements ---- */
.badge {
  transition: all 200ms ease;
}

/* ---- Modal Enhancements ---- */
.modal {
  animation: fadeIn 200ms ease;
}

.modal-content {
  animation: scaleIn 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ---- Button Press Ripple ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 500ms ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ---- Section Title Enhancements ---- */
.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Admin Empty State ---- */
.admin-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
}

.admin-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* ---- Admin Weather Card ---- */
.admin-weather-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
}

/* ---- Admin Toggle Switch ---- */
.admin-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.admin-toggle input {
  display: none;
}
.admin-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-elevated);
  border-radius: 26px;
  transition: all 300ms ease;
}
.admin-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 300ms ease;
}
.admin-toggle input:checked + .admin-toggle-slider {
  background: var(--primary);
}
.admin-toggle input:checked + .admin-toggle-slider::before {
  transform: translateX(22px);
}
.admin-toggle input:disabled + .admin-toggle-slider {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Admin Countdown ---- */
.admin-countdown {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* ---- Admin Power Action Buttons ---- */
.admin-power-action {
  background: var(--danger) !important;
  color: white !important;
  border: none !important;
}

#impersonation-banner {
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

/* Fix admin modals - overlay was missing, content card was broken */
#modal-container > .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
#modal-container .modal-overlay > .modal {
  position: relative;
  inset: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: auto;
}

/* Admin filter chips */
[data-redesign="true"] .admin-order-filter,
[data-redesign="true"] .admin-feedback-filter {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}
[data-redesign="true"] .admin-order-filter.active,
[data-redesign="true"] .admin-feedback-filter.active,
[data-redesign="true"] .admin-order-filter.active:hover,
[data-redesign="true"] .admin-feedback-filter.active:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Admin verifications */
.ver-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.ver-info-row:last-child { border-bottom: none; }
.ver-info-row span { color: var(--text-dim); }
.ver-info-row strong { text-align: right; word-break: break-word; }
.admin-ver-card .order-card-header { align-items: flex-start; }

/* Trekker verification dashboard banner */
.dash-tv-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.14));
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 14px;
}
.dash-tv-banner .tv-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dash-tv-banner .tv-banner-text { flex: 1; min-width: 0; }
.dash-tv-banner .tv-banner-text h4 { margin: 0 0 2px; font-size: 13px; color: var(--primary-light); }
.dash-tv-banner .tv-banner-text p { margin: 0; font-size: 12px; color: var(--text-dim); }

/* ---- Admin Mobile ---- */
@media (max-width: 600px) {
  .admin-tab {
    padding: 6px 8px;
    font-size: 10px;
  }
  .admin-tab i {
    font-size: 12px;
    display: block;
    margin: 0 auto 2px;
  }
  .admin-tabs {
    gap: 3px;
    margin-bottom: 10px;
  }
  .admin-weather-card {
    padding: 14px;
  }

  .page-header {
    padding: 8px 12px !important;
  }
  .page-header h2 {
    font-size: 15px;
  }
  .page-header .header-greeting {
    font-size: 11px;
  }
  #admin-page .form-input {
    font-size: 14px;
    padding: 10px 12px;
  }

  #admin-overview-panel .quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }
  #admin-overview-panel .stat-card {
    padding: 10px 6px;
  }
  #admin-overview-panel .stat-value {
    font-size: 18px;
  }
  #admin-overview-panel .stat-label {
    font-size: 10px;
  }
  #admin-overview-panel .quick-actions .action-card {
    padding: 8px 4px;
  }
  #admin-overview-panel .quick-actions .action-card i {
    font-size: 18px !important;
  }
  #admin-overview-panel .quick-actions .action-card .stat-label {
    font-size: 10px;
  }

  #admin-orders-panel > div:first-child {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  #admin-orders-panel .admin-order-filter {
    flex: 0 0 auto !important;
    white-space: nowrap;
    font-size: 11px;
    padding: 6px 10px;
  }

  .order-card {
    padding: 10px !important;
  }
  #admin-orders-list .order-card strong {
    font-size: 12px !important;
  }
  #admin-orders-list .order-card button {
    font-size: 10px !important;
    padding: 6px 8px !important;
    min-height: 32px;
  }

  #admin-users-list .order-card > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #admin-users-list .order-card > div > div:last-child {
    align-items: stretch !important;
    margin-top: 8px;
  }
  #admin-users-list .order-card > div > div:last-child span {
    display: none;
  }
  #admin-users-list .order-card > div > div:last-child > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    width: 100%;
  }
  #admin-users-list .order-card button,
  #admin-users-list .order-card .btn-outline {
    font-size: 9px !important;
    padding: 6px 4px !important;
    min-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #admin-bulk-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 6px 8px !important;
  }
  #admin-bulk-toolbar button {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 10px !important;
    padding: 6px 8px !important;
  }

  #admin-campuses-list .section > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
  }
  #admin-campuses-list .section > div:first-child > div:last-child {
    align-self: flex-end;
  }
  #admin-campuses-list .order-card {
    padding: 8px 10px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
  }
  #admin-campuses-list .order-card button {
    font-size: 10px !important;
    padding: 5px 8px !important;
    min-height: 30px;
  }
  #admin-campuses-list .section > div:nth-child(2) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
  }

  #admin-merchants-list .section > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
  }
  #admin-merchants-list .section > div:first-child p {
    font-size: 11px !important;
  }
  #admin-merchants-list .order-card {
    padding: 8px 10px !important;
  }
  #admin-merchants-list .order-card > div:first-child {
    flex-wrap: wrap;
    gap: 4px;
  }
  #admin-merchants-list .order-card button {
    font-size: 10px !important;
    padding: 5px 8px !important;
    min-height: 30px;
  }

  #admin-notifications-list textarea {
    min-height: 60px !important;
    font-size: 13px;
  }

  #admin-audit-content table {
    font-size: 10px !important;
  }
  #admin-audit-content th,
  #admin-audit-content td {
    padding: 6px 4px !important;
  }
  #admin-audit-content td:nth-child(5) {
    max-width: 100px !important;
  }

  #admin-errorlog-content {
    font-size: 10px;
    word-break: break-all;
  }
  #admin-errorlog-content pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 10px;
    line-height: 1.4;
  }

  #admin-finance-content .stat-card,
  #admin-settings-content .stat-card {
    padding: 10px;
  }

  /* Larger modal on mobile */
  #modal-container > .modal-overlay {
    padding: 12px;
  }
  #modal-container .modal-overlay > .modal,
  #modal-container .modal {
    max-width: calc(100vw - 24px) !important;
    padding: 16px;
    gap: 10px;
  }
  #modal-container .modal-overlay > .modal h3,
  #modal-container .modal h3 {
    font-size: 15px;
    margin: 0 0 4px 0 !important;
  }
  #modal-container .modal-overlay > .modal input,
  #modal-container .modal-overlay > .modal select,
  #modal-container .modal-overlay > .modal textarea,
  #modal-container .modal input,
  #modal-container .modal select,
  #modal-container .modal textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  #modal-container .modal-overlay > .modal .btn,
  #modal-container .modal .btn {
    min-height: 40px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

.verification-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 32px auto;
}
.verification-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.verification-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.verification-card p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 360px;
}
.verification-card p strong {
  color: var(--text);
}
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---- UI Overhaul Additions ---- */

.campus-status-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0 4px;
}
.campus-status-pill span { display: inline-flex; align-items: center; gap: 4px; }

.dash-go-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f2f2f2;
  border-radius: 12px;
  margin: 8px 0;
  gap: 12px;
}
[data-theme="dark"] .dash-go-promo { background: #222; }
.dash-go-promo-content strong { display: block; font-size: 15px; }
.dash-go-promo-content span { font-size: 12px; color: var(--text-dim); }
.btn-sm { padding: 6px 16px; font-size: 12px; }

.order-list { display: flex; flex-direction: column; gap: 4px; }
.order-card {
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-card-header { display: flex; align-items: center; gap: 8px; }
.order-id { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.order-status { font-size: 11px; padding: 2px 8px; border-radius: 100px; font-weight: 500; }
.order-status.accepted { background: #000; color: #fff; }
[data-theme="dark"] .order-status.accepted { background: #fff; color: #000; }
.order-status.delivered { background: #000; color: #fff; opacity: 0.7; }
[data-theme="dark"] .order-status.delivered { background: #fff; color: #000; opacity: 0.7; }
.order-status.pending { background: var(--bg-elevated); color: var(--text-muted); }
.order-status.cancelled { background: var(--bg-elevated); color: var(--text-muted); text-decoration: line-through; }
.order-dropoff { font-size: 13px; font-weight: 500; }
.order-fee { font-size: 13px; font-weight: 600; white-space: nowrap; }

#curfew-warning-modal .modal-content {
  max-width: 340px;
  margin: auto;
}
#curfew-warning-modal h3 { margin: 0 0 8px; }
#curfew-warning-modal p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
#curfew-warning-modal .modal-content > i { font-size: 36px; margin-bottom: 10px; }

/* Bottom nav dot fix - use CSS pseudo instead of JS dot */
[data-redesign="true"] .dock-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #000;
  border-radius: 0 0 4px 4px;
}
[data-redesign="true"][data-theme="dark"] .dock-item.active::after {
  background: #fff;
}
[data-redesign="true"] .dock-item.active .dock-indicator-dot { display: none; }

