/* ============================================================================
   Atlas v3.1 — design system stylesheet
   Dark-only, red-free. Amber (#FBBF24) is the strongest alarm weight; red is
   never used, not for errors, declines, or destructive actions. Hub wayfinding
   colors (Guest mint / Ops violet / Marketing amber) are semantic and never
   stand in for status. Money renders from integer cents.

   This is the single source of the tokens + component CSS. Every @atlas/ui
   component renders the class names defined below; import this stylesheet once
   at the app root.
   ============================================================================ */

:root {
  /* Surfaces */
  --s0: #13161F;
  --s1: #1C2130;
  --s2: #252B3C;
  --s3: #2F3649;
  /* Signature gradient — v3.2. Reserved for act-now CTAs and hero moments only. */
  --sig: linear-gradient(105deg, #A78BFA 0%, #7C6BF5 42%, #22D3EE 100%);
  /* Text */
  --hi: #F2F5FC;
  --mid: #B4BDD1;
  --lo: #8D96AC;
  /* Accents */
  --violet: #A78BFA;
  --cyan: #22D3EE;
  --electric: #60A5FA;
  --amber: #FBBF24;
  /* Hub wayfinding (semantic) */
  --guest: #34D399;
  --ops: #A78BFA;
  --mkt: #FBBF24;
  --mint: #34D399;
  /* Categorical data-viz — fixed 7-slot order, never reordered */
  --pc-taste: #c55285;
  --pc-identity: #933e92;
  --pc-crews: #6f52b9;
  --pc-venues: #129db0;
  --pc-bookings: #618aeb;
  --pc-revenue: #b48706;
  --pc-marketing: #ac4b06;
  /* Hairlines */
  --hair-chrome: rgba(255, 255, 255, .16);
  --hair-card: rgba(255, 255, 255, .12);
  --hair-row: rgba(255, 255, 255, .08);
  /* Glass */
  --glass-fill: rgba(255, 255, 255, .05);
  --glass-fill-2: rgba(255, 255, 255, .08);
  /* Type */
  --mono: Menlo, Monaco, "Courier New", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Motion — v3.2 language. Hover-fast, panel-calm, status-medium, plus reveal. */
  --t-hover: 120ms;
  --t-panel: 200ms;
  --t-status: 160ms;
  --t-reveal: 460ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

@keyframes atlas-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---- root surface: the Atlas dark ground (dark-only) ---- */
.atlas-surface {
  background: var(--s0);
  color: var(--mid);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
.atlas-surface.padded { padding: 20px; }

/* ---- mono kicker / label ---- */
.atlas-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 10px;
  color: var(--lo);
}

/* ============ A · STATUS SYSTEM ============ */
.atlas-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.atlas-chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.atlas-chip.held { color: var(--mid); border: 1px dashed rgba(184, 192, 212, .55); background: transparent; }
.atlas-chip.held .dot { border: 1.5px solid var(--mid); background: transparent; animation: atlas-pulse 1.6s ease-in-out infinite; }
.atlas-chip.confirmed { color: var(--cyan); background: rgba(34, 211, 238, .10); border-color: rgba(34, 211, 238, .34); }
.atlas-chip.confirmed .dot { background: var(--cyan); }
.atlas-chip.seated { color: var(--mint); background: rgba(52, 211, 153, .10); border-color: rgba(52, 211, 153, .34); }
.atlas-chip.seated .dot { background: var(--mint); }
.atlas-chip.closed { color: var(--lo); background: rgba(107, 114, 128, .12); border-color: rgba(107, 114, 128, .32); }
.atlas-chip.closed .dot { background: var(--lo); }
.atlas-chip.cancelled { color: var(--lo); background: transparent; border-color: rgba(107, 114, 128, .3); text-decoration: line-through; text-decoration-thickness: 1px; }
.atlas-chip.cancelled .dot { background: var(--lo); }

/* amber alarm ladder — amber only, escalate by weight never hue */
.atlas-alarm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
}
.atlas-alarm .g { font-size: 12px; }
.atlas-alarm.w1 { color: var(--amber); border: 1px solid rgba(251, 191, 36, .55); background: transparent; }
.atlas-alarm.w2 { color: var(--amber); border: 1px solid rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .12); }
.atlas-alarm.w3 { color: #1a1405; background: var(--amber); border: 1px solid var(--amber); font-weight: 400; }

/* ============ B · PRIMITIVES ============ */
.atlas-btn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .01em;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--mid);
  transition: background .12s ease-out, border-color .12s ease-out, color .12s ease-out, transform .1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.atlas-btn:active { transform: translateY(1px); }
.atlas-btn.primary { background: var(--cyan); color: #04191d; border-color: var(--cyan); font-weight: 400; }
.atlas-btn.primary:hover { background: #4de2f5; }
.atlas-btn.secondary { border-color: var(--hair-chrome); color: var(--hi); background: var(--glass-fill); }
.atlas-btn.secondary:hover { border-color: rgba(255, 255, 255, .24); background: var(--glass-fill-2); }
.atlas-btn.ghost { color: var(--mid); }
.atlas-btn.ghost:hover { color: var(--hi); background: var(--glass-fill); }
.atlas-btn.destructive { color: var(--amber); border-color: rgba(251, 191, 36, .5); background: transparent; }
.atlas-btn.destructive:hover { background: rgba(251, 191, 36, .12); }
.atlas-btn.big { font-size: 16px; font-weight: 400; padding: 14px 22px; width: 100%; justify-content: center; }
.atlas-btn:disabled { opacity: .5; cursor: not-allowed; }

/* text input */
.atlas-field { display: flex; flex-direction: column; gap: 7px; min-width: 220px; flex: 1; }
.atlas-field label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); }
.atlas-input {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--hi);
  background: var(--s2);
  border: 1px solid var(--hair-chrome);
  border-radius: 7px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .12s ease-out, background .12s ease-out;
}
.atlas-input::placeholder { color: var(--lo); }
.atlas-input:focus { outline: none; border-color: var(--cyan); background: #141a2e; }

/* attribution chip */
.atlas-attr {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border-left: 2px solid var(--mkt);
  background: var(--glass-fill);
  border-radius: 0 6px 6px 0;
}
.atlas-attr .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.atlas-attr .sub { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--lo); }
.atlas-attr.guest { border-left-color: var(--guest); }
.atlas-attr.ops { border-left-color: var(--ops); }

/* ============ C · DATA DISPLAY ============ */
.atlas-ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.atlas-ledger td, .atlas-ledger th { padding: 11px 12px; border-bottom: 1px solid var(--hair-row); text-align: left; }
.atlas-ledger th { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); font-weight: 400; }
.atlas-ledger td.num { font-family: var(--mono); text-align: right; color: var(--hi); font-size: 12.5px; }
.atlas-ledger td.num.neg { color: var(--amber); }
.atlas-ledger .g { color: var(--hi); font-weight: 400; }
.atlas-ledger .m { font-family: var(--mono); font-size: 11px; color: var(--lo); }
.atlas-ledger tr:last-child td { border-bottom: 0; }

/* split-pay dots */
.atlas-splits { display: inline-flex; gap: 6px; align-items: center; }
.atlas-sp { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.atlas-sp.locked { background: var(--mint); }
.atlas-sp.pending { background: transparent; border: 1.5px solid var(--lo); animation: atlas-pulse 1.6s ease-in-out infinite; }
.atlas-sp.failed { background: var(--amber); }
.atlas-splitrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.atlas-splitrow .dep { font-family: var(--mono); font-size: 11px; color: var(--mid); display: inline-flex; align-items: center; gap: 6px; }
.atlas-splitrow .dep .d { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* metric bars */
.atlas-bars { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.atlas-bar-row { display: grid; grid-template-columns: 120px 1fr 74px; gap: 12px; align-items: center; }
.atlas-bar-row .bl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.atlas-bar-track { height: 8px; background: var(--s2); border-radius: 5px; overflow: hidden; }
.atlas-bar-fill { height: 100%; border-radius: 5px; }
.atlas-bar-row .bv { font-family: var(--mono); font-size: 11.5px; color: var(--hi); text-align: right; }
.atlas-bar-fill.pc-taste { background: var(--pc-taste); }
.atlas-bar-fill.pc-identity { background: var(--pc-identity); }
.atlas-bar-fill.pc-crews { background: var(--pc-crews); }
.atlas-bar-fill.pc-venues { background: var(--pc-venues); }
.atlas-bar-fill.pc-bookings { background: var(--pc-bookings); }
.atlas-bar-fill.pc-revenue { background: var(--pc-revenue); }
.atlas-bar-fill.pc-marketing { background: var(--pc-marketing); }
.atlas-bar-fill.single { background: var(--electric); }

/* stat callout */
.atlas-stat { padding-left: 14px; border-left: 2px solid var(--cyan); }
.atlas-stat .v { font-family: var(--sans); font-weight: 200; font-size: 30px; color: var(--hi); line-height: 1.05; letter-spacing: -.01em; }
.atlas-stat .v.mono { font-family: var(--mono); font-weight: 400; font-size: 24px; }
.atlas-stat .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lo); margin-top: 6px; }
.atlas-stat.amber { border-left-color: var(--amber); }
.atlas-stat.mint { border-left-color: var(--mint); }

/* ============ D · CONTAINERS ============ */
.atlas-kpi {
  background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid var(--hair-chrome);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 170px;
  flex: 1;
}
.atlas-kpi .kl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lo); }
.atlas-kpi .kv { font-family: var(--mono); font-weight: 400; font-size: 26px; color: var(--hi); margin-top: 10px; letter-spacing: -.01em; }
.atlas-kpi .kf { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-top: 8px; display: inline-flex; gap: 5px; align-items: center; }

/* empty state */
.atlas-empty {
  width: 100%;
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed var(--hair-chrome);
  border-radius: 10px;
  background: transparent;
}
.atlas-empty .eg { font-size: 22px; color: var(--lo); line-height: 1; }
.atlas-empty .et { font-family: var(--sans); font-weight: 300; font-size: 15px; color: var(--mid); margin-top: 14px; }
.atlas-empty .es { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--lo); margin-top: 8px; }

/* blocking banner — solid amber, dark text, max one per view */
.atlas-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--amber);
  color: #1a1405;
  border-radius: 10px;
  padding: 14px 18px;
}
.atlas-banner .bmsg { flex: 1; min-width: 240px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; line-height: 1.5; }
.atlas-banner .bmsg b { font-weight: 700; }
.atlas-banner .atlas-btn.b-solid { background: #1a1405; color: var(--amber); border-color: #1a1405; }
.atlas-banner .atlas-btn.b-solid:hover { background: #2a2109; }
.atlas-banner .atlas-btn.b-ghost { color: #1a1405; border-color: rgba(26, 20, 5, .4); }
.atlas-banner .atlas-btn.b-ghost:hover { background: rgba(26, 20, 5, .1); }

/* modal shell */
.atlas-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 10, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-out;
}
.atlas-scrim.open { opacity: 1; pointer-events: auto; }
.atlas-modal {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .04)), var(--s1);
  border: 1px solid var(--hair-chrome);
  border-radius: 12px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(8px);
  transition: transform .2s ease-out;
}
.atlas-scrim.open .atlas-modal { transform: translateY(0); }
.atlas-modal .mk { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); }
.atlas-modal .mt { font-weight: 200; font-size: 21px; color: var(--hi); margin: 8px 0 10px; }
.atlas-modal .mb { font-size: 13px; color: var(--mid); line-height: 1.6; }
.atlas-modal .mrow { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ============ E · NAVIGATION ============ */
.atlas-rail {
  width: 200px;
  background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
  border: 1px solid var(--hair-chrome);
  border-radius: 12px;
  padding: 14px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.atlas-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lo);
  border-left: 2px solid transparent;
  transition: color .12s ease-out, background .12s ease-out;
  background: none;
  width: 100%;
  text-align: left;
}
.atlas-rail-item:hover { color: var(--mid); background: var(--glass-fill); }
.atlas-rail-item.active { color: var(--hi); background: var(--glass-fill); border-left-color: var(--violet); }
.atlas-rail-item .cnt { font-size: 10px; color: var(--lo); }
.atlas-rail-item.active .cnt { color: var(--violet); }

.atlas-hubrule { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.atlas-hubrule .hr-item { display: flex; align-items: center; gap: 12px; }
.atlas-hubrule .swatch { width: 3px; height: 34px; border-radius: 2px; flex: none; }
.atlas-hubrule .hr-t { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--hi); }
.atlas-hubrule .hr-s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--lo); margin-top: 2px; }

/* view header */
.atlas-vhead {
  width: 100%;
  background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
  border: 1px solid var(--hair-chrome);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.atlas-vhead .vk { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--lo); }
.atlas-vhead .vt { font-weight: 200; font-size: 22px; color: var(--hi); margin-top: 4px; letter-spacing: -.01em; }
.atlas-vhead .vkpis { display: flex; gap: 26px; }
.atlas-vhead .vkpi .vv { font-family: var(--mono); font-size: 16px; color: var(--hi); }
.atlas-vhead .vkpi .vl { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lo); margin-top: 3px; }

/* ============================================================================
   v3.2 uplift — signature gradient, display scale, VenueMap, EventCard, HeroStat
   ============================================================================ */

/* signature button variant — the one bold accent; act-now CTAs only */
.atlas-btn.signature {
  background: var(--sig);
  color: #050509;
  border-color: transparent;
  font-weight: 400;
}
.atlas-btn.signature:hover { filter: brightness(1.08); }

/* display scale — ultralight hero numbers */
.atlas-hero-stat { display: inline-flex; flex-direction: column; gap: 8px; }
.atlas-hero-stat .hv {
  font-family: var(--sans);
  font-weight: 100;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--hi);
  font-variant-numeric: tabular-nums;
}
.atlas-hero-stat.mono .hv { font-family: var(--mono); font-weight: 200; }
.atlas-hero-stat.signature .hv { background: var(--sig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atlas-hero-stat .hl { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--lo); max-width: 24ch; line-height: 1.5; }

/* VenueMap — interactive floor map; tables colored by predicted value/affinity */
.atlas-venuemap { background: var(--s0); border: 1px solid var(--hair-row); border-radius: 12px; padding: 18px; position: relative; }
.atlas-venuemap .vm-label { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.atlas-venuemap .vm-tables { display: grid; gap: 9px; }
.atlas-tbl {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--hair-card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--hi);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .14s ease, border-color .14s ease;
  background: none;
}
.atlas-tbl:hover { transform: scale(1.08); border-color: var(--hi); z-index: 2; }
.atlas-tbl .vm-aff { position: absolute; inset: 0; border-radius: 8px; }
.atlas-tbl .vm-id { position: relative; z-index: 1; mix-blend-mode: screen; }
.atlas-tbl.held { outline: 1px dashed rgba(184, 192, 212, .5); }
.atlas-tbl.booked .vm-aff { opacity: .35; }
.atlas-venuemap .vm-legend { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.atlas-venuemap .vm-li { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--lo); }
.atlas-venuemap .vm-sw { width: 22px; height: 8px; border-radius: 3px; }
.atlas-venuemap .vm-tip {
  position: absolute; pointer-events: none; background: var(--s3);
  border: 1px solid var(--hair-chrome); border-radius: 8px; padding: 8px 11px;
  font-family: var(--mono); font-size: 10px; color: var(--hi); opacity: 0;
  transition: opacity .12s ease; z-index: 5; white-space: nowrap; box-shadow: var(--shadow, 0 8px 30px rgba(0,0,0,.5));
}
.atlas-venuemap .vm-tip .tl { color: var(--lo); font-size: 9px; }

/* EventCard — image-led, cinematic scrim, taste-match overlay */
.atlas-eventcard {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--hair-card);
  position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end;
}
.atlas-eventcard .ec-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 70% 10%, rgba(167,139,250,.55), transparent 60%),
    radial-gradient(80% 90% at 15% 40%, rgba(34,211,238,.45), transparent 62%),
    linear-gradient(180deg, #2a1a4a, #0a0a16);
  background-size: cover; background-position: center;
}
.atlas-eventcard .ec-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,9,0) 30%, rgba(5,5,9,.9) 100%); }
.atlas-eventcard .ec-body { position: relative; padding: 18px; z-index: 1; }
.atlas-eventcard .ec-match {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3);
  padding: 4px 9px; border-radius: 20px; margin-bottom: 12px;
}
.atlas-eventcard .ec-title { color: var(--hi); font-weight: 400; font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
.atlas-eventcard .ec-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--mid); }
.atlas-eventcard .ec-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================================
   v3.2 P1 — motion language, MobileShell, AccessPass, PromoterLeaderboard, LivePulse
   ============================================================================ */

/* motion v2 — a live pulse + a staggered reveal */
@keyframes atlas-livepulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes atlas-reveal-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.atlas-reveal { animation: atlas-reveal-up var(--t-reveal) var(--ease-out) both; }
.atlas-reveal.d1 { animation-delay: 60ms; }
.atlas-reveal.d2 { animation-delay: 120ms; }
.atlas-reveal.d3 { animation-delay: 180ms; }
.atlas-reveal.d4 { animation-delay: 240ms; }

/* LivePulse — a real-time indicator */
.atlas-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mid); }
.atlas-live .lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: atlas-livepulse 1.8s ease-out infinite; flex: none; }
.atlas-live.amber { color: var(--amber); }
.atlas-live.amber .lp-dot { background: var(--amber); animation-name: atlas-livepulse; box-shadow: 0 0 0 0 rgba(251, 191, 36, .5); }
.atlas-live .lp-count { color: var(--hi); }

/* MobileShell — phone-first operator shell with a bottom nav */
.atlas-mobile {
  width: 100%; max-width: 380px; background: var(--s0);
  border: 1px solid var(--hair-chrome); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 520px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.atlas-mobile .mob-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--hair-row);
  position: sticky; top: 0; background: var(--s0); z-index: 2;
}
.atlas-mobile .mob-top .mt-k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); }
.atlas-mobile .mob-top .mt-t { font-weight: 300; font-size: 19px; color: var(--hi); margin-top: 3px; letter-spacing: -.01em; }
.atlas-mobile .mob-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.atlas-mobile .mob-nav { display: flex; border-top: 1px solid var(--hair-card); background: var(--s1); }
.atlas-mobile .mob-navitem {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 4px 14px; cursor: pointer; background: none; border: 0;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lo);
  border-top: 2px solid transparent; transition: color var(--t-hover) var(--ease-out);
}
.atlas-mobile .mob-navitem .ni-g { font-size: 16px; line-height: 1; }
.atlas-mobile .mob-navitem:hover { color: var(--mid); }
.atlas-mobile .mob-navitem.active { color: var(--hi); border-top-color: var(--violet); }

/* AccessPass — fast dark QR door surface */
.atlas-pass {
  background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)), var(--s1);
  border: 1px solid var(--hair-chrome); border-radius: 16px; padding: 20px; width: 100%; max-width: 320px;
}
.atlas-pass .ap-k { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); }
.atlas-pass .ap-name { font-weight: 300; font-size: 22px; color: var(--hi); margin: 4px 0 2px; letter-spacing: -.01em; }
.atlas-pass .ap-meta { font-family: var(--mono); font-size: 11px; color: var(--mid); }
.atlas-pass .ap-qr {
  width: 132px; height: 132px; margin: 18px auto; border-radius: 10px; padding: 10px;
  background: var(--hi); display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px;
}
.atlas-pass .ap-qr i { background: var(--s0); border-radius: 1px; }
.atlas-pass .ap-qr i.off { background: transparent; }
.atlas-pass .ap-state { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.atlas-pass .ap-state.ready { color: var(--mint); }
.atlas-pass .ap-state.scanned { color: var(--cyan); }
.atlas-pass .ap-state.review { color: var(--amber); }
.atlas-pass .ap-state .s-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* PromoterLeaderboard — ranked by attributed LTV */
.atlas-leaderboard { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.atlas-leaderboard .lb-head { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); padding: 0 4px 8px; display: flex; align-items: center; gap: 8px; }
.atlas-leaderboard .lb-head .lb-rule { width: 2px; height: 12px; background: var(--mkt); border-radius: 2px; }
.atlas-lb-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--hair-card);
}
.atlas-lb-row.you { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .05); }
.atlas-lb-row .lb-rank { font-family: var(--mono); font-size: 12px; color: var(--lo); text-align: center; }
.atlas-lb-row.top .lb-rank { color: var(--mkt); }
.atlas-lb-row .lb-name { font-size: 14px; color: var(--hi); }
.atlas-lb-row .lb-sub { font-family: var(--mono); font-size: 10px; color: var(--lo); margin-top: 2px; }
.atlas-lb-row .lb-val { font-family: var(--mono); font-size: 14px; color: var(--hi); text-align: right; font-variant-numeric: tabular-nums; }
.atlas-lb-row .lb-val .lb-vk { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lo); display: block; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .atlas-chip .dot, .atlas-sp, .atlas-btn, .atlas-input, .atlas-scrim, .atlas-modal, .atlas-rail-item,
  .atlas-tbl, .atlas-live .lp-dot, .atlas-reveal, .atlas-mobile .mob-navitem { transition: none !important; animation: none !important; }
  .atlas-reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   v3.2 P2 — SegmentBuilder, Guest360, WalletPass (the taste-graph moat, surfaced)
   ============================================================================ */

/* SegmentBuilder — compose an audience on the taste graph */
.atlas-segment { background: var(--s1); border: 1px solid var(--hair-card); border-radius: 14px; padding: 18px 18px 16px; width: 100%; max-width: 460px; }
.atlas-segment .sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.atlas-segment .sb-k { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--lo); }
.atlas-segment .sb-count { font-family: var(--mono); font-size: 13px; color: var(--hi); }
.atlas-segment .sb-count b { color: var(--cyan); }
.atlas-segment .sb-bar { height: 6px; background: var(--s0); border-radius: 4px; overflow: hidden; margin: 12px 0 16px; }
.atlas-segment .sb-fill { height: 100%; background: var(--sig); border-radius: 4px; transition: width var(--t-panel) var(--ease-out); }
.atlas-segment .sb-crit { display: flex; flex-direction: column; gap: 8px; }
.atlas-segment .sb-row { display: flex; align-items: center; gap: 8px; background: var(--s2); border: 1px solid var(--hair-card); border-radius: 9px; padding: 9px 11px; }
.atlas-segment .sb-field { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.atlas-segment .sb-op { font-family: var(--mono); font-size: 10px; color: var(--lo); }
.atlas-segment .sb-val { font-size: 13px; color: var(--hi); }
.atlas-segment .sb-x { margin-left: auto; background: none; border: 0; color: var(--lo); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 5px; }
.atlas-segment .sb-x:hover { color: var(--hi); background: var(--glass-fill); }
.atlas-segment .sb-add { margin-top: 10px; width: 100%; padding: 9px; border: 1px dashed var(--hair-chrome); border-radius: 9px; background: transparent; color: var(--mid); cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: border-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.atlas-segment .sb-add:hover { border-color: var(--violet); color: var(--hi); }

/* Guest360 — the guest profile the taste graph builds */
.atlas-guest360 { background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--s1); border: 1px solid var(--hair-chrome); border-radius: 16px; padding: 20px; width: 100%; max-width: 360px; }
.atlas-guest360 .g-top { display: flex; align-items: center; gap: 13px; }
.atlas-guest360 .g-av { width: 46px; height: 46px; border-radius: 50%; background: var(--sig); color: #050509; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; font-weight: 400; flex: none; }
.atlas-guest360 .g-name { font-weight: 300; font-size: 20px; color: var(--hi); letter-spacing: -.01em; }
.atlas-guest360 .g-tier { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--lo); margin-top: 2px; }
.atlas-guest360 .g-consent { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; border: 1px solid transparent; white-space: nowrap; }
.atlas-guest360 .g-consent .cdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.atlas-guest360 .g-consent.granted { color: var(--mint); border-color: rgba(52,211,153,.34); background: rgba(52,211,153,.1); }
.atlas-guest360 .g-consent.pending { color: var(--mid); border: 1px dashed rgba(184,192,212,.5); }
.atlas-guest360 .g-consent.revoked { color: var(--amber); border-color: rgba(251,191,36,.4); }
.atlas-guest360 .g-stats { display: flex; gap: 24px; margin: 18px 0 16px; }
.atlas-guest360 .g-stat .v { font-family: var(--mono); font-size: 18px; color: var(--hi); }
.atlas-guest360 .g-stat .l { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lo); margin-top: 3px; }
.atlas-guest360 .g-affk { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lo); margin-bottom: 9px; }
.atlas-guest360 .g-aff { display: flex; flex-direction: column; gap: 8px; }
.atlas-guest360 .g-arow { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.atlas-guest360 .g-al { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.atlas-guest360 .g-at { height: 6px; background: var(--s0); border-radius: 4px; overflow: hidden; }
.atlas-guest360 .g-af { height: 100%; border-radius: 4px; }

/* WalletPass — the guest-facing cinematic pass (consent-first) */
.atlas-wallet { border-radius: 18px; overflow: hidden; border: 1px solid var(--hair-chrome); position: relative; width: 100%; max-width: 320px; min-height: 300px; display: flex; flex-direction: column; }
.atlas-wallet .w-ph { position: absolute; inset: 0; background: radial-gradient(80% 70% at 75% 0%, rgba(167,139,250,.6), transparent 60%), radial-gradient(70% 80% at 10% 30%, rgba(34,211,238,.5), transparent 62%), linear-gradient(180deg, #241645, #08080f); }
.atlas-wallet .w-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,9,.15) 0%, rgba(5,5,9,.82) 62%, rgba(5,5,9,.95) 100%); }
.atlas-wallet .w-body { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; flex: 1; }
.atlas-wallet .w-k { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.atlas-wallet .w-ev { font-weight: 300; font-size: 23px; color: var(--hi); letter-spacing: -.01em; margin: 6px 0 2px; }
.atlas-wallet .w-meta { font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: .04em; }
.atlas-wallet .w-guest { margin-top: auto; }
.atlas-wallet .w-guest .gl { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lo); }
.atlas-wallet .w-guest .gn { font-size: 16px; color: var(--hi); margin-top: 2px; }
.atlas-wallet .w-bars { display: flex; gap: 3px; height: 34px; margin: 16px 0 10px; align-items: stretch; }
.atlas-wallet .w-bars i { flex: 1; background: var(--hi); border-radius: 1px; }
.atlas-wallet .w-bars i.n { flex: .5; }
.atlas-wallet .w-bars i.g { opacity: .35; }
.atlas-wallet .w-consent { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--lo); display: inline-flex; align-items: center; gap: 6px; }
.atlas-wallet .w-consent .cd { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

@media (prefers-reduced-motion: reduce) {
  .atlas-segment .sb-fill, .atlas-segment .sb-add, .atlas-guest360 .g-af { transition: none !important; }
}
