/* Customer site — dark navy/black, gold accent, large touch targets, minimal motion. */

:root {
  --bg: #0b0e14;
  --surface: #131826;
  --surface-2: #1b2233;
  --border: #2a3244;
  --text: #f2f1ed;
  --muted: #9aa3b5;
  --gold: #d4af37;
  --gold-ink: #1a1608;
  --red: #c23b32;
  --whatsapp: #25d366;
  --viber: #7360f2;
  --focus: #d4af37;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.site-title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

main { max-width: 640px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }

.muted { color: var(--muted); }

/* ---- States ---- */
.state-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.state-error p { color: var(--text); }
.spinner {
  width: 2rem; height: 2rem;
  border: 3px solid var(--surface-2);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--gold-ink); width: 100%; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-large { width: 100%; font-size: 1.05rem; }
.btn-whatsapp { background: var(--whatsapp); color: #06210f; width: 100%; margin-bottom: 0.6rem; }
.btn-viber { background: var(--viber); color: #ffffff; width: 100%; }
.btn-link {
  background: none; border: none; color: var(--gold);
  font-size: 0.95rem; padding: 0.5rem 0; cursor: pointer;
}
.btn-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 0.5rem;
}
.btn-chip.copied { border-color: var(--gold); color: var(--gold); }

/* ---- Movie grid ---- */
.movie-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .movie-grid { grid-template-columns: 1fr 1fr; }
}

.movie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.movie-card button.movie-card-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; height: 100%;
  font: inherit;
}
.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.movie-info { padding: 0.85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.movie-info h3 { margin: 0; font-size: 1.05rem; }
.movie-meta { font-size: 0.88rem; color: var(--muted); }
.movie-price { font-weight: 700; color: var(--gold); margin-top: auto; padding-top: 0.5rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  margin-top: 0.35rem;
}
.badge-low { background: rgba(194, 59, 50, 0.18); color: #ff8c80; }
.badge-soldout { background: rgba(154, 163, 181, 0.18); color: var(--muted); }

/* ---- Booking view ---- */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.75rem;
}
.booking-poster {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.booking-details { padding: 1.25rem; }
.booking-details h3 { margin: 0 0 0.25rem; font-size: 1.3rem; }

.field { margin-bottom: 1.1rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
input[type="text"], input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
}
.field-error { color: #ff8c80; font-weight: 600; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
}
.stepper-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}
.stepper-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#ticketCount { font-size: 1.2rem; font-weight: 700; min-width: 1.5rem; text-align: center; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.total-row strong { color: var(--gold); font-size: 1.4rem; }

/* ---- Confirmation view ---- */
.confirmation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.confirmation-check {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.confirmation-list, .pay-details {
  text-align: left;
  margin: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.confirmation-list div, .pay-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.confirmation-list dt, .pay-details dt { color: var(--muted); margin: 0; }
.confirmation-list dd, .pay-details dd { margin: 0; font-weight: 600; text-align: right; }

.pay-box { text-align: left; margin-top: 1.5rem; }
.pay-box h3 { margin-bottom: 0.25rem; }

.send-slip-actions { margin-top: 1.5rem; }
