/* ═══════════════════════════════════════════════
   TICKET APP — CSS COMPLETO
   ─────────────────────────────────────────────── */

:root {
  --primary:    #e8000d;
  --primary-dk: #b5000a;
  --primary-lt: #ff3344;
  --bg:         #f4f5f7;
  --bg-white:   #ffffff;
  --text:       #1a1a2e;
  --text-2:     #555770;
  --border:     #e0e2ea;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --radius:     12px;
  --header-h:   68px;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ── HEADER ── */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: var(--header-h);
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex-shrink: 0;
}

.logo-icon { font-size: 26px; }

.logo-text {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: .04em;
  color: #fff;
}

.logo-text strong { color: #ffe066; }

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 40px;
  padding: 0 6px 0 16px;
  max-width: 480px;
  transition: background .2s;
}

.search-bar:focus-within {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
}

.search-icon { color: rgba(255,255,255,.7); font-size: 16px; }

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 10px 8px;
}

.search-bar input::placeholder { color: rgba(255,255,255,.6); }

.search-bar button {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s;
}

.search-bar button:hover { background: rgba(255,255,255,.35); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}

.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.15); }

.auth-btns { display: flex; gap: 8px; }

.btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary:hover { background: #ffe066; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.cart-btn {
  position: relative;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}

.cart-btn:hover { background: rgba(255,255,255,.28); }

.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: #ffe066;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.user-menu { position: relative; }

.user-avatar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
}

.user-avatar:hover { background: rgba(255,255,255,.3); }

.user-avatar span:first-child {
  background: #ffe066;
  color: var(--primary);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 500;
}

.user-dropdown a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s;
}

.user-dropdown a:hover { background: var(--bg); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); }

.hamburger {
  display: none;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  background: var(--primary-dk);
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-search input {
  flex: 1;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
}

.mobile-search button {
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

/* ── CAROUSEL ── */
.carousel-section { background: #111; }

.carousel {
  position: relative;
  overflow: hidden;
  height: 420px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
}

.carousel-slide-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 40px;
  color: #fff;
}

.carousel-slide-info h2 {
  font-family: var(--font-head);
  font-size: 42px;
  letter-spacing: .03em;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.carousel-slide-info p {
  font-size: 15px;
  opacity: .85;
}

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 10;
}

.carousel-btn:hover { background: rgba(0,0,0,.7); border-color: #fff; }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}

.carousel-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ── SECTIONS ── */
.section { padding: 48px 0; }
.section-alt { background: #eceef2; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  letter-spacing: .04em;
  color: var(--text);
}

.filters select {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* ── EVENTS GRID ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8000d22, #1a1a2e22);
}

.event-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.event-card-body { padding: 14px 16px 16px; }

.event-card-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.event-card-venue {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-card-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

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

.price-from { font-size: 11px; color: var(--text-2); }

.price-value {
  font-weight: 900;
  font-size: 16px;
  color: var(--primary);
}

.price-free {
  font-weight: 900;
  font-size: 14px;
  color: #22c55e;
}

.btn-buy {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 10px;
}

.btn-buy:hover { background: var(--primary-dk); }

/* ── SKELETON ── */
.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.skeleton-card::before {
  content: '';
  display: block;
  height: 200px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-card::after {
  content: '';
  display: block;
  height: 100px;
  background: #f4f4f4;
  margin: 14px 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite .2s;
}

.skeleton-line {
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 12px;
  width: 100%;
}

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

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: all .2s;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── EVENT PAGE ── */
.event-hero {
  height: 360px;
  position: relative;
  background: #111;
  overflow: hidden;
}

.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
}

.event-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.event-hero-content h1 {
  font-family: var(--font-head);
  font-size: 52px;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.event-hero-content .badge-date {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
}

.event-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 60px;
  align-items: start;
}

.event-info-card,
.event-description-card,
.event-map-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.event-info-card h2 {
  font-family: var(--font-head);
  font-size: 32px;
  margin-bottom: 16px;
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.event-meta-row:last-child { border-bottom: none; }
.event-meta-row .icon { font-size: 20px; width: 28px; text-align: center; }

.event-description-card h3 { font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.event-description-card p  { font-size: 15px; color: var(--text-2); line-height: 1.7; }

.event-map-card h3 { font-weight: 800; font-size: 18px; margin-bottom: 14px; }

/* ── TICKET BOX ── */
.ticket-box, .products-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.ticket-box-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.ticket-item:last-child { border-bottom: none; }

.ticket-item-info h4 {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.ticket-item-info p {
  font-size: 12px;
  color: var(--text-2);
}

.ticket-item-right { text-align: right; }

.ticket-price {
  font-weight: 900;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
}

.ticket-available {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: none;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  transition: all .2s;
}

.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-num { font-weight: 900; font-size: 16px; min-width: 20px; text-align: center; }

.sold-out-badge {
  background: #e0e2ea;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 18px;
}

.add-to-cart-btn:hover { background: var(--primary-dk); transform: translateY(-2px); }
.add-to-cart-btn:disabled { background: #ccc; cursor: default; transform: none; }

/* ── MODAIS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s;
}

.modal-large { max-width: 600px; }

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

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}

.modal-close:hover { background: var(--border); }

.modal-header {
  margin-bottom: 24px;
}

.modal-header h2 { font-weight: 900; font-size: 22px; }
.modal-header p  { color: var(--text-2); font-size: 14px; margin-top: 4px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--text); }

.form-group input, .form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  color: var(--text);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 16px;
}

.form-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 14px;
}

.modal-switch { text-align: center; font-size: 13px; margin-top: 16px; color: var(--text-2); }
.modal-switch a { color: var(--primary); font-weight: 700; }

/* ── CART ── */
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-2);
}

.cart-empty .icon { font-size: 52px; margin-bottom: 12px; }
.cart-empty p { font-size: 15px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-weight: 800; font-size: 14px; }
.cart-item-info p  { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.cart-item-price {
  font-weight: 900;
  font-size: 16px;
  color: var(--primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: color .2s;
}

.cart-item-remove:hover { color: var(--primary); }

.cart-footer {
  padding-top: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 2px solid var(--border);
  margin-bottom: 16px;
}

.cart-total-label { font-weight: 700; font-size: 16px; }
.cart-total-value { font-weight: 900; font-size: 22px; color: var(--primary); }

/* ── CHECKOUT ── */
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}

.checkout-step {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 3px solid var(--border);
  transition: all .2s;
}

.checkout-step.active { color: var(--primary); border-color: var(--primary); }
.checkout-step.done   { color: #22c55e; border-color: #22c55e; }

.checkout-summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.checkout-summary h4 { font-weight: 800; margin-bottom: 10px; }

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--text-2);
}

.checkout-row.total {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  font-weight: 700;
}

.payment-method:hover { border-color: var(--primary); }
.payment-method.selected { border-color: var(--primary); background: #fff0f0; color: var(--primary); }
.payment-method .pm-icon { font-size: 28px; margin-bottom: 6px; }
.payment-method .pm-name { font-size: 13px; }

/* ── TICKETS PAGE ── */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 40px 24px;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: 42px;
  letter-spacing: .04em;
}

.page-hero p { font-size: 15px; opacity: .85; margin-top: 6px; }

.ticket-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  margin-bottom: 16px;
  transition: transform .2s;
}

.ticket-card:hover { transform: translateY(-2px); }

.ticket-card-accent {
  width: 8px;
  background: var(--primary);
  flex-shrink: 0;
}

.ticket-card-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticket-card-info h3 { font-weight: 900; font-size: 17px; margin-bottom: 6px; }
.ticket-card-info p  { font-size: 13px; color: var(--text-2); margin-bottom: 3px; }

.ticket-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.status-active   { background: #dcfce7; color: #16a34a; }
.status-used     { background: #f0f0f0; color: #888; }
.status-cancelled{ background: #fee2e2; color: var(--primary); }

.ticket-code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .1em;
}

.btn-qr {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.btn-qr:hover { background: var(--primary-dk); }

/* ── QR CODE MODAL ── */
.qr-ticket-info {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.qr-ticket-info h3 { font-weight: 900; margin-bottom: 6px; }
.qr-ticket-info p  { font-size: 13px; color: var(--text-2); }

.qr-code-img {
  width: 220px;
  height: 220px;
  border: 4px solid var(--primary);
  border-radius: 12px;
  margin: 0 auto 16px;
  display: block;
}

.qr-code-text {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: toastIn .3s;
  white-space: nowrap;
}

.toast.success { background: #16a34a; }
.toast.error   { background: var(--primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── LOADING ── */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3    { font-weight: 900; font-size: 20px; margin-bottom: 8px; color: var(--text); }
.empty-state p     { font-size: 15px; }

/* ── FOOTER ── */
footer {
  background: #1a1a2e;
  color: #fff;
  padding: 48px 24px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-links h4 {
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  color: rgba(255,255,255,.9);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.payment-icons { display: flex; gap: 10px; font-size: 22px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .event-layout { grid-template-columns: 1fr; }
  .ticket-box   { position: static; }
}

@media (max-width: 768px) {
  .search-bar { display: none; }
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .carousel   { height: 260px; }
  .carousel-slide-info h2 { font-size: 28px; }
  .carousel-slide-info { padding: 20px; }
  .events-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .event-card-img, .event-card-img-placeholder { height: 160px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .event-hero-content h1 { font-size: 32px; }
  .payment-methods { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .event-card-img, .event-card-img-placeholder { height: 140px; }
}

/* ══════════════════════════════════════════════
   GRUPOS DE INGRESSOS — Seleção em 2 etapas
   ══════════════════════════════════════════════ */

/* Cabeçalho da etapa com botão voltar */
.ticket-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
}

.ticket-back-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticket-back-btn:hover { background: #fff0f0; border-color: var(--primary); }

/* Label de seção dentro da box */
.ticket-group-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted, #64748b);
  margin: 14px 0 8px;
}

/* ── Linha de grupo (etapa 1) ── */
.ticket-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
}

.ticket-group-row:last-child { border-bottom: none; }
.ticket-group-row:hover { background: #fff5f5; }

.ticket-group-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ticket-group-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.ticket-group-date {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.ticket-group-price {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

.ticket-group-arrow {
  color: var(--text-2);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Linha de tipo de ingresso (etapa 2) ── */
.ticket-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.ticket-type-row:last-of-type { border-bottom: none; }
.ticket-type-row.sold-out { opacity: .6; }

.ticket-type-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ticket-type-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.ticket-type-desc {
  font-size: 12px;
  color: var(--text-2);
}

.ticket-type-avail {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}

.ticket-type-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
