/* Happy ERP — ຄືນໄລຟ໌ (The Live Night) design tokens
   World: FB Live selling-screen grammar. Flat layers, depth by overlap only. */

:root {
  /* Ground: the dark live room, lit by the phone screen */
  --ground: #0d0f17;
  --ground-deep: #080a10;
  --panel: #151a28;
  --panel-2: #1d2436;
  --panel-3: #262e44;
  --line: #2c3550;
  --line-soft: #222a40;

  /* Ink */
  --text: #f2f4fb;
  --text-dim: #a9b4d4;      /* indigo-tinted secondary, never gray */
  --text-faint: #7683a8;

  /* Named color roles — the live overlay's own vocabulary */
  --live: #ff3b5c;          /* LIVE red: broadcast, primary action */
  --live-deep: #d92345;
  --live-tint: #3a1622;
  --kip: #ffd34d;           /* sticker yellow: money, prices in kip */
  --kip-ink: #201804;
  --kip-tint: #332a10;
  --paid: #3ddc97;          /* verified green: slip checked, paid */
  --paid-ink: #052b1c;
  --paid-tint: #10301f;
  --cf: #5aa7ff;            /* comment blue: CF stream, links */
  --cf-tint: #14233d;

  /* Type */
  --font-display: "Noto Sans Lao", "Noto Sans", sans-serif;
  --font-body: "Noto Sans Lao Looped", "Noto Sans Lao", "Noto Sans", sans-serif;

  /* Rhythm */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  /* Lao stacked vowels + tone marks need air */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Browser surfaces carry the world too */
::selection { background: var(--live); color: #fff; }
:focus-visible { outline: 2px solid var(--cf); outline-offset: 2px; border-radius: 4px; }
input, textarea, select { caret-color: var(--live); accent-color: var(--live); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground-deep); }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 6px; border: 2px solid var(--ground-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--line); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: var(--panel-3) var(--ground-deep); scrollbar-width: thin; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--cf); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

.num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* State marks — one symbol vocabulary across every surface.
   State is a mark, not a hue: each state owns a drawn glyph + stamp shape. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 5px;
  line-height: 1.6;
  white-space: nowrap;
}
.mark svg { width: 13px; height: 13px; flex: none; }
.mark-wait  { color: var(--text-dim); border: 1px dashed var(--text-faint); }
.mark-cf    { color: var(--cf); background: var(--cf-tint); border: 1px solid var(--cf); }
.mark-paid  { color: var(--paid); background: var(--paid-tint); border: 1px solid var(--paid); }
.mark-pack  { color: var(--kip); background: var(--kip-tint); border: 1px solid var(--kip); }
.mark-ship  { color: var(--text); background: var(--panel-3); border: 1px solid var(--text-dim); }
.mark-cancel{ color: var(--live); border: 1px solid var(--live); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Live comment bubble — shared component (landing hero + app live console) */
.c-item {
  display: flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  border-radius: 999px; padding: 6px 12px 6px 6px;
  width: fit-content; max-width: 100%;
  font-size: 13px; color: var(--text-dim);
}
.c-item b { color: var(--text); font-weight: 600; margin-right: 5px; }
.c-ava { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--a, var(--panel-3)); }
.c-item.is-cf { border: 1px solid var(--cf); background: var(--cf-tint); }
.c-stamp {
  font-family: var(--font-display); font-weight: 900; font-size: 11px; letter-spacing: .05em;
  color: var(--kip-ink); background: var(--kip);
  padding: 2px 7px; border-radius: 6px; flex: none;
}
.c-enter { animation: c-in .6s var(--ease-out); }
@keyframes c-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

