/* ============================================================
   MP2026 / LocTou.com — Design System
   Path: public_html/css/loctou.css
   Theme: Dark navy — mobile-first — no external dependencies
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #1a1a2e;
  --bg-deep:     #0d0d1a;
  --surface:     #16213e;
  --surface-2:   #1e2d52;
  --surface-3:   #243460;

  /* Text */
  --text:        #eaeaea;
  --text-muted:  #9aa3b8;
  --text-dim:    #5a6478;

  /* Accent */
  --accent:      #4a9eff;
  --accent-dark: #2d7dd2;
  --accent-glow: rgba(74,158,255,0.15);

  /* Semantic */
  --success:     #10b981;
  --success-bg:  rgba(16,185,129,0.12);
  --warning:     #f59e0b;
  --warning-bg:  rgba(245,158,11,0.12);
  --danger:      #ef4444;
  --danger-bg:   rgba(239,68,68,0.12);
  --info:        #3b82f6;
  --info-bg:     rgba(59,130,246,0.12);

  /* Loyalty tier colours */
  --bronze:      #CD7F32;
  --silver:      #C0C0C0;
  --gold:        #FFD700;
  --platinum:    #E5E4E2;
  --elite:       #c8a96e;

  /* Borders */
  --border:      rgba(255,255,255,0.08);
  --border-focus:rgba(74,158,255,0.5);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10:2.5rem;
  --space-12:3rem;

  /* Radius */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Shadow */
  --shadow:     0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);

  /* Transitions */
  --transition: 0.18s ease;

  /* Nav height */
  --nav-h: 60px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
               Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ──────────────────────────────────────────────── */
h1 { font-size: clamp(1.5rem, 4vw, 2rem);   font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem;     font-weight: 600; }
p  { line-height: 1.6; }
small { font-size: 0.8125rem; }

.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }
.font-mono   { font-family: 'Courier New', Courier, monospace; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-sm { max-width: 640px; }
.container-xs { max-width: 440px; }

.page {
  padding-top: calc(var(--nav-h) + var(--space-6));
  padding-bottom: var(--space-12);
  min-height: 100vh;
}

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-4); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2   { gap: var(--space-2); }
.flex-gap-3   { gap: var(--space-3); }
.flex-gap-4   { gap: var(--space-4); }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.flex-1       { flex: 1; }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.gap-2{ gap: var(--space-2); }
.gap-4{ gap: var(--space-4); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(22,33,62,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-4);
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}

/* World clock / staging banner zone */
.nav-clock {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card-sm  { padding: var(--space-4); }
.card-xs  { padding: var(--space-3); }
.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.card-value {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
.card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Wallet card */
.wallet-card {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(74,158,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1;
}
.stat-change { font-size: 0.8125rem; margin-top: var(--space-1); }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem var(--space-5);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  min-height: 42px;
}
.btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary  { background: var(--accent);   color: #fff; }
.btn-danger   { background: var(--danger);   color: #fff; }
.btn-success  { background: var(--success);  color: #fff; }
.btn-warning  { background: var(--warning);  color: #1a1a1a; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.btn-sm { font-size: 0.8125rem; padding: 0.375rem var(--space-3); min-height: 32px; }
.btn-lg { font-size: 1.0625rem; padding: 0.875rem var(--space-8); min-height: 52px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: var(--space-1);
}
.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: var(--space-1);
}

.input, .select, .textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  padding: 0.625rem var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder  { color: var(--text-dim); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input.error  { border-color: var(--danger); }
.textarea     { min-height: 100px; resize: vertical; }
.select       { cursor: pointer; }

/* ── Alerts / Banners ────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(16,185,129,0.25); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(239,68,68,0.25);  }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(245,158,11,0.25); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: rgba(59,130,246,0.25);  }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.badge-bronze  { background: rgba(205,127,50,0.15); color: var(--bronze); }
.badge-silver  { background: rgba(192,192,192,0.15); color: var(--silver); }
.badge-gold    { background: rgba(255,215,0,0.15);   color: var(--gold); }
.badge-platinum{ background: rgba(229,228,226,0.15); color: var(--platinum); }
.badge-elite   { background: rgba(200,169,110,0.12); color: var(--elite); }

.badge-green   { background: var(--success-bg); color: var(--success); }
.badge-red     { background: var(--danger-bg);  color: var(--danger);  }
.badge-yellow  { background: var(--warning-bg); color: var(--warning); }
.badge-blue    { background: var(--info-bg);    color: var(--info);    }
.badge-gray    { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* KYC status */
.kyc-none      { color: var(--text-dim); }
.kyc-pending   { color: var(--warning); }
.kyc-submitted { color: var(--info); }
.kyc-approved  { color: var(--success); }
.kyc-rejected  { color: var(--danger); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Transactions list ───────────────────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: var(--space-2); }
.tx-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.tx-row:hover { background: var(--surface-2); }
.tx-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  background: var(--surface-2);
}
.tx-desc { flex: 1; min-width: 0; }
.tx-desc-main { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-desc-sub  { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.tx-amount    { font-weight: 700; white-space: nowrap; }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--danger); }

/* ── KYC step indicator ──────────────────────────────────────── */
.kyc-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.kyc-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.kyc-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-dim);
  background: var(--surface);
  transition: all var(--transition);
}
.kyc-step.active .kyc-step-num  { border-color: var(--accent);   color: var(--accent);   background: var(--accent-glow); }
.kyc-step.done   .kyc-step-num  { border-color: var(--success);  color: var(--success);  background: var(--success-bg); }
.kyc-step-label { font-size: 0.8125rem; color: var(--text-muted); }
.kyc-step.active .kyc-step-label{ color: var(--text); font-weight: 500; }
.kyc-connector {
  flex: 1; min-width: var(--space-4); max-width: 48px;
  height: 2px; background: var(--border); margin: 0 var(--space-1);
}
.kyc-connector.done { background: var(--success); }

/* ── Loading / Skeleton ──────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-6);
}
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover  { background: var(--surface-2); color: var(--text); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Section headers ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.section-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-dim);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-4); opacity: 0.5; }
.empty-state-title { font-size: 1.125rem; font-weight: 600; color: var(--text-muted); margin-bottom: var(--space-2); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  animation: slideUp 0.22s ease;
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); animation: fadeIn 0.18s ease; }
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.modal-title  { font-size: 1.125rem; font-weight: 700; }

/* ── Admin layout ────────────────────────────────────────────── */
.admin-page {
  padding: var(--space-6);
  max-width: 1200px;
  margin: calc(var(--nav-h) + var(--space-4)) auto 0;
}
.admin-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.admin-tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}
.admin-tab {
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-tab:hover:not(.active) { color: var(--text); }

/* Filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-5);
}
.filter-row .input { max-width: 240px; }
.filter-row .select { max-width: 160px; }

/* ── Home page hero ──────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}
.hero-title { margin-bottom: var(--space-4); }
.hero-sub   { color: var(--text-muted); font-size: 1.125rem; margin-bottom: var(--space-8); max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-cta   { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ── Cookie banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 500px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  z-index: 1500;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
@media (min-width: 640px) { .cookie-banner { left: var(--space-6); right: auto; } }

/* ── Tier loyalty card display ───────────────────────────────── */
.tier-card {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid var(--border);
}
.tier-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tier progress bar */
.tier-progress-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-3);
}
.tier-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), #6eb5ff);
  transition: width 0.5s ease;
}

/* ── LC display ──────────────────────────────────────────────── */
.lc-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.lc-eur { font-size: 0.85em; color: var(--text-muted); }

/* ── Status indicator dot ────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.green  { background: var(--success); }
.status-dot.red    { background: var(--danger);  }
.status-dot.yellow { background: var(--warning); }
.status-dot.blue   { background: var(--info);    }
.status-dot.gray   { background: var(--text-dim);}

/* Pulse animation for live indicator */
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── LID display ─────────────────────────────────────────────── */
.lid-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  white-space: nowrap;
}

/* ── PIN input ───────────────────────────────────────────────── */
.pin-row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}
.pin-input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
}
.pin-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links   { display: none; }
  .hide-mobile { display: none !important; }
  .card        { padding: var(--space-4); }
  .page        { padding-top: calc(var(--nav-h) + var(--space-4)); }
  .admin-page  { padding: var(--space-4); }
  .hero        { padding: var(--space-8) var(--space-4); }
  .filter-row .input,
  .filter-row .select { max-width: 100%; }
  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .modal       { padding: var(--space-4); }
}

@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-3); }
