:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-panel: rgba(255, 255, 255, 0.78);
  --bg-soft: rgba(255, 255, 255, 0.58);
  --text: #0b1020;
  --text-muted: rgba(11, 16, 32, 0.68);
  --accent: #ff4d00;
  --accent-soft: rgba(255, 77, 0, 0.16);
  --border: rgba(11, 16, 32, 0.10);
  --radius: 20px;
  --shadow: 0 24px 90px rgba(11, 16, 32, 0.12);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4fb 100%);
  color: var(--text);
}

body {
  line-height: 1.55;
}

img, svg {
  max-width: 100%;
}

button, input, textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page {
  padding: 22px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 8px 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 11;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.topbar-sticky {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  z-index: 10;
  border-bottom: 1px solid rgba(11, 16, 32, 0.06);
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.site-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* Prevent logo from dominating on small screens (mobile header + maintenance) */
@media (max-width: 760px) {
  .site-logo {
    height: 36px;
  }
}

.brand span,
.auth-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-close {
  display: none;
}

.nav-links a,
.chip,
.back-link,
.button,
.hero-pill {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff7a35);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border: 1px solid rgba(11, 16, 32, 0.10);
  box-shadow: 0 10px 30px rgba(11, 16, 32, 0.10);
}

.button:hover,
.chip:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius);

  /* remove the orange tint from the hero base background */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(11, 16, 32, 0.10);

  /* stronger shadow so hero is clearly separated from background */
  box-shadow: 0 18px 60px rgba(11, 16, 32, 0.18);
  backdrop-filter: blur(14px);
}

.hero-home h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  line-height: 1.05;

  /* headline readability in light theme */
  color: var(--text);
  text-shadow: 0 2px 10px rgba(11, 16, 32, 0.10);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 0, 0.14);
  color: #ffb48e;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero p,
.section p,
.auth-card p,
.event-hero p {
  color: var(--text-muted);
  max-width: 680px;
}

.hero-actions {
  display: grid;
  gap: 16px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;

  /* make the hero search visible */
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 16, 32, 0.10);
  box-shadow: 0 14px 50px rgba(11, 16, 32, 0.12);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.search-form input,
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.search-form button,
.form-card button {
  padding: 0 24px;
  min-width: 140px;
}

.section {
  margin-top: 28px;
}

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

.section-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.section-header a {
  color: var(--accent);
  font-size: 0.94rem;
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  /* Default: 3 cards per row on desktop for larger event cards */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Force home category grid to exactly 3 columns on desktop */
#homeCategoryEventGrid.grid-2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1400px) {
  .grid-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #homeCategoryEventGrid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  #homeCategoryEventGrid.grid-2 {
    grid-template-columns: 1fr;
  }
}


.grid-1 {
  grid-template-columns: 1fr;
}

.card,
.ticket-card,
.event-ticket-card,
.dashboard-card,
.card-soft,
.auth-card,
.scanner-section,
.checkout-summary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 16, 32, 0.10);
  border-radius: var(--radius);

  /* stronger, consistent separation for all containers */
  box-shadow: 0 16px 55px rgba(11, 16, 32, 0.14);
  backdrop-filter: blur(14px);
}

.card {
  overflow: hidden;
}

.card-hero {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.card-hero h3 {
  margin: 0 0 4px;
}

.card-hero p {
  margin: 0;
}

.event-card,
.ticket-card,
.event-ticket-card {
  padding: 18px;
}

.event-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62));
  overflow: hidden;

  /* make event cards pop on index + events page */
  box-shadow: 0 16px 55px rgba(11, 16, 32, 0.14);
  backdrop-filter: blur(12px);
}

.event-card__poster {
  min-height: 100px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card__poster-fallback {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 12px;
}

.event-card__content {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.event-card__summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-card .event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}

.event-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.event-card.has-poster {
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.event-card.has-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 20, 0.45), rgba(7, 8, 20, 0.85));
}

.event-card.has-poster > * {
  position: relative;
  z-index: 1;
}

.event-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.event-card .button {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.badge,
.ticket-badge,
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 77, 0, 0.14);
  color: #ffb48e;
  font-size: 0.75rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.chip.active {
  background: var(--accent-soft);
  border-color: rgba(255, 77, 0, 0.32);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.2);
}

.chip.active:hover {
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.3);
}

.chip-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.chip-radio input[type="radio"] {
  display: none;
}

.chip-radio input[type="radio"]:checked + label,
.chip-radio input[type="radio"]:checked ~ * {
  background: var(--accent-soft);
}

.chip-radio:has(input[type="radio"]:checked) {
  background: var(--accent-soft);
  border-color: rgba(255, 77, 0, 0.32);
  color: #fff;
}

.empty-state,
.message {
  margin: 18px 0 0;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 20px;
  background: rgba(255, 77, 0, 0.03);
  border: 1px solid rgba(255, 77, 0, 0.1);
}

.empty-state::before {
  content: '🎫';
  font-size: 4rem;
  opacity: 0.3;
}

.empty-state {
  font-size: 1.05rem;
  line-height: 1.6;
}

.auth-card {
  max-width: 420px;
  margin: 40px auto;
  padding: 32px;
  text-align: center;
}

.auth-card h1 {
  margin: 20px 0 10px;
  font-size: 2rem;
}

.form-card {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-card label {
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-footer {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-footer a {
  color: var(--accent);
  text-decoration: none;
}

.card-soft,
.checkout-summary,
.scanner-section {
  padding: 24px;
}

.checkout-row,
.dashboard-card p,
.ticket-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--text-muted);
}

.checkout-row strong,
.ticket-card strong,
.dashboard-card strong {
  color: #fff;
}

.event-ticket-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.event-ticket-card h3 {
  margin: 0;
  font-size: 1rem;
}

.event-ticket-card .ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.event-ticket-card button {
  margin-top: 12px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.qty-btn:hover {
  color: var(--text);
}

.qty-input {
  width: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  padding: 24px;
}

.dashboard-card h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dashboard-card p {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-list .section-header {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
}

.event-hero {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 77, 0, 0.14), rgba(7, 8, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.event-details .event-detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

.event-details .event-detail-meta {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-details .event-detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.event-details .event-detail-meta strong {
  color: var(--text-muted);
  font-weight: 600;
}

.event-details p {
  color: var(--text-muted);
  line-height: 1.75;
}

.event-hero.has-poster {
  background-color: transparent;
  background-size: cover;
  background-position: center;
}

.event-hero.has-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 20, 0.55), rgba(7, 8, 20, 0.85));
}

.event-hero.has-poster > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .page {
    padding: 18px 16px 32px;
  }
  .grid-2,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 200;
  }

  .topbar {
    position: relative;
    padding-right: 56px; /* keep content clear of pinned hamburger */
  }
  
.nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 16, 32, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 80px 20px 40px;
    box-shadow: -4px 0 20px rgba(11, 16, 32, 0.14);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 20;
  }

  .menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }

  .nav-open .menu-close {
    display: flex;
  }

  .menu-close:hover {
    background: rgba(11, 16, 32, 0.06);
  }
  
  .nav-links.nav-open {
    display: flex;
    transform: translateX(0);
  }
  
  .topbar {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hero,
  .auth-card,
  .checkout-summary,
  .scanner-section,
  .card-soft {
    padding: 20px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
}

.modal-content h2 {
  margin: 0 0 20px;
}

.page-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 0;
  max-width: 100%;
}

.sidebar {
  background: rgba(15, 18, 36, 0.6);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  padding: 0 24px 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand span {
  color: var(--accent);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 0 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 77, 0, 0.12);
  color: var(--accent);
}

.sidebar-nav i {
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 24px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.sidebar-footer a:hover {
  background: rgba(255, 77, 0, 0.12);
  color: #ff6b6b;
}

.main-content {
  padding: 28px 40px;
  overflow-y: auto;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.dashboard-header p {
  color: var(--text-muted);
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.08) 0%, rgba(255, 77, 0, 0.02) 100%);
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff7a35);
}

.dashboard-card:hover {
  border-color: rgba(255, 77, 0, 0.4);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.15);
  transform: translateY(-2px);
}

.dashboard-card-icon {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.7;
}

.dashboard-card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card p {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 1024px) {
  .page-dashboard {
    grid-template-columns: 1fr;
  }

  .hamburger-btn {
    display: flex;
  }

  .sidebar {
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    padding: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-brand {
    padding: 16px 24px;
    margin: 0;
    border: none;
  }

  .sidebar-nav {
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }

  .sidebar-nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .sidebar-footer {
    padding: 12px;
    border: none;
    margin: 0;
    margin-top: auto;
  }

  .sidebar-footer a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .main-content {
    height: auto;
    padding: 20px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .dashboard-card p {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 16px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .dashboard-card p {
    font-size: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header a {
    width: 100%;
    text-align: center;
  }
}

/* Glassmorphism (light) */
.glass {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(11, 16, 32, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Hero Gradient (remove orangish overlay blobs) */
.hero-gradient {
  /* keep the hero’s base glass gradient (from .hero) - no extra colored blobs */
  background: transparent !important;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before,
.hero-gradient::after {
  content: none !important;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(90deg, #FF4D00 0%, #0FF4E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-features {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .hero-features {
    display: none;
  }
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-features i {
  color: var(--accent);
  font-size: 1rem;
}

/* Enhanced Search Form */
.search-form-hero {
  display: flex;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  padding: 0 20px;
  color: var(--text-muted);
}

.search-input-wrapper i {
  color: var(--accent);
}

.search-form-hero input {
  background: none;
  border: none;
  color: var(--text);
  outline: none;
  flex: 1;
  padding: 16px 0;
  font-size: 1rem;
}

.search-form-hero input::placeholder {
  color: var(--text-muted);
}

.search-form-hero button {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-form-hero button:hover {
  opacity: 0.9;
}

/* Categories Section */
.categories-section {
  margin-top: 60px;
}

.categories-scroll {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.category-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
  white-space: nowrap;
  min-height: 64px;
}

@media (max-width: 760px) {
  .category-chip {
    min-width: 140px;
    padding: 12px;
  }
  
  .category-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .category-chip span {
    font-size: 0.85rem;
    font-weight: 600;
  }
}

.category-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
}

.category-chip:hover {
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.category-icon.music {
  background: rgba(255, 77, 0, 0.2);
  color: #FF4D00;
}

.category-icon.sports {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.category-icon.comedy {
  background: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.category-icon.theater {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.category-icon.conference {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

.category-icon.festival {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.category-card span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Featured Section */
.featured-section {
  margin-top: 60px;
}

/* Events page polish */
.page-events .page {
  padding: 18px 16px 32px;
}

.page-events .search-section {
  margin-top: 16px;
}

.page-events #eventGrid {
  margin-top: 4px;
}

/* Make event cards more consistent on events.html */
.page-events .event-card {
  grid-template-rows: auto 1fr;
}

.page-events .event-card__poster {
  min-height: 130px;
  background: rgba(11, 16, 32, 0.06);
}

.page-events .event-card__content {
  padding: 16px;
}

.page-events .event-card .event-top {
  margin-bottom: 6px;
}

/* Buttons in event cards should not overflow */
.page-events .event-card .button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

/* Mobile responsiveness: cards become taller, grid becomes 1 column */
@media (max-width: 760px) {
  .page-events #eventGrid {
    margin-top: 12px;
  }

  .page-events .event-card__poster {
    min-height: 160px;
  }

  .page-events .grid-2 {
    grid-template-columns: 1fr;
  }

  .page-events .event-card .button {
    width: 100%;
  }
}

.link-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.link-arrow:hover {
  gap: 12px;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 0, 0.15);
  color: var(--accent);
  font-size: 1.5rem;
}

.stat-card strong {
  font-size: 2rem;
  color: var(--text);
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Payment Section */
.payment-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: 20px;
}

.payment-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 0, 0.15);
  color: var(--accent);
  font-size: 2rem;
  flex-shrink: 0;
}

.payment-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.payment-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.button-sm {
  padding: 12px 24px;
  font-size: 0.9rem;
  border-radius: 12px;
  width: fit-content;
}

/* Features Section */
.features-section {
  margin-top: 80px;
  margin-bottom: 60px;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 0, 0.15);
  color: var(--accent);
  font-size: 1.8rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 60px;
}

.cta-content h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.cta-content p {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  opacity: 0.9;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.button-secondary:hover {
  background: rgba(255, 77, 0, 0.1);
}

/* ── PWA Install Section ── */
.pwa-install-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.pwa-install-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px 40px;
  border-radius: var(--radius);
  text-align: left;
}

.pwa-install-icon {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ff7a35);
  color: #fff;
  font-size: 2.5rem;
  box-shadow: 0 12px 40px rgba(255, 77, 0, 0.3);
}

.pwa-install-content h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.pwa-install-content p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

.pwa-install-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pwa-install-buttons .button {
  padding: 14px 28px;
  font-size: 0.95rem;
  gap: 8px;
}

.pwa-install-buttons .button i {
  font-size: 1.1rem;
}

.pwa-install-note {
  margin: 16px 0 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.pwa-install-note i {
  color: var(--accent);
}

@media (max-width: 760px) {
  .pwa-install-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .pwa-install-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 2rem;
  }

  .pwa-install-content h2 {
    font-size: 1.3rem;
  }

  .pwa-install-content p {
    margin: 0 auto 20px;
  }

  .pwa-install-buttons {
    justify-content: center;
  }

  .pwa-install-note {
    justify-content: center;
  }
}

/* ── Host Events CTA ── */
.host-cta-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.host-cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.host-cta-image {
  min-height: 300px;
  background: linear-gradient(135deg, var(--accent), #ff7a35, #ffb347);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.host-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.host-cta-image::before {
  content: "\f55a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 5rem;
  color: rgba(255,255,255,0.25);
  position: absolute;
}

.host-cta-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.host-cta-content h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.host-cta-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.host-cta-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 4px 0 8px;
}

.host-cta-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.host-cta-contact-item i {
  color: var(--accent);
  font-size: 1rem;
  width: 20px;
}

.host-cta-content .button {
  align-self: flex-start;
  margin-top: 4px;
}

/* ── Footer ── */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ── Contact Page ── */
.page-contact .page {
  max-width: 800px;
}

.contact-section {
  margin-top: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-info-panel {
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--accent), #ff7a35);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-panel h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.contact-info-panel p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #fff;
}

.contact-info-item i {
  width: 20px;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}

.contact-form-panel {
  padding: 40px 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .button {
  align-self: flex-start;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 12px;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.form-success p {
  color: var(--text-muted);
  margin: 0;
}

/* ── Privacy Policy Page ── */
.page-privacy .page {
  max-width: 800px;
}

.privacy-header {
  margin-bottom: 32px;
}

.privacy-header h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.privacy-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.85rem;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-section h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.privacy-section p {
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.privacy-section ul {
  margin: 8px 0;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.privacy-section ul li {
  margin-bottom: 4px;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .host-cta-card {
    grid-template-columns: 1fr;
  }

  .host-cta-image {
    min-height: 200px;
  }

  .host-cta-content {
    padding: 32px 24px;
  }

  .host-cta-content h2 {
    font-size: 1.3rem;
  }

  .host-cta-contact {
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 32px 24px;
  }
}

/* Responsive */
@media (max-width: 760px) {
  .hero-gradient {
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 12px;
  }

  .search-form-hero {
    flex-direction: row !important;
  }

  .search-form-hero button {
    padding: 16px 16px;
    flex-shrink: 0;
    min-width: 56px;
  }

  .search-input-wrapper {
    flex: 1;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .payment-card {
    flex-direction: column;
    padding: 24px;
  }

  .payment-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 40px 24px;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .button, .button-primary, .button-secondary {
    width: 100%;
  }

  .chips {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ═══════════════════════════════════════════════════
   Toast Notifications (for dashboard/admin pages)
   ═══════════════════════════════════════════════════ */
.kt-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 380px;
  width: auto;
  min-width: 200px;
  text-align: center;
  pointer-events: none;
  line-height: 1.4;
}
.kt-toast--show {
  opacity: 1;
}
.kt-toast__content { display: flex; align-items: center; gap: 8px; justify-content: center; }
.kt-toast__text { color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.kt-toast--error {
  background: rgba(220, 38, 38, 0.95);
  border: 1px solid rgba(255, 107, 107, 0.35);
}
.kt-toast--success {
  background: rgba(22, 163, 74, 0.95);
  border: 1px solid rgba(76, 231, 162, 0.35);
}

@media (max-width: 480px) {
  .kt-toast {
    max-width: calc(100% - 32px);
    width: auto;
    padding: 10px 16px;
    bottom: 20px;
  }
  .kt-toast__text {
    white-space: normal;
    font-size: 0.82rem;
  }
}

/* =========================================================
   FORCE DARK THEME FOR ORGANIZER DASHBOARD
   (Fixes white-on-dark issues from the light site styles)
   Applies ONLY to organizer pages.
   ========================================================= */
body[data-require-role="organizer"] {
  background: #070814;
  color: #f5f7ff;
  position: relative;
}

/* Block the main light html/body gradient from bleeding through */
body[data-require-role="organizer"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top, rgba(255, 77, 0, 0.16), transparent 32%),
              linear-gradient(180deg, #070814 0%, #050611 100%);
  pointer-events: none;
}

/* Keep text readable even if light theme rules set color */
body[data-require-role="organizer"] button,
body[data-require-role="organizer"] input,
body[data-require-role="organizer"] select,
body[data-require-role="organizer"] textarea,
body[data-require-role="organizer"] label,
body[data-require-role="organizer"] th,
body[data-require-role="organizer"] td,
body[data-require-role="organizer"] p,
body[data-require-role="organizer"] h1,
body[data-require-role="organizer"] h2,
body[data-require-role="organizer"] h3,
body[data-require-role="organizer"] h4,
body[data-require-role="organizer"] h5,
body[data-require-role="organizer"] h6 {
  color: #f5f7ff !important;
}

/* Neutralize light “card” containers that may break contrast */
body[data-require-role="organizer"] .card,
body[data-require-role="organizer"] .card-soft,
body[data-require-role="organizer"] .auth-card,
body[data-require-role="organizer"] .scanner-section,
body[data-require-role="organizer"] .checkout-summary,
body[data-require-role="organizer"] .dashboard-card,
body[data-require-role="organizer"] .event-ticket-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(14px) !important;
}

/* Ensure KPI numbers inside organizer dashboard cards are visible */
body[data-require-role="organizer"] .dashboard-card p,
body[data-require-role="organizer"] .card p {
  color: #f5f7ff !important;
}

/* ═══════════════════════════════════════════════════
   View Ticket Page Styles
   ═══════════════════════════════════════════════════ */
.ticket-display {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.td-strip {
  height: 8px;
  background: linear-gradient(90deg, #ff4d00, #ff7a35, #ff4d00);
}

.td-header {
  padding: 36px 40px 28px;
  text-align: center;
  position: relative;
}

.td-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.td-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff4d00, #ff7a35);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.td-brand-badge span { font-size: 16px; }

.td-title {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff4d00, #ff7a35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 4px;
  letter-spacing: -1px;
}

.td-subtitle {
  font-size: 14px;
  color: #888;
  font-weight: 400;
  margin: 0;
}

.td-content {
  padding: 28px 40px;
}

.td-event-row {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px dashed #e0e0e0;
}

.td-event-details { flex: 1; }

.td-event-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 16px;
  line-height: 1.3;
}

.td-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.td-detail-icon {
  width: 36px;
  height: 36px;
  background: #fff5f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.td-detail-text { flex: 1; }

.td-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.td-detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 2px;
}

.td-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 18px;
  background: #fafafa;
  border-radius: 16px;
  border: 2px dashed #e8e8e8;
}

.td-qr-code {
  width: 150px;
  height: 150px;
  margin-bottom: 8px;
}

.td-qr-code img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.td-qr-label {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.td-buyer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff5f0, #fff0e8);
  border-radius: 12px;
  margin-bottom: 28px;
}

.td-buyer-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ff4d00, #ff7a35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.td-buyer-info { flex: 1; }

.td-buyer-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.td-buyer-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2px;
}

.td-buyer-email {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.td-buyer-status { flex-shrink: 0; }

.td-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #fff3e0;
  color: #e67e22;
}

.td-status-badge.td-status-active {
  background: #e8f8e8;
  color: #27ae60;
}

.td-toast {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: white;
  padding: 20px 28px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 90%;
  width: 460px;
}

.td-toast-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: #f39c12;
}

.td-toast-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.td-toast-sub {
  margin: 0;
  opacity: 0.7;
  font-size: 12px;
  line-height: 1.5;
}

.td-toast kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
}

.td-id-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 24px;
}

.td-id-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.td-id-value {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #ff4d00;
  font-size: 14px;
  letter-spacing: 1px;
}

.td-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff8f0;
  border-left: 4px solid #ff4d00;
  border-radius: 8px;
  margin-bottom: 24px;
}

.td-notice-icon { font-size: 20px; flex-shrink: 0; }

.td-notice-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.td-notice-text strong { color: #1a1a2e; }

.td-actions {
  display: flex;
  gap: 12px;
  padding: 0 40px 24px;
}

.btn-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download:hover { transform: translateY(-2px); }
.btn-download:active { transform: translateY(0); }

.btn-download-pdf {
  background: #ff4d00;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.btn-download-pdf:hover {
  background: #e04400;
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.btn-download-img {
  background: #1a1a2e;
  color: white;
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.btn-download-img:hover {
  background: #2a2a4e;
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
}

.btn-icon { font-size: 18px; }

.td-footer {
  text-align: center;
  padding: 16px 40px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.td-footer p { font-size: 12px; color: #aaa; font-weight: 400; margin: 0; }
.td-footer-brand { color: #ff4d00; font-weight: 700; }

/* Responsive */
@media (max-width: 640px) {
  .td-header { padding: 24px 20px; }
  .td-title { font-size: 24px; }
  .td-content { padding: 20px; }
  .td-event-row { flex-direction: column; gap: 20px; }
  .td-qr-section { min-width: auto; }
  .td-actions { flex-direction: column; padding: 0 20px 20px; }
  .td-header::after { left: 20px; right: 20px; }
  .td-event-title { font-size: 20px; }
  .td-buyer { flex-wrap: wrap; }
}

/* Print styles for PDF */
@media print {
  .page-view-ticket .topbar { display: none !important; }
  .page-view-ticket .page { padding: 0 !important; }
  .page-view-ticket #errorState { display: none !important; }
  .page-view-ticket #loadingState { display: none !important; }
  .td-actions { display: none !important; }
  .td-strip { height: 4px !important; }
  .ticket-display { box-shadow: none !important; border: 1px solid #eee !important; border-radius: 12px !important; }
  @page { margin: 8mm; }
  body { background: white !important; }
}

/* ===== PWA SPLASH SCREEN ===== */
.pwa-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pwa-splash.is-visible {
  opacity: 1;
  pointer-events: all;
}

.pwa-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.pwa-splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.pwa-splash-logo {
  width: 180px;
  height: auto;
  animation: splashLogoIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 0 30px rgba(255, 77, 0, 0.3));
}

@keyframes splashLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Three-dot bouncing loader */
.pwa-splash-loader {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.pwa-splash-loader span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d00;
  animation: splashDotBounce 1.4s ease-in-out infinite both;
}

.pwa-splash-loader span:nth-child(1) {
  animation-delay: -0.32s;
}

.pwa-splash-loader span:nth-child(2) {
  animation-delay: -0.16s;
}

.pwa-splash-loader span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes splashDotBounce {
  0%, 80%, 100% {
    transform: scale(0.3);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
