/* ============================================================
   Sugimoto Music School — Shared Styles
   Monet's Morning Pastel Palette
   ============================================================ */

:root {
  --bg-base: #f0f4f8;
  --pastel-lavender: #d0cce6;
  --pastel-pink: #f4e0df;
  --pastel-blue: #e0eaf5;
  --pastel-green: #ddeedd;

  --accent-gold: #c0a368;
  --accent-gold-light: rgba(192, 163, 104, 0.15);
  --accent-purple-soft: #aba6c9;

  --text-main: #525366;
  --text-muted: #858699;
  --text-on-accent: #fff;

  --dangerBg: #ffe3e6; --dangerText: #bd5d6a;
  --okBg: #e0f5ea; --okText: #4b8063;

  --card-bg: rgba(255, 255, 255, 0.7);
  --ticket-bg: rgba(255, 253, 250, 0.8);

  --shadow-soft: 0 20px 60px rgba(100, 100, 115, 0.12);
  --radius: 24px;
  --line: rgba(171, 166, 201, 0.15);

  --fs-title: 22px; --fs-sub: 14px; --fs-label: 14px; --fs-input: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-serif, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 5% 5%, var(--pastel-lavender) 0%, transparent 50%),
    radial-gradient(circle at 95% 95%, var(--pastel-lavender) 0%, transparent 50%),
    radial-gradient(circle at 85% 10%, var(--pastel-pink) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, var(--pastel-green) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, var(--pastel-blue) 0%, transparent 65%);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
}

/* === Layout === */
.page { min-height: 100vh; padding: 20px 16px; display: flex; justify-content: center; align-items: flex-start; }
.container { width: min(820px, 100%); }

/* === Header === */
.header { padding: 20px 6px 28px; text-align: center; }
.title { margin: 0; font-size: var(--fs-title); font-weight: 700; letter-spacing: 2px; color: var(--text-main); }
.subtitle { margin: 12px 0 0; font-size: var(--fs-sub); color: var(--text-muted); line-height: 1.9; }

/* === Navigation === */
.navTabs { display: flex; gap: 12px; margin-bottom: 24px; padding: 0 10px; }
.tabBtn {
  flex: 1; height: 48px; border: 0; background: rgba(255,255,255,0.4);
  border-radius: 12px; color: var(--text-muted); font-weight: 700;
  font-size: 14px; cursor: pointer; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.5);
}
.tabBtn.active {
  background: var(--accent-gold); color: #fff;
  box-shadow: 0 8px 20px var(--accent-gold-light); border-color: var(--accent-gold);
}
.tabBtn:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* === Top Navigation Bar (multi-page) === */
.topNav {
  display: flex; gap: 8px; padding: 12px 16px; margin-bottom: 20px;
  background: rgba(255,255,255,0.5); border-radius: 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.topNav a {
  flex-shrink: 0; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.topNav a:hover { background: rgba(255,255,255,0.6); }
.topNav a.active { background: var(--accent-gold); color: #fff; }

/* === Cards === */
.card {
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.6);
  background: var(--card-bg); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}
.bar {
  padding: 18px 24px; border-bottom: 1px solid rgba(171, 166, 201, 0.15);
  background: rgba(255,255,255,0.4);
  border-radius: var(--radius) var(--radius) 0 0;
}
.barTitle {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 15px; font-weight: 700; color: var(--text-main);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.bar .dot { background: var(--accent-purple-soft); }
.notice { margin-top: 10px; font-size: 14px; color: var(--text-main); line-height: 1.9; white-space: pre-wrap; }
.body { padding: 24px; }

/* === Ticket Cards === */
.ticketCard {
  background: var(--ticket-bg); border: 1px solid rgba(192, 163, 104, 0.3);
  box-shadow: 0 25px 50px rgba(120, 110, 100, 0.1), inset 0 0 40px rgba(255,255,255,0.5);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
  position: relative; z-index: 10; color: var(--text-main);
}
.ticketHeader {
  background: transparent; padding: 18px 24px;
  font-weight: 700; font-size: 14px; color: var(--text-main);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(192, 163, 104, 0.15); letter-spacing: 1.5px;
}
.ticketHeader .dot { background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold-light); }
.ticketBody { padding: 26px 24px; }
.ticketRow {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px; border-bottom: 1px dashed rgba(192, 163, 104, 0.25);
  padding-bottom: 10px;
}
.ticketRow:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tl { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.trValue { font-size: 17px; font-weight: 800; color: var(--text-main); text-align: right; letter-spacing: 0.5px; }

/* === QR Ticket Swiper === */
.qrSwiper { position: relative; overflow: hidden; touch-action: pan-y; }
.qrTrack { display: flex; transition: transform 0.3s ease; }
.qrSlide { min-width: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.qrSlide canvas, .qrSlide img { max-width: 200px; border-radius: 12px; }
.qrName { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--text-main); }
.qrDots { display: flex; justify-content: center; gap: 8px; padding: 10px 0; }
.qrDots .qd { width: 8px; height: 8px; border-radius: 50%; background: rgba(171,166,201,0.3); transition: all 0.3s; }
.qrDots .qd.active { background: var(--accent-gold); width: 20px; border-radius: 4px; }
.qrNav { display: flex; justify-content: center; gap: 16px; padding: 8px 0; }
.qrNav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(171,166,201,0.2); background: rgba(255,255,255,0.8); font-size: 16px; cursor: pointer; }

/* === Inputs === */
label { display: block; margin-top: 24px; font-size: var(--fs-label); font-weight: 700; color: var(--text-main); letter-spacing: 0.5px; }
.hint { color: var(--text-muted); font-size: 13px; margin-top: 8px; line-height: 1.85; }
input, textarea {
  width: 100%; margin-top: 12px; padding: 14px 16px;
  font-size: var(--fs-input); border-radius: 14px;
  border: 1px solid rgba(171, 166, 201, 0.2); background: rgba(255,255,255,0.85);
  color: var(--text-main); outline: none; -webkit-text-size-adjust: 100%; appearance: none;
  transition: all 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
  font-family: inherit;
}
input { height: 56px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent-purple-soft); background: #fff; box-shadow: 0 0 0 4px rgba(171, 166, 201, 0.15); }
input.fieldErr, textarea.fieldErr { border-color: var(--dangerText) !important; box-shadow: 0 0 0 3px rgba(189,93,106,0.12) !important; }
.dd.fieldErr .ddBtn { border-color: var(--dangerText) !important; box-shadow: 0 0 0 3px rgba(189,93,106,0.12) !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === Custom Dropdown === */
.dd { position: relative; }
.ddBtn {
  width: 100%; margin-top: 12px; height: 56px; padding: 0 16px;
  border-radius: 14px; border: 1px solid rgba(171, 166, 201, 0.2);
  background: rgba(255,255,255,0.85); color: var(--text-main);
  font-size: var(--fs-input); font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); transition: all 0.3s;
}
.ddBtn:hover { background: #fff; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin-top: -3px; opacity: .7; }
.ddList {
  position: absolute; left: 0; right: 0; margin-top: 8px;
  background: #fff; border: 1px solid rgba(171, 166, 201, 0.15);
  border-radius: 16px; box-shadow: 0 15px 50px rgba(100,100,115,0.15);
  max-height: 340px; overflow: auto; display: none; z-index: 20;
}
.dd.open .ddList { display: block; }
.ddItem { padding: 16px; font-size: var(--fs-input); cursor: pointer; border-bottom: 1px solid #f4f4f8; color: var(--text-main); }
.ddItem:last-child { border-bottom: 0; }
.ddItem:hover { background: #f8f7fc; }
.ddItem[aria-selected="true"] { background: #f0f0f7; color: var(--accent-purple-soft); font-weight: 700; }

/* === Mode Selection (Register) === */
.modeButtons { display: flex; flex-direction: column; gap: 14px; }
.modeBtn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  height: auto; padding: 20px 24px; text-align: left;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(171,166,201,0.2);
  border-radius: 18px; transition: all 0.25s; width: 100%;
}
.modeBtn:hover { background: #fff; box-shadow: 0 10px 30px rgba(171,166,201,0.2); transform: translateY(-2px); }
.modeBtn .modeIcon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.modeBtn .modeLabel { font-size: 16px; font-weight: 700; color: var(--text-main); letter-spacing: 0.5px; }
.modeBtn .modeDesc { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* === Staff native selects === */
.staffSelect {
  width: 100%; height: 56px; margin-top: 12px; padding: 0 16px;
  border-radius: 14px; border: 1px solid rgba(171,166,201,0.2);
  background: rgba(255,255,255,0.85); font-size: 16px;
  color: var(--text-main); font-family: inherit; appearance: none;
}
.searchSummary {
  padding: 12px 20px; margin-bottom: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.5); font-size: 14px; font-weight: 700;
  color: var(--text-muted); text-align: center;
}

/* === Performer search rows === */
.perfRow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; margin-top: 8px; border-radius: 12px;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(171,166,201,0.12);
}
.perfRow.checkedIn { background: rgba(224,245,234,0.4); border-color: var(--okBg); }
.perfRow .perfName { font-size: 15px; font-weight: 700; color: var(--text-main); }
.perfRow .perfKana { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.miniBtn {
  height: 38px; padding: 0 18px; border-radius: 10px;
  background: linear-gradient(135deg, #4b8063, #6aad8a); color: #fff;
  font-size: 13px; font-weight: 700; border: 0; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(75,128,99,0.25);
}
.miniBtn.done { background: var(--okBg); color: var(--okText); box-shadow: none; }

/* === Visitor Cards === */
.visitor { margin-top: 16px; padding: 20px; border-radius: 18px; border: 1px solid rgba(171, 166, 201, 0.15); background: rgba(255,255,255,0.5); }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.vtitle { font-weight: 700; font-size: 14px; color: var(--text-main); }
.pill { font-size: 12px; font-weight: 800; color: var(--text-on-accent); border: 0; padding: 4px 12px; border-radius: 999px; background: var(--accent-purple-soft); }

/* === Buttons === */
button {
  height: 56px; padding: 0 24px; border-radius: 14px;
  border: 0; background: #fff;
  color: var(--text-main); cursor: pointer; font-size: var(--fs-input); font-weight: 700;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06); letter-spacing: 1px;
  font-family: inherit;
}
button:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.primary {
  background: linear-gradient(135deg, var(--accent-purple-soft), #c5c1e0);
  color: var(--text-on-accent);
  box-shadow: 0 8px 25px rgba(171, 166, 201, 0.3);
}
.primary:hover { box-shadow: 0 12px 30px rgba(171, 166, 201, 0.4); }

.iconBtn {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08); background: #fff;
  color: var(--text-muted); cursor: pointer; font-weight: 700; font-size: 13px; line-height: 34px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.2s;
}
.iconBtn:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.iconBtn.danger { border-color: var(--dangerBg); background: #fff; color: var(--dangerText); }

.editBtnStyle {
  width: 100%; height: 50px; font-size: 14px; font-weight: 700;
  background: transparent; border: 1px solid var(--accent-gold);
  border-radius: 12px; color: var(--accent-gold);
  cursor: pointer; transition: all 0.3s; letter-spacing: 1px;
}
.editBtnStyle:hover { background: var(--accent-gold-light); }

.dangerBtn { border: 1px solid var(--dangerBg); background: #fff; color: var(--dangerText); box-shadow: none; }
.dangerBtn:hover { background: var(--dangerBg); }

.actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; justify-content: space-between; }
.actions.right-only { justify-content: flex-end; }

/* === Key-Value Display === */
.kv { margin-top: 14px; border: 1px solid rgba(171, 166, 201, 0.15); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.5); }
.kvRow { display: flex; gap: 12px; padding: 18px 24px; border-bottom: 1px solid rgba(171, 166, 201, 0.1); }
.kvRow:last-child { border-bottom: 0; }
.k { width: 110px; color: var(--text-muted); font-size: 14px; font-weight: 700; flex: 0 0 110px; }
.v { flex: 1; font-size: 16px; font-weight: 700; word-break: break-word; color: var(--text-main); }

.listBox { margin-top: 14px; border: 1px solid rgba(171, 166, 201, 0.15); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.5); }
.listHeader { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 24px; font-size: 13px; font-weight: 700; color: var(--text-muted); background: rgba(171, 166, 201, 0.1); border-bottom: 1px solid rgba(171, 166, 201, 0.1); }
.listRow { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 24px; border-bottom: 1px solid rgba(171, 166, 201, 0.1); font-weight: 700; font-size: 16px; color: var(--text-main); }
.listRow:last-child { border-bottom: 0; }

/* === Messages === */
.topMsg { display: none; border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; font-weight: 700; white-space: pre-wrap; font-size: 15px; border: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.topMsg.err { color: var(--dangerText); background: var(--dangerBg); display: block; }
.topMsg.ok { color: var(--okText); background: var(--okBg); display: block; }

/* === Modals === */
.overlay {
  position: fixed; inset: 0; background: rgba(80, 85, 100, 0.4);
  display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 50; backdrop-filter: blur(8px);
}
.overlay.show { display: flex; }
.modal {
  width: min(600px, 90%); max-height: 90vh;
  background: #fff; border: 0; border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal h2 { margin: 28px 28px 16px; font-size: 18px; font-weight: 700; color: var(--text-main); flex-shrink: 0; letter-spacing: 1px; }
.modal-body { padding: 0 28px; overflow-y: auto; flex: 1; }
.modal .text { white-space: pre-wrap; border: 1px solid #f0f0f5; background: #fafafc; padding: 18px; border-radius: 18px; color: var(--text-main); font-size: 14px; line-height: 1.8; }
.modalActions { display: flex; gap: 16px; justify-content: flex-end; padding: 24px 28px 28px; flex-shrink: 0; }

/* === Monitor === */
.mon-now-container { padding: 30px 20px; text-align: center; border-bottom: 1px solid rgba(192, 163, 104, 0.15); }
.mon-status-badge { display: inline-block; font-size: 13px; color: var(--accent-gold); border: 1px solid var(--accent-gold); padding: 6px 14px; border-radius: 99px; margin-bottom: 16px; font-weight: 700; letter-spacing: 1px; }
.mon-main-text { font-size: 20px; font-weight: 700; color: var(--text-main); line-height: 1.5; margin-bottom: 10px; }
.mon-piece-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.mon-list-container { padding: 10px; }
.mon-row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(171, 166, 201, 0.1); align-items: center; }
.mon-row:last-child { border-bottom: 0; }
.mon-row.active { background: var(--accent-gold-light); border-radius: 16px; border-bottom: 0; }
.mon-row.done { opacity: 0.5; }
.mon-slot { font-weight: 700; font-size: 13px; color: var(--text-muted); }
.mon-active .mon-slot { color: var(--accent-gold); }
.mon-performer { font-weight: 700; font-size: 15px; color: var(--text-main); margin-bottom: 4px; }
.mon-piece-sub { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* === Staff Page === */
.scanArea {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px; gap: 16px;
}
.scanArea video { width: 100%; max-width: 400px; border-radius: 16px; }
#qr-reader { width: 100%; max-width: 400px; }
#qr-reader video { border-radius: 16px; }

.resultCard {
  margin-top: 16px; padding: 20px; border-radius: 18px;
  border: 1px solid rgba(171, 166, 201, 0.15); background: rgba(255,255,255,0.5);
}
.resultCard.checkedIn { border-color: var(--okBg); background: rgba(224, 245, 234, 0.3); }
.resultCard .name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.resultCard .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }

.checkinBtn {
  width: 100%; height: 56px; margin-top: 16px;
  background: linear-gradient(135deg, #4b8063, #6aad8a);
  color: #fff; border: 0; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 25px rgba(75, 128, 99, 0.3);
}
.checkinBtn:disabled { opacity: 0.5; }
.checkinBtn.done { background: var(--okBg); color: var(--okText); }

.pinOverlay {
  position: fixed; inset: 0; background: rgba(80, 85, 100, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(12px);
}
.pinBox {
  background: #fff; border-radius: 24px; padding: 40px 32px;
  width: min(400px, 90%); text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,0.2);
}
.pinBox h2 { margin: 0 0 24px; font-size: 20px; color: var(--text-main); }
.pinInput {
  width: 180px; height: 60px; text-align: center;
  font-size: 28px; letter-spacing: 12px; font-weight: 700;
  border-radius: 14px; border: 2px solid rgba(171,166,201,0.3);
  margin: 0 auto; display: block;
}
.pinInput:focus { border-color: var(--accent-purple-soft); }
.pinError { color: var(--dangerText); font-size: 14px; margin-top: 12px; min-height: 20px; }

/* === Home Page === */
.heroSection {
  text-align: center; padding: 40px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: var(--radius); margin-bottom: 24px;
}
.heroSection h1 { font-size: 26px; letter-spacing: 3px; margin-bottom: 12px; }
.heroSection p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }

.ctaBanner {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
  justify-content: center;
}
.ctaBanner a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: all 0.3s;
}
.ctaBanner .cta-primary {
  background: linear-gradient(135deg, var(--accent-purple-soft), #c5c1e0);
  color: #fff; box-shadow: 0 8px 25px rgba(171, 166, 201, 0.3);
}
.ctaBanner .cta-secondary {
  background: rgba(255,255,255,0.7); color: var(--text-main);
  border: 1px solid rgba(171, 166, 201, 0.2);
}

.sectionCard { margin-bottom: 20px; }
.sectionCard .body h3 { margin: 0 0 16px; font-size: 17px; color: var(--text-main); }
.sectionCard .body p { font-size: 14px; line-height: 1.9; color: var(--text-main); margin: 8px 0; }
.sectionCard .body ul { padding-left: 20px; margin: 12px 0; }
.sectionCard .body li { font-size: 14px; line-height: 1.9; color: var(--text-main); margin: 4px 0; }

.faqItem { margin-top: 16px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,0.5); border: 1px solid rgba(171,166,201,0.1); }
.faqQ { font-weight: 700; font-size: 14px; color: var(--accent-gold); margin-bottom: 8px; cursor: pointer; }
.faqA { font-size: 14px; line-height: 1.9; color: var(--text-main); }

/* === Footer === */
.footer-link {
  margin-top: 30px; text-align: center; font-size: 12px;
  color: rgba(82, 83, 102, 0.85);
  text-decoration: underline; cursor: pointer; padding-bottom: 20px;
}

/* === Spinner === */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Loading overlay === */
.loadingOverlay {
  position: fixed; inset: 0; background: rgba(240,244,248,0.8);
  display: none; align-items: center; justify-content: center;
  z-index: 200; backdrop-filter: blur(4px);
}
.loadingOverlay.show { display: flex; }
.loadingBox { text-align: center; color: var(--text-muted); font-size: 14px; font-weight: 700; }
.loadingBox .spinner { width: 36px; height: 36px; border-width: 3px; border-color: rgba(171,166,201,0.3); border-top-color: var(--accent-purple-soft); margin: 0 auto 16px; }

.srOnly { position: absolute; left: -9999px; }
.build { margin-top: 16px; font-size: 11px; color: var(--text-muted); text-align: right; opacity: 0.7; }

/* === Scroll Reveal === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === FAQ Accordion === */
.faqItem .faqQ { display: flex; justify-content: space-between; align-items: center; }
.faqItem .faqQ::after { content: "＋"; color: var(--accent-gold); font-weight: 700; transition: transform 0.3s; }
.faqItem.open .faqQ::after { transform: rotate(45deg); }
.faqItem .faqA { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; }
.faqItem.open .faqA { max-height: 400px; opacity: 1; margin-top: 8px; }

/* === Responsive === */

/* Desktop: spacious */
@media (min-width: 820px) {
  :root { --fs-title: 28px; --fs-sub: 15px; --fs-label: 15px; --fs-input: 17px; }
  .page   { padding: 48px 32px; }
  .header { padding: 36px 0 48px; }
  .body   { padding: 28px 32px; }
  .bar    { padding: 22px 32px; }
  .ticketBody { padding: 32px; }
  .heroSection h1 { font-size: 34px; }
  .container { width: min(920px, 100%); }
}

/* Tablet (641–819px) */
@media (max-width: 819px) and (min-width: 641px) {
  :root { --fs-title: 22px; }
  .body { padding: 22px 24px; }
  .bar  { padding: 18px 24px; }
}

/* Mobile (≤640px): tighter nav tabs */
@media (max-width: 640px) {
  :root { --fs-title: 20px; --fs-sub: 13px; }
  .navTabs { gap: 6px; padding: 0; }
  .tabBtn  { font-size: 12px; letter-spacing: 0; }
  .qrSlide { padding: 12px 6px; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  :root { --fs-title: 18px; }
  .page  { padding: 16px 12px; }
  .body  { padding: 18px 14px; }
  .bar   { padding: 14px 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .kvRow { flex-direction: column; gap: 4px; }
  .k     { width: auto; flex: none; }
  .ticketBody { padding: 18px 14px; }
  .ticketRow  { flex-wrap: wrap; gap: 4px; }
  .trValue    { font-size: 15px; text-align: left; }
  .actions    { gap: 12px; }
  .actions button:not(.iconBtn) { flex: 1 1 calc(50% - 6px); min-width: 120px; }
  .mon-row    { grid-template-columns: 76px 1fr; gap: 8px; }
}
