/* Theo design system "IF Agent": nền tối #0D1117, gradient #0088FF → #00D4AA, Be Vietnam Pro + Inter. */
:root {
  --bg: #0D1117; --panel: #161B22; --panel-2: #21262D; --line: #30363D; --text: #FFFFFF; --muted: #8B949E;
  --primary: #0088FF; --teal: #00D4AA; --err: #FF7B72;
  --m1: #0088FF; --m2: #00D4AA;
  --head: "Be Vietnam Pro", Inter, Arial, sans-serif; --body: Inter, "Be Vietnam Pro", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5; }
h1, h2, h3, b, .wall-head, .screen-title { font-family: var(--head); }
a { color: var(--teal); }
[hidden] { display: none !important; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; background: rgba(13,17,23,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; font-family: var(--head); font-weight: 600; }
.brand img { height: 28px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.steps span { padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.steps span.on { background: linear-gradient(90deg, var(--primary), var(--teal)); color: #0D1117; font-weight: 600; }
.steps span.done { color: var(--text); }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; margin: 24px 0 12px;
  background: linear-gradient(90deg, #fff 40%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0; }
label { display: block; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.check input { width: auto; margin-top: 4px; }
button { font: inherit; cursor: pointer; border-radius: 10px; padding: 10px 18px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
button.primary { border: 0; background: linear-gradient(90deg, var(--primary), var(--teal)); color: #0D1117; font-weight: 600; }
button.ghost { background: transparent; }
button:disabled { opacity: .5; cursor: wait; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.msg { min-height: 1.5em; color: var(--muted); }
.msg.err { color: var(--err); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card .hook { color: var(--text); }
.card ol { padding-left: 20px; color: var(--muted); font-size: 14px; }
.card .why { font-size: 14px; color: var(--muted); }
.card .moment { font-size: 14px; border-left: 3px solid var(--teal); padding-left: 10px; }
.card button { margin-top: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--teal); border: 1px solid var(--line); }
button.chip { cursor: pointer; color: var(--text); font-size: 13px; padding: 6px 12px; }
/* Phối cảnh booth 3m: fascia, vách, kiosk dọc, bàn */
.booth { position: relative; margin: 16px auto; max-width: 860px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(#1b2230, #0D1117 70%, #2a2f38 70%, #1c2027); border: 1px solid var(--line); }
.fascia { position: absolute; left: 6%; right: 6%; top: 4%; height: 7%; display: flex; align-items: center; justify-content: center;
  background: #0D1117; color: #fff; font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid var(--m2); }
.wall { position: absolute; left: 6%; right: 6%; top: 11%; height: 59%; display: flex; gap: 4%; padding: 4% 5%;
  background: linear-gradient(120deg, var(--m1), var(--m2)); }
.wall-text { flex: 1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.wall-head { font-size: clamp(18px, 3.4vw, 34px); font-weight: 800; line-height: 1.1; margin: 0 0 8px; }
.wall-sub { font-size: clamp(11px, 1.5vw, 15px); margin: 0 0 12px; opacity: .95; }
.wall-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wall-items li { display: inline-block; align-self: flex-start; font-size: clamp(10px, 1.3vw, 13px); padding: 4px 10px; border-radius: 999px; background: rgba(13,17,23,.35); }
.kiosk { width: 24%; display: flex; flex-direction: column; align-items: center; }
.screen { width: 100%; aspect-ratio: 9 / 16; background: #0D1117; border: 6px solid #222; border-radius: 10px; padding: 8%; color: #fff;
  display: flex; flex-direction: column; font-size: clamp(7px, 1vw, 11px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.screen-title { font-weight: 700; font-size: 1.3em; margin: 0 0 6px; }
.screen ul { padding-left: 1.2em; margin: 0; color: #c9d1d9; }
.screen-cta { margin-top: auto; text-align: center; padding: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--m1), var(--m2)); color: #0D1117; font-weight: 700; }
.stand { width: 18%; flex: 1; min-height: 10px; background: #333; }
.table { position: absolute; left: 30%; right: 30%; bottom: 8%; height: 17%; display: flex; align-items: center; justify-content: center;
  background: #f2f4f7; color: #0D1117; border-top: 6px solid var(--m1); font-family: var(--head); font-weight: 700; font-size: clamp(10px, 1.6vw, 16px); text-align: center; padding: 0 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; }
.tabs button.on { border-color: var(--teal); color: var(--teal); }
.who { display: flex; gap: 12px; align-items: center; }
.who p { margin: 0; font-size: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, var(--m1), var(--m2)); color: #0D1117; }
.log { min-height: 200px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; }
.bubble.wait { color: var(--muted); }
.chat-in { display: flex; gap: 8px; }
.chat-in input { margin: 0; }
.quiz .q { font-family: var(--head); font-size: 20px; margin: 0 0 12px; }
.quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz .opts button.right { border-color: var(--teal); color: var(--teal); }
.quiz .opts button.wrong { border-color: var(--err); color: var(--err); }
.share { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.share input { margin: 8px 0; }
.qr { background: #fff; padding: 8px; border-radius: 8px; line-height: 0; }
.qr img { width: 140px; height: 140px; image-rendering: pixelated; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .row, .quiz .opts { grid-template-columns: 1fr; }
  .steps { display: none; }
  .booth { aspect-ratio: 3 / 4; }
  .wall { flex-direction: column; height: 62%; }
  .kiosk { width: 34%; align-self: flex-end; }
  .table { left: 8%; right: 46%; }
}
@media print { .top, .actions, .foot, .tabs { display: none; } }
.list { width: 100%; border-collapse: collapse; font-size: 14px; } .list td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
