@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --background: #f4f5fa;
  --foreground: #1e2235;
  --primary: #5b5fc7;
  --primary-hover: #4a4eb5;
  --primary-fg: #ffffff;
  --accent: #e8913a;
  --secondary: #eceef6;
  --muted: #6b7089;
  --border: #dde1ef;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-light: #f0f2f8;
  --radius: 0.875rem;
  --shadow: 0 4px 20px rgba(30, 34, 53, 0.06);
  --shadow-lg: 0 12px 40px rgba(30, 34, 53, 0.1);
  --primary-soft: rgba(91, 95, 199, 0.1);
}

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

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, .font-display { font-family: "Space Grotesk", sans-serif; }

a { color: inherit; text-decoration: none; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 4rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.125rem;
}

.logo-icon {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--primary);
}

nav { display: flex; gap: 2rem; font-size: 0.875rem; color: var(--muted); }
nav a:hover { color: var(--foreground); }

/* ── Marketplace header ── */
.market-header {
  background: var(--card);
  box-shadow: var(--shadow);
}

.market-header-top {
  display: flex; align-items: center; gap: 1.25rem;
  height: 4.5rem;
}

.logo-market { flex-shrink: 0; }

.logo-ticket {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 0.625rem;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(91, 95, 199, 0.35);
}

.logo-text { font-size: 1.2rem; font-weight: 700; margin-left: 0.625rem; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }

.search-bar {
  flex: 1; max-width: 34rem;
  display: flex; align-items: stretch;
  background: var(--surface-light);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1; border: none; background: transparent;
  font-family: inherit; font-size: 0.9375rem; color: var(--foreground);
  outline: none; padding: 0.625rem 1rem;
}
.search-bar input::placeholder { color: var(--muted); }
.search-submit {
  padding: 0 1.125rem;
  border: none; background: var(--primary); color: #fff;
  font-family: inherit; font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.search-submit:hover { background: var(--primary-hover); }

.header-link {
  font-size: 0.875rem; color: var(--muted); font-weight: 500;
  white-space: nowrap; padding: 0.375rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.header-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

.category-nav {
  background: var(--surface-light);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.category-nav-inner {
  display: flex; gap: 0.125rem;
  padding: 0;
  white-space: nowrap;
}
.category-tab {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.category-tab:hover { color: var(--primary); background: var(--primary-soft); }
.category-tab-icon { font-size: 1rem; line-height: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--secondary); }

.btn-lg { padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; border-radius: var(--radius); }
.btn-buy { border-radius: var(--radius); padding: 0.625rem 1.375rem; font-weight: 600; }

/* ── Carousel ── */
.market-main { padding-bottom: 3rem; }

.carousel-section { padding: 1.5rem 0 0.5rem; }

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide { flex: 0 0 100%; min-width: 100%; }

.carousel-card {
  position: relative;
  height: 20rem;
  background-size: cover;
  background-position: center top;
  border-radius: 1.25rem;
  overflow: hidden;
}

.carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(30,34,53,0.88) 0%, rgba(30,34,53,0.35) 45%, transparent 100%);
}

.carousel-content {
  position: absolute; bottom: 0; left: 0;
  padding: 2rem 2.5rem;
  max-width: 28rem;
  color: #fff;
  z-index: 1;
}

.carousel-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 0.2rem 0.625rem; border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.carousel-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 0.5rem;
}

.carousel-sub { font-size: 0.9375rem; opacity: 0.85; margin-bottom: 1.25rem; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9);
  color: var(--foreground);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer; z-index: 2;
  box-shadow: var(--shadow);
  transition: background 0.15s;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%; border: none;
  background: var(--border); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); }

/* ── Date strip ── */
.date-strip-section { padding: 1.25rem 0 0.5rem; }

.date-strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.875rem;
}
.date-strip-title {
  font-size: 1.125rem; font-weight: 700; color: var(--foreground);
}

.date-month {
  font-weight: 500; font-size: 0.875rem; color: var(--muted);
  text-transform: capitalize;
}

.date-strip {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.25rem 0;
}

.date-scroll {
  display: flex; gap: 0.5rem;
  overflow-x: auto; flex: 1;
  padding: 0.25rem 0;
}

.date-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.75rem;
  border: 2px solid var(--border); background: var(--card);
  border-radius: var(--radius); cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.date-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.date-num { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.date-dow { font-size: 0.625rem; color: var(--muted); margin-top: 0.125rem; }
.date-all {
  width: auto; min-width: 5.5rem; height: 3.75rem;
  font-size: 0.75rem; font-weight: 600; padding: 0 0.75rem;
}
.date-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.date-active .date-num { color: var(--primary); }
.date-active .date-dow { color: var(--primary); }
.date-item.is-today:not(.date-active) { border-color: var(--accent); }
.date-item.is-today:not(.date-active) .date-num { color: var(--accent); }

.date-picker-wrap { position: relative; flex-shrink: 0; }
.calendar-picker-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
  border: none; padding: 0;
}

.date-calendar-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 3.75rem; padding: 0 1rem;
  border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--card); cursor: pointer;
  font-family: inherit; font-size: 0.8125rem; font-weight: 600;
  color: var(--foreground); transition: border-color 0.15s;
}
.date-calendar-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hits section ── */
.hits-section { padding: 2rem 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}

.hits-title { font-size: 1.5rem; font-weight: 700; }
.hits-more { font-size: 0.875rem; color: var(--primary); font-weight: 500; }
.hits-more:hover { text-decoration: underline; }

.hits-scroll {
  display: flex; gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.hit-card {
  flex: 0 0 11rem;
  scroll-snap-align: start;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.hit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.hit-img {
  height: 9rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hit-tag {
  position: absolute; top: 0.5rem; left: 0.5rem;
  font-size: 0.6875rem; font-weight: 600;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 0.15rem 0.5rem; border-radius: 9999px;
}

.hit-info { padding: 0.75rem; }
.hit-name {
  font-size: 0.8125rem; font-weight: 600;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hit-meta { font-size: 0.6875rem; color: var(--muted); margin-top: 0.25rem; }
.hit-price { font-size: 0.8125rem; color: var(--primary); font-weight: 600; margin-top: 0.375rem; }

/* ── Promo grid ── */
.promo-grid-section { padding: 1rem 0 2rem; }

.promo-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.promo-card {
  position: relative;
  height: 10rem;
  border-radius: 0.875rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.2s;
}
.promo-card:hover { transform: scale(1.02); }

.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.promo-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem; color: #fff;
}
.promo-text strong { display: block; font-size: 0.9375rem; margin-top: 0.25rem; }
.promo-tag {
  font-size: 0.6875rem; font-weight: 600;
  background: var(--primary); padding: 0.1rem 0.5rem;
  border-radius: 9999px;
}

/* ── Event grid ── */
.events-grid-section { padding: 1rem 0 3rem; }

.events-grid-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.events-grid-title { font-size: 1.25rem; font-weight: 700; }
.events-grid-count { font-size: 0.8125rem; color: var(--muted); }

.event-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .event-grid { grid-template-columns: repeat(4, 1fr); } }

.event-grid-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.event-grid-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.event-grid-img-wrap { position: relative; }
.event-grid-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-light);
}
.event-badge {
  position: absolute; top: 0.5rem; right: 0.5rem;
  padding: 0.2rem 0.5rem; border-radius: 0.375rem;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; z-index: 1;
}
.event-badge-premiere {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; top: 0.5rem; left: 0.5rem; right: auto;
}
.event-badge-discount {
  background: rgba(91, 95, 199, 0.95); color: white;
}
.event-grid-cat {
  position: absolute; top: 0.625rem; left: 0.625rem;
  font-size: 0.6875rem; font-weight: 600;
  background: var(--card); color: var(--primary);
  padding: 0.2rem 0.5rem; border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.event-grid-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.event-grid-title {
  font-size: 0.9375rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-grid-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.event-grid-date, .event-grid-venue {
  font-size: 0.75rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-grid-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.event-grid-price { font-size: 0.9375rem; font-weight: 700; color: var(--foreground); }
.event-grid-cta { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.event-grid-card:hover .event-grid-cta { color: var(--accent); }

.events-empty {
  text-align: center; color: var(--muted);
  padding: 3rem 1rem; font-size: 0.9375rem;
}

/* ── Cards & sections ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card:hover { border-color: rgba(91, 95, 199, 0.3); transform: translateY(-2px); transition: all 0.2s; }

.section { padding: 5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }

.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.feature-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: rgba(91, 95, 199, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.feature h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature p { font-size: 0.875rem; color: var(--muted); }

.event-card-img {
  width: 100%; height: 10rem;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.event-price { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.event-meta { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.event-tag {
  font-size: 0.75rem; padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── Footer ── */
footer, .market-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--card);
}

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-links { margin-top: 1rem; list-style: none; }
.footer-links li { margin-bottom: 0.375rem; }
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem; text-align: center;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit; font-size: 0.9375rem;
}
.form-group textarea { min-height: 6rem; resize: vertical; }

.page-header { padding: 3rem 0 2rem; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page-header p { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }

.header-nav { display: none; gap: 1.5rem; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 768px) { .header-nav { display: flex; } .hide-mobile { display: flex !important; } }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.user-badge { font-size: 0.8125rem; color: var(--muted); padding: 0 0.5rem; }
.user-badge-link {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(91, 95, 199, 0.08);
  border: 1px solid rgba(91, 95, 199, 0.2);
  color: var(--primary);
  font-weight: 500;
  transition: background 0.2s;
}
.user-badge-link:hover { background: rgba(91, 95, 199, 0.15); }

.profile-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .profile-layout { grid-template-columns: 280px 1fr; } }
.profile-card { text-align: center; padding: 2rem 1.5rem; position: sticky; top: 5rem; }
.profile-avatar {
  width: 5rem; height: 5rem; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem; font-weight: 700;
}
.profile-name { font-size: 1.375rem; margin-bottom: 0.25rem; text-transform: capitalize; }
.profile-email { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.profile-meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 1.5rem; }
.profile-actions { margin-top: 0.5rem; }
.profile-ticket-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.profile-ticket-row:last-child { border-bottom: none; padding-bottom: 0; }
.profile-ticket-row:first-child { padding-top: 0; }

.btn-active {
  border-color: var(--primary) !important;
  background: rgba(91, 95, 199, 0.08) !important;
  color: var(--primary) !important;
}

.rating-select { display: flex; flex-direction: column; gap: 0.5rem; }
.rating-option {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.875rem; border-radius: 0.5rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rating-option:hover { border-color: rgba(91, 95, 199, 0.4); background: rgba(91, 95, 199, 0.04); }
.rating-option input { display: none; }
.rating-option:has(input:checked) { border-color: var(--primary); background: rgba(91, 95, 199, 0.08); }
.rating-stars { font-size: 0.875rem; }
.rating-num { font-size: 0.8125rem; color: var(--muted); margin-left: auto; }

.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item {
  padding: 1rem; border-radius: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-stars { font-size: 0.875rem; }
.review-date { font-size: 0.75rem; color: var(--muted); }
.review-text { font-size: 0.9375rem; line-height: 1.6; }
.review-stars-inline { font-size: 0.8125rem; white-space: nowrap; }

.link { color: var(--primary); text-decoration: underline; }
.back-link { color: var(--muted); font-size: 0.875rem; }
.back-link:hover { color: var(--foreground); }

.flash-container { padding-top: 1rem; }
.flash {
  padding: 0.875rem 1.25rem; border-radius: 0.5rem; margin-bottom: 0.5rem;
  font-size: 0.9375rem; border: 1px solid var(--border);
}
.flash-success { background: rgba(91, 95, 199, 0.08); border-color: rgba(91, 95, 199, 0.25); color: var(--primary); }
.flash-error { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.25); color: #dc2626; }
.flash-warning { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: #b45309; }
.flash-info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.2); color: #0284c7; }

.auth-page { display: flex; justify-content: center; padding: 3rem 1.5rem 5rem; }
.auth-card { width: 100%; max-width: 28rem; padding: 2rem; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.auth-hint { margin-top: 1.25rem; padding: 0.75rem; border-radius: 0.5rem; background: var(--surface); border: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted); }

.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(3, 1fr); } }
.form-hint { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; }

.payment-options { display: flex; flex-direction: column; gap: 0.625rem; }
.payment-option {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem; border-radius: 0.625rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.payment-option:hover { border-color: rgba(91, 95, 199, 0.4); background: rgba(91, 95, 199, 0.04); }
.payment-option input { display: none; }
.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(91, 95, 199, 0.08); }
.payment-icon { font-size: 1.5rem; flex-shrink: 0; }
.payment-option strong { display: block; font-size: 0.9375rem; }
.payment-desc { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 0.125rem; }

.kaspi-hint {
  margin-top: 1rem; padding: 1.25rem; border-radius: 0.75rem;
  background: rgba(245, 0, 50, 0.04); border: 1px solid rgba(245, 0, 50, 0.15);
}
.kaspi-qr-box { text-align: center; }
.kaspi-qr-placeholder {
  display: inline-block; padding: 1.5rem 2rem; margin-bottom: 0.75rem;
  background: white; border-radius: 0.5rem; border: 2px dashed #f50032;
  font-family: monospace; font-size: 0.875rem; color: #64748b;
}
.kaspi-qr-box p { font-size: 0.875rem; color: var(--muted); }
.cash-hint {
  margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 0.5rem;
  background: rgba(91, 95, 199, 0.04); border: 1px solid rgba(91, 95, 199, 0.12);
}

.home-section { padding: 1.5rem 0 0.5rem; }
.home-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap;
}
.home-event-grid { margin-bottom: 0.5rem; }

.category-tab-highlight {
  background: rgba(91, 95, 199, 0.08);
  border-color: rgba(91, 95, 199, 0.2);
}

.discount-store {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .discount-store { grid-template-columns: repeat(3, 1fr); } }
.discount-store-compact { margin-bottom: 0; }
.discount-store-card {
  padding: 1.5rem; border-radius: 0.875rem;
  background: var(--card); border: 1px solid var(--border);
  text-align: center; transition: border-color 0.2s, box-shadow 0.2s;
}
.discount-store-card-link {
  text-decoration: none; color: inherit;
}
.discount-store-card-link:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(91, 95, 199, 0.12);
}
.discount-store-card h2, .discount-store-card h3 { font-size: 1.0625rem; margin: 0.5rem 0; }
.discount-store-icon { font-size: 2rem; }
.discount-store-percent {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  margin: 0.375rem 0;
}
.discount-store-card p {
  font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0.5rem 0;
}
.discount-store-rule {
  display: inline-block; margin-top: 0.5rem; padding: 0.25rem 0.625rem;
  border-radius: 9999px; font-size: 0.75rem;
  background: rgba(91, 95, 199, 0.08); color: var(--primary);
}

.discount-tag {
  display: inline-block; margin: 0.125rem 0.25rem 0.125rem 0;
  padding: 0.2rem 0.5rem; border-radius: 0.375rem; font-size: 0.75rem;
  background: rgba(91, 95, 199, 0.08); color: var(--primary);
}

.price-preview {
  margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 0.5rem;
  background: rgba(91, 95, 199, 0.06); border: 1px solid rgba(91, 95, 199, 0.15);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9375rem;
}
.price-preview strong { font-size: 1.125rem; color: var(--primary); }

/* ── Venue seat maps ── */
.venue-map { margin-bottom: 1.25rem; }
.venue-map-head { margin-bottom: 1rem; }
.venue-map-meta { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.75rem; }
.venue-legend, .stadium-sector-legend {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  font-size: 0.75rem; color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 0.375rem; }
.legend-swatch {
  width: 0.875rem; height: 0.875rem; border-radius: 0.2rem;
  border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0;
}
.legend-swatch-standard { background: #cbd5e1; }
.legend-swatch-premium { background: #a3a355; }
.legend-swatch-vip { background: #8b7355; }
.legend-swatch-taken { background: #38bdf8; border-radius: 50%; }

.venue-stage {
  margin: 0 auto 1.25rem; max-width: 72%;
  padding: 0.625rem 1rem; text-align: center;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-radius: 0 0 50% 50% / 0 0 1.5rem 1.5rem;
  border: 1px solid #94a3b8; border-top: none;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.06);
}
.venue-stage-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em;
  color: #64748b; text-transform: uppercase;
}

.hall-rows { display: flex; flex-direction: column; gap: 0.35rem; align-items: center; }
.hall-row {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; justify-content: center;
}
.hall-row-curve:nth-child(1) { max-width: 58%; }
.hall-row-curve:nth-child(2) { max-width: 64%; }
.hall-row-curve:nth-child(3) { max-width: 70%; }
.hall-row-curve:nth-child(4) { max-width: 76%; }
.hall-row-curve:nth-child(5) { max-width: 82%; }
.hall-row-curve:nth-child(6) { max-width: 78%; }
.hall-row-label {
  width: 1.25rem; font-size: 0.6875rem; color: var(--muted);
  text-align: center; flex-shrink: 0;
}
.hall-seats, .stadium-seats {
  display: flex; flex-wrap: nowrap; gap: 0.2rem; justify-content: center; flex: 1;
}
.hall-row-pairs .hall-seats { gap: 0.65rem; }

.seat-btn {
  width: 1.125rem; height: 1.125rem; padding: 0; border: none; border-radius: 0.2rem;
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
}
.seat-btn.seat-free:hover { transform: scale(1.15); box-shadow: 0 0 0 2px rgba(91,95,199,0.35); }
.seat-btn.seat-selected { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.12); }
.seat-tier-standard.seat-free { background: #cbd5e1; }
.seat-tier-premium.seat-free { background: #a3a355; }
.seat-tier-vip.seat-free { background: #8b7355; }
.seat-stadium.seat-free { background: color-mix(in srgb, var(--sector-color) 75%, white); }
.seat-taken {
  background: #38bdf8 !important; border-radius: 50% !important;
  cursor: not-allowed; opacity: 0.85;
}

.seat-selection-info {
  margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 0.5rem;
  background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* Stadium map */
.stadium-overview {
  position: relative; width: 100%; max-width: 28rem; margin: 0 auto 1rem;
  aspect-ratio: 1; min-height: 18rem;
}
.stadium-overview-compact { max-width: 20rem; min-height: 12rem; opacity: 0.55; pointer-events: none; }
.stadium-field-wrap {
  position: absolute; inset: 18% 12%; display: flex; align-items: center; justify-content: center;
}
.stadium-track {
  position: absolute; inset: -8%; border-radius: 50%;
  border: 3px solid #ef4444; background: #f8fafc;
}
.stadium-field {
  position: relative; width: 72%; height: 58%; border-radius: 0.5rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 2px solid white; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
}
.stadium-field-center {
  position: absolute; width: 28%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
}
.stadium-field-label {
  position: absolute; bottom: 8%; font-size: 0.5rem; font-weight: 700;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.85);
}

.stadium-sector-btn {
  position: absolute; border: 2px solid rgba(255,255,255,0.9);
  background: color-mix(in srgb, var(--sector-color) 82%, black);
  color: white; border-radius: 0.5rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.35rem; font-family: inherit; transition: transform 0.15s, box-shadow 0.15s;
  min-width: 3.5rem;
}
.stadium-sector-btn:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.stadium-sector-active { box-shadow: 0 0 0 3px var(--primary); transform: scale(1.05); }
.stadium-sector-n { top: 0; left: 50%; transform: translateX(-50%); width: 42%; height: 16%; border-radius: 0.75rem 0.75rem 0.25rem 0.25rem; }
.stadium-sector-s { bottom: 0; left: 50%; transform: translateX(-50%); width: 42%; height: 16%; border-radius: 0.25rem 0.25rem 0.75rem 0.75rem; }
.stadium-sector-w { left: 0; top: 50%; transform: translateY(-50%); width: 16%; height: 42%; border-radius: 0.75rem 0.25rem 0.25rem 0.75rem; }
.stadium-sector-e { right: 0; top: 50%; transform: translateY(-50%); width: 16%; height: 42%; border-radius: 0.25rem 0.75rem 0.75rem 0.25rem; }
.stadium-sector-n.stadium-sector-active, .stadium-sector-s.stadium-sector-active { transform: translateX(-50%) scale(1.05); }
.stadium-sector-w.stadium-sector-active, .stadium-sector-e.stadium-sector-active { transform: translateY(-50%) scale(1.05); }
.stadium-sector-name { font-size: 0.5625rem; font-weight: 600; line-height: 1.2; text-align: center; }
.stadium-sector-code { font-family: "Space Grotesk", sans-serif; font-size: 1rem; font-weight: 700; }

.stadium-seat-panel {
  margin-top: 1rem; padding: 1rem; border-radius: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
}
.stadium-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.stadium-panel-head h3 { font-size: 1.0625rem; margin: 0; }
.stadium-row-line {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem;
}
.stadium-row-label {
  width: 2rem; font-size: 0.6875rem; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.stadium-seats { overflow-x: auto; padding-bottom: 0.25rem; }
.stadium-seats .seat-btn { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

@media (max-width: 480px) {
  .seat-btn { width: 0.875rem; height: 0.875rem; }
  .hall-row-label { width: 1rem; font-size: 0.625rem; }
  .stadium-overview { min-height: 15rem; }
}

.info-banner {
  padding: 0.875rem 1.25rem; border-radius: 0.5rem;
  background: rgba(91, 95, 199, 0.06); border: 1px solid rgba(91, 95, 199, 0.15);
  font-size: 0.9375rem; color: var(--muted);
}

.tickets-list { display: flex; flex-direction: column; gap: 1rem; }
.ticket-card { transition: none; }
.ticket-card:hover { transform: none; }
.ticket-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.ticket-code { font-family: monospace; font-weight: 700; color: var(--primary); font-size: 0.9375rem; }
.ticket-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.status-badge {
  display: inline-block; font-size: 0.6875rem; font-weight: 600;
  padding: 0.2rem 0.5rem; border-radius: 9999px; margin-left: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.status-active { background: rgba(91, 95, 199, 0.1); color: var(--primary); }
.status-refunded { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

.btn-danger { color: #dc2626; border-color: rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.06); }

.empty-state { text-align: center; padding: 3rem 2rem; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }

.stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-card { text-align: center; padding: 1.25rem; }
.stat-value { font-family: "Space Grotesk", sans-serif; font-size: 1.75rem; font-weight: 700; }
.stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface); }
.data-table tr:last-child td { border-bottom: none; }
.data-table code { color: var(--primary); font-size: 0.8125rem; }

/* Admin portal */
.admin-portal-body {
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.admin-portal { width: 100%; max-width: 26rem; }
.admin-portal-card {
  background: #fff;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}
.admin-portal-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.admin-portal-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.admin-portal-sub { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.admin-portal-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; }

.admin-body { background: #f5f5f5; }
.admin-header {
  background: #fff;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  position: sticky; top: 0; z-index: 50;
}
.admin-header-inner {
  height: 3.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.admin-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.125rem;
}
.admin-logo small { font-weight: 500; color: #dc2626; font-size: 0.75rem; margin-left: 0.25rem; }
.admin-nav { display: flex; gap: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.admin-nav a:hover { color: var(--foreground); }

.btn-admin { background: #dc2626; color: white; }
.btn-admin:hover { background: #b91c1c; opacity: 1; }
.btn-quick {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: white; font-weight: 600;
}
.btn-quick:hover { opacity: 0.92; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

.quick-login-block { margin-bottom: 1.25rem; }
.quick-login-hint {
  font-size: 0.875rem; color: var(--muted);
  margin-bottom: 1rem; text-align: center; line-height: 1.5;
}
.quick-login-hint strong { color: var(--primary); }
.quick-login-warn { color: #b45309; }
.quick-login-note {
  font-size: 0.8125rem; color: var(--muted);
  margin-top: 0.75rem; text-align: center; line-height: 1.5;
}
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--muted); font-size: 0.8125rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

@media (max-width: 640px) {
  .market-header-top { gap: 0.75rem; }
  .search-submit span { display: none; }
  .search-submit { padding: 0 0.875rem; }
  .search-submit::after { content: "🔍"; }
  .carousel-card { height: 16rem; }
  .carousel-content { padding: 1.25rem; }
  .carousel-btn { display: none; }
  .date-calendar-btn span { display: none; }
  .date-calendar-btn { padding: 0 0.75rem; }
}
