:root {
  --bg: #08090b;
  --bg-soft: #0d0f13;
  --panel: #111318;
  --panel-2: #161920;
  --panel-3: #1b1f27;
  --line: #252a33;
  --line-strong: #363d48;
  --text: #f4f5f7;
  --muted: #9aa2ae;
  --faint: #6c7480;
  --lime: #cbf47c;
  --green: #7de0a8;
  --amber: #ffc46b;
  --red: #ff7f7f;
  --blue: #98b8ff;
  --violet: #c4a7ff;
  --radius: 20px;
  --radius-sm: 13px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.public-body {
  background:
    radial-gradient(900px 520px at 50% -160px, rgba(203, 244, 124, .075), transparent 62%),
    radial-gradient(700px 480px at 95% 15%, rgba(152, 184, 255, .04), transparent 60%),
    var(--bg);
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: #090a0c;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.muted-label {
  color: var(--faint);
  font-size: 12px;
}

.prewrap {
  white-space: pre-wrap;
  word-break: break-word;
}

.text-danger {
  color: var(--red) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.admin-tab:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: #f4f4f2;
  border-color: #f4f4f2;
  color: #0a0b0d;
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
}

.btn-secondary {
  background: #151820;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: #1b1f28;
  border-color: #49515e;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.btn-small {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #210808;
}

.btn-danger:hover {
  background: #ff9696;
}

.btn-danger-ghost {
  background: rgba(255, 127, 127, .06);
  border-color: rgba(255, 127, 127, .24);
  color: #ff9b9b;
}

.btn-danger-ghost:hover {
  background: rgba(255, 127, 127, .12);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--lime);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spinning svg {
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form controls */
.field {
  margin-top: 18px;
}

.field:first-child {
  margin-top: 0;
}

.field-label,
.field-group legend {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #dde1e6;
  font-size: 13px;
  font-weight: 600;
}

.field-help {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.65;
}

.field-help.ok-text {
  color: var(--green);
}

.field-help.error-text,
.error-text {
  color: var(--red) !important;
}

.optional {
  margin-left: 3px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 400;
}

.input,
.select {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid #2c313a;
  border-radius: 15px;
  background: #0a0c10;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  color-scheme: dark;
}

.input:hover,
.select:hover {
  border-color: #3b424d;
}

.input:focus,
.select:focus {
  border-color: #848c98;
  background: #0c0e12;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .065);
}

.input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 127, 127, .08);
}

.input::placeholder {
  color: #575f6b;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.textarea.small {
  min-height: 78px;
}

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa2ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

/* Shared header */
.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f3f4f0;
  color: #0a0b0d;
  box-shadow: 0 8px 28px rgba(255, 255, 255, .08);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-sub {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .18s, background .18s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.site-nav .nav-pill {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

/* Booking page */
.booking-page {
  width: min(850px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero {
  padding: 24px 0 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #aab1bb;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(203, 244, 124, .1), 0 0 18px rgba(203, 244, 124, .55);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 6.3vw, 62px);
  font-weight: 680;
  line-height: 1.07;
  letter-spacing: -.055em;
}

.hero-sub {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.mobile-break {
  display: none;
}

.event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #c9ced6;
  font-size: 11px;
}

.event-chip.subtle {
  color: var(--faint);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.booking-form {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.form-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.section-num {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.section-hint {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.section-copy {
  max-width: 610px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.option-list {
  display: grid;
  gap: 10px;
}

.service-grid {
  grid-template-columns: 1fr 1fr;
}

.date-grid {
  grid-template-columns: 1fr 1fr;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}

.radio-card:hover {
  border-color: #3a414c;
  background: rgba(255, 255, 255, .035);
}

.radio-card:has(input:checked) {
  border-color: #e9ebed;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}

.radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 1px;
  border: 1.5px solid #555d69;
  border-radius: 50%;
  transition: border-color .18s, background .18s;
}

.radio-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #0a0b0d;
  transform: scale(0);
  transition: transform .16s ease;
}

.radio-card input:checked + .radio-dot {
  border-color: #fff;
  background: #fff;
}

.radio-card input:checked + .radio-dot::after {
  transform: scale(1);
}

.radio-card input:focus-visible + .radio-dot {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.radio-content {
  min-width: 0;
  flex: 1;
}

.radio-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.radio-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.radio-desc {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}

.price-chip {
  flex: 0 0 auto;
  color: #cfd4da;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.date-card {
  align-items: center;
  padding: 15px 16px;
}

.date-card .radio-content {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.date-card .radio-desc {
  margin-top: 0;
}

.date-iso {
  margin-left: auto;
  color: #4f5763;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .02em;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0d11;
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  min-width: 82px;
  padding: 8px 19px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  transition: background .18s, color .18s;
}

.segmented input:checked + span {
  background: #f3f4f1;
  color: #0a0b0d;
  font-weight: 650;
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.time-grid {
  margin-top: 2px;
}

.time-summary {
  margin: 10px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.contact-help {
  margin-top: 10px;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: #5d6571;
  font-size: 10px;
}

.quote-section {
  border-bottom: 0;
  padding-bottom: 16px;
}

.quote-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(400px 160px at 0 0, rgba(203, 244, 124, .045), transparent 70%),
    #0c0e12;
}

.quote-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quote-label {
  display: block;
  color: var(--faint);
  font-size: 11px;
}

.quote-min {
  display: block;
  margin-top: 3px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.quote-badge {
  max-width: 45%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.quote-input-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.quote-currency {
  position: absolute;
  left: 17px;
  z-index: 1;
  color: var(--muted);
  font-size: 17px;
}

.quote-input {
  height: 58px;
  padding-left: 38px;
  padding-right: 48px;
  border-radius: 15px;
  font-size: 20px;
  font-weight: 550;
}

.quote-unit {
  position: absolute;
  right: 17px;
  color: var(--faint);
  font-size: 12px;
}

.rules-section {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.rules-box {
  padding: 3px 17px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}

.rules-details {
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}

.rules-details summary {
  padding: 15px 0;
  color: #c7ccd4;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rules-details summary::-webkit-details-marker {
  display: none;
}

.rules-details summary::after {
  content: "+";
  color: var(--faint);
  font-size: 17px;
  font-weight: 300;
}

.rules-details[open] summary::after {
  content: "−";
}

.rules-details ul {
  margin: 0 0 17px;
  padding-left: 18px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
}

.rules-details li + li {
  margin-top: 7px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd0d8;
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border: 1px solid #555d68;
  border-radius: 5px;
  transition: background .18s, border-color .18s;
}

.check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #0a0b0d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s;
}

.check-row input:checked + .check-box {
  background: #f3f4f0;
  border-color: #f3f4f0;
}

.check-row input:checked + .check-box::after {
  transform: rotate(45deg) scale(1);
}

.check-row input:focus-visible + .check-box {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.check-row.compact {
  margin-top: 12px;
}

.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 15px 0 0;
  color: #5f6874;
  font-size: 10px;
  line-height: 1.7;
}

.privacy-line svg,
.privacy-footnote svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
}

.submit-area {
  padding-top: 10px;
}

.btn-submit {
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 22px;
}

.btn-submit svg {
  width: 19px;
  height: 19px;
}

.submit-note {
  margin: 10px 0 0;
  color: #5c6470;
  font-size: 10px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #565e6a;
  font-size: 10px;
}

.site-footer a {
  color: var(--faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Notices */
.notice {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.65;
}

.notice-error {
  border-color: rgba(255, 127, 127, .28);
  background: rgba(255, 127, 127, .07);
  color: #ffb4b4;
}

.notice-warn {
  border-color: rgba(255, 196, 107, .25);
  background: rgba(255, 196, 107, .06);
  color: #ffd79c;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 6, .78);
  backdrop-filter: blur(14px);
  overflow-y: auto;
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #303641;
  border-radius: 24px;
  background:
    radial-gradient(500px 220px at 50% -100px, rgba(203, 244, 124, .08), transparent 70%),
    #101216;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
}

.success-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--lime);
  color: #0b0c0d;
}

.success-icon svg {
  width: 25px;
  height: 25px;
}

.modal-eyebrow {
  margin: 0 0 6px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.modal h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.modal-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.result-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0b0d11;
}

.result-label {
  display: block;
  color: var(--faint);
  font-size: 10px;
}

.result-order strong {
  font-size: 14px;
  letter-spacing: .02em;
}

.result-token-box {
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(203, 244, 124, .22);
  border-radius: 13px;
  background: rgba(203, 244, 124, .045);
}

.token-code {
  display: block;
  margin-top: 5px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

#success-modal .result-label[for="result-link"] {
  margin-top: 15px;
}

.copy-field {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.copy-field .input {
  min-height: 40px;
  padding: 9px 11px;
  font-size: 10px;
  font-family: var(--mono);
}

.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-warning {
  margin: 15px 0 0;
  color: #6e7682;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

.modal-dismiss {
  margin-top: 8px;
  font-size: 12px;
}

/* Toast */
.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 210px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #171b22;
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(125, 224, 168, .3);
  background: #111f19;
  color: #c9f8dd;
}

.toast.error {
  border-color: rgba(255, 127, 127, .32);
  background: #211315;
  color: #ffc5c5;
}

/* Query page */
.query-page {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 56px;
}

.query-hero {
  max-width: 640px;
  margin-bottom: 28px;
}

.query-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 670;
  letter-spacing: -.05em;
}

.query-hero p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.query-form-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .022);
}

.query-form-card {
  padding: 22px;
}

.query-input-row {
  display: flex;
  gap: 9px;
}

.query-input-row .input {
  flex: 1;
  font-size: 12px;
}

.query-input-row .btn {
  flex: 0 0 auto;
  min-width: 92px;
}

.query-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.result-card {
  padding: 22px;
}

.result-head-card {
  background:
    radial-gradient(500px 200px at 100% 0, rgba(203, 244, 124, .055), transparent 70%),
    rgba(255, 255, 255, .025);
}

.result-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-order-no {
  color: var(--faint);
  font-size: 11px;
}

.result-head-card h2 {
  margin: 17px 0 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.result-status-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #c7cdd6;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}

.status-badge.status-pending-review {
  color: var(--amber);
  border-color: rgba(255, 196, 107, .24);
  background: rgba(255, 196, 107, .07);
}

.status-badge.status-awaiting-payment {
  color: var(--blue);
  border-color: rgba(152, 184, 255, .24);
  background: rgba(152, 184, 255, .07);
}

.status-badge.status-paid {
  color: var(--green);
  border-color: rgba(125, 224, 168, .24);
  background: rgba(125, 224, 168, .07);
}

.status-badge.status-shooting {
  color: var(--violet);
  border-color: rgba(196, 167, 255, .24);
  background: rgba(196, 167, 255, .07);
}

.status-badge.status-completed {
  color: var(--lime);
  border-color: rgba(203, 244, 124, .24);
  background: rgba(203, 244, 124, .07);
}

.status-badge.status-cancelled {
  color: #a1a8b3;
  border-color: rgba(161, 168, 179, .2);
  background: rgba(161, 168, 179, .06);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin: 0;
}

.detail-grid > div {
  min-width: 0;
}

.detail-grid .span-2 {
  grid-column: span 2;
}

.detail-grid dt {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 10px;
}

.detail-grid dd {
  margin: 0;
  color: #e1e4e8;
  font-size: 13px;
  word-break: break-word;
}

.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-price {
  display: block;
  margin-top: 4px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.price-fineprint {
  max-width: 230px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.payment-card {
  border-color: rgba(152, 184, 255, .2);
  background:
    radial-gradient(380px 180px at 100% 0, rgba(152, 184, 255, .07), transparent 70%),
    rgba(255, 255, 255, .025);
}

.payment-due {
  color: var(--amber);
  font-size: 10px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
}

.payment-qr-wrap {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f5f2;
}

.payment-qr-wrap img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.payment-qr-wrap.no-qr {
  background: #0b0d11;
}

.qr-fallback {
  padding: 16px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

.payment-amount {
  display: block;
  margin: 4px 0 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
}

.payment-instructions {
  margin: 0 0 13px;
  color: #c2c8d1;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.payment-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  line-height: 1.7;
}

.cancel-card {
  border-color: rgba(255, 127, 127, .2);
}

.cancel-card p {
  margin: 0;
  color: #ffb8b8;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 16px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  margin-top: 3px;
  border: 2px solid #444c57;
  border-radius: 50%;
  background: var(--bg);
}

.timeline li.status-completed .timeline-dot,
.timeline li.status-paid .timeline-dot {
  border-color: var(--green);
}

.timeline li.status-shooting .timeline-dot {
  border-color: var(--violet);
}

.timeline li.status-cancelled .timeline-dot {
  border-color: var(--red);
}

.timeline-content,
.timeline li > div {
  min-width: 0;
}

.timeline strong {
  display: block;
  color: #e1e5e9;
  font-size: 12px;
  font-weight: 600;
}

.timeline span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 10px;
}

.timeline p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.privacy-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 4px 2px;
  color: #5e6773;
  font-size: 10px;
  line-height: 1.7;
}

/* Login */
.login-body {
  background:
    radial-gradient(800px 500px at 50% -100px, rgba(203, 244, 124, .08), transparent 65%),
    radial-gradient(700px 500px at 90% 90%, rgba(152, 184, 255, .04), transparent 65%),
    #08090b;
}

.login-shell {
  width: min(440px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0;
}

.login-brand {
  margin-bottom: 26px;
}

.login-card {
  padding: 28px;
  border: 1px solid #2a303a;
  border-radius: 22px;
  background: rgba(16, 18, 22, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.login-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-head .eyebrow {
  margin-bottom: 10px;
}

.login-card .field {
  margin-top: 16px;
}

.login-card .btn {
  margin-top: 22px;
  min-height: 50px;
}

.login-help {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #626b78;
  font-size: 10px;
  line-height: 1.75;
}

.login-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.login-back:hover {
  color: var(--text);
}

.login-footer {
  margin: 22px 0 0;
  color: #4f5763;
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

/* Admin shell */
.admin-body {
  background: #08090b;
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  padding: 11px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, .88);
  backdrop-filter: blur(18px);
}

.admin-brand {
  flex: 0 0 auto;
}

.admin-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 11px;
}

.admin-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}

.admin-brand .brand-sub {
  font-size: 9px;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c0e12;
}

.admin-tab {
  border: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab.active {
  background: #f0f1ee;
  color: #0a0b0d;
  font-weight: 650;
}

.admin-userbox {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}

.topbar-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--text);
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c8ced7;
  font-size: 11px;
  font-family: var(--mono);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 224, 168, .09);
}

.admin-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 26px;
  border-bottom: 1px solid rgba(255, 196, 107, .18);
  background: rgba(255, 196, 107, .055);
  color: #e8c993;
  font-size: 11px;
}

.admin-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.admin-banner .btn {
  margin-left: auto;
}

.admin-main {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.admin-view {
  animation: viewIn .22s ease;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-page-head .eyebrow {
  margin-bottom: 8px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 660;
  letter-spacing: -.045em;
}

.page-desc {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  min-height: 118px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .022);
}

.stat-card.warn {
  background: linear-gradient(150deg, rgba(255, 196, 107, .06), rgba(255, 255, 255, .018));
}

.stat-card.accent {
  background: linear-gradient(150deg, rgba(152, 184, 255, .06), rgba(255, 255, 255, .018));
}

.stat-card.success {
  background: linear-gradient(150deg, rgba(125, 224, 168, .06), rgba(255, 255, 255, .018));
}

.stat-label {
  display: block;
  color: var(--faint);
  font-size: 10px;
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.stat-note {
  display: block;
  margin-top: 4px;
  color: #5e6672;
  font-size: 9px;
}

.skeleton-card,
.skeleton-line,
.skeleton-block {
  background: linear-gradient(90deg, #12151a 25%, #181c23 37%, #12151a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .017);
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  margin-bottom: 12px;
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.filter-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--faint);
}

.filter-search input {
  width: 100%;
  min-height: 40px;
  padding: 9px 13px 9px 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #0a0c10;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.filter-search input:focus {
  border-color: var(--line-strong);
}

.filter-search input::placeholder {
  color: #565e6a;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter-controls .select {
  width: auto;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 10px;
  font-size: 11px;
  background-color: #0a0c10;
}

.table-panel {
  overflow: hidden;
}

.table-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.table-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.table-head p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 10px;
}

.conflict-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9px;
}

.legend-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.table-wrap {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.order-table th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  color: #5e6672;
  font-size: 9px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.order-table th:first-child,
.order-table td:first-child {
  padding-left: 18px;
}

.order-table th:last-child,
.order-table td:last-child {
  padding-right: 18px;
}

.order-table th.align-right {
  text-align: right;
}

.order-row {
  cursor: pointer;
  transition: background .16s;
}

.order-row:hover,
.order-row:focus {
  background: rgba(255, 255, 255, .035);
  outline: none;
}

.order-table td {
  padding: 13px;
  border-bottom: 1px solid #1b1f26;
  vertical-align: middle;
}

.order-table tr:last-child td {
  border-bottom: 0;
}

.cell-when,
.cell-order,
.cell-client,
.cell-price {
  display: table-cell;
}

.cell-when strong,
.cell-client strong {
  display: block;
  color: #e4e7eb;
  font-size: 12px;
  font-weight: 600;
}

.cell-when span,
.cell-order span,
.cell-client span,
.cell-price span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
}

.order-no {
  color: #b9c0ca;
  font-size: 10px;
  letter-spacing: 0;
}

.cell-price {
  white-space: nowrap;
}

.cell-price > span:first-child {
  color: #dfe3e8;
  font-family: var(--mono);
  font-size: 12px;
}

.cell-price .quote-final {
  color: var(--lime);
  font-family: var(--mono);
}

.no-conflict {
  color: #555e69;
  font-size: 9px;
}

.conflict-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 196, 107, .2);
  border-radius: 999px;
  background: rgba(255, 196, 107, .05);
  color: var(--amber);
  font-size: 9px;
  white-space: nowrap;
}

.conflict-flag.locked {
  border-color: rgba(255, 127, 127, .25);
  background: rgba(255, 127, 127, .07);
  color: #ff9d9d;
}

.conflict-flag.locked .legend-dot {
  background: var(--red);
}

.conflict-flag.reserved .legend-dot {
  background: var(--blue);
}

.cell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.copy-row {
  width: 30px;
  height: 30px;
}

.copy-row svg {
  width: 14px;
  height: 14px;
}

.row-chevron {
  color: #505864;
  font-size: 18px;
  line-height: 1;
}

.empty-state {
  padding: 54px 20px;
  text-align: center;
}

.empty-icon {
  color: #3e4652;
  font-family: var(--mono);
  font-size: 25px;
}

.empty-state h3 {
  margin: 8px 0 4px;
  font-size: 14px;
}

.empty-state p {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 4, 6, .62);
  backdrop-filter: blur(3px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(640px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #303641;
  background: #0d0f13;
  box-shadow: -30px 0 90px rgba(0, 0, 0, .42);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 19, .95);
}

.drawer-head .eyebrow {
  margin: 0 0 4px;
  font-size: 8px;
}

.drawer-head .muted-label {
  font-size: 10px;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.drawer-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  width: 60%;
  border-radius: 6px;
}

.skeleton-line.wide {
  width: 85%;
  height: 26px;
}

.skeleton-block {
  height: 140px;
  border-radius: 14px;
  margin-top: 8px;
}

.detail-hero {
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h2 {
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 640;
  letter-spacing: -.035em;
}

.detail-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.contact-panel {
  margin-top: 17px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 13px;
}

.contact-grid > div {
  min-width: 0;
}

.contact-grid span {
  display: block;
  color: var(--faint);
  font-size: 9px;
}

.contact-grid strong {
  display: block;
  margin-top: 3px;
  color: #eef0f3;
  font-size: 13px;
  word-break: break-all;
}

.detail-section {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 650;
}

.detail-section p {
  margin: 0;
  color: #c6ccd4;
  font-size: 12px;
  line-height: 1.8;
}

.detail-section .detail-subhead {
  margin: 15px 0 4px;
  color: var(--faint);
  font-size: 9px;
}

.detail-section .detail-grid {
  gap: 14px 22px;
}

.detail-section .detail-grid dd {
  font-size: 12px;
}

.conflict-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid rgba(125, 224, 168, .18);
  border-radius: 10px;
  background: rgba(125, 224, 168, .04);
  color: #a6e9c4;
  font-size: 11px;
}

.clear-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.conflict-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conflict-item {
  padding: 11px 13px;
  border: 1px solid rgba(255, 196, 107, .18);
  border-radius: 10px;
  background: rgba(255, 196, 107, .035);
}

.conflict-item.locked {
  border-color: rgba(255, 127, 127, .2);
  background: rgba(255, 127, 127, .035);
}

.conflict-item.reserved {
  border-color: rgba(152, 184, 255, .18);
  background: rgba(152, 184, 255, .035);
}

.conflict-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--amber);
  font-size: 10px;
}

.conflict-item.locked .conflict-item-head {
  color: #ff9e9e;
}

.conflict-item.reserved .conflict-item-head {
  color: var(--blue);
}

.conflict-item ul {
  margin: 6px 0 0;
  padding-left: 15px;
  color: #aeb5be;
  font-size: 10px;
  line-height: 1.65;
}

.contact-panel .btn {
  margin-top: 2px;
}

.admin-timeline {
  margin-top: 4px;
}

.admin-timeline li {
  padding-bottom: 14px;
}

.drawer-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -22px -22px;
  padding: 15px 22px calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 19, .96);
  backdrop-filter: blur(12px);
}

.drawer-actions .btn {
  flex: 1;
  min-width: 135px;
}

.detail-terminal {
  color: var(--faint);
  font-size: 11px;
}

/* Admin modals */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 6, .78);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid #303641;
  border-radius: 20px;
  background: #101216;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head .eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.modal-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.modal-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

#modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #0d0f13;
}

.modal-actions .btn {
  flex: 0 0 auto;
  min-width: 92px;
}

.modal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 17px;
}

.modal-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0e12;
}

.modal-summary span {
  display: block;
  color: var(--faint);
  font-size: 9px;
}

.modal-summary strong {
  display: block;
  margin-top: 3px;
  color: #e5e8ec;
  font-family: var(--mono);
  font-size: 12px;
}

.modal-conflict-block {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 196, 107, .22);
  border-radius: 12px;
  background: rgba(255, 196, 107, .04);
}

.modal-section-title {
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 650;
}

.modal-conflict-block > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.modal-conflict-block .field {
  margin-top: 12px;
}

.modal .notice {
  margin-top: 0;
  margin-bottom: 14px;
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 12px;
  align-items: start;
}

.settings-card {
  padding: 22px;
}

#security-settings {
  grid-column: span 2;
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.settings-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.settings-head p {
  margin: 5px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.settings-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 14px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .015);
}

.price-label {
  min-width: 0;
  flex: 1;
}

.price-label strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.price-label span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-input-wrap {
  position: relative;
  flex: 0 0 112px;
}

.price-input-wrap > span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 11px;
}

.price-input-wrap .input {
  min-height: 38px;
  padding: 8px 10px 8px 25px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 12px;
}

.settings-inline {
  gap: 12px;
}

.settings-inline .field {
  margin-top: 15px;
}

.settings-inline .input {
  min-height: 42px;
  font-family: var(--mono);
  font-size: 12px;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.form-footer .btn {
  min-height: 38px;
  font-size: 11px;
}

.qr-section {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.qr-preview-wrap {
  flex: 0 0 120px;
}

.qr-preview {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f5f2;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #353c47;
  border-radius: 10px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-start;
}

.qr-actions .field-help {
  flex-basis: 100%;
  margin-top: 2px;
}

.file-button {
  cursor: pointer;
}

.security-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.security-meta > div {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0e12;
}

.security-meta span {
  display: block;
  color: var(--faint);
  font-size: 9px;
}

.security-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.badge-warn {
  color: var(--amber);
  font-size: 10px;
}

.badge-ok {
  color: var(--green);
  font-size: 10px;
}

#password-form .field {
  margin-top: 13px;
}

#security-settings .two-col {
  gap: 12px;
}

#security-settings .form-footer {
  justify-content: flex-start;
}

/* Data view */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.data-card {
  padding: 22px;
}

.data-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.audit-card {
  grid-column: span 2;
}

.backup-list,
.audit-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.backup-row,
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #1d2128;
}

.backup-row:last-child,
.audit-row:last-child {
  border-bottom: 0;
}

.backup-row > div {
  min-width: 0;
}

.backup-row strong {
  display: block;
  color: #cbd2db;
  font-size: 10px;
  word-break: break-all;
}

.backup-row span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
}

.audit-row {
  align-items: flex-start;
}

.audit-main {
  min-width: 0;
}

.audit-action {
  display: block;
  color: #d0d5dd;
  font-size: 10px;
}

.audit-meta {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
}

.audit-entity {
  flex: 0 0 auto;
  color: #5d6571;
  font-family: var(--mono);
  font-size: 8px;
}

.empty-inline,
.loading-block {
  padding: 20px 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.7;
}

.loading-block {
  padding: 30px 0;
  text-align: center;
}

.hide-mobile {
  display: inline;
}

/* Responsive */
@media (max-width: 1050px) {
  .admin-topbar {
    gap: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-brand .brand-sub {
    display: none;
  }

  .admin-tab {
    padding: 8px 11px;
  }

  .admin-userbox {
    gap: 7px;
  }

  .admin-page-head {
    align-items: flex-start;
  }

  .filter-panel {
    flex-wrap: wrap;
  }

  .filter-search {
    flex-basis: 100%;
  }

  .filter-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

  #security-settings,
  .audit-card {
    grid-column: auto;
  }

  .site-header {
    width: min(1120px, calc(100% - 36px));
  }

  .booking-page,
  .query-page {
    width: min(850px, calc(100% - 36px));
  }
}

@media (max-width: 760px) {
  .hide-mobile {
    display: none;
  }

  .site-header {
    padding: 18px 0;
  }

  .brand-sub {
    display: none;
  }

  .site-nav a {
    font-size: 12px;
    padding: 7px 9px;
  }

  .booking-page {
    padding-top: 20px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .mobile-break {
    display: block;
  }

  .service-grid,
  .date-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-hint {
    padding-top: 4px;
  }

  .segmented {
    width: 100%;
  }

  .segmented label {
    flex: 1;
  }

  .segmented span {
    min-width: 0;
    padding-left: 9px;
    padding-right: 9px;
  }

  .form-section {
    padding: 25px 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }

  .query-input-row {
    flex-direction: column;
  }

  .query-input-row .btn {
    width: 100%;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-qr-wrap {
    width: 190px;
  }

  .price-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-fineprint {
    text-align: left;
  }

  .detail-grid {
    gap: 13px 18px;
  }

  .admin-topbar {
    flex-wrap: wrap;
    padding: 9px 14px;
    gap: 8px;
  }

  .admin-brand {
    flex: 1;
  }

  .admin-tabs {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .admin-tab {
    flex: 1;
  }

  .admin-userbox {
    margin-left: 0;
  }

  .admin-user {
    display: none;
  }

  .admin-banner {
    align-items: flex-start;
    padding: 9px 14px;
    line-height: 1.6;
  }

  .admin-main {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .admin-page-head {
    flex-direction: column;
    gap: 15px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    min-height: 104px;
    padding: 14px;
  }

  .stat-value {
    font-size: 22px;
  }

  .filter-controls .select {
    flex: 1;
    min-width: 130px;
  }

  .table-wrap {
    margin: 0 -1px;
  }

  .table-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .order-table {
    min-width: 720px;
  }

  .order-table th:nth-child(2),
  .order-table td:nth-child(2) {
    display: none;
  }

  .drawer {
    width: 100%;
  }

  .drawer-content {
    padding: 17px;
  }

  .drawer-actions {
    margin: 0 -17px -17px;
    padding: 13px 17px calc(13px + env(safe-area-inset-bottom));
  }

  .modal-layer,
  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .modal,
  .modal-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px 20px 14px 14px;
  }

  .modal {
    padding: 24px;
  }

  .modal-summary {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-actions .btn {
    flex: 1;
  }

  .contact-grid,
  .security-meta {
    grid-template-columns: 1fr;
  }

  .settings-card,
  .data-card {
    padding: 17px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .price-input-wrap {
    flex-basis: auto;
    width: 100%;
  }

  .qr-section {
    flex-direction: column;
  }

  .login-shell {
    padding: 20px 0;
  }

  .login-card {
    padding: 22px;
  }

  .toast-host {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 14px;
  }

  .site-header {
    gap: 10px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .section-hint {
    display: none;
  }

  .event-chip {
    font-size: 10px;
  }

  .quote-badge {
    display: none;
  }

  .result-head-top {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid .span-2 {
    grid-column: auto;
  }

  .site-footer {
    margin-top: 34px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-label {
    font-size: 9px;
  }

  .stat-note {
    display: none;
  }

  .filter-controls {
    width: 100%;
  }

  .filter-controls .select {
    flex-basis: 100%;
  }

  .filter-controls .btn {
    width: 100%;
  }

  .admin-brand .brand-mark {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .admin-brand .brand-mark svg {
    width: 18px;
    height: 18px;
  }

  .order-table {
    min-width: 650px;
  }

  .order-table th:nth-child(6),
  .order-table td:nth-child(6) {
    display: none;
  }

  .modal {
    padding: 20px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .drawer-actions .btn {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
