:root {
  --rose-50: #fff5f8;
  --rose-100: #ffe4ec;
  --rose-300: #f6a8bd;
  --rose-500: #d94f77;
  --rose-700: #9f2f54;
  --cream: #fffaf6;
  --ink: #33242a;
  --muted: #78666d;
  --line: #efd5dd;
  --gold: #b98543;
  --green: #4e8b68;
  --shadow: 0 18px 50px rgba(159, 47, 84, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--rose-50), #fff 42%, var(--cream));
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(255, 250, 252, .86);
  border-bottom: 1px solid rgba(239, 213, 221, .8);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; box-shadow: 0 8px 22px rgba(217,79,119,.24); }
.brand span { font-family: "Playfair Display", serif; font-size: 28px; color: var(--rose-700); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-actions a, .ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.nav-actions a:hover, .ghost-button:hover { color: var(--rose-700); border-color: var(--line); background: #fff; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding: clamp(22px, 5vw, 62px) clamp(16px, 5vw, 72px) 28px;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-copy h1 {
  margin: 4px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(64px, 13vw, 150px);
  line-height: .84;
  color: var(--rose-700);
}
.hero-copy p { max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.eyebrow { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
.hero-actions, .modal-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.primary-button, .secondary-button {
  border: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}
.primary-button { background: var(--rose-500); color: #fff; box-shadow: 0 12px 24px rgba(217,79,119,.22); }
.primary-button:hover { background: var(--rose-700); transform: translateY(-1px); }
.secondary-button { background: #fff; color: var(--rose-700); border: 1px solid var(--line); }

.trust-strip, .catalog-section, .ticket-lookup {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto clamp(34px, 6vw, 76px);
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.trust-strip article { background: rgba(255,255,255,.88); padding: 18px; }
.trust-strip strong { display: block; margin-bottom: 5px; }
.trust-strip span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.section-head, .toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}
.chip.active { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.toolbar { align-items: center; margin-bottom: 22px; }
.search-box, .select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.search-box { flex: 1; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose-500); box-shadow: 0 0 0 4px rgba(217,79,119,.12); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(159,47,84,.1);
  animation: rise .35s ease both;
}
.product-card img { width: 100%; height: 240px; object-fit: cover; }
.product-body { padding: 16px; display: grid; gap: 10px; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { width: fit-content; border-radius: 999px; padding: 6px 9px; background: var(--rose-100); color: var(--rose-700); font-size: 12px; font-weight: 900; }
.product-body h3 { margin: 0; font-size: 21px; }
.product-body p { margin: 0; color: var(--muted); line-height: 1.55; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { color: var(--rose-700); font-size: 24px; font-weight: 900; }

.ticket-lookup {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 22px;
  align-items: start;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.lookup-form { display: grid; gap: 10px; }
.ticket-result { grid-column: 1 / -1; }

.modal-backdrop, .admin-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(51, 36, 42, .42);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade .2s ease both;
}
.modal, .admin-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.panel-modal { display: grid; grid-template-columns: minmax(260px, .85fr) 1fr; position: relative; }
.modal-product { background: var(--rose-50); min-height: 100%; }
.modal-product img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.order-form { padding: 24px; display: grid; gap: 14px; }
.form-grid, .product-form, .settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.full-field { grid-column: 1 / -1; }
.map-preview { display: none; }
.location-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.location-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.location-tools strong,
.location-tools span {
  display: block;
}
.location-tools span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.precision-map {
  position: relative;
  overflow: hidden;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rose-50);
  touch-action: none;
  user-select: none;
}
.map-tiles,
.map-tile {
  position: absolute;
}
.map-tile {
  width: 256px;
  height: 256px;
  background: #f8edf1;
}
.map-pin {
  position: absolute;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--rose-500);
  box-shadow: 0 10px 24px rgba(159, 47, 84, .35);
  transform: translate(-50%, -100%) rotate(-45deg);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}
.map-pin:focus-visible {
  outline: 4px solid rgba(217,79,119,.22);
}
.pay-panel { border: 1px dashed var(--rose-300); background: var(--rose-50); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.pay-panel img { width: 160px; border-radius: 8px; border: 1px solid var(--line); }
.icon-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--rose-700);
  font-weight: 900;
}
.panel-modal > .icon-close { position: absolute; top: 12px; right: 12px; z-index: 2; }

.admin-shell { place-items: stretch end; padding: 0; background: rgba(51,36,42,.34); }
.admin-panel { width: min(1120px, 96vw); height: 100vh; max-height: none; border-radius: 8px 0 0 8px; padding: 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.login-box { display: grid; gap: 12px; max-width: 360px; margin: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stats-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--rose-50); }
.stats-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stats-grid strong { display: block; margin-top: 6px; font-size: 24px; color: var(--rose-700); }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 12px; font-weight: 900; border-bottom: 3px solid transparent; }
.tab.active { color: var(--rose-700); border-color: var(--rose-500); }
.admin-section { display: grid; gap: 18px; }
.admin-list { display: grid; gap: 10px; }
.admin-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.admin-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tiny-button { border: 1px solid var(--line); background: #fff; color: var(--rose-700); border-radius: 8px; padding: 9px 10px; font-weight: 800; }
.tiny-button.danger { color: #a32828; }
.status-pending { color: var(--gold); font-weight: 900; }
.status-confirmed { color: var(--green); font-weight: 900; }
.status-cancelled { color: #a32828; font-weight: 900; }

.ticket-card {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(159,47,84,.12);
}
.ticket-brand { display: flex; gap: 10px; align-items: center; font-size: 24px; color: var(--rose-700); font-family: "Playfair Display", serif; }
.ticket-brand img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.ticket-code { font-size: 26px; font-weight: 900; margin: 14px 0 4px; }
.ticket-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; }
.ticket-card dt { color: var(--muted); font-weight: 800; }
.ticket-card dd { margin: 0; }
.ticket-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0;
  margin: 18px 0;
}
.ticket-timeline li {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.ticket-timeline span {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.ticket-timeline li.active span {
  background: var(--rose-500);
}
.ticket-timeline li.current strong {
  color: var(--rose-700);
}
.map-link {
  color: var(--rose-700);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hidden { display: none !important; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.page-view,
.admin-page {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 76px;
}
.admin-page .admin-panel {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 8px;
}
.cart-summary {
  padding: 20px;
  display: grid;
  gap: 12px;
}
.cart-summary h3 {
  margin: 0;
  font-size: 26px;
}
.cart-summary article {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.cart-summary img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-summary span,
.cart-total {
  color: var(--rose-700);
  font-weight: 900;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero, .panel-modal, .ticket-lookup { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .trust-strip, .stats-grid, .product-grid { grid-template-columns: 1fr; }
  .section-head, .toolbar { align-items: stretch; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .modal-product img { min-height: 260px; }
  .admin-item { grid-template-columns: 58px 1fr; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav-actions { justify-content: flex-start; }
  .form-grid, .product-form, .settings-form { grid-template-columns: 1fr; }
  .location-tools { align-items: stretch; flex-direction: column; }
  .precision-map { height: 220px; }
  .hero-copy h1 { font-size: 76px; }
  .ticket-card dl { grid-template-columns: 1fr; }
}
