:root {
  --bg: #07060b;
  --bg-elev: #0f0d16;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f3ff;
  --text-2: rgba(246, 243, 255, 0.62);
  --text-3: rgba(246, 243, 255, 0.38);
  --coral: #ff6b5b;
  --rose: #ff4f8b;
  --violet: #8b5cff;
  --mint: #5cf2c3;
  --danger: #ff5470;
  --aura: linear-gradient(120deg, #ff6b5b 0%, #ff4f8b 50%, #8b5cff 100%);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --font-round: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-round); letter-spacing: -0.02em; margin: 0; }
button, input { font: inherit; color: inherit; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* Background aura */
.aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.22; }
.aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--coral); top: -220px; left: -120px; }
.aurora span:nth-child(2) { width: 560px; height: 560px; background: var(--violet); bottom: -260px; right: -160px; opacity: 0.2; }
.aurora span:nth-child(3) { width: 380px; height: 380px; background: var(--rose); top: 30%; left: 55%; opacity: 0.08; }

/* Orb logo */
.orb {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffd2c4 0%, transparent 34%), var(--aura);
  box-shadow: 0 0 24px rgba(255, 79, 139, 0.45);
}
.orb-lg { width: 64px; height: 64px; margin: 0 auto 14px; box-shadow: 0 0 60px rgba(255, 79, 139, 0.45); }

/* Cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card-pad { padding: 20px 22px; }
.overline {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  margin: 0 0 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px;
  padding: 11px 20px; font-weight: 650; cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
  user-select: none;
}
.btn:hover { background: var(--surface-strong); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, input:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.btn-primary { background: var(--aura); border-color: transparent; box-shadow: 0 8px 30px rgba(255, 79, 139, 0.3); color: #fff; }
.btn-primary:hover { background: var(--aura); box-shadow: 0 10px 40px rgba(255, 79, 139, 0.45); }
.btn-danger { background: rgba(255, 84, 112, 0.12); border-color: rgba(255, 84, 112, 0.45); color: #ffd6dd; }
.btn-danger:hover { background: rgba(255, 84, 112, 0.2); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-xl { padding: 18px 26px; font-size: 18px; border-radius: var(--r-md); flex: 1; font-family: var(--font-round); font-weight: 750; }
kbd {
  font: 700 12px/1 var(--mono); padding: 4px 7px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Login */
.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); padding: 34px 30px 28px; text-align: center; border-radius: var(--r-xl); }
.login-card h1 { font-size: 30px; font-weight: 800; }
.login-card > p { margin: 4px 0 24px; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 6px 4px; font-weight: 600; }
.field em { font-style: normal; color: var(--text-3); font-weight: 500; }
.field input {
  width: 100%; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25); outline: none;
}
.field input:focus { border-color: var(--rose); }
.error { color: #ff9aac; font-size: 14px; margin: 0 0 12px; }

/* Panel chrome */
.panel { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 20px; padding: 14px 28px;
  background: rgba(7, 6, 11, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-round); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.pill {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.tabs { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tab {
  white-space: nowrap; flex: none;
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-weight: 650; color: var(--text-2); display: inline-flex; gap: 8px; align-items: center;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: var(--surface-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tab b { font-weight: 700; font-size: 12px; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.tab b:empty { display: none; }
.tab[data-tab='pending'] b.hot, .tab[data-tab='puls'] b.hot { background: var(--aura); color: #fff; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.view { padding: 24px 28px 40px; width: 100%; max-width: 1400px; margin: 0 auto; flex: 1; }

/* Queue */
.queue { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 20px; align-items: start; }
.selfie {
  overflow: hidden; height: calc(100vh - 136px); min-height: 460px;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); border-radius: var(--r-xl);
}
.selfie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.selfie .missing { color: var(--text-3); }
.selfie-meta { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; justify-content: space-between; pointer-events: none; }
.tag {
  font-size: 12.5px; font-weight: 650; padding: 6px 11px; border-radius: 999px;
  background: rgba(7, 6, 11, 0.6); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.side { display: flex; flex-direction: column; gap: 16px; }
.pose-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.pose-art {
  width: 236px; height: 246px; flex: none; border-radius: var(--r-md); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 255, 0.16), transparent 70%), rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}
.pose-text h2 { font-size: 22px; line-height: 1.2; font-weight: 750; margin-bottom: 12px; }
.pose-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fact { font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.hint { font-size: 13px; color: var(--text-3); margin: 0; }
.profile-photos .empty-photos {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md);
  border: 1px dashed var(--border-strong); color: var(--text-2);
}
.ghost-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, rgba(255, 107, 91, 0.25), rgba(139, 92, 255, 0.25));
  display: grid; place-items: center;
}
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm); }
.actions { display: flex; gap: 12px; }
.reasons { display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center;
}
.chip kbd { font-size: 10.5px; padding: 2px 5px; }
.chip[aria-pressed='true'] { background: rgba(255, 84, 112, 0.18); border-color: var(--danger); color: #ffe1e6; }
.reason-actions { display: flex; gap: 10px; }
.reason-actions .btn { flex: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-3); }
.meta-row b { color: var(--text-2); font-weight: 600; }

/* Empty queue */
.empty { display: grid; place-items: center; text-align: center; padding: 80px 20px; min-height: calc(100vh - 160px); }
.empty .orb { width: 88px; height: 88px; margin: 0 auto 22px; animation: float 5s ease-in-out infinite; }
.empty h2 { font-size: 28px; margin-bottom: 6px; }

/* Tables */
.table-card { overflow: hidden; }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.table-head h2 { font-size: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:last-child td { border-bottom: 0; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-approved { background: rgba(92, 242, 195, 0.12); color: var(--mint); }
.status-rejected { background: rgba(255, 84, 112, 0.14); color: #ff9aac; }
.empty-row { text-align: center; color: var(--text-3); padding: 40px; }

/* Waitlist */
.wl-top { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 20px; }
.stat { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.stat-num {
  font: 800 64px/1 var(--font-round); letter-spacing: -0.04em;
  background: var(--aura); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cities { padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.city {
  padding: 18px 20px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.city b { display: block; font: 800 40px/1 var(--font-round); letter-spacing: -0.03em; }
.city-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.city-bar i { display: block; height: 100%; border-radius: inherit; background: var(--aura); }

/* Puls */
.puls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.puls-main { display: flex; flex-direction: column; gap: 14px; }
.puls-head { border-radius: var(--r-lg); flex-wrap: wrap; }
.stories { display: flex; flex-direction: column; gap: 12px; }
.story { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.story-text { margin: 0; font-size: 16.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--text-2); }
.story-reports { margin: 0; font-size: 13px; }
.story-actions { display: flex; gap: 8px; }
.status-published { background: rgba(92, 242, 195, 0.12); color: var(--mint); }
.status-pending { background: rgba(139, 92, 255, 0.16); color: #c9b6ff; }
.status-hidden { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.q-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; font-size: 14px; }
.q-list li.today b { background: var(--aura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q-list .pill { font-size: 11px; padding: 2px 8px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 20;
  padding: 12px 18px; border-radius: 999px; font-weight: 650;
  background: rgba(15, 13, 22, 0.92); border: 1px solid var(--border-strong); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.toast.ok::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 10px; vertical-align: middle; }
.toast.err::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 10px; vertical-align: middle; }

/* Pose motion (same idea as the app's idle animation) */
.pose-hand { transform-box: fill-box; transform-origin: 50% 80%; }
.motion-wave { animation: wave 0.64s ease-in-out infinite alternate; }
.motion-bob { animation: bob 1.8s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade { animation: fadein 0.22s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .motion-wave, .motion-bob, .empty .orb, .fade { animation: none; }
}

@media (max-width: 1000px) {
  .queue { grid-template-columns: 1fr; }
  .selfie { height: 60vh; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .view { padding: 16px; }
  .wl-top { grid-template-columns: 1fr; }
  .puls { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pose-card { grid-template-columns: 1fr; }
  .pose-art { width: 100%; }
  .cities { grid-template-columns: 1fr; }
  table { font-size: 13.5px; }
  th, td { padding: 10px 12px; }
  .table-card { overflow-x: auto; }
}

/* v3: reports */
.report .photos-grid { grid-template-columns: repeat(6, 1fr); }
.transcript summary { cursor: pointer; color: var(--muted, #b9b3d6); }
.transcript .q-list { max-height: 360px; overflow: auto; }
