:root {
  --navy: #06264f;
  --navy-2: #021936;
  --orange: #ff7a00;
  --orange-2: #ff4f00;
  --green: #13a538;
  --red: #e52525;
  --text: #0d2143;
  --muted: #68758d;
  --line: #dfe5ef;
  --soft: #f5f8fc;
  --white: #fff;
  --shadow: 0 16px 40px rgba(10, 36, 78, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7faff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }

.topbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 20px;
  color: #dcecff;
  background: var(--navy-2);
  font-size: 13px;
}
.topbar a { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px clamp(20px, 6vw, 76px);
  color: #fff;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-weight: 900;
  letter-spacing: .04em;
}
.brand small { display: block; color: #c8d9f2; font-weight: 600; }
.site-header nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}
.site-header nav a { padding: 8px 0; color: #dce8fb; border-bottom: 3px solid transparent; }
.site-header nav a.active, .site-header nav a:hover { color: #fff; border-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.primary-btn, .ghost-btn, .danger-btn, .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: .18s ease;
}
.primary-btn { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 10px 20px rgba(255, 105, 0, .26); }
.primary-btn:hover { transform: translateY(-1px); }
.ghost-btn { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.danger-btn { color: #fff; background: var(--red); }
.whatsapp-btn { color: #fff; background: #16b840; }
.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.xs { min-height: 30px; padding: 0 10px; font-size: 12px; }

main { min-height: 60vh; }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 540px);
  gap: 34px;
  padding: 62px clamp(20px, 6vw, 76px) 96px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 122, 0, .35), transparent 26%),
    linear-gradient(135deg, #071d3a, #0b3e79 58%, #f46c00 140%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% 38%;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transform: rotate(-8deg);
}
.hero-content, .hero-media { position: relative; z-index: 1; }
.hero-kicker { color: #ffbd73; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 {
  max-width: 680px;
  margin: 10px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
}
.hero h1 span { color: var(--orange); }
.hero p { max-width: 620px; color: #e8f2ff; font-size: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.badge {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 800;
}
.promo-row { display: flex; gap: 16px; flex-wrap: wrap; }
.promo-card {
  min-width: 155px;
  padding: 16px;
  border-radius: 14px;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
}
.promo-card strong { display: block; color: var(--orange-2); font-size: 28px; }
.hero-media {
  align-self: center;
  border: 8px solid rgba(255, 255, 255, .62);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 58% 22%; }

.search-panel {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: -52px auto 30px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-panel h2 { margin: 0 0 16px; }
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
}
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.field input, .field select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }

.section, .page-title, .content-grid, .form-card, .ticket, .account-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2, .page-title h1 { margin: 0; color: var(--navy); }
.section-head p, .page-title span, .muted { color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card, .schedule-card, .form-card, .ticket, .admin-card, .article-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 36, 78, .08);
}
.info-card, .article-card { padding: 20px; }
.info-card h3, .article-card h3 { margin-top: 0; color: var(--navy); }
.schedule-list { display: grid; gap: 14px; }
.schedule-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}
.time { color: var(--navy); font-size: 30px; }
.seat-left { display: block; color: var(--green); font-weight: 900; }
.content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.price-table, table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--navy); background: #f1f5fb; }

.seat-map {
  display: grid;
  grid-template-columns: repeat(4, 74px);
  gap: 12px;
  margin: 18px 0;
}
.seat input { display: none; }
.seat span {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 900;
}
.seat input:checked + span { color: #fff; border-color: var(--orange); background: var(--orange); }
.seat.sold span { color: #fff; background: #9aa8ba; }
.seat.blocked span { color: #fff; background: var(--red); }
.seat.hold span { color: #fff; background: #f6b91a; }
.seat.sold, .seat.blocked, .seat.hold { pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 5px; border-radius: 4px; vertical-align: middle; }

.form-card { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.alert {
  padding: 14px 16px;
  border-radius: 12px;
  color: #664600;
  background: #fff2cc;
  border: 1px solid #ffd66e;
}
.success { color: #075c20; background: #ddf8e5; border-color: #9be4ae; }
.ticket h2 { margin-top: 0; }
.ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }

.cta-band {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}
.cta-band strong { display: block; font-size: 24px; }
.footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: 36px clamp(20px, 6vw, 76px);
  color: #dce8fb;
  background: var(--navy-2);
}
.footer h3, .footer h4 { color: #fff; }
.footer a { display: block; margin: 7px 0; }

.admin-body { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; background: #eef3fa; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  color: #dce8fb;
  background: var(--navy-2);
}
.admin-brand { margin-bottom: 18px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #dce8fb;
  font-weight: 700;
}
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.admin-main { padding: 24px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-top p { margin: 0; color: var(--muted); }
.admin-top h1 { margin: 4px 0 0; color: var(--navy); }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--navy), #0d4f92); }
.stat strong { display: block; font-size: 26px; }
.admin-card { padding: 20px; margin-bottom: 18px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.admin-card-head h2 { margin: 0; }
.admin-card-head p { margin: 4px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.inline-form form { display: grid; grid-template-columns: 1fr 1fr 170px auto; gap: 12px; }

@media (max-width: 980px) {
  .topbar, .header-actions { display: none; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding-bottom: 82px; }
  .search-grid, .cards-grid, .content-grid, .footer, .admin-stats { grid-template-columns: 1fr; }
  .schedule-card { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form form, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 42px; }
  .search-panel { margin-left: 12px; margin-right: 12px; }
  .seat-map { grid-template-columns: repeat(2, 1fr); }
  .cta-band { align-items: stretch; flex-direction: column; border-radius: 0; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
}
