/* ==========================================================
   KHÓI COFFEE — vintage stylesheet
   ========================================================== */
:root {
  --paper: #FBF7EC;
  --paper-2: #F3EBD8;
  --paper-3: #EADFC6;
  --ink: #2E2B24;
  --ink-soft: #5E574A;
  --ink-mute: #8A8170;
  --green: #44633A;
  --green-dark: #2F4728;
  --green-soft: #DCE3CF;
  --rust: #B4562F;
  --rust-soft: #F1DCCB;
  --mustard: #C99A2E;
  --mustard-soft: #F3E6C0;
  --line: #CDBF9F;
  --shadow: 0 2px 0 rgba(46, 43, 36, .08), 0 8px 24px -12px rgba(46, 43, 36, .35);
  --radius: 6px;
  --f-display: "Paytone One", "Impact", sans-serif;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-body: "Lora", Georgia, serif;
  --f-script: "Pacifico", cursive;
  --f-type: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.script { font-family: var(--f-script); color: var(--rust); font-size: 1.35rem; line-height: 1.3; }
.type { font-family: var(--f-type); letter-spacing: .02em; }
.muted { color: var(--ink-mute); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 24px; }
.mb { margin-bottom: 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 236, .94);
  backdrop-filter: blur(6px);
  border-bottom: 3px double var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: cover; mix-blend-mode: multiply; border-radius: 50%; }
.brand span { font-family: var(--f-display); color: var(--green); font-size: 1.35rem; letter-spacing: .02em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 8px 12px; border-radius: 999px; font-size: .95rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { color: var(--paper); background: var(--green); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.nav-user { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px double var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 4px; padding: 12px; }
  .nav-user { margin: 8px 0 0; }
}

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--green-dark); background: var(--green); color: var(--paper);
  text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
  box-shadow: 3px 3px 0 var(--green-dark);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--green-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--green-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--green-dark); }
.btn.rust { background: var(--rust); border-color: #7d3a1e; box-shadow: 3px 3px 0 #7d3a1e; }
.btn.mustard { background: var(--mustard); border-color: #8a6814; color: var(--ink); box-shadow: 3px 3px 0 #8a6814; }
.btn.sm { padding: 6px 12px; font-size: .85rem; box-shadow: 2px 2px 0 var(--green-dark); }
.btn.sm.ghost { box-shadow: none; border-width: 1.5px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--rust); border-color: var(--rust); box-shadow: none; }
.btn.danger:hover { background: var(--rust-soft); }
.linkbtn { background: none; border: 0; color: var(--green); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft); }
.field { margin-bottom: 14px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fffdf7; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
textarea { min-height: 80px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- section headings ---------- */
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .script { display: block; margin-bottom: 4px; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--line); margin-top: 8px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: var(--line); }
.ornament span { color: var(--rust); font-size: .9rem; }
.page-head { padding: 48px 0 24px; text-align: center; border-bottom: 1px dashed var(--line); margin-bottom: 36px; }
.page-head h1 { font-family: var(--f-display); color: var(--green); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 400; letter-spacing: .01em; margin: 0; }
.page-head p { max-width: 620px; margin: 8px auto 0; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow { font-family: var(--f-type); color: var(--rust); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { font-family: var(--f-display); font-weight: 400; color: var(--green); font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; margin: 12px 0 18px; }
.hero h1 em { font-family: var(--f-script); font-style: normal; color: var(--rust); font-size: .8em; display: block; transform: rotate(-3deg); margin-top: 6px; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 520px; }
.hero-badge {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--green);
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 12px var(--line), var(--shadow);
  display: grid; place-items: center; max-width: 420px; margin-inline: auto; overflow: hidden;
}
.hero-badge img { width: 92%; mix-blend-mode: multiply; }
.hero-badge .ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.hero-badge .ring text { font-family: var(--f-type); font-size: 13px; fill: var(--rust); letter-spacing: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-badge { max-width: 300px; } }

.ribbon { background: var(--green); color: var(--paper); overflow: hidden; border-block: 3px double var(--paper-3); }
.ribbon-track { display: flex; gap: 40px; padding: 12px 0; white-space: nowrap; animation: marquee 30s linear infinite; font-family: var(--f-type); letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card {
  background: #fffdf6; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.card.framed { outline: 1px solid var(--line); outline-offset: -8px; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feature { text-decoration: none; color: inherit; text-align: center; transition: transform .15s; }
.feature:hover { transform: translateY(-4px) rotate(-.4deg); }
.feature .ico { width: 64px; height: 64px; margin: 4px auto 12px; color: var(--green); }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

.ico { display: block; width: 56px; height: 56px; margin: 0 auto 10px; color: var(--green); }
.ico svg, svg.ico { width: 100%; height: 100%; display: block; }
.photo .ico { width: 42%; height: auto; aspect-ratio: 1; margin: 0; color: rgba(255, 253, 246, .9); }
.kiosk-mode .site-footer { display: none; }

.stamp {
  display: inline-block; font-family: var(--f-type); text-transform: uppercase; letter-spacing: .08em;
  font-size: .75rem; padding: 3px 9px; border: 1.5px solid currentColor; border-radius: 3px;
  color: var(--green); background: transparent; white-space: nowrap;
}
.stamp.rust { color: var(--rust); }
.stamp.mustard { color: #8a6814; }
.stamp.gray { color: var(--ink-mute); }
.stamp.solid { background: var(--green); color: var(--paper); border-color: var(--green); }

/* ---------- event ticket ---------- */
.tickets { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ticket {
  display: grid; grid-template-columns: 96px 1fr; background: #fffdf6;
  border: 1.5px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.ticket .stub {
  background: var(--green); color: var(--paper); text-align: center; padding: 18px 8px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  border-right: 2px dashed var(--paper); position: relative;
}
.ticket .stub::before, .ticket .stub::after {
  content: ""; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line);
}
.ticket .stub::before { top: -11px; } .ticket .stub::after { bottom: -11px; }
.ticket.game .stub { background: var(--rust); }
.ticket.music .stub { background: var(--mustard); color: var(--ink); }
.stub .d { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.stub .m { font-family: var(--f-type); text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.stub .w { font-size: .75rem; opacity: .85; margin-top: 6px; }
.ticket .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ticket h3 { font-size: 1.2rem; margin: 4px 0; }
.ticket .meta { font-size: .88rem; color: var(--ink-soft); }
.ticket .foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.ticket .price { font-family: var(--f-serif); font-weight: 800; font-size: 1.2rem; color: var(--green-dark); }
.bar { height: 6px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  padding: 6px 16px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 500;
}
.chip.active { background: var(--ink); color: var(--paper); }

/* ---------- menu ---------- */
.menu-board {
  background: #fffdf6; border: 2px solid var(--ink); border-radius: 4px; padding: 36px clamp(16px, 4vw, 48px);
  outline: 1px solid var(--ink); outline-offset: -10px; box-shadow: var(--shadow);
}
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; }
@media (max-width: 760px) { .menu-cols { grid-template-columns: 1fr; } }
.menu-cat { break-inside: avoid; margin-bottom: 28px; }
.menu-cat h3 { font-family: var(--f-display); font-weight: 400; color: var(--green); font-size: 1.35rem; letter-spacing: .03em; border-bottom: 2px solid var(--green); padding-bottom: 6px; display: flex; align-items: baseline; gap: 10px; }
.menu-cat h3 small { font-family: var(--f-script); color: var(--rust); font-size: 1.1rem; }
.menu-item { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.menu-item .top { display: flex; align-items: baseline; gap: 8px; }
.menu-item .name { font-weight: 600; font-family: var(--f-serif); font-size: 1.05rem; }
.menu-item .dots { flex: 1; border-bottom: 2px dotted var(--ink-mute); transform: translateY(-4px); min-width: 20px; }
.menu-item .price { font-family: var(--f-type); font-size: 1rem; }
.menu-item .desc { font-size: .87rem; color: var(--ink-mute); font-style: italic; }
.menu-item .tag { font-size: .65rem; margin-left: 6px; vertical-align: middle; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.polaroid {
  background: #fff; padding: 12px 12px 18px; box-shadow: var(--shadow); border: 1px solid #e8dfcc;
  cursor: pointer; transition: transform .2s; text-align: center;
}
.polaroid:nth-child(3n+1) { transform: rotate(-1.4deg); }
.polaroid:nth-child(3n+2) { transform: rotate(1deg); }
.polaroid:nth-child(3n) { transform: rotate(-.4deg); }
.polaroid:hover { transform: rotate(0) scale(1.02); z-index: 2; }
.photo {
  aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.25), transparent 70%), var(--bg, #8a9a6b);
  filter: sepia(.35) saturate(.9);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(46, 30, 10, .45); pointer-events: none; }
.polaroid .cap { font-family: var(--f-script); font-size: 1.5rem; color: var(--ink); margin-top: 10px; }
.polaroid .sub { font-size: .85rem; color: var(--ink-mute); }

/* ---------- booking ---------- */
.rooms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 28px; }
.room { cursor: pointer; border-width: 2px; }
.room.selected { border-color: var(--green); background: var(--green-soft); }
.room h3 { font-size: 1.2rem; margin-bottom: 4px; }
.room .amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.slot {
  border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 4px; text-align: center; cursor: pointer;
  background: #fffdf6; font-family: var(--f-type); font-size: .9rem; user-select: none; color: var(--ink);
}
.slot:hover:not(.busy):not(.past) { border-color: var(--green); }
.slot.sel { background: var(--green); color: var(--paper); border-color: var(--green-dark); }
.slot.busy { background: repeating-linear-gradient(45deg, var(--rust-soft), var(--rust-soft) 6px, #fff6ee 6px, #fff6ee 12px); color: var(--rust); cursor: not-allowed; text-decoration: line-through; }
.slot.past { opacity: .4; cursor: not-allowed; }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--ink-soft); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--line); vertical-align: -2px; margin-right: 4px; border-radius: 2px; }
.summary-box { background: var(--paper-2); border: 1.5px dashed var(--ink-mute); border-radius: 6px; padding: 16px; margin: 16px 0; font-size: .95rem; }
.summary-box .total { font-family: var(--f-serif); font-weight: 800; font-size: 1.4rem; color: var(--green-dark); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- membership card ---------- */
.member-card {
  background: var(--green); color: var(--paper); border-radius: 14px; padding: 26px; position: relative; overflow: hidden;
  box-shadow: 0 14px 30px -14px rgba(47, 71, 40, .8); border: 2px solid var(--green-dark);
}
.member-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(251, 247, 236, .4); border-radius: 9px; pointer-events: none; }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.member-card .mc-brand { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .03em; }
.member-card .mc-tier { font-family: var(--f-type); text-transform: uppercase; letter-spacing: .12em; border: 1.5px solid var(--paper); padding: 3px 10px; border-radius: 3px; font-size: .78rem; }
.member-card .mc-points { font-family: var(--f-display); font-size: 3.2rem; line-height: 1; margin: 22px 0 4px; }
.member-card .mc-name { font-family: var(--f-script); font-size: 1.7rem; }
.member-card .mc-phone { font-family: var(--f-type); opacity: .85; letter-spacing: .1em; }
.member-card .bar { background: rgba(251, 247, 236, .25); margin-top: 14px; }
.member-card .bar > i { background: var(--mustard); }
.member-card.t-rang { background: #6b4a2b; border-color: #4a321c; }
.member-card.t-vang { background: #8a6814; border-color: #5f470c; }

.scan-box { text-align: center; }
.cooldown { font-family: var(--f-type); font-size: 1.6rem; color: var(--rust); }
#reader { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: var(--ink); min-height: 40px; }
#reader video { border-radius: 8px; }

.stamp-anim {
  width: 180px; height: 180px; margin: 10px auto 20px; border-radius: 50%;
  border: 5px double var(--rust); color: var(--rust); display: grid; place-items: center; text-align: center;
  transform: rotate(-12deg); animation: stampIn .5s cubic-bezier(.2, 1.6, .5, 1) both;
  font-family: var(--f-display); font-size: 2.2rem; line-height: 1;
}
.stamp-anim small { display: block; font-family: var(--f-type); font-size: .8rem; letter-spacing: .15em; margin-top: 4px; }
@keyframes stampIn { from { transform: rotate(-12deg) scale(2.4); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }

.rewards { display: grid; gap: 12px; }
.reward { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 6px; background: #fffdf6; }
.reward .pts { font-family: var(--f-display); color: var(--rust); font-size: 1.1rem; min-width: 64px; text-align: center; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--line); font-size: .93rem; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(46, 43, 36, .55); z-index: 100;
  display: grid; place-items: center; padding: 16px; animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; width: min(560px, 100%);
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: 8px 8px 0 rgba(46, 43, 36, .35);
  animation: pop .18s ease-out;
}
.modal.wide { width: min(920px, 100%); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 3px double var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.modal-head h3 { margin: 0; font-size: 1.3rem; flex: 1; }
.modal-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; color: var(--ink); padding: 0 4px; }
.modal-body { padding: 20px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; font-family: var(--f-type); font-size: .8rem; }
.steps span { flex: 1; text-align: center; padding: 6px; border-bottom: 3px solid var(--paper-3); color: var(--ink-mute); }
.steps span.on { border-color: var(--green); color: var(--green-dark); }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; background: #fffdf6; font-weight: 500; }
.pay-method input { width: auto; }
.pay-method:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pay-logo { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-display); color: #fff; font-size: .8rem; }
.qr-wrap { display: inline-block; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }
.qr-wrap img, .qr-wrap canvas { display: block; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .93rem; text-align: left; }
.kv dt { color: var(--ink-mute); }
.kv dd { margin: 0; font-weight: 600; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--paper-3); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }

.eticket { border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fffdf6; }
.eticket .et-head { background: var(--green); color: var(--paper); padding: 14px 18px; font-family: var(--f-display); letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; }
.eticket .et-body { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px; align-items: center; }
.eticket .et-code { font-family: var(--f-type); font-size: 1.3rem; letter-spacing: .2em; color: var(--rust); }
@media (max-width: 520px) { .eticket .et-body { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100% - 40px); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 6px; box-shadow: var(--shadow); font-size: .93rem; animation: pop .2s; border-left: 5px solid var(--green); max-width: 380px; }
.toast.error { border-left-color: var(--rust); }
.toast.warn { border-left-color: var(--mustard); }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 32px 0 64px; align-items: start; }
.dash-side { position: sticky; top: 92px; }
.dash-side .who { padding: 16px; border: 1.5px solid var(--line); border-radius: 6px; background: #fffdf6; margin-bottom: 14px; }
.dash-side .who b { font-family: var(--f-serif); font-size: 1.1rem; display: block; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { padding: 10px 14px; border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 500; display: flex; gap: 10px; align-items: center; }
.dash-nav a:hover { background: var(--paper-2); }
.dash-nav a.active { background: var(--ink); color: var(--paper); }
.dash-nav a .badge { margin-left: auto; background: var(--rust); color: #fff; font-size: .72rem; border-radius: 99px; padding: 1px 7px; }
.dash-main h2 { font-family: var(--f-display); font-weight: 400; color: var(--green); font-size: 1.9rem; letter-spacing: .01em; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .dash-nav a { white-space: nowrap; border: 1.5px solid var(--line); }
}
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 24px; }
.stat { padding: 18px; }
.stat .lbl { font-family: var(--f-type); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.stat .val { font-family: var(--f-serif); font-weight: 800; font-size: 1.8rem; color: var(--green-dark); line-height: 1.2; margin-top: 4px; }
.stat .val.rust { color: var(--rust); }

.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 6px; background: #fffdf6; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--paper-3); vertical-align: middle; }
th { font-family: var(--f-type); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--ink-soft); background: var(--paper-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbf6e8; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; background: var(--paper-2); border-top: 2px solid var(--line); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; }
.empty { text-align: center; padding: 32px; color: var(--ink-mute); font-style: italic; }

.clock-card { text-align: center; padding: 32px 22px; }
.clock { font-family: var(--f-display); font-size: clamp(2.8rem, 9vw, 4.4rem); color: var(--green-dark); line-height: 1; }
.clock-date { font-family: var(--f-type); color: var(--ink-soft); margin: 8px 0 20px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-mute); margin-right: 6px; }
.status-dot.on { background: #4caf50; box-shadow: 0 0 0 4px rgba(76, 175, 80, .2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); } }
.btn.huge { font-size: 1.15rem; padding: 16px 40px; }

.kiosk { min-height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; padding: 30px 16px; }
.kiosk h1 { font-family: var(--f-display); color: var(--green); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); }
.kiosk .qr-wrap { padding: 20px; border: 3px solid var(--green); }
.kiosk .code { font-family: var(--f-type); font-size: 2.2rem; letter-spacing: .3em; color: var(--rust); margin-top: 14px; }

.demo-note { background: var(--mustard-soft); border: 1.5px dashed var(--mustard); border-radius: 6px; padding: 12px 16px; font-size: .88rem; color: #5f470c; }
.demo-note code { font-family: var(--f-type); background: rgba(255,255,255,.6); padding: 1px 6px; border-radius: 3px; }

.auth-box { max-width: 420px; margin: 48px auto 72px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper-2); margin-top: 40px; }
.site-footer a { color: var(--paper-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: var(--mustard); font-family: var(--f-type); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0 32px; font-size: .92rem; }
.footer-logo { width: 110px; border-radius: 50%; margin-bottom: 8px; }
.site-footer .script { color: var(--mustard); }
.footer-bottom { text-align: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--f-type); font-size: .8rem; letter-spacing: .1em; color: var(--ink-mute); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.info-band { background: var(--green); color: var(--paper); padding: 56px 0; position: relative; }
.info-band h2 { color: var(--paper); font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.info-band .script { color: var(--mustard); }
.info-band .btn { background: var(--paper); color: var(--green-dark); border-color: var(--paper); box-shadow: 3px 3px 0 var(--green-dark); }
.band-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, #toasts { display: none; }
}

/* ==========================================================
   v2 — photo-led vintage, SpeakHub, Arena, admin tools
   ========================================================== */
.boot { min-height: 60vh; display: grid; place-items: center; }
.paper2 { background: var(--paper-2); border-block: 3px double var(--line); }
.lead-p { max-width: 640px; margin: -12px auto 28px; color: var(--ink-soft); }
.err { color: var(--rust); } .ok { color: var(--green); } .warn { color: #8a6814; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
.nav-links a { padding: 8px 10px; font-size: .92rem; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 3px double var(--line); padding: 8px 16px 16px; display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 4px; padding: 12px; }
  .nav-user { margin: 8px 0 0; }
}
.nav-staff { color: var(--green-dark) !important; }
.btn.light { background: var(--paper); color: var(--green-dark); border-color: var(--paper); box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.btn.outline-light { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: none; }
.btn.outline-light:hover { background: rgba(255,255,255,.12); }
.dash-title { font-family: var(--f-display); font-weight: 400; color: var(--green); }
.code-input { text-transform: uppercase; font-family: var(--f-type); font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.code-input.sm { font-size: 1rem; letter-spacing: .15em; }
.social { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 3px 12px; font-size: .82rem; }

/* hero with photo */
.hero-photo { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: var(--paper); overflow: hidden; padding: 80px 0 90px; }
.hero-slides, .hero-shade { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: sepia(.18) saturate(1.05); }
.hero-slides img.on { opacity: 1; animation: kenburns 22s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { background: linear-gradient(90deg, rgba(22,32,18,.88) 0%, rgba(22,32,18,.6) 45%, rgba(22,32,18,.15) 100%), linear-gradient(0deg, rgba(22,32,18,.55), transparent 40%); }
.hero-photo .container { position: relative; z-index: 1; }
.hero-photo .eyebrow { font-family: var(--f-type); color: var(--mustard); letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.hero-photo h1 { font-family: var(--f-display); font-weight: 400; color: var(--paper); font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.05; margin: 12px 0 18px; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-photo h1 em { font-family: var(--f-script); font-style: normal; color: var(--mustard); font-size: .72em; display: block; transform: rotate(-3deg); margin-top: 10px; }
.hero-photo .lead { font-size: 1.08rem; color: rgba(251,247,236,.9); max-width: 540px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-photo .hero-badge { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); box-shadow: 0 0 0 10px rgba(251,247,236,.85), 0 0 0 12px rgba(251,247,236,.4), 0 30px 60px -20px rgba(0,0,0,.6); display: grid; place-items: center; max-width: 360px; width: 100%; margin-inline: auto; overflow: hidden; }
.hero-photo .hero-badge img { width: 88%; mix-blend-mode: multiply; }
.hero-badge .ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.hero-badge .ring text { font-family: var(--f-type); font-size: 13px; fill: var(--rust); letter-spacing: 4px; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--paper); text-decoration: none; font-size: 1.4rem; animation: bob 2s infinite; z-index: 1; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo .hero-badge { max-width: 220px; order: -1; } .hero-photo { padding: 48px 0 70px; } }

/* page head with photo */
.page-head { position: relative; padding: 80px 0 56px; text-align: center; color: var(--paper); background: linear-gradient(rgba(22,32,18,.72), rgba(22,32,18,.82)), var(--ph, none) center 60% / cover; border-bottom: 3px double var(--line); margin-bottom: 40px; }
.page-head .script { color: var(--mustard); display: block; }
.page-head h1 { font-family: var(--f-display); color: var(--paper); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 400; margin: 4px 0 0; }
.page-head p { max-width: 640px; margin: 10px auto 0; color: rgba(251,247,236,.88); }
.page-head-plain { padding: 60px 0; text-align: center; }

/* mosaic of spaces */
.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 6px; cursor: pointer; background: var(--bg); box-shadow: var(--shadow); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; filter: sepia(.12); }
.tile:hover img { transform: scale(1.06); }
.tile-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(255,255,255,.2), transparent 70%); }
.tile-ph .ico { width: 34%; height: auto; aspect-ratio: 1; color: rgba(255,253,246,.85); margin: 0; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(20,24,16,.85)); color: var(--paper); display: flex; flex-direction: column; }
.tile figcaption b { font-family: var(--f-serif); font-size: 1.15rem; }
.tile.big figcaption b { font-size: 1.6rem; }
.tile figcaption span { font-family: var(--f-type); font-size: .78rem; opacity: .85; }
@media (max-width: 860px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
@media (max-width: 480px) { .mosaic { grid-template-columns: 1fr; } .tile.big { grid-column: auto; grid-row: span 2; } }
.masonry { columns: 3 260px; column-gap: 14px; }
.mz { break-inside: avoid; margin: 0 0 14px; cursor: pointer; position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.mz img { width: 100%; filter: sepia(.1); }
.mz figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .85rem; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* bands */
.info-band { background: linear-gradient(rgba(36,56,30,.86), rgba(36,56,30,.9)), var(--band, none) center / cover; background-attachment: fixed; }
@media (hover: none) { .info-band { background-attachment: scroll; } }
.info-band .btn.light { box-shadow: 3px 3px 0 var(--green-dark); }
.arena-band { background: linear-gradient(120deg, #1d1a24, #2a1f1a 60%, #3a2414); color: var(--paper); padding: 48px 0; border-block: 3px solid var(--mustard); }
.arena-band h2 { color: var(--paper); font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 10px 0 6px; }
.gold { color: #f3c64e; }
.stamp.live { color: #fff; background: #d7342a; border-color: #d7342a; animation: pulseRed 1.6s infinite; }
@keyframes pulseRed { 50% { box-shadow: 0 0 0 6px rgba(215,52,42,.2); } }

/* SpeakHub */
.sh-band { padding: 64px 0; background: linear-gradient(135deg, #f3f6e8, #e4ecd2); border-block: 3px double var(--line); position: relative; overflow: hidden; }
.sh-band::before, .sh-band::after { content: ""; position: absolute; width: 260px; height: 260px; background: repeating-linear-gradient(-55deg, rgba(68,99,58,.18) 0 10px, transparent 10px 22px); border-radius: 40%; }
.sh-band::before { top: -90px; left: -90px; } .sh-band::after { bottom: -100px; right: -60px; }
.sh-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.sh-grid.no-poster, .sh-hero-grid.no-poster { grid-template-columns: 1fr; max-width: 820px; }
.sh-grid h2 { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); font-size: clamp(1.9rem, 4.4vw, 3rem); text-transform: uppercase; margin: 6px 0 12px; }
.sh-logo { font-family: var(--f-script); color: var(--green-dark); font-size: 2.2rem; line-height: 1; }
.sh-logo small { display: block; font-family: var(--f-body); font-weight: 700; font-size: .78rem; letter-spacing: .2em; color: var(--ink); margin-top: 6px; }
.sh-logo.big { font-size: 3.2rem; }
.sh-poster { width: 100%; max-width: 380px; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); transform: rotate(2deg); justify-self: center; border: 6px solid #fff; }
.sh-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.sh-price { border-radius: 10px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 2px; border: 1.5px solid rgba(0,0,0,.08); }
.sh-price span { font-weight: 700; font-size: .82rem; }
.sh-price b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.sh-price small { font-weight: 600; }
.sh-price em { font-style: normal; background: var(--green-dark); color: var(--paper); border-radius: 6px; padding: 6px 8px; margin-top: 8px; font-size: .82rem; font-weight: 600; }
.sh-price.p0 { background: #fbe1df; } .sh-price.p0 b { color: #d0281e; }
.sh-price.p1 { background: #fbefc4; } .sh-price.p1 b { color: #d4561a; }
.sh-price.p2 { background: #dcebcf; } .sh-price.p2 b { color: var(--green-dark); }
.sh-prices.big .sh-price { padding: 26px 18px; } .sh-prices.big .sh-price b { font-size: 3rem; }
@media (max-width: 860px) { .sh-grid { grid-template-columns: 1fr; } .sh-poster { max-width: 300px; } }
@media (max-width: 560px) { .sh-prices { grid-template-columns: 1fr; } }
.sh-hero { padding: 56px 0; background: linear-gradient(90deg, rgba(251,247,236,.97) 40%, rgba(251,247,236,.75)), var(--shc, none) center / cover; border-bottom: 3px double var(--line); }
.sh-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.sh-hero h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; color: var(--green-dark); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: 14px 0; }
.sh-bubble { display: inline-block; background: var(--green-dark); color: var(--paper); font-family: var(--f-display); padding: 12px 22px; border-radius: 30px 30px 30px 6px; transform: rotate(-2deg); margin-bottom: 14px; }
@media (max-width: 860px) { .sh-hero-grid { grid-template-columns: 1fr; } }
.sh-feats { display: grid; grid-template-columns: repeat(6, 1fr); border: 1.5px solid var(--line); border-radius: 10px; background: #fffdf6; }
.sh-feat { text-align: center; padding: 18px 10px; border-right: 1px solid var(--paper-3); display: flex; flex-direction: column; gap: 2px; }
.sh-feat:last-child { border-right: 0; }
.sh-feat .ico { width: 60px; height: 60px; padding: 12px; background: var(--green-soft); border-radius: 50%; color: var(--green-dark); }
.sh-feat span { font-size: .85rem; color: var(--ink-soft); }
.sh-feat b { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); text-transform: uppercase; font-size: 1.05rem; line-height: 1.2; }
@media (max-width: 860px) { .sh-feats { grid-template-columns: repeat(3, 1fr); } .sh-feat:nth-child(3) { border-right: 0; } .sh-feat:nth-child(-n+3) { border-bottom: 1px solid var(--paper-3); } }
@media (max-width: 480px) { .sh-feats { grid-template-columns: 1fr 1fr; } .sh-feat { border-right: 0 !important; border-bottom: 1px solid var(--paper-3); } }
.sh-split { grid-template-columns: 1.4fr .9fr; }
.sh-session { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 8px; margin-bottom: 10px; cursor: pointer; font-weight: 400; color: var(--ink); }
.sh-session input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.sh-session.on { border-color: var(--green); background: var(--green-soft); }
.sh-session.full { opacity: .55; cursor: not-allowed; }
.sh-date { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding-right: 12px; border-right: 1px dashed var(--line); line-height: 1.2; }
.sh-date b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--green-dark); }
.sh-date span { font-size: .78rem; color: var(--ink-mute); }
.sh-topic { font-family: var(--f-serif); font-weight: 600; font-size: 1.05rem; }
.sh-cart { position: sticky; top: 92px; }

/* event & room images */
.ticket-img { height: 130px; margin: -18px -20px 6px; background: center / cover; filter: sepia(.12); }
.room-img { height: 130px; margin: -22px -22px 14px; background: center / cover; border-radius: 4px 4px 0 0; }
.menu-item { display: flex; gap: 12px; align-items: center; }
.menu-item .mi-body { flex: 1; min-width: 0; }
.mi-img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper-3); flex: none; }
.menu-item.off .name, .menu-item.off .price { text-decoration: line-through; color: var(--ink-mute); }

/* image field */
.imgfield { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.imgprev { width: 120px; height: 84px; border-radius: 6px; border: 1.5px dashed var(--line); background: var(--paper-2) center / cover; display: grid; place-items: center; }
.imgprev .ico { width: 32px; height: 32px; margin: 0; color: var(--ink-mute); }
.thumb { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 6px; background: var(--paper-2) center / cover; border: 1px solid var(--line); vertical-align: middle; }
.thumb.empty, .thumb[data-pic] { cursor: pointer; color: var(--ink-mute); font-size: 1.3rem; }
tr.dim td { opacity: .5; }
.cat-pill { border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 14px; background: #fffdf6; }
.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 12px; }
.media-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1.5px solid var(--line); border-radius: 6px; background: #fffdf6; }
.mi-pic { aspect-ratio: 4/3; border-radius: 4px; background: var(--paper-2) center / cover; display: grid; place-items: center; }
.mi-pic .ico { margin: 0; color: rgba(255,255,255,.85); }
details.acc { margin-bottom: 14px; }
details.acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; }
details.acc summary::after { content: "＋"; margin-left: auto; color: var(--ink-mute); }
details.acc[open] summary::after { content: "－"; }
details.acc summary h3 { margin: 0; }
details.acc[open] summary { margin-bottom: 14px; }
.sticky-save { position: sticky; bottom: 0; background: var(--paper); padding: 14px 0; border-top: 1px dashed var(--line); z-index: 5; }
.subtabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.subtabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.subtabs a.active { color: var(--green-dark); border-color: var(--green); }
.subtabs.big { margin-top: -20px; }
.badge { background: var(--rust); color: #fff; font-size: .72rem; border-radius: 99px; padding: 1px 7px; }
.steps-list { padding-left: 20px; margin: 0 0 14px; } .steps-list li { margin-bottom: 6px; }
.check-list { list-style: none; padding: 0; margin: 0 0 14px; } .check-list li { margin-bottom: 4px; }
.attend-card { padding: 34px 22px; }
.big-ico { font-size: 3rem; }

/* Arena */
.arena-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.arena-card { text-decoration: none; color: inherit; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.arena-card:hover { transform: translateY(-4px); }
.ac-banner { height: 150px; background: linear-gradient(135deg, #2a1f1a, #4a2a14) center / cover; display: grid; place-items: center; position: relative; }
.ac-banner .ico { color: var(--mustard); width: 64px; height: 64px; margin: 0; }
.ac-status { position: absolute; top: 12px; left: 12px; }
.ac-status .stamp { background: rgba(0,0,0,.55); }
.ac-status .stamp.live { background: #d7342a; }
.ac-body { padding: 16px 18px; }
.ac-body h3 { margin: 4px 0 10px; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--ink-soft); }
.ac-prize { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ac-prize b { font-family: var(--f-display); font-weight: 400; color: var(--rust); font-size: 1.2rem; }
.arena-head { padding: 40px 0; color: var(--paper); background: linear-gradient(120deg, rgba(29,26,36,.94), rgba(58,36,20,.9)), var(--ab, none) center / cover; border-bottom: 3px solid var(--mustard); margin-bottom: 40px; }
.arena-head h1 { font-family: var(--f-display); font-weight: 400; color: var(--paper); font-size: clamp(1.8rem, 5vw, 3rem); margin: 10px 0 18px; }
.arena-head .stamp { color: var(--mustard); }
.arena-kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.arena-kpis div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; }
.arena-kpis span { font-family: var(--f-type); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.arena-kpis b { font-size: 1.15rem; }
.rules p { margin: 0 0 6px; }
table.prize { width: 100%; } table.prize td { padding: 10px 6px; }
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; align-items: end; margin-bottom: 28px; text-align: center; }
.pod { border-radius: 8px 8px 0 0; padding: 18px 10px; color: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.pod b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; }
.pod.p0 { order: 2; background: linear-gradient(#c99a2e, #8a6814); min-height: 150px; }
.pod.p1 { order: 1; background: linear-gradient(#8a8f96, #5c6168); min-height: 120px; }
.pod.p2 { order: 3; background: linear-gradient(#b4562f, #7d3a1e); min-height: 100px; }
.bracket { display: flex; gap: 28px; overflow-x: auto; padding: 8px 2px 16px; }
.b-col { display: flex; flex-direction: column; min-width: 220px; flex: 1; }
.b-title { font-family: var(--f-type); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--rust); margin-bottom: 10px; text-align: center; }
.b-matches { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 14px; }
.mbox { position: relative; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
#adBracket .mbox, .chip[data-m] { cursor: pointer; }
#adBracket .mbox:hover { border-color: var(--green); }
.mbox.live { border-color: #d7342a; box-shadow: 0 0 0 3px rgba(215,52,42,.15); }
.mb-team { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--paper-3); font-size: .92rem; }
.mb-team b { font-family: var(--f-type); min-width: 16px; text-align: right; }
.mb-team.win { background: var(--green-soft); font-weight: 700; }
.mb-team.lose span { color: var(--ink-mute); text-decoration: line-through; }
.mb-foot { font-size: .72rem; color: var(--ink-mute); padding: 4px 12px; font-family: var(--f-type); }
.live-dot { position: absolute; top: 0; right: 0; background: #d7342a; color: #fff; font-size: .62rem; font-family: var(--f-type); padding: 1px 6px; border-radius: 0 0 0 4px; letter-spacing: .08em; }
tr.top td { background: #fbf3dc; }
.team-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.team-tag { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--mustard); display: grid; place-items: center; font-family: var(--f-display); font-size: .8rem; }
.score-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 14px 0 20px; flex-wrap: wrap; }
.score-row input { width: 70px; text-align: center; font-family: var(--f-display); font-size: 1.6rem; }
.score-row span { font-family: var(--f-display); font-size: 1.6rem; }
.arena-screen { min-height: 100vh; background: radial-gradient(ellipse at top, #3a2414, #14110f 70%); color: var(--paper); padding: 24px clamp(16px, 3vw, 40px); }
.as-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.as-head img { width: 70px; height: 70px; border-radius: 50%; }
.as-head h1 { color: var(--paper); font-family: var(--f-display); font-weight: 400; margin: 0; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.as-live { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 24px; }
.as-match { position: relative; background: rgba(255,255,255,.06); border: 1.5px solid #d7342a; border-radius: 10px; padding: 26px 16px 18px; }
.as-match .live-dot { right: auto; left: 0; border-radius: 0 0 4px 0; }
.as-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; text-align: center; }
.as-score b { font-size: 1.3rem; }
.as-score em { font-style: normal; font-family: var(--f-display); font-size: 2.6rem; color: #f3c64e; }
.arena-screen .mbox { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--paper); }
.arena-screen .mb-team { border-color: rgba(255,255,255,.1); }
.arena-screen .mb-team.win { background: rgba(201,154,46,.3); }
.arena-screen .mb-team.lose span { color: rgba(255,255,255,.4); }
.arena-screen .b-title { color: #f3c64e; }
.arena-screen .muted { color: rgba(255,255,255,.4); }
.kiosk-mode .site-header, .kiosk-mode .site-footer { display: none; }
.kiosk-mode .kiosk { min-height: 100vh; }
.paper2 .cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .paper2 .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .paper2 .cards { grid-template-columns: 1fr; } }
.dash > *, .split > *, .sh-grid > *, .sh-hero-grid > *, .hero-grid > * { min-width: 0; }
@media (max-width: 860px) { .sh-split { grid-template-columns: 1fr; } .sh-cart { position: static; } }

@media print {
  .site-header, .site-footer, #toasts, .no-print { display: none !important; }
  body { background: #fff; }
  .kiosk { min-height: auto; padding: 0; }
}

/* ==========================================================
   v3 — polish: hero ngắn hơn, thẻ sự kiện đồng bộ, Arena esports
   ========================================================== */
.gold-t { color: #f3c64e; } .rust-t { color: var(--rust); } .green-t { color: var(--green); }
.btn.big { padding: 14px 28px; font-size: 1.02rem; }
.code-input.lower { text-transform: none; }
.stamp.hot { color: #fff; background: var(--rust); border-color: var(--rust); }

/* header */
.brand img { width: 58px; height: 58px; }
.site-header { transition: box-shadow .25s, background .25s; }
body.scrolled .site-header { box-shadow: 0 6px 24px -14px rgba(46,43,36,.5); background: rgba(251,247,236,.97); }

/* nút có vệt sáng lướt qua */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; pointer-events: none; }
.btn:hover::after { left: 130%; }

/* hero ngắn gọn hơn */
.hero-photo { min-height: min(68vh, 600px); padding: 56px 0 64px; }
.hero-photo h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-photo .hero-badge { max-width: 300px; }
@media (max-width: 860px) { .hero-photo { min-height: 0; padding: 40px 0 56px; } .hero-photo .hero-badge { max-width: 190px; } }
.hero-badge-wrap { position: relative; }
.steam { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); width: 90px; height: 70px; z-index: 2; pointer-events: none; }
.steam span { position: absolute; bottom: 0; width: 14px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.75), transparent 70%); filter: blur(6px); animation: steam 4s ease-in infinite; opacity: 0; }
.steam span:nth-child(1) { left: 18px; animation-delay: 0s; } .steam span:nth-child(2) { left: 38px; animation-delay: 1.3s; } .steam span:nth-child(3) { left: 58px; animation-delay: 2.6s; }
@keyframes steam { 0% { transform: translateY(20px) scaleX(1); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-50px) scaleX(2.2) rotate(8deg); opacity: 0; } }
.bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bokeh span { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, rgba(255,214,130,.85), rgba(255,190,90,.15) 60%, transparent 70%); filter: blur(1px); animation: twinkle var(--t) ease-in-out var(--dl) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: translateY(0); } 50% { opacity: .85; transform: translateY(-14px); } }

/* mép giấy xé dưới banner các trang */
.page-head::after, .ar-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 16V9l6-3 7 4 8-5 6 3 9-6 7 5 8-2 6 4 9-6 8 5 7-3 9 4 7-5 8 4 5-2v14z' fill='%23FBF7EC'/%3E%3C/svg%3E") repeat-x; background-size: 120px 16px; }
.page-head { padding: 64px 0 50px; }

/* thẻ sự kiện: cùng chiều cao, gọn gàng */
.tickets { align-items: stretch; }
.ticket { cursor: pointer; transition: transform .2s, box-shadow .2s; height: 100%; }
.ticket:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(46,43,36,.55); }
.ticket .body { gap: 8px; padding: 0 18px 16px; }
.ticket-img { position: relative; height: 150px; margin: 0 -18px 4px; background: center / cover; filter: none; display: grid; place-items: center; }
.ticket-img.ph { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px), linear-gradient(135deg, var(--green), var(--green-dark)); }
.ticket.game .ticket-img.ph { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px), linear-gradient(135deg, #b4562f, #6e3018); }
.ticket.music .ticket-img.ph { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px), linear-gradient(135deg, #c99a2e, #7a5a14); }
.ticket-img.ph .ico { width: 64px; height: 64px; margin: 0; color: rgba(255,253,246,.85); }
.ticket-img .stamp { position: absolute; top: 10px; left: 10px; font-size: .68rem; }
.ticket-img .stamp.hot, .ticket-img .stamp.full { left: auto; right: 10px; }
.ticket-img .stamp.gray { background: rgba(255,255,255,.9); }
.ticket h3 { font-size: 1.12rem; margin: 2px 0 0; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket .foot { margin-top: auto; }

/* popup chi tiết sự kiện */
.ev-hero { position: relative; height: 240px; border-radius: 8px; background: center / cover; display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.ev-hero.ph { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.ev-hero.ph.game { background: linear-gradient(135deg, #b4562f, #6e3018); } .ev-hero.ph.music { background: linear-gradient(135deg, #c99a2e, #7a5a14); }
.ev-hero.ph .ico { width: 80px; height: 80px; margin: 0; color: rgba(255,253,246,.85); }
.ev-date { position: absolute; top: 14px; left: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 6px 12px; text-align: center; line-height: 1.1; box-shadow: 3px 3px 0 rgba(0,0,0,.3); }
.ev-date b { font-family: var(--f-display); font-size: 1.6rem; color: var(--rust); display: block; }
.ev-date span { font-family: var(--f-type); font-size: .75rem; text-transform: uppercase; }
.ev-title { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 14px; }
.ev-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ev-facts div { background: var(--paper-2); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; font-size: .85rem; }
.ev-facts span { color: var(--ink-mute); font-size: .74rem; font-family: var(--f-type); text-transform: uppercase; }
@media (max-width: 640px) { .ev-facts { grid-template-columns: 1fr 1fr; } }
.ev-desc { margin: 16px 0; font-size: 1rem; line-height: 1.7; }
.ev-link { display: flex; gap: 8px; align-items: center; background: var(--paper-2); border: 1.5px dashed var(--line); border-radius: 6px; padding: 8px; flex-wrap: wrap; }
.ev-link input { flex: 1; min-width: 180px; font-family: var(--f-type); font-size: .82rem; background: #fff; }

/* dải ảnh polaroid chạy ngang */
.strip-sec { overflow: hidden; }
.strip { overflow: hidden; padding: 20px 0 10px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 26px; width: max-content; animation: marquee 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.pol { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: 0 14px 28px -16px rgba(46,43,36,.6); transform: rotate(var(--r)); transition: transform .3s; width: 220px; flex: none; }
.pol:hover { transform: rotate(0) scale(1.06); }
.pol img { width: 100%; height: 260px; object-fit: cover; filter: sepia(.1); }
.pol figcaption { font-family: var(--f-script); text-align: center; margin-top: 6px; }

/* hiệu ứng xuất hiện khi cuộn */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .strip-track, .ribbon-track, .bokeh span, .steam span { animation: none; } }

/* thẻ tiện ích */
.feature .ico { transition: transform .4s; }
.feature:hover .ico { transform: rotate(-8deg) scale(1.12); }
.feature { border-top: 4px solid var(--green); }

/* SpeakHub CTA */
.sh-cta-band { padding: 64px 0; background: linear-gradient(rgba(36,56,30,.88), rgba(36,56,30,.92)), var(--band, url('../assets/garden2.jpg')) center / cover; color: var(--paper); }
.sh-cta-band h2 { color: var(--paper); font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 6px 0 10px; }
.sh-cta-band .script { color: var(--mustard); }
.sh-cta-band p { max-width: 620px; margin: 0 auto 22px; opacity: .9; }

/* phiếu lương */
.payslip { background: #fffdf6; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 6px 6px 0 rgba(46,43,36,.15); max-width: 640px; }
.ps-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 12px 18px; font-family: var(--f-type); font-size: .82rem; letter-spacing: .06em; }
.ps-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 18px; border-bottom: 1px dashed var(--line); }
.ps-row small { display: block; color: var(--ink-mute); font-size: .78rem; }
.ps-row b { font-family: var(--f-type); font-size: 1.02rem; }
.ps-row.minus b { color: var(--rust); } .ps-row.plus b { color: var(--green); }
.ps-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--green-soft); }
.ps-total span { font-family: var(--f-type); letter-spacing: .08em; font-weight: 500; }
.ps-total b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; color: var(--green-dark); }
.ps-items { padding: 14px 18px; border-top: 2px solid var(--line); }
.ps-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: .9rem; }
.ps-item b { font-family: var(--f-type); }
.formula { background: var(--paper-2); border: 1.5px dashed var(--line); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; }

/* ================= KHÓI ARENA — esports ================= */
body.arena-mode { background: #110e0b; }
body.arena-mode .site-header { background: rgba(17,14,11,.92); border-bottom-color: rgba(201,154,46,.35); }
body.arena-mode .nav-links a { color: #e9dfc8; }
body.arena-mode .nav-links a:hover { background: rgba(255,255,255,.08); }
body.arena-mode .nav-links a.active { background: #c99a2e; color: #110e0b; }
body.arena-mode .brand img { mix-blend-mode: normal; background: var(--paper); }
body.arena-mode .nav-toggle { color: #e9dfc8; border-color: #e9dfc8; }
@media (max-width: 1180px) { body.arena-mode .nav-links { background: #17120e; } }
body.arena-mode .site-footer { margin-top: 0; border-top: 1px solid rgba(201,154,46,.25); }
.arena-mode #app { --ink: #f3ead6; --ink-soft: #cbbf9f; --ink-mute: #958a72; --line: rgba(201,154,46,.28); --paper-2: #221b14; --paper-3: #2c241b; --green-soft: rgba(201,154,46,.16); color: var(--ink); }
.arena-mode #app .card, .arena-mode #app .table-wrap, .arena-mode #app .mbox, .arena-mode #app .summary-box { background: linear-gradient(160deg, #1f1913, #17120e); border-color: rgba(201,154,46,.28); color: var(--ink); box-shadow: 0 18px 40px -24px rgba(0,0,0,.8); }
.arena-mode #app .card.framed { outline-color: rgba(201,154,46,.18); }
.arena-mode #app input, .arena-mode #app select, .arena-mode #app textarea { background: #0f0c09; color: var(--ink); border-color: rgba(201,154,46,.3); }
.arena-mode #app th { background: #241d15; color: #d8c79c; }
.arena-mode #app td { border-color: #2c241b; }
.arena-mode #app tbody tr:hover td { background: #241d15; }
.arena-mode #app tr.top td { background: rgba(201,154,46,.12); }
.arena-mode #app .stamp:not(.live):not(.solid):not(.hot) { color: #e9c766; }
.arena-mode #app .stamp.gray { color: #958a72; }
.arena-mode #app .mb-team.win { background: rgba(201,154,46,.22); }
.arena-mode #app .muted { color: var(--ink-mute); }
.arena-mode #app .btn:not(.mustard):not(.outline-light) { background: #c99a2e; color: #110e0b; border-color: #8a6814; box-shadow: 3px 3px 0 #8a6814; }
.arena-mode #app .btn.ghost { background: transparent; color: #e9c766; }
.arena-mode #app .list li { border-color: #2c241b; }
.arena-mode #app .kv dt { color: var(--ink-mute); }
.arena-mode #app .b-title { color: #f3c64e; }

.ar-hero, .ar-thead { position: relative; overflow: hidden; color: #f3ead6; background: radial-gradient(ellipse at 20% 0%, #4a2a14 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #3b1610 0%, transparent 50%), #110e0b; }
.ar-thead { background: linear-gradient(120deg, rgba(17,14,11,.94), rgba(58,30,14,.88)), var(--ab, none) center / cover; border-bottom: 2px solid rgba(201,154,46,.4); padding: 40px 0 46px; margin-bottom: 30px; }
.ar-hero { padding: 90px 0 100px; text-align: center; }
.ar-grid-bg { position: absolute; inset: -50% -10% 0; background-image: linear-gradient(rgba(201,154,46,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(201,154,46,.12) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(600px) rotateX(55deg); transform-origin: bottom; animation: gridmove 6s linear infinite; mask-image: linear-gradient(transparent, #000 60%); }
@keyframes gridmove { to { background-position: 0 46px; } }
.ar-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.ar-glow.g1 { width: 420px; height: 420px; background: #c99a2e; top: -180px; left: -120px; animation: float 9s ease-in-out infinite; }
.ar-glow.g2 { width: 380px; height: 380px; background: #b4302a; bottom: -200px; right: -80px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px); } }
.ar-streaks i { position: absolute; height: 2px; width: 40%; background: linear-gradient(90deg, transparent, #f3c64e, transparent); opacity: .6; animation: streak 4s linear infinite; }
.ar-streaks i:nth-child(1) { top: 28%; left: -40%; } .ar-streaks i:nth-child(2) { top: 62%; left: -40%; animation-delay: 1.6s; } .ar-streaks i:nth-child(3) { top: 82%; left: -40%; animation-delay: 2.8s; }
@keyframes streak { to { left: 120%; } }
.ar-hero-in { position: relative; z-index: 1; }
.ar-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-type); font-size: .8rem; letter-spacing: .2em; color: #f3c64e; border: 1px solid rgba(243,198,78,.4); padding: 6px 16px; border-radius: 99px; background: rgba(0,0,0,.3); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #e53b2f; box-shadow: 0 0 0 0 rgba(229,59,47,.7); animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 10px rgba(229,59,47,0); } 100% { box-shadow: 0 0 0 0 rgba(229,59,47,0); } }
.ar-title { font-family: var(--f-display); font-weight: 400; color: #fff; margin: 22px 0 14px; line-height: .95; text-transform: uppercase; }
.ar-title span { display: block; font-size: clamp(1.4rem, 3.6vw, 2.4rem); letter-spacing: .3em; color: #e9dfc8; }
.ar-title b { display: block; font-weight: 400; font-size: clamp(3.2rem, 11vw, 7.5rem); background: linear-gradient(180deg, #fff3c4, #f3c64e 45%, #b5781c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(243,198,78,.35)); letter-spacing: .02em; }
.ar-lead { max-width: 620px; margin: 0 auto 30px; color: #cbbf9f; }
.ar-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 820px; margin: 0 auto; }
.ar-stats div { background: rgba(255,255,255,.04); border: 1px solid rgba(201,154,46,.3); border-radius: 10px; padding: 16px 10px; backdrop-filter: blur(4px); }
.ar-stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 2.2rem); color: #fff; }
.ar-stats .gold b { color: #f3c64e; }
.ar-stats span { font-family: var(--f-type); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #a99c7d; }
@media (max-width: 640px) { .ar-stats { grid-template-columns: 1fr 1fr; } .ar-hero { padding: 60px 0 70px; } }
.ar-feature { background: #110e0b; padding: 10px 0 40px; margin-top: -40px; position: relative; z-index: 2; }
.ar-feat-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; border-radius: 16px; padding: 30px; color: #f3ead6; background: linear-gradient(135deg, #2a1d12, #17110c 60%); border: 1px solid rgba(243,198,78,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px -30px rgba(243,198,78,.35); position: relative; overflow: hidden; }
.ar-feat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(243,198,78,.08) 50%, transparent 60%); animation: sheen 5s linear infinite; }
@keyframes sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.ar-feat-card > * { position: relative; }
.ar-feat-card h2 { color: #fff; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 12px 0; }
.ar-prize-big span { font-family: var(--f-type); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #a99c7d; }
.ar-prize-big b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); color: #f3c64e; text-shadow: 0 0 30px rgba(243,198,78,.45); line-height: 1.1; }
.ar-split { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ar-split div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 12px; font-size: .85rem; display: flex; flex-direction: column; }
.ar-split b { color: #fff; }
.ar-feat-r { display: flex; flex-direction: column; gap: 14px; justify-content: center; background: rgba(0,0,0,.28); border-radius: 12px; padding: 22px; border: 1px solid rgba(255,255,255,.06); }
@media (max-width: 860px) { .ar-feat-card { grid-template-columns: 1fr; padding: 22px; } }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd div { background: linear-gradient(#2a2017, #15100c); border: 1px solid rgba(243,198,78,.35); border-radius: 8px; text-align: center; padding: 10px 4px; }
.cd b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem); color: #fff; font-variant-numeric: tabular-nums; }
.cd span { font-family: var(--f-type); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #a99c7d; }
.bar.gold { background: rgba(255,255,255,.1); } .bar.gold > i { background: linear-gradient(90deg, #b5781c, #f3c64e); box-shadow: 0 0 12px rgba(243,198,78,.6); }
.ar-slots { font-size: .9rem; } .ar-slots .bar { margin-top: 6px; height: 8px; }
.ar-live-match { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(215,52,42,.6); border-radius: 10px; padding: 26px 14px 14px; }
.ar-live-match .live-dot { right: auto; left: 0; border-radius: 0 0 4px 0; }
.ar-live-match .as-score b { color: #fff; font-size: 1.05rem; }
.ar-sec { background: #110e0b; padding: 56px 0; color: #f3ead6; }
.ar-sec.alt { background: linear-gradient(#15110d, #1b1510); border-block: 1px solid rgba(201,154,46,.15); }
.ar-h { text-align: center; margin-bottom: 30px; }
.ar-h span { font-family: var(--f-type); letter-spacing: .3em; font-size: .78rem; color: #f3c64e; }
.ar-h h2 { color: #fff; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 6px 0 0; }
.arena-mode .arena-card { background: linear-gradient(160deg, #1f1913, #15110d); border: 1px solid rgba(201,154,46,.3); color: #f3ead6; }
.arena-mode .arena-card:hover { border-color: #f3c64e; box-shadow: 0 20px 50px -20px rgba(243,198,78,.45); transform: translateY(-6px); }
.arena-mode .arena-card.live { border-color: #d7342a; }
.arena-mode .arena-card h3 { color: #fff; }
.arena-mode .ac-meta { color: #a99c7d; }
.ac-banner { height: 160px; background: radial-gradient(circle at 50% 120%, rgba(243,198,78,.45), transparent 60%), repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px), linear-gradient(135deg, #3a2414, #17110c); }
.ac-emblem { width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(243,198,78,.6); display: grid; place-items: center; box-shadow: 0 0 30px rgba(243,198,78,.35); background: rgba(0,0,0,.35); }
.ac-emblem .ico { width: 40px; height: 40px; color: #f3c64e; margin: 0; }
.arena-mode .ac-prize { border-color: rgba(201,154,46,.25); display: flex; justify-content: space-between; align-items: baseline; }
.arena-mode .ac-prize span { font-size: .8rem; color: #a99c7d; }
.arena-mode .ac-prize b { color: #f3c64e; }
.ar-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.ar-step { position: relative; background: linear-gradient(160deg, #221a12, #15110d); border: 1px solid rgba(201,154,46,.25); border-radius: 12px; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.ar-step em { position: absolute; top: 10px; right: 12px; font-style: normal; font-family: var(--f-display); color: rgba(243,198,78,.25); font-size: 1.6rem; }
.ar-step-ico { font-size: 2rem; }
.ar-step b { color: #fff; } .ar-step span { font-size: .85rem; color: #a99c7d; }
@media (max-width: 960px) { .ar-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ar-steps { grid-template-columns: 1fr; } }
.hof { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hof-card { text-align: center; padding: 26px 18px; border-radius: 14px; background: radial-gradient(circle at 50% 0%, rgba(243,198,78,.25), transparent 60%), #1a140f; border: 1px solid rgba(243,198,78,.45); display: flex; flex-direction: column; gap: 6px; }
.hof-card b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: #f3c64e; }
.hof-cup { font-size: 2.6rem; filter: drop-shadow(0 0 16px rgba(243,198,78,.6)); }
.hof-card ol { text-align: left; margin: 8px 0 0; padding-left: 22px; }
.hof-card li { display: flex; justify-content: space-between; padding: 4px 0; } .hof-card li b { font-size: 1rem; color: #fff; font-family: var(--f-body); font-weight: 600; } .hof-card li span { color: #a99c7d; }
.ar-back { color: #cbbf9f; }
.ar-ttitle { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5.6vw, 3.6rem); margin: 10px 0 20px; background: linear-gradient(180deg, #fff, #f3c64e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-thead-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; }
@media (max-width: 860px) { .ar-thead-grid { grid-template-columns: 1fr; } }
.ar-thead .arena-kpis div { background: rgba(0,0,0,.35); border-color: rgba(243,198,78,.25); }
.ar-thead .arena-kpis .gold b { color: #f3c64e; font-size: 1.5rem; }
.ar-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.ar-tabs a { padding: 10px 18px; border-radius: 99px; text-decoration: none; color: #cbbf9f; border: 1px solid rgba(201,154,46,.3); font-weight: 600; font-size: .92rem; transition: .2s; }
.ar-tabs a:hover { color: #fff; border-color: #f3c64e; }
.ar-tabs a.active { background: linear-gradient(180deg, #f3c64e, #c99a2e); color: #110e0b; border-color: #f3c64e; box-shadow: 0 0 20px rgba(243,198,78,.35); }
.arena-mode .podium .pod { box-shadow: 0 0 30px -6px rgba(243,198,78,.35); }

/* ==========================================================
   v4 — trang chủ gọn & fancy hơn, popup, đa game Arena
   ========================================================== */
/* khoảng cách các mục gọn lại */
.section { padding: 48px 0; }
.section.tight { padding: 32px 0; }
.sec-head { margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .2em; }
.ornament { margin-top: 4px; }
.lead-p { margin: -6px auto 22px; }
.mosaic { grid-auto-rows: 170px; }
.sh-band, .info-band { padding: 46px 0; }
.arena-band { padding: 36px 0; }
.strip { padding: 10px 0 4px; }
.pol img { height: 220px; } .pol { width: 190px; }
@media (max-width: 860px) { .mosaic { grid-auto-rows: 140px; } .section { padding: 38px 0; } }

/* chip giờ mở cửa */
.hero-chips { gap: 10px; }
.open-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-type); font-size: .76rem; padding: 5px 12px; border-radius: 99px; background: rgba(0,0,0,.35); color: #f1dcc0; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.open-chip i { width: 8px; height: 8px; border-radius: 50%; background: #c97a6a; }
.open-chip.on i { background: #6fd27a; box-shadow: 0 0 0 0 rgba(111,210,122,.6); animation: pulseG 1.8s infinite; }
@keyframes pulseG { 70% { box-shadow: 0 0 0 8px rgba(111,210,122,0); } }

/* lá trang trí */
.section.deco { position: relative; overflow: hidden; }
.leaf-deco { position: absolute; width: 120px; height: 200px; color: var(--green); opacity: .16; pointer-events: none; }
.leaf-deco.l { left: -18px; top: 20px; transform: rotate(-18deg); }
.leaf-deco.r { right: -18px; bottom: 10px; transform: scaleX(-1) rotate(-14deg); }
@media (max-width: 760px) { .leaf-deco { display: none; } }

/* thẻ tiện ích */
.feature { padding: 26px 20px 20px; overflow: hidden; }
.feat-no { position: absolute; top: 10px; right: 14px; font-style: normal; font-family: var(--f-display); font-size: 2.2rem; color: var(--paper-3); line-height: 1; transition: color .3s; }
.feature:hover .feat-no { color: var(--mustard-soft); }
.feature .ico { width: 70px; height: 70px; padding: 14px; border-radius: 50%; background: var(--green-soft); }
.feat-go { display: inline-block; margin-top: 12px; font-family: var(--f-type); font-size: .78rem; color: var(--rust); opacity: 0; transform: translateY(6px); transition: .3s; }
.feature:hover .feat-go { opacity: 1; transform: none; }
.feature::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--mustard-soft), transparent 70%); opacity: 0; transition: opacity .4s; }
.feature:hover::before { opacity: 1; }

/* logo SpeakHub */
.sh-logo-img { width: min(360px, 100%); display: block; margin-bottom: 10px; }
.sh-logo-img.big { width: min(460px, 100%); margin-bottom: 14px; }

/* món tủ kèm ảnh */
.menu-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.menu-cols.one { grid-template-columns: 1fr 1fr; gap: 0 36px; }
.menu-photos { position: relative; height: 420px; }
.menu-photos img { position: absolute; width: 62%; height: 78%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 20px 40px -20px rgba(46,43,36,.6); }
.menu-photos img:first-child { left: 0; top: 0; transform: rotate(-4deg); }
.menu-photos img:nth-child(2) { right: 0; bottom: 0; transform: rotate(3deg); }
.menu-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-10deg); width: 104px; height: 104px; border-radius: 50%; background: var(--rust); color: var(--paper); display: grid; place-items: center; text-align: center; font-family: var(--f-type); font-size: .7rem; line-height: 1.15; border: 3px double var(--paper); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); z-index: 2; }
.menu-badge b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; }
@media (max-width: 860px) { .menu-split { grid-template-columns: 1fr; } .menu-photos { height: 300px; max-width: 420px; margin: 0 auto; width: 100%; } .menu-cols.one { grid-template-columns: 1fr; } }

/* phiếu lương gọn hơn */
.payslip { max-width: 520px; font-size: .9rem; box-shadow: 4px 4px 0 rgba(46,43,36,.12); }
.ps-head { padding: 9px 14px; font-size: .74rem; }
.ps-row { padding: 7px 14px; }
.ps-row b { font-size: .92rem; }
.ps-row small { font-size: .72rem; }
.ps-total { padding: 10px 14px; }
.ps-total b { font-size: 1.4rem; }
.ps-items { padding: 8px 14px 10px; }
.ps-item { padding: 2px 0; font-size: .84rem; line-height: 1.3; }
.ps-item .stamp { font-size: .62rem; padding: 1px 6px; }
.ps-item br { display: none; }
.ps-item .small.muted { margin-left: 6px; }

/* hạng thẻ */
.grid-tier { display: grid; grid-template-columns: 1.1fr .6fr 2fr .5fr auto; gap: 0 12px; align-items: end; }
.grid-tier .btn { margin-bottom: 14px; }
@media (max-width: 760px) { .grid-tier { grid-template-columns: 1fr 1fr; } }
.tier-card { border-top: 5px solid var(--tc); }

/* popup quảng bá */
.modal.promo-modal { width: min(500px, 100%); overflow: hidden; border-width: 0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: promoIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes promoIn { from { transform: translateY(30px) scale(.92); opacity: 0; } }
.promo-modal .modal-head { position: absolute; right: 8px; top: 8px; border: 0; background: rgba(0,0,0,.45); border-radius: 50%; padding: 4px 10px; z-index: 3; }
.promo-modal .modal-head h3 { display: none; }
.promo-modal .modal-close { color: #fff; }
.promo-modal .modal-body { padding: 0; }
.promo-img { height: 230px; background: center / cover; }
.promo-img.ph { display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgba(243,198,78,.5), transparent 60%), linear-gradient(135deg, var(--green), var(--green-dark)); }
.promo-img.ph .ico { width: 90px; height: 90px; color: var(--paper); margin: 0; }
.promo-body { padding: 22px 24px 24px; text-align: center; }
.promo-body h2 { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); font-size: 1.6rem; margin-bottom: 8px; }
.promo-body p { color: var(--ink-soft); }
.promo-body .row { justify-content: center; }

/* Arena đa game */
.ar-hero { background: radial-gradient(ellipse at 20% 0%, rgba(74,42,20,.9) 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(59,22,16,.9) 0%, transparent 50%), linear-gradient(rgba(17,14,11,.82), rgba(17,14,11,.92)), var(--ah, none) center / cover, #110e0b; }
.ar-game-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -4px 0 22px; }
.ar-game-pills span { font-family: var(--f-type); font-size: .76rem; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--gc); color: #fff; background: color-mix(in srgb, var(--gc) 22%, transparent); }
.gen-banner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--gc) 70%, transparent), transparent 65%), repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), linear-gradient(135deg, color-mix(in srgb, var(--gc) 35%, #120d09), #120d09); }
.gen-banner b { font-family: var(--f-display); font-weight: 400; font-size: 3rem; color: #fff; letter-spacing: .06em; text-shadow: 0 0 24px var(--gc); line-height: 1; }
.gen-banner span { font-family: var(--f-type); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: 6px; }
.ac-banner { position: relative; }
.ac-banner.img { background-size: cover; background-position: center; }
.ac-status { z-index: 2; }
.game-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.game-card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gc) 60%, transparent); background: #17120e; transition: transform .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px -14px var(--gc); }
.game-card .gc-img, .game-card .gen-banner { position: relative; height: 130px; background: center / cover; }
.gc-foot { padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gc-foot b { color: #fff; } .gc-foot span { font-size: .78rem; color: #a99c7d; }
.mi-pic { position: relative; overflow: hidden; }
.mi-pic .gen-banner b { font-size: 1.8rem; }
.ar-feat-card { background: linear-gradient(135deg, rgba(42,29,18,.95), rgba(23,17,12,.97) 60%), var(--fb, none) center / cover; }
/* SpeakHub band gọn hơn */
.sh-band { padding: 30px 0; }
.sh-band .sh-grid { gap: 24px; }
.sh-band .sh-logo-img { width: min(250px, 70%); margin-bottom: 4px; }
.sh-band p { margin-bottom: .6em; font-size: .95rem; }
.sh-band .sh-prices { margin-top: 8px; gap: 10px; }
.sh-band .sh-price { padding: 8px 10px; }
.sh-band .sh-price b { font-size: 1.6rem; }
.sh-band .row.mt { margin-top: 14px; }
.sh-band .type.small { margin-top: 8px !important; margin-bottom: 0; }
.sh-band::before, .sh-band::after { width: 170px; height: 170px; }

/* ==========================================================
   v5 — trang chủ, SpeakHub, nhân sự quán, chi phí
   ========================================================== */
/* --- lối tắt dưới hero --- */
.quick-wrap { position: relative; z-index: 3; margin-top: -54px; margin-bottom: 26px; }
.quick-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.qn { --c: var(--green); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 16px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255,253,246,.96); border: 1px solid rgba(205,191,159,.7); box-shadow: 0 18px 36px -22px rgba(46,43,36,.55); backdrop-filter: blur(6px);
  transition: transform .25s, box-shadow .25s; animation: qnIn .6s both; animation-delay: calc(var(--i) * 70ms); position: relative; overflow: hidden; }
.qn::after { content: "→"; position: absolute; right: 14px; top: 14px; color: var(--c); opacity: 0; transform: translateX(-6px); transition: .25s; }
.qn:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -22px rgba(46,43,36,.6); }
.qn:hover::after { opacity: 1; transform: none; }
.qn .ico { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); margin-bottom: 8px; }
.qn b { font-family: var(--f-serif); font-size: 1.05rem; }
.qn span { font-size: .8rem; color: var(--ink-mute); line-height: 1.35; }
.qn.dark { background: linear-gradient(150deg, #231b13, #120e0a); color: #f3ead6; border-color: rgba(201,154,46,.4); --c: #f3c64e; }
.qn.dark span { color: #b9ab8b; }
.qn.green { --c: #1f9d4c; }
.qn.gold { --c: var(--mustard); }
@keyframes qnIn { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 980px) { .quick-nav { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .quick-wrap { margin-top: -40px; }
  .quick-nav { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qn { padding: 12px; } .qn .ico { width: 36px; height: 36px; padding: 7px; margin-bottom: 4px; }
}

/* --- câu chuyện --- */
.story { padding: 56px 0; background: radial-gradient(circle at 85% 20%, rgba(201,154,46,.12), transparent 45%), var(--paper); }
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.story-photos { position: relative; height: 440px; }
.story-photos img { position: absolute; object-fit: cover; border: 8px solid #fff; box-shadow: 0 24px 44px -22px rgba(46,43,36,.7); transition: transform .4s; }
.story-photos .sp0 { left: 0; top: 0; width: 64%; height: 74%; transform: rotate(-3deg); }
.story-photos .sp1 { right: 0; top: 14%; width: 44%; height: 52%; transform: rotate(4deg); z-index: 1; }
.story-photos .sp2 { left: 26%; bottom: 0; width: 46%; height: 44%; transform: rotate(-1deg); z-index: 2; }
.story-photos:hover .sp0 { transform: rotate(-5deg) translate(-6px, -4px); }
.story-photos:hover .sp1 { transform: rotate(6deg) translate(6px, -6px); }
.story-stamp { position: absolute; z-index: 3; right: 4%; bottom: 6%; width: 104px; height: 104px; border-radius: 50%; background: var(--rust); color: var(--paper); display: grid; place-content: center; text-align: center;
  font-family: var(--f-type); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-12deg); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--rust), 0 16px 30px -12px rgba(0,0,0,.5); }
.story-stamp b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0; line-height: 1; }
.story-text h2 { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; margin: 4px 0 14px; }
.story-text .lead-p { font-size: 1.04rem; color: var(--ink-soft); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.counters div { border-top: 3px double var(--line); padding-top: 10px; }
.counters b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.1rem; color: var(--rust); line-height: 1.1; }
.counters span { font-size: .82rem; color: var(--ink-mute); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 30px; } .story-photos { height: 330px; max-width: 460px; width: 100%; margin: 0 auto; } }

/* --- món tủ: bảng đen --- */
.signature { padding: 60px 0; color: #f3ead6; position: relative; overflow: hidden;
  background: radial-gradient(circle at 15% 10%, rgba(201,154,46,.18), transparent 40%), radial-gradient(circle at 90% 90%, rgba(68,99,58,.5), transparent 50%), #1d2a19; }
.signature::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(243,234,214,.18); border-radius: 18px; pointer-events: none; }
.sec-head.light h2 { color: #f3ead6; } .sec-head.light .script { color: var(--mustard); }
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.sig-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; text-decoration: none; color: inherit; background: rgba(255,255,255,.05); border: 1px solid rgba(243,234,214,.12); transition: .25s; animation: qnIn .6s both; animation-delay: calc(var(--i) * 80ms); }
.sig-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); border-color: rgba(201,154,46,.6); }
.sig-img { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(243,234,214,.85); display: grid; place-items: center; background: #2c3a26; color: var(--mustard); }
.sig-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sig-img .ico { width: 36px; height: 36px; }
.sig-card:hover .sig-img img { transform: scale(1.12) rotate(4deg); }
.sig-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sig-body em { font-style: normal; font-family: var(--f-type); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.sig-body b { font-family: var(--f-serif); font-size: 1.08rem; line-height: 1.25; }
.sig-body small { color: #b9b29c; font-size: .8rem; }
.sig-price { font-family: var(--f-display); color: var(--mustard); font-size: 1.35rem; }
@media (max-width: 980px) { .sig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sig-grid { grid-template-columns: 1fr; gap: 10px; } .sig-img { width: 62px; height: 62px; } }

/* --- ghé quán --- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(46,43,36,.7); border: 1.5px solid var(--line); }
.visit-card { background: #fffdf6; padding: 34px 34px 30px; }
.visit-card h2 { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 14px; }
.visit-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.visit-list li { display: flex; gap: 14px; align-items: flex-start; }
.visit-list .ico { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); }
.visit-list small { display: block; font-family: var(--f-type); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.visit-card .open-chip { background: var(--paper-2); color: var(--ink); }
.visit-photo { min-height: 340px; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)), var(--vp) center / cover; display: flex; align-items: flex-end; padding: 22px; }
.visit-photo span { font-family: var(--f-script); color: #fff; font-size: 1.7rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); transform: rotate(-3deg); }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } .visit-photo { min-height: 220px; order: -1; } .visit-card { padding: 24px 20px; } }

/* --- SpeakHub: nền riêng giống Khói Arena --- */
body.sh-mode { background: #0b2416; }
body.sh-mode .site-header { background: rgba(11,36,22,.94); border-bottom-color: rgba(52,199,104,.3); }
body.sh-mode.scrolled .site-header { background: rgba(11,36,22,.97); }
body.sh-mode .nav-links a { color: #e3f1e6; }
body.sh-mode .nav-links a:hover { background: rgba(255,255,255,.08); }
body.sh-mode .nav-links a.active { background: #2fbf63; color: #062012; }
body.sh-mode .brand img { mix-blend-mode: normal; background: var(--paper); border-radius: 8px; }
body.sh-mode .nav-toggle { color: #e3f1e6; border-color: #e3f1e6; }
@media (max-width: 1180px) { body.sh-mode .nav-links { background: #0e2c1b; } }
body.sh-mode .site-footer { margin-top: 0; border-top: 1px solid rgba(52,199,104,.25); }
.sh-mode #app { --ink: #eaf5ec; --ink-soft: #bcd6c2; --ink-mute: #8fb19a; --line: rgba(52,199,104,.28); color: var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(47,191,99,.22), transparent 40%), radial-gradient(circle at 100% 60%, rgba(201,154,46,.12), transparent 40%); }
.sh-mode .sh-hero { background: linear-gradient(90deg, rgba(8,30,18,.96) 35%, rgba(8,30,18,.7)), var(--shc, none) center / cover; border-bottom: 1px solid rgba(52,199,104,.3); padding: 60px 0; }
.sh-mode .sh-logo-img.big { background: #fffdf6; border-radius: 22px; padding: 14px 20px; transform: rotate(-2deg); box-shadow: 0 0 0 4px rgba(47,191,99,.5), 0 24px 50px -20px rgba(0,0,0,.7); }
.sh-mode .sh-hero h1, .sh-mode .sh-logo { color: #fff; }
.sh-mode .sh-bubble { background: #2fbf63; color: #062012; }
.sh-mode .lead { color: var(--ink-soft); }
.sh-mode .sh-feats { background: rgba(255,255,255,.04); border-color: rgba(52,199,104,.25); }
.sh-mode .sh-feat { border-color: rgba(52,199,104,.18); }
.sh-mode .sh-feat .ico { background: rgba(47,191,99,.16); color: #5be38b; }
.sh-mode .sh-feat b { color: #fff; }
.sh-mode .sec-head h2 { color: #fff; } .sh-mode .sec-head .script { color: #f3c64e; }
.sh-mode .sh-price { border-color: rgba(255,255,255,.1); color: #13261a; }
.sh-mode .btn.ghost { color: #e3f1e6; border-color: #e3f1e6; background: transparent; }
.sh-mode .btn:not(.ghost):not(.light) { background: #2fbf63; color: #062012; border-color: #1c8a45; box-shadow: 3px 3px 0 #1c8a45; }
.sh-mode .sh-cta-band { background: linear-gradient(rgba(6,26,15,.9), rgba(6,26,15,.94)), var(--band, url('../assets/garden2.jpg')) center / cover; border-top: 1px solid rgba(52,199,104,.25); }
.sh-mode .chip { background: transparent; color: var(--ink); border-color: rgba(52,199,104,.4); }
.sh-mode .chip.active { background: #2fbf63; color: #062012; border-color: #2fbf63; }

/* --- thư viện ảnh & clip SpeakHub --- */
.shg-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 12px; }
.shg-tile { margin: 0; position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; background: #12301e; outline: none; }
.shg-tile:first-child { grid-column: span 2; grid-row: span 2; }
.shg-tile.tall { grid-row: span 2; }
.shg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.shg-tile:hover img, .shg-tile:focus-visible img { transform: scale(1.06); filter: brightness(.82); }
.shg-tile:focus-visible { box-shadow: 0 0 0 3px #2fbf63; }
.shg-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #5be38b; } .shg-ph .ico { width: 48px; height: 48px; }
.shg-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .84rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.shg-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0b2416; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .25s; }
.shg-play svg { width: 26px; height: 26px; margin-left: 3px; }
.shg-tile:hover .shg-play { transform: scale(1.12); }
.shg-kind { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--f-type); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; }
@media (max-width: 860px) { .shg-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; } }
.shl-modal { background: #0a1a10; border-color: #0a1a10; color: #fff; }
.shl-modal .modal-head { border: 0; padding-bottom: 0; } .shl-modal .modal-close { color: #fff; }
.shl { position: relative; }
.shl-media { display: grid; place-items: center; background: #000; border-radius: 10px; overflow: hidden; }
.shl-media img, .shl-media video { max-width: 100%; max-height: 74vh; object-fit: contain; }
.shl-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.shl.vertical .shl-media iframe { width: min(360px, 100%); aspect-ratio: 9 / 16; max-height: 76vh; }
.shl-link { position: relative; width: 100%; min-height: 260px; display: grid; place-items: center; }
.shl-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.shl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #0b2416; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.shl-nav.prev { left: 8px; } .shl-nav.next { right: 8px; }
.shl-cap { display: flex; gap: 10px; justify-content: space-between; padding: 10px 2px 0; font-size: .92rem; }
.shl-cap span { font-family: var(--f-type); font-size: .78rem; opacity: .7; white-space: nowrap; }
/* admin */
.shm-add { flex: 1; min-width: 260px; gap: 8px; flex-wrap: nowrap; } .shm-add input { flex: 1; }
.shm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.shm-item { border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fffdf6; }
.shm-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3) center / cover; }
.shm-cap { width: 100%; border: 0 !important; border-bottom: 1px solid var(--paper-3) !important; border-radius: 0 !important; font-size: .85rem; padding: 8px 10px !important; }
.shm-act { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; } .shm-act .danger { margin-left: auto; }

/* --- chấm công & nhân sự --- */
.pending-in { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--mustard-soft); border: 1.5px dashed var(--mustard); border-radius: 12px; padding: 14px; margin: 12px 0; }
.pending-in span { font-family: var(--f-type); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.pending-in b { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; color: var(--green-dark); line-height: 1.1; }
.pending-in small { color: var(--ink-soft); }
.ip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-type); font-size: .82rem; background: var(--green-soft); border: 1px solid var(--green); border-radius: 20px; padding: 3px 4px 3px 10px; }
.ip-chip.bad { background: var(--rust-soft); border-color: var(--rust); text-decoration: line-through; }
.ip-chip button { border: 0; background: rgba(0,0,0,.08); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.ip-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--paper-2); border-radius: 8px; padding: 8px 10px; }
.ip-now .btn { margin-left: auto; }
.day-nav { align-items: center; } .day-nav b { font-family: var(--f-serif); font-size: 1.1rem; }
.day-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.ds { background: #fffdf6; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
.ds b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.ds span { font-size: .8rem; color: var(--ink-mute); }
.ds.on { border-color: var(--green); } .ds.on b { color: var(--green); }
.ds.done b { color: var(--ink-soft); } .ds.none b { color: var(--rust); }
.day-board { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 1.2fr 1fr 2fr .7fr auto; gap: 12px; align-items: center; background: #fffdf6; border: 1.5px solid var(--line); border-left: 6px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.day-row.st-on { border-left-color: var(--green); background: linear-gradient(90deg, rgba(68,99,58,.08), #fffdf6 40%); }
.day-row.st-wait { border-left-color: var(--mustard); }
.day-row.st-done { border-left-color: var(--ink-mute); }
.day-row.st-none { border-left-color: var(--rust); opacity: .9; }
.dr-who { display: flex; flex-direction: column; line-height: 1.3; }
.dr-st { font-size: .9rem; line-height: 1.35; }
.dr-shifts { display: flex; flex-wrap: wrap; gap: 6px; }
.shift-chip { font-family: var(--f-type); font-size: .82rem; border: 1.5px solid var(--line); background: var(--paper); border-radius: 20px; padding: 3px 10px; cursor: pointer; color: var(--ink); }
.shift-chip:hover { border-color: var(--green); }
.shift-chip.open { border-color: var(--green); background: var(--green-soft); }
.shift-chip.manual { border-style: dashed; }
.dr-total { text-align: right; font-weight: 600; }
.dr-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 900px) {
  .day-stats { grid-template-columns: repeat(2, 1fr); }
  .day-row { grid-template-columns: 1fr auto; } .dr-st { text-align: right; } .dr-shifts { grid-column: 1 / -1; } .dr-total { text-align: left; } .dr-act { justify-content: flex-end; }
}
/* --- chi phí --- */
.exp-grid { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.exp-grid .field { margin-bottom: 8px; }
.exp-form input[name=amount] { font-family: var(--f-type); font-size: 1.15rem; font-weight: 600; }
.chips-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips-quick .chip { font-size: .82rem; padding: 4px 12px; }
.chip.toggle { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.toggle input { accent-color: var(--green); margin: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 30px; overflow: hidden; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.exp-list li { gap: 12px; }
.exp-split { grid-template-columns: .9fr 1.1fr; }
tr.clickable { cursor: pointer; } tr.clickable.sel td { background: var(--green-soft); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0 16px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.rust-t { color: var(--rust); }
@media (max-width: 600px) { .exp-grid { grid-template-columns: 1fr; gap: 0; } }
.visit-list .ico, .qn .ico { margin: 0; }
.qn .ico { margin-bottom: 8px; }
.hero-photo { padding-bottom: 110px; }
@media (max-width: 860px) { .hero-photo .hero-badge-wrap { display: none; } }
.shl-modal .modal-head { background: transparent; padding: 6px 10px 0; }
.shl-modal .modal-close { color: #fff; background: rgba(255,255,255,.12); }
.shift-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600; text-decoration: none; background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); }
.shift-pill.on { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }
.shift-pill.wait { background: var(--mustard-soft); color: var(--ink); border-color: var(--mustard); }
.clock-card .big-ico { margin-bottom: 0; }
.place-note { margin: 16px auto 0; display: inline-block; padding: 9px 16px; border-radius: 10px; background: var(--rust-soft); border: 1.5px solid var(--rust); color: var(--rust); font-weight: 700; font-size: .95rem; }
/* menu trang nhân viên / quản lý trên điện thoại: hiện đủ, không kéo ngang */
@media (max-width: 860px) {
  .dash-nav { flex-direction: row; flex-wrap: wrap; overflow: visible; gap: 6px; padding-bottom: 0; }
  .dash-nav a { white-space: nowrap; padding: 7px 11px; font-size: .86rem; gap: 6px; flex: 0 0 auto; }
  .subtabs { flex-wrap: wrap; overflow: visible; gap: 6px; border-bottom: 0; }
  .subtabs a { border: 1.5px solid var(--line); border-radius: 6px; margin: 0; padding: 7px 11px; font-size: .86rem; }
  .subtabs a.active { background: var(--green-dark); color: var(--paper); border-color: var(--green-dark); }
}
.place-note { display: block; width: fit-content; max-width: 100%; margin: 16px auto 0; }
/* chi phí theo ngày, ngày lễ, yêu cầu trừ lương */
.exp-grid3 { display: grid; grid-template-columns: 170px 180px 1fr; gap: 12px; }
.exp-grid3 .field { margin-bottom: 8px; }
.exp-grid3 input[name=amount] { font-family: var(--f-type); font-size: 1.1rem; font-weight: 600; }
@media (max-width: 700px) { .exp-grid3 { grid-template-columns: 1fr 1fr; } .exp-grid3 .field:last-child { grid-column: 1 / -1; } }
.exp-day { margin-top: 14px; }
.exp-day-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 10px; background: var(--paper-2); border-radius: 6px; font-size: .92rem; }
.exp-day .exp-list { margin: 4px 0 0; }
.hol-form input[type=date] { width: auto; } .hol-form input[name=name] { flex: 1; min-width: 180px; } .hol-form select { width: auto; }
.hol-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hol-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--rust-soft); border: 1px solid var(--rust); border-radius: 20px; padding: 4px 6px 4px 12px; font-size: .88rem; }
.hol-chip em { font-style: normal; font-weight: 700; color: var(--rust); }
.hol-chip button { border: 0; background: rgba(0,0,0,.08); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.req-card { border-color: var(--rust); }
.req-card li { align-items: flex-start; }
.exp-grid3 > .field, .grid-2 > .field { min-width: 0; }
.exp-grid3 input { width: 100%; min-width: 0; }
.seg label { position: relative; } .seg input { left: 0; top: 0; width: 1px; height: 1px; }
.shift-chip.missed { border-color: var(--rust); background: var(--rust-soft); color: var(--rust); }
.day-row.st-miss { border-left-color: var(--rust); background: linear-gradient(90deg, rgba(180,86,47,.08), #fffdf6 40%); }
.miss-card { border-color: var(--rust); }
.pick-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ps-opt { margin: 0; cursor: pointer; }
.ps-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ps-opt span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fffdf6; transition: .15s; height: 100%; flex-wrap: wrap; }
.ps-opt i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .8rem; background: var(--green-soft); color: var(--green-dark); }
.ps-opt b { font-weight: 600; font-size: .95rem; line-height: 1.25; flex: 1; min-width: 0; }
.ps-opt small { width: 100%; padding-left: 44px; margin-top: -6px; color: var(--ink-mute); font-size: .76rem; }
.ps-opt:hover span { border-color: var(--green); }
.ps-opt input:checked + span { border-color: var(--rust); background: var(--rust-soft); box-shadow: 0 0 0 2px var(--rust) inset; }
.ps-opt input:checked + span i { background: var(--rust); color: #fff; }
.ps-opt input:focus-visible + span { outline: 2px solid var(--green); }
@media (max-width: 520px) { .pick-staff { grid-template-columns: 1fr 1fr; } }
/* nội dung máy chủ dựng sẵn (hiện thoáng qua trước khi giao diện tải xong) */
.ssr { padding: 40px 0 60px; color: var(--ink-soft); }
.ssr h1 { font-family: var(--f-display); font-weight: 400; color: var(--green-dark); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.ssr h2 { font-size: 1.2rem; margin-top: 1.2em; }
.ssr ul { padding-left: 1.2em; } .ssr hr { border: 0; border-top: 1px dashed var(--line); margin: 24px 0; }
.ssr nav a { margin-right: 4px; }
/* menu Nhân sự quán: xuống dòng, không có thanh cuộn */
.subtabs { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
.subtabs a { position: relative; }
/* bảng lương gọn, vừa khung, không kéo ngang */
.pay-table { width: 100%; border-collapse: collapse; font-size: .84rem; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; table-layout: auto; }
.pay-table th { font-size: .74rem; line-height: 1.2; padding: 8px 6px; white-space: nowrap; }
.pay-table td { padding: 8px 6px; vertical-align: middle; }
.pay-table td.num, .pay-table th.num { white-space: nowrap; }
.pay-table tfoot td { font-weight: 700; background: var(--paper-2); }
.pt-name { display: flex; align-items: center; gap: 8px; }
.pt-name > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pt-name small { color: var(--ink-mute); font-size: .78rem; }
.pt-name em { font-style: normal; align-self: flex-start; margin-top: 3px; font-size: .62rem; }
.pt-name .btn { flex: none; padding: 4px 10px; font-size: .78rem; }
.neg { color: #c0392b; font-weight: 600; }
.pos { color: var(--green); font-weight: 600; }
.hol-note { display: block; font-size: .7rem; color: var(--rust); }
tr.hol-row td { background: #fff3d6 !important; }
tr.hol-row td:first-child { box-shadow: inset 4px 0 0 var(--mustard); }
.ps-item.hol { background: #fff3d6; border-radius: 6px; padding-left: 6px; }
@media (max-width: 760px) {
  .pay-table { font-size: .74rem; }
  .pay-table th, .pay-table td { padding: 6px 3px; }
  .pt-name { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.pay-table th, .pay-table td { padding: 7px 4px; }
.pay-table td:first-child { padding-left: 8px; }
@media (max-width: 1180px) { .pt-name { flex-direction: column; align-items: flex-start; gap: 4px; } }
.chip.sug { display: inline-flex; align-items: center; padding: 0; overflow: hidden; }
.chip.sug button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 6px 4px 12px; }
.chip.sug .sug-x { padding: 4px 10px 4px 6px; color: var(--ink-mute); font-size: 1rem; line-height: 1; }
.chip.sug .sug-x:hover { color: #c0392b; }
/* Mở web: ẩn nội dung dựng sẵn cho máy tìm kiếm, hiện màn chờ có logo cho tới khi giao diện sẵn sàng (thường < 0,5 giây) */
.js .ssr { display: none; }
.boot { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.boot img { width: 96px; height: 96px; border-radius: 50%; mix-blend-mode: multiply; animation: bootPulse 1.4s ease-in-out infinite; }
.boot .spinner { width: 22px; height: 22px; }
@keyframes bootPulse { 50% { transform: scale(1.06); opacity: .85; } }
/* lương nhân viên: 3 ô gộp; máy tính: 3 ô dọc bên trái, phiếu lương bên phải */
.sal-layout { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.sal-stats { display: flex; flex-direction: column; gap: 10px; }
.sal-stats .ss { background: #fffdf6; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.sal-stats .ss span { font-family: var(--f-type); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.sal-stats .ss b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; color: var(--green-dark); line-height: 1.15; }
.sal-layout .payslip { margin: 0; }
@media (max-width: 760px) {
  .sal-layout { grid-template-columns: 1fr; gap: 12px; }
  .sal-stats { flex-direction: row; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 10px; gap: 0; }
  .sal-stats .ss { flex: 1; border: 0; border-radius: 0; background: none; align-items: center; padding: 10px 6px; }
  .sal-stats .ss + .ss { border-left: 1px dashed var(--line); }
  .sal-stats .ss b { font-size: 1.4rem; }
}
/* bảng lương admin: tên + chức vụ + nút chi tiết nhỏ */
.pt-n { display: block; line-height: 1.25; }
.pt-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-sub small { color: var(--ink-mute); font-size: .76rem; }
.pt-det { border: 1px solid var(--line); background: var(--paper); color: var(--green-dark); font: inherit; font-size: .7rem; font-weight: 600; padding: 1px 8px; border-radius: 20px; cursor: pointer; line-height: 1.5; }
.pt-det:hover { border-color: var(--green); background: var(--green-soft); }
.pt-miss { display: inline-block; margin-top: 3px; font-style: normal; font-size: .62rem; }
/* ứng lương */
.adv-box { display: grid; grid-template-columns: 1fr 1fr; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.adv-box > div { padding: 14px 16px; display: flex; flex-direction: column; }
.adv-box > div + div { border-left: 1px dashed var(--line); }
.adv-box span { font-size: .8rem; color: var(--ink-mute); }
.adv-box b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.adv-box small { font-size: .74rem; color: var(--ink-mute); }
.day-row.team { grid-template-columns: 1.2fr 1fr 2fr .7fr; }
@media (max-width: 900px) { .day-row.team { grid-template-columns: 1fr auto; } }
/* bảng lương: cột tên vừa nội dung, các cột số dàn đều sang trái */
.pay-table td:first-child, .pay-table th:first-child { width: 1%; white-space: nowrap; padding-right: 18px; }
.pay-table th.num, .pay-table td.num { text-align: right; padding-left: 10px; padding-right: 10px; }
/* thanh bên nhân viên: chức vụ + trạng thái ca cùng dòng, tên bên dưới */
.staff-who .who-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.staff-who .who-top .stamp { text-transform: none; letter-spacing: .02em; }
.staff-who .shift-pill { margin-top: 0; padding: 3px 10px; font-size: .78rem; }
.staff-who > b { margin-top: 8px; }
/* modal chi tiết: khoản ứng / phạt / thưởng */
.pi-list li { gap: 10px; align-items: center; }
.pi-list li.hol { background: #fff3d6; border-radius: 6px; padding-left: 6px; }
.pi-sum { text-align: right; margin-top: 8px; }
@media (max-width: 860px) {
  .dash-nav.staff-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dash-nav.staff-nav a { justify-content: center; text-align: center; white-space: normal; padding: 8px 4px; font-size: .84rem; line-height: 1.2; }
}
/* hoá đơn nguyên liệu */
.scan-wait { padding: 30px 10px; } .scan-wait .spinner { margin: 0 auto 14px; }
.pur-card { margin-bottom: 8px; }
.pur-li { cursor: pointer; } .pur-li:hover { background: var(--paper-2); }
.pur-grid { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.pur-grid:not(:has(.pur-img)) { grid-template-columns: 1fr; }
.pur-img { display: block; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; max-height: 280px; background: #fff; }
.pur-img img { width: 100%; height: auto; display: block; }
.pur-items { overflow-x: auto; margin-top: 8px; }
.pur-items table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.pur-items th { text-align: left; font-size: .72rem; padding: 6px 4px; background: var(--paper-2); }
.pur-items td { padding: 3px 2px; border-bottom: 1px dashed var(--paper-3); }
.pur-items input { padding: 6px 7px; font-size: .86rem; width: 100%; }
.pur-items td:nth-child(1) { min-width: 200px; } .pur-items td:nth-child(2) { width: 60px; } .pur-items td:nth-child(3) { width: 70px; } .pur-items td:nth-child(4), .pur-items td:nth-child(5) { width: 110px; }
.pur-items input.num { text-align: right; }
.pur-sum { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; margin: 12px 0; }
.pur-sum > div { display: flex; flex-direction: column; align-items: flex-end; }
.pur-sum span { font-size: .76rem; color: var(--ink-mute); }
.pur-sum b { font-size: 1.15rem; } .pur-sum input { width: 150px; text-align: right; font-weight: 700; }
@media (max-width: 640px) { .pur-grid { grid-template-columns: 1fr; } .pur-img { max-height: 200px; } }
.exp-split .pay-table td:first-child { white-space: normal; width: auto; }
.exp-split .card { min-width: 0; overflow: hidden; }
.err-note { border-color: var(--rust); background: var(--rust-soft); }
.pur-sum small { font-size: .78rem; color: var(--ink-mute); margin-top: 2px; }
