:root {
  --accent: #d6bd80;
  --ink: #f4f0e8;
  --text: #f4f0e8;
  --muted: #aaa89e;
  --paper: #151715;
  --paper-soft: #20231f;
  --night: #10120f;
  --night-2: #151715;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(255, 255, 255, 0.14);
  --blue: #d6bd80;
  --blue-deep: #e2cca0;
  --amber: #f1b531;
  --gold: #d8a83f;
  --gold-soft: rgba(216, 168, 63, 0.28);
  --red: #ff453a;
  --green: #30d158;
  --danger: #ff6b6b;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--night);
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(214, 189, 128, 0.10), transparent 60%),
    linear-gradient(180deg, #10120f 0%, #151715 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: none;
}

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

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
  margin: 0 auto;
  padding:
    max(22px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.hero {
  position: relative;
  min-height: 218px;
  padding: 16px 0 20px;
  display: grid;
  align-content: end;
  color: var(--ink);
  animation: riseIn 0.42s ease both;
}

.hero::after {
  content: none;
}

.hero-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-brand::after {
  content: none;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand-logo {
  width: clamp(60px, 7.8vw, 84px);
  height: clamp(60px, 7.8vw, 84px);
  object-fit: contain;
  display: block;
}

.hero-title {
  margin: 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(24px, 5.4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sub {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(246, 240, 230, 0.78);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.45;
}

.community-line {
  max-width: 720px;
  margin: 12px 0 0;
  color: #fff9ef;
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}

.admin-open-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(246, 240, 230, 0.16);
  border-radius: 18px;
  background: rgba(246, 240, 230, 0.08);
  backdrop-filter: blur(18px);
}

button,
.admin-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(246, 240, 230, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  border-color: rgba(214, 189, 128, 0.28);
  background: rgba(246, 240, 230, 0.14);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(214, 189, 128, 0.34);
  outline-offset: 2px;
}

.top-nav-item {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  color: rgba(246, 240, 230, 0.78);
  background: transparent;
  font-size: 13px;
  white-space: normal;
}

.top-nav-item:hover {
  color: #fff;
  background: rgba(246, 240, 230, 0.1);
  transform: none;
}

.top-nav-item.active {
  color: #061018;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(214, 189, 128, 0.22);
}

.account-chip {
  display: inline-grid;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-color: rgba(246, 240, 230, 0.16);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  background: rgba(246, 240, 230, 0.1);
  backdrop-filter: blur(18px);
}

.account-chip span:first-child {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.account-chip.active {
  border-color: rgba(214, 189, 128, 0.5);
  background: rgba(214, 189, 128, 0.14);
  box-shadow: 0 12px 28px rgba(214, 189, 128, 0.14);
}

.panel {
  position: relative;
  margin-top: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 20, 22, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: riseIn 0.36s ease both;
}

.panel::before {
  content: none;
}

.panel.account-panel {
  position: fixed;
  top: max(88px, calc(env(safe-area-inset-top) + 18px));
  right: max(16px, env(safe-area-inset-right));
  z-index: 100;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
  overflow: auto;
  margin: 0;
}

/* Inline registration: the account panel rendered in normal page flow as the first
   Book wizard step. Static, full-width within the step, no overlay/backdrop/close. */
.panel.account-panel.account-inline {
  position: static;
  top: auto;
  right: auto;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin-top: 14px;
  box-shadow: none;
  animation: none;
}

.account-panel.account-inline #account-close {
  display: none;
}

.page-section[hidden],
#admin-area[hidden],
.account-panel[hidden],
.account-form[hidden],
.profile-card[hidden],
.google-signin-wrap[hidden],
.account-code-panel[hidden],
.admin-login-panel[hidden],
.admin-section[hidden] {
  display: none;
}

#group-panel {
  animation-delay: 0.04s;
}

#attendees-panel {
  animation-delay: 0.08s;
}

#summary-panel {
  animation-delay: 0.12s;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2,
h3 {
  color: var(--ink);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.error {
  color: var(--danger);
}

.primary {
  width: 100%;
  margin-top: 12px;
  border: 0;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(214, 189, 128, 0.28);
  padding: 13px 16px;
}

.primary:hover {
  background: #d6bd80;
}

.primary:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}

.register-note {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background: rgba(241, 181, 49, 0.12);
  color: var(--amber);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.register-note:hover {
  background: rgba(241, 181, 49, 0.18);
}

.danger-btn {
  border-color: rgba(255, 156, 156, 0.55);
  color: #ff9c9c;
  background: rgba(217, 45, 66, 0.08);
}

label {
  display: grid;
  gap: 7px;
  color: rgba(246, 240, 230, 0.86);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(246, 240, 230, 0.14);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(246, 240, 230, 0.08);
  font: inherit;
}

select,
input[type="datetime-local"] {
  color-scheme: dark;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: rgba(246, 240, 230, 0.46);
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 12px;
  margin-right: 10px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(246, 240, 230, 0.14);
  font: inherit;
  font-weight: 900;
}

.grid-2,
.grid-3,
.admin-grid2,
.admin-grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.event-grid,
.attendees,
.admin-cards {
  display: grid;
  gap: 10px;
}

.event-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 18px;
  background: var(--paper-soft);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.event-card::after {
  content: none;
}

.event-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.event-card.active {
  border-color: rgba(214, 189, 128, 0.55);
  background: var(--paper-soft);
  box-shadow: 0 0 0 1px rgba(214, 189, 128, 0.35), 0 18px 38px rgba(0, 0, 0, 0.4);
}

.event-title {
  margin: 0;
  max-width: calc(100% - 52px);
  font-size: 18px;
  font-weight: 900;
}

.event-meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.event-price {
  display: inline-flex;
  margin: 13px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(214, 189, 128, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.account-panel {
  position: fixed;
  top: max(88px, calc(env(safe-area-inset-top) + 18px));
  right: max(16px, env(safe-area-inset-right));
  z-index: 100;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
  overflow: auto;
  margin: 0;
  background: rgba(18, 14, 22, 0.96);
}

.account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 2, 7, 0.46);
  backdrop-filter: blur(5px);
}

.account-panel::after {
  content: none;
}

.account-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}

.account-form,
.account-actions,
.account-code-panel,
.google-signin-wrap {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.profile-card,
.summary-card,
.terms-box,
.attendee-row,
.admin-login-panel,
.admin-block,
.admin-card {
  border: 1px solid rgba(246, 240, 230, 0.13);
  border-radius: 20px;
  background: rgba(246, 240, 230, 0.07);
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
}

.profile-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-value {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 850;
}

.account-divider {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.account-divider span {
  padding: 0 10px;
}

.attendee-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 13px;
}

.attendee-repost {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 4px;
}

.attendee-repost label,
.terms-accept {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.42;
}

.attendee-repost input[type="checkbox"],
.terms-accept input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--blue);
}

.summary-card,
.terms-box {
  padding: 15px;
  line-height: 1.54;
}

.summary-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.terms-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.terms-box summary {
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.terms-document {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  padding: 13px;
  border-radius: 16px;
  color: rgba(246, 240, 230, 0.82);
  background: rgba(6, 5, 9, 0.36);
  font-size: 13px;
  line-height: 1.5;
}

.terms-document p {
  margin: 0 0 10px;
}

.terms-document ol {
  margin: 0;
  padding-left: 20px;
}

.terms-document li + li {
  margin-top: 8px;
}

.main-panel {
  overflow: hidden;
  padding: 0;
  background: var(--paper-soft);
}

.main-panel::before {
  display: none;
}

.main-carousel {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: #10120f;
}

.main-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.main-carousel-track::-webkit-scrollbar {
  display: none;
}

.main-carousel-slide {
  display: block;
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
}

.main-carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #10120f;
}

.main-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 15, 0.52);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.main-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 240, 230, 0.44);
}

.main-carousel-dots span.active {
  width: 20px;
  background: var(--blue);
}

.hero-carousel {
  position: relative;
}

.hero-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel-track::-webkit-scrollbar {
  display: none;
}

.hero-carousel-slide {
  display: block;
  scroll-snap-align: start;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 44px;
  display: flex;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 15, 0.52);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.hero-carousel-dots:not(:has(span + span)) {
  display: none;
}

.hero-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 240, 230, 0.44);
}

.hero-carousel-dots span.active {
  width: 20px;
  background: var(--blue);
}

.admin-carousel-block {
  margin-top: 18px;
}

.admin-carousel-block h4 {
  margin: 0 0 8px;
}

.main-copy {
  padding: clamp(18px, 4vw, 34px);
  color: var(--ink);
  background: var(--paper-soft);
}

.main-copy h2 {
  color: var(--ink);
}

.main-copy p:not(.eyebrow),
.contact-panel p:not(.eyebrow) {
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.main-copy .eyebrow {
  color: var(--blue-deep);
}

.contact-panel {
  color: var(--ink);
  background: var(--paper-soft);
}

.contact-panel::before {
  content: none;
}

.contact-panel h2 {
  color: var(--ink);
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.contact-links a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(246, 240, 230, 0.08);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.contact-links a:hover {
  border-color: rgba(214, 189, 128, 0.46);
  background: rgba(214, 189, 128, 0.14);
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.payment-links {
  margin-top: 12px;
  border: 1px solid rgba(214, 189, 128, 0.18);
  border-radius: 18px;
  padding: 13px;
  background: rgba(214, 189, 128, 0.08);
}

.payment-links-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.payment-link-row {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.payment-link-row a {
  min-width: 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copy-pay-link {
  min-height: 36px;
  font-size: 12px;
  padding: 7px 10px;
}

.admin-login-panel,
.admin-block {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.admin-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  background: rgba(246, 240, 230, 0.08);
}

.admin-tab.active {
  border-color: rgba(214, 189, 128, 0.36);
  background: rgba(214, 189, 128, 0.1);
}

.admin-card {
  padding: 14px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.admin-card-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ticket-pass {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(246, 240, 230, 0.12);
  border-radius: 16px;
  background: rgba(6, 5, 9, 0.28);
}

.ticket-qr,
.ticket-qr-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 12px;
}

.ticket-qr {
  display: block;
  padding: 6px;
  background: #fff;
}

.ticket-qr-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  background: rgba(246, 240, 230, 0.08);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.ticket-pass-name {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.scanner-layout {
  display: grid;
  gap: 14px;
}

.scanner-box {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(246, 240, 230, 0.13);
  border-radius: 20px;
  background: rgba(6, 5, 9, 0.38);
}

.scanner-box video,
.scanner-placeholder {
  width: 100%;
  min-height: 260px;
}

.scanner-box video {
  display: block;
  object-fit: cover;
}

.scanner-placeholder {
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 22px;
  text-align: center;
}

.scanner-placeholder p {
  margin: 0;
  font-weight: 900;
}

.scanner-controls {
  display: grid;
  gap: 12px;
}

.checkin-result {
  min-height: 76px;
}

.checkin-card {
  padding: 14px;
  border: 1px solid rgba(246, 240, 230, 0.13);
  border-radius: 18px;
  background: rgba(246, 240, 230, 0.07);
}

.checkin-card h3 {
  margin: 4px 0 6px;
}

.checkin-card p {
  margin: 0;
}

.checkin-card.ready {
  border-color: rgba(49, 213, 131, 0.42);
  background: rgba(49, 213, 131, 0.09);
}

.checkin-card.checked {
  border-color: rgba(214, 189, 128, 0.42);
  background: rgba(214, 189, 128, 0.09);
}

.checkin-card.blocked {
  border-color: rgba(225, 75, 59, 0.5);
  background: rgba(225, 75, 59, 0.09);
}

.admin-inline-actions,
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions {
  margin-top: 12px;
}

.admin-inline-actions button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.admin-locked .admin-tabs,
.admin-locked .admin-section,
.admin-locked #admin-refresh-all,
.admin-locked #admin-logout {
  display: none;
}

.admin-proof {
  margin: 8px 0;
}

.admin-proof-thumb {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  display: block;
}

@media (min-width: 680px) {
  .top-nav {
    display: flex;
    width: fit-content;
  }

  .grid-2,
  .admin-grid2,
  .attendee-row,
  .profile-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .admin-grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upcoming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scanner-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
    align-items: start;
  }

  .payment-link-row {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .copy-pay-link {
    flex: 0 0 auto;
  }
}

@media (min-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    column-gap: 24px;
    padding: 20px 0 24px;
  }

  .hero-brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
  }

  .nav-row {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

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

  .sub {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .admin-open-status,
  .hero-cta-row {
    grid-column: 1 / -1;
  }

  .hero-cta-row {
    margin-top: 18px;
  }

  .upcoming-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .main-story {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  }

  .main-carousel {
    border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px);
  }

  .main-carousel-track,
  .main-carousel-slide {
    height: 100%;
  }

  .main-carousel-slide img {
    height: 100%;
    min-height: 560px;
    aspect-ratio: auto;
  }

  .main-copy {
    display: grid;
    align-content: center;
    padding: 38px;
  }

  .panel.account-panel {
    top: max(22px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
  }
}

@media (max-width: 520px) {
  body {
    background:
      radial-gradient(140% 40% at 50% -8%, rgba(214, 189, 128, 0.10), transparent 60%),
      linear-gradient(180deg, #10120f 0%, #151715 100%);
  }

  .app-shell {
    padding-top: max(24px, calc(env(safe-area-inset-top) + 14px));
    padding-bottom: max(54px, calc(env(safe-area-inset-bottom) + 28px));
  }

  .hero {
    min-height: 240px;
  }

  .hero-brand {
    gap: 10px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .hero-title {
    font-size: clamp(20px, 6.7vw, 29px);
  }

  .panel {
    border-radius: 22px;
  }

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

  .main-carousel-slide img {
    aspect-ratio: auto;
    height: clamp(150px, 32vh, 240px);
  }

  .ticket-pass {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .ticket-qr,
  .ticket-qr-placeholder {
    width: 78px;
    height: 78px;
  }
}

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

.site-footer {
  position: relative;
  z-index: 1;
  margin: 32px auto 0;
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  max-width: 640px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer .footer-brand {
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: var(--blue-deep);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
}

.hero-cta {
  width: auto;
  min-width: 180px;
  margin-top: 0;
  font-size: 15px;
}

.hero-cta-note {
  margin: 0;
  color: rgba(246, 240, 230, 0.72);
  font-size: 14px;
  font-weight: 600;
}

.upcoming-events {
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.upcoming-head {
  margin-bottom: 16px;
}

.upcoming-head .eyebrow {
  color: var(--blue-deep);
}

.upcoming-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.upcoming-card {
  display: flex;
  flex-direction: column;
}

.upcoming-when {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.upcoming-where {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.upcoming-card .event-price {
  align-self: flex-start;
}

.upcoming-card .event-meta {
  flex: 1 1 auto;
}

.upcoming-cta {
  width: 100%;
  margin-top: 16px;
}

.ticket-save-btn {
  margin-top: 10px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.ticket-cancel-btn {
  margin-top: 10px;
  border-color: rgba(255, 156, 156, 0.55);
  color: #ff9c9c;
  background: rgba(217, 45, 66, 0.08);
}

.ticket-admin-note {
  color: #ffb4b4;
}

.ticket-move-btn,
.ticket-refund-btn {
  margin-top: 10px;
  margin-right: 8px;
}

.ticket-change-hint {
  margin-top: 6px;
  opacity: 0.8;
}

.ticket-change-badge {
  margin-top: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 196, 92, 0.14);
  border: 1px solid rgba(255, 196, 92, 0.5);
  color: #ffc45c;
  font-size: 13px;
}

/* Event banner photos (public) + embedded Google Map */
.upcoming-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--paper-soft);
}

.summary-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--paper-soft);
}

.event-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.event-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-map-links {
  margin-top: 8px;
}

.event-map-link {
  display: inline-block;
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 600;
}

.event-map-link:hover {
  text-decoration: underline;
}

.admin-banner-preview {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 4px 0 8px;
  background: var(--paper-soft);
}

.admin-carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-carousel-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.admin-carousel-item img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.payment-choice-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.payment-choice {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border: 1px solid rgba(214, 189, 128, 0.35);
  border-radius: 12px;
  background: rgba(214, 189, 128, 0.06);
  color: #d7f4ff;
  cursor: pointer;
}

.payment-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(214, 189, 128, 0.28);
  color: #ffffff;
}

.payment-choice-row.selected {
  outline: 1px solid rgba(138, 222, 255, 0.4);
  border-radius: 12px;
}

.payment-choice-hint {
  margin-top: 8px;
}

.payment-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.payment-detail {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(214, 189, 128, 0.25);
  border-radius: 14px;
  background: rgba(214, 189, 128, 0.06);
}

.payment-detail-title {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.payment-detail-value {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: none;
  font-size: 13px;
}

.admin-carousel-default {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.admin-carousel-default img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-pay-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Purchase history (admin History tab): buyer-grouped cards reusing card tokens. */
.admin-history-group .admin-history-purchases {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-history-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.admin-history-item .admin-card-meta:first-child {
  color: var(--ink, inherit);
  font-weight: 700;
}

/* Guard-only mode marker shown in #admin-ident. */
#admin-ident:not(:empty) {
  display: inline-block;
}

/* ---- Booking wizard (Feature 4) ------------------------------------------ */
.booking-wizard .wizard-step[hidden] {
  display: none;
}

.wizard-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.wizard-progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted, #8a8a8a);
  opacity: 0.75;
}

.wizard-progress-step .wizard-progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 1;
}

.wizard-progress-step.active {
  color: var(--accent);
  opacity: 1;
  font-weight: 600;
}

.wizard-progress-step.done {
  opacity: 1;
}

.wizard-step-title {
  margin-top: 0;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.wizard-nav .wizard-next {
  margin-left: auto;
}

.wizard-nav button[hidden] {
  display: none;
}

/* Per-guest repost controls only show on the Repost step (attendees list is
   moved there and flagged with attendees-mode-repost). */
#attendees-list .attendee-repost {
  display: none;
}

#attendees-list.attendees-mode-repost .attendee-repost {
  display: block;
  margin-top: 8px;
}

.repost-rules {
  margin-bottom: 16px;
}

/* Design polish: wizard steps no longer repeat the step title as an inner
   heading, so keep the single step title breathing and right-align the lone
   Refresh action on the Choose-event step. */
.wizard-step .panel-head.actions-only {
  justify-content: flex-end;
}

.wizard-step-title {
  margin-bottom: 14px;
}

.wizard-step > h3:first-child {
  margin-top: 0;
}

/* Smoother booking flow: status, confirmation, hints and proof preview. */
.wizard-hint {
  margin-top: 8px;
}

.attendee-row input.field-missing {
  border-color: var(--danger);
  outline: 1px solid var(--danger);
}

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

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

.booking-confirm {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(48, 209, 88, 0.45);
  border-radius: 14px;
  background: rgba(48, 209, 88, 0.10);
}

.booking-confirm-title {
  margin: 0;
  font-weight: 800;
  color: var(--green);
}

.booking-confirm-code {
  margin: 6px 0 10px;
  color: var(--ink);
}

.payment-proof-preview {
  margin-top: 10px;
}

.payment-proof-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.payment-proof-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.payment-proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(214, 189, 128, 0.08);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-deep);
}

.payment-proof-name {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--ink);
}

.payment-proof-remove {
  flex: none;
  width: auto;
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
}

.tickets-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.form-section-head {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-stepper input {
  flex: 1 1 auto;
  text-align: center;
}

.qty-step {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

/* --- Web UX polish: toast, skeletons, mobile account sheet ---------------- */

/* Toast / snackbar. The region is click-transparent so toasts never intercept
   taps on the page; only the dismiss button is interactive. */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(18, 14, 22, 0.97);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.35;
  animation: toast-in 0.22s ease-out;
}

.toast-success {
  border-color: rgba(48, 209, 88, 0.5);
}

.toast-error {
  border-color: rgba(255, 69, 58, 0.55);
}

.toast-info {
  border-color: var(--line-dark);
}

.toast-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.toast-dismiss {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.toast-dismiss:hover {
  color: var(--text);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading skeletons: pulsing placeholder cards shown while a list loads. */
.skeleton-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.14) 37%,
    rgba(255, 255, 255, 0.06) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.lg {
  height: 18px;
  width: 70%;
}

.skeleton-line.sm {
  width: 45%;
}

.skeleton-block {
  height: 96px;
  border-radius: 12px;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Mobile: present the account dialog (modal, not inline) as a bottom sheet that
   is easier to reach with a thumb. Inline-in-wizard mount stays untouched. */
@media (max-width: 640px) {
  .account-panel:not(.account-inline) {
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: 86dvh;
    border-radius: 22px 22px 0 0;
    margin: 0;
    padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    animation: account-sheet-up 0.26s ease-out;
  }
}

@keyframes account-sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Tunderi visual system: warm charcoal, paper typography and photographic nights. */
body { background: var(--night); }
.app-shell { width: min(100%, 1240px); padding-top: max(24px, env(safe-area-inset-top)); }
.hero { min-height: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 24px; border-bottom: 1px solid var(--line); animation: none; }
.hero-brand { margin: 0; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 44px; height: 48px; }
.hero-title { font-family: "Outfit", sans-serif; font-size: 21px; font-weight: 600; text-transform: none; letter-spacing: -.04em; line-height: 1.15; }
.hero-title span { display: block; color: var(--muted); font-weight: 500; }
.admin-open-status:empty { display: none; }
.admin-open-status { position: absolute; top: 100%; margin: 0; }
.nav-row { margin: 0; align-items: center; gap: 16px; }
.top-nav { display: flex; padding: 0; border: 0; background: transparent; backdrop-filter: none; gap: 4px; }
.top-nav-item { color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px 16px; border-radius: 6px; }
.top-nav-item.active { background: var(--paper-soft); color: var(--text); box-shadow: none; }
.account-chip { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; background: transparent; }
.account-chip span:first-child { border: 0; background: transparent; color: var(--accent); }
h1, h2, h3 { font-family: "Outfit", "Manrope", sans-serif; text-wrap: balance; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.15; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 600; }
.panel { background: var(--paper); border: 1px solid var(--line); box-shadow: none; backdrop-filter: none; border-radius: 12px; padding: clamp(20px, 3vw, 36px); }
.main-panel { padding: 0; border: 0; background: transparent; overflow: visible; }
.night-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 6%; align-items: center; padding: 56px 0 64px; }
.night-intro-copy { padding: 12px 0; }
.night-intro h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1.03; font-weight: 500; margin: 24px 0; letter-spacing: -.05em; }
.night-intro h1 em { font-family: Georgia, serif; color: var(--accent); font-weight: 400; }
.night-description { max-width: 38ch; line-height: 1.7; font-size: 15px; color: var(--muted); text-wrap: pretty; }
.night-intro .sub { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 28px; }
.night-photo { position: relative; margin: 0; }
.night-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.5; object-fit: cover; border-radius: 4px 4px 48px 4px; }
.night-photo figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; letter-spacing: .04em; color: var(--muted); padding-top: 14px; }
.hero-cta-row { margin-top: 24px; }
button, .admin-btn { border-radius: 7px; font-weight: 600; background: var(--paper-soft); }
button:hover { background: #30352c; border-color: var(--accent); }
button:active { transform: translateY(1px); }
.primary, .primary:hover { background: var(--accent); color: #181c14; border-color: var(--accent); box-shadow: none; }
.primary:hover { background: #e2cca0; }
.hero-cta { width: auto; padding: 14px 22px; display: inline-flex; gap: 28px; align-items: center; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { transform: none; cursor: not-allowed; }
input, select, textarea { border-radius: 7px; background: #10120f; color: var(--text); }
input::file-selector-button { background: var(--paper-soft); border: 0; border-radius: 4px; padding: 8px 12px; color: var(--text); margin-right: 12px; cursor: pointer; font: inherit; }
.upcoming-events { padding: 32px 0 56px; background: transparent; border-top: 1px solid var(--line); border-bottom: 0; }
.upcoming-head { margin-bottom: 28px; }
.upcoming-grid { gap: 20px; }
.event-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: none; }
.event-card:hover { background: var(--paper-soft); border-color: var(--line-dark); box-shadow: none; }
.event-card.active { border-color: var(--accent); background: #282b22; box-shadow: inset 3px 0 var(--accent); }
.event-title { font-family: "Outfit", sans-serif; font-size: 24px; letter-spacing: -.03em; line-height: 1.2; }
.event-meta { line-height: 1.65; font-weight: 400; }
.event-price { background: transparent; color: var(--accent); border: 0; padding: 0; font-variant-numeric: tabular-nums; }
.upcoming-when { font-weight: 500; color: var(--text); }
.upcoming-cta { margin-top: 24px; }
.upcoming-banner { border-radius: 6px; }
.main-story { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 6%; padding: 48px 0; border-top: 1px solid var(--line); }
.main-carousel { border-radius: 6px; margin-top: 8px; }
.main-copy { background: transparent; padding: 0; }
.main-copy p { max-width: 60ch; font-size: 14px; }
.main-copy h2 { margin-top: 16px; }
.wizard-progress { gap: 12px 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.wizard-progress-step { opacity: 1; gap: 8px; }
.wizard-progress-step .wizard-progress-dot { width: 26px; height: 26px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.wizard-progress-step.active .wizard-progress-dot { background: var(--accent); color: #181c14; border-color: var(--accent); }
.wizard-nav { padding-top: 20px; border-top: 1px solid var(--line); }
#booking-wizard { max-width: 900px; margin-left: auto; margin-right: auto; }
.admin-card, .admin-block, .summary-card { box-shadow: none; border-radius: 10px; background: var(--paper-soft); }
.admin-tabs { gap: 8px; }
.admin-tab.active, .admin-tab[aria-selected="true"] { color: #181c14; background: var(--accent); box-shadow: none; }
.panel-head { gap: 16px; }
.panel-head button { flex-shrink: 0; }
.hint { line-height: 1.6; }
.site-footer { max-width: none; text-align: left; padding: 28px 0; margin-top: 48px; display: flex; justify-content: space-between; gap: 28px; }
.site-footer .footer-links { justify-content: flex-end; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1300; padding: 12px 20px; background: var(--accent); color: #181c14; border-radius: 6px; }
.skip-link:focus { top: 12px; }
@media (max-width: 760px) {
  .hero { flex-wrap: wrap; gap: 18px; padding-bottom: 18px; }
  .nav-row { width: 100%; gap: 8px; }
  .top-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top-nav-item { padding: 10px 4px; font-size: 12px; }
  .night-intro { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 40px; }
  .night-intro h1 { font-size: clamp(44px, 9vw, 64px); margin: 18px 0; }
  .night-photo img { aspect-ratio: 4 / 3; border-radius: 4px 4px 32px 4px; }
  .night-intro .sub { margin-top: 20px; }
  .main-story { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .upcoming-events { padding: 28px 0 36px; }
  .event-card { padding: 20px; }
  .wizard-progress { gap: 10px 14px; }
  .wizard-progress-step { font-size: 11px; }
  .site-footer { display: block; }
  .site-footer .footer-links { justify-content: flex-start; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.primary:disabled, .primary:disabled:hover { color: var(--muted); background: var(--paper-soft); border-color: var(--line); box-shadow: none; }
.account-chip.active { box-shadow: none; }

.main-carousel-slide img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }

/* Careers lives inside Contact; descriptions expand without a separate page. */
.careers-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.careers-heading { max-width: 60ch; margin-bottom: 28px; }
.careers-heading h2 { margin: 12px 0; }
.careers-openings { display: grid; gap: 20px; }
.career-opening { min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--night); }
.career-meta { font-size: 12px; font-variant-numeric: tabular-nums; }
.career-opening h3 { font-size: clamp(23px, 3vw, 30px); line-height: 1.2; margin: 16px 0; }
.career-excerpt { max-width: 65ch; }
.career-details { margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.career-details summary { padding: 18px 0; cursor: pointer; color: var(--accent); font-weight: 600; line-height: 1.5; }
.career-details summary:hover { color: var(--text); }
.career-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.career-description { max-width: 70ch; padding-bottom: 24px; overflow-wrap: anywhere; }
.career-description h4 { font-size: 18px; color: var(--text); margin: 32px 0 12px; }
.career-description h4:first-child { margin-top: 8px; }
.career-description ul, .career-description ol { padding-left: 22px; line-height: 1.7; color: var(--muted); }
.career-description li + li { margin-top: 8px; }
.career-description a { color: var(--accent); text-underline-offset: 4px; }
.career-apply { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 12px 18px; border-radius: 7px; background: var(--accent); color: #181c14; font-size: 14px; font-weight: 600; text-decoration: none; }
.career-apply:hover { background: #e2cca0; }
.career-apply:active { transform: translateY(1px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .careers-section { margin-top: 32px; padding-top: 24px; }
  .career-apply { width: 100%; }
}

.career-opening { scroll-margin-top: 24px; }
.career-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 16px; color: var(--accent); text-underline-offset: 4px; font-size: 13px; }
@media (max-width: 520px) { .career-link { margin: 8px 0 0; } }

.night-intro h1[lang="ru"] { font-size: clamp(20px, 3.1vw, 40px); line-height: 1.2; }
.night-intro h1[lang="ru"] span { display: block; white-space: nowrap; }
@media (max-width: 760px) { .night-intro h1[lang="ru"] { font-size: clamp(20px, 5.4vw, 40px); } }

.payment-amount {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.payment-no-note {
  color: var(--danger);
  font-weight: 700;
  margin: 0 0 14px;
}

.booking-currency {
  margin: 0 0 12px;
}

.booking-currency select {
  min-width: 140px;
}

.admin-currency-prices {
  margin: 8px 0 4px;
}

.admin-currency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #ddd);
}

.admin-currency-row label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  gap: 2px;
}

.admin-currency-row .admin-currency-value {
  width: 90px;
  text-transform: uppercase;
}

.admin-currency-row .admin-currency-grid-value {
  width: 90px;
}

.admin-currency-row .admin-currency-remove {
  flex: 0 0 auto;
}
