/* Nhà design system — shared by the booking + confirmation pages.
   Self-contained (no webfonts); theme-aware via prefers-color-scheme and
   an optional data-theme override on <html>. Mirrors the homepage palette. */
:root {
  --ground: #F1EBDF;
  --surface: #F8F3E9;
  --surface-2: #E6DCC9;
  --deep: #143028;
  --ink: #241C17;
  --muted: #7A6E5E;
  --line: rgba(36, 28, 23, 0.14);
  --jade: #17614F;
  --jade-deep: #0E4638;
  --gold: #B4842A;
  --lotus: #C56F89;
  --alert: #B8632C;

  --display: "Helvetica Neue", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  --shadow-soft: 24px 30px 64px -34px rgba(14, 70, 56, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16120D; --surface: #1E1811; --surface-2: #2A2118; --deep: #0C0906;
    --ink: #F2ECE0; --muted: #A99B86; --line: rgba(242, 236, 224, 0.14);
    --jade: #57B49B; --jade-deep: #2E7A66; --gold: #E0B45E; --lotus: #E39FB2; --alert: #E8975A;
    --shadow-soft: 24px 30px 64px -30px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="light"] {
  --ground: #F1EBDF; --surface: #F8F3E9; --surface-2: #E6DCC9; --deep: #143028;
  --ink: #241C17; --muted: #7A6E5E; --line: rgba(36,28,23,0.14);
  --jade: #17614F; --jade-deep: #0E4638; --gold: #B4842A; --lotus: #C56F89; --alert: #B8632C;
}
:root[data-theme="dark"] {
  --ground: #16120D; --surface: #1E1811; --surface-2: #2A2118; --deep: #0C0906;
  --ink: #F2ECE0; --muted: #A99B86; --line: rgba(242,236,224,0.14);
  --jade: #57B49B; --jade-deep: #2E7A66; --gold: #E0B45E; --lotus: #E39FB2; --alert: #E8975A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1000px; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 4rem); }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--jade); margin: 0 0 0.5rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem); background: var(--ground); border-bottom: 1px solid var(--line); }
.site-head .brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.site-head .brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.site-head .back { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.site-head .back:hover { color: var(--ink); }

.band { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: 2rem; }
.section-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.02em; }

/* Buttons */
.btn { font-family: var(--sans); font-size: 0.98rem; font-weight: 500; border: 0; border-radius: 999px;
  padding: 0.85rem 1.7rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 0.5rem; transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s; }
.btn-primary { background: var(--gold); color: #23190A; box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.26); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; margin-top: 0.4rem; }

/* Warning / notes */
.warning { color: var(--alert); font-weight: 600; background: rgba(184,99,44,0.08); border: 1px solid rgba(184,99,44,0.28);
  border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1.5rem; }
.pay-note { font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; color: var(--muted); margin: 0.8rem 0 0; }
.pay-note a { color: var(--jade); }

/* Booking form */
.book-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .book-layout { grid-template-columns: 1fr; } }
.bookcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-soft); }
.bookcard h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin: 0 0 1.2rem; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.field input { width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--ground); color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,132,42,0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.opt-in { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.4rem 0 1.4rem; font-size: 0.92rem; color: var(--muted); }
.opt-in input { margin-top: 0.3rem; flex: none; }

/* Stay summary (dark card) */
.summary-card { background: var(--deep); color: #EAF1EC; border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-soft); }
.summary-card .eyebrow { color: #94BEB0; }
.summary-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0.3rem 0 0.2rem; color: #F4F0E6; }
.summary-card .dates { font-family: var(--mono); font-size: 0.8rem; color: #B7CFC8; margin: 0 0 1.4rem; }

/* Summary rows (light by default; overridden inside the dark summary card) */
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); }
.summary-row:first-of-type { border-top: 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.9rem; color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.summary-row .amount { color: var(--jade); font-weight: 600; }
.summary-card .summary-row { color: #D9E4E1; border-top-color: rgba(255,255,255,0.1); }
.summary-card .summary-row.total { color: #fff; border-top-color: rgba(255,255,255,0.2); }
.summary-card .summary-row .amount { color: #E9C98C; }
.summary-card .pay-note { color: #9FC6BA; }

/* Confirmation ticket */
.ticket { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.ticket-top { background: linear-gradient(135deg, var(--jade), var(--jade-deep)); color: #fff; text-align: center; padding: 2.4rem 1.5rem 2rem; }
.ticket-top .check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(255,255,255,0.18); font-size: 1.6rem; }
.ticket-top h1 { font-family: var(--display); font-weight: 300; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); color: #fff; }
.ticket-top .ref { font-family: var(--mono); font-size: 0.8rem; opacity: 0.9; margin: 0.5rem 0 0; }
.ticket-body { padding: clamp(1.5rem, 4vw, 2.2rem); }
.ticket-body .thanks { margin: 1.4rem 0 0; color: var(--muted); }
.ticket-body .btn-secondary { margin-top: 1.6rem; }

/* Footer */
.site-foot { background: var(--deep); color: #D9E4E1; padding: 2.5rem 0; margin-top: 3rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-foot a { color: #94BEB0; }
.site-foot .mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: #94BEB0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   Shared brand + utilities (faq / admin)
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hint { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 5px; }

/* Cards (faq) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.card-pad { padding: clamp(1.2rem, 3vw, 1.8rem); }
.card h2, .card h3 { font-family: var(--display); font-weight: 500; }

/* ============================================================
   Admin login
   ============================================================ */
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--ground); }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.8rem, 5vw, 2.4rem); box-shadow: var(--shadow-soft); text-align: center; }
.login-card h2 { font-family: var(--display); font-weight: 300; font-size: 1.6rem; margin: 0.6rem 0 1.2rem; }
.login-card .field { text-align: left; }
.login-card .field input { width: 100%; }

/* ============================================================
   Admin console
   ============================================================ */
.admin-shell { max-width: 900px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem); }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.admin-section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1.5rem; }
.admin-section > h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 0.9rem; }
.admin-section h3 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin: 1.5rem 0 0.7rem; }
.admin-section p { color: var(--muted); }
.admin-section label { display: inline-block; font-size: 0.9rem; color: var(--ink); margin: 0.35rem 0.7rem 0.35rem 0; }
.admin-section input:not([type="file"]), .admin-section textarea, .admin-section select {
  font: inherit; padding: 0.5rem 0.65rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--ground); color: var(--ink); margin-left: 0.3rem; max-width: 100%; }
.admin-section textarea { display: block; width: 100%; margin: 0.3rem 0 0; min-height: 4.5rem; line-height: 1.5; }
.admin-section input:focus, .admin-section textarea:focus, .admin-section select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,132,42,0.18); }
.admin-section input[type="file"] { font: inherit; color: var(--muted); margin: 0.3rem 0; max-width: 100%; }
.admin-section button:not(.btn) { font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: background 0.15s ease; }
.admin-section button:not(.btn):hover { background: var(--line); }
.admin-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.admin-list li { padding: 0.7rem 0.9rem; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; font-size: 0.94rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.admin-list li form { display: inline; }
.notif-sent { color: var(--jade); font-weight: 600; }
.notif-failed { color: var(--alert); font-weight: 600; }
.notif-none { color: var(--muted); }
.host-contact { color: var(--muted); }
