/* Reset & Base - TicketSwap Design System */
*, :after, :before {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  border: 0;
}

:root {
  /* Core colors (light mode) */
  --foreground: #1a2129;
  --foregroundMuted: #4e565f;
  --foregroundSubtle: #79818b;
  --background: #fff;
  --elevatedBackground: color-mix(in srgb, #3b424b, var(--background) 92%);
  --brand: #00b6f0;
  --action: #009fd8;
  --success: #28a745;
  --info: #009fd8;
  --warning: #d28000;
  --failure: #fe4a49;
  --inactive: #99a1a3;

  /* Light/Dark foreground variants */
  --lightForeground: #fff;
  --lightForegroundMuted: #ffffffcc;
  --lightBackground: #fff;
  --lightElevatedBackground: color-mix(in srgb, #3b424b, var(--background) 92%);
  --darkBackground: #00131a;
  --darkForeground: #1a2129;
  --darkForegroundMuted: #1a2129cc;

  /* On-colors */
  --onBrand: #fff;
  --onAction: #fff;
  --onSuccess: #fff;
  --onInfo: #fff;
  --onWarning: #fff;
  --onFailure: #fff;
  --onInactive: #3b424b;

  /* Color-mix constants */
  --_color-mix-constant-background: 8%;
  --_color-mix-constant-status: 12%;
  --_color-mix-constant-status-background: 16%;
  --_color-mix-constant-inactive-background: 48%;
  --_color-mix-constant-stroke: 18.7%;
  --_color-mix-stroke-multiplier: 3;

  /* Stroke */
  --stroke: color-mix(in srgb, #3b424b, transparent calc(100% - (var(--_color-mix-constant-stroke) * 1)));
  --strokeStrong: color-mix(in srgb, #3b424b, transparent calc(100% - (var(--_color-mix-constant-stroke) * var(--_color-mix-stroke-multiplier))));

  /* Inverted & overlay */
  --invertedBackground: #1a2129;
  --invertedForeground: #fff;
  --shadow: #1a2129;
  --scrim: #00000099;

  /* Shadows */
  --shadowLight: 0 1px 4px color-mix(in srgb, #1a2129, transparent 90%);
  --shadowStrong: 0 1px 2px color-mix(in srgb, #1a2129, transparent 90%), 0 4px 12px color-mix(in srgb, #1a2129, transparent 90%);
  --shadowText: 0 1px 0 color-mix(in srgb, #1a2129, transparent 90%);

  /* Named colors */
  --earth: #00b6f0;
  --titan: #00ce5c;
  --sun: #ffa600;
  --mars: #fe4a49;
  --accent: #fe4a49;
  --facebook: #1777f2;
  --spotify: #1db954;

  /* Typography */
  --fontFamily: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
  --fontWeightRegular: 400;
  --fontWeightSemiBold: 600;
  --fontWeightSemibold: 600;
  --fontWeightBold: 700;
  --fontWeightExtrabold: 800;
  --fontWeightBlack: 900;
  --fontSize10: 0.625rem;
  --fontSize12: 0.75rem;
  --fontSize13: 0.813rem;
  --fontSize14: 0.875rem;
  --fontSize15: 0.938rem;
  --fontSize16: 1rem;
  --fontSize17: 1.063rem;
  --fontSize18: 1.125rem;
  --fontSize20: 1.25rem;
  --fontSize22: 1.375rem;
  --fontSize24: 1.5rem;
  --fontSize28: 1.75rem;
  --fontSize32: 2rem;
  --fontSize56: 3.5rem;
  --lineHeightSolid: 1;
  --lineHeightTitle: 1.25;
  --lineHeightTitleLg: 1.125;
  --lineHeightCopy: 1.5;
  --lineHeightHeading: 1.15;

  /* Transition */
  --transition: 200ms cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Spacing */
  --space0: 0;
  --space2: 0.125rem;
  --space4: 0.25rem;
  --space8: 0.5rem;
  --space12: 0.75rem;
  --space16: 1rem;
  --space20: 1.25rem;
  --space24: 1.5rem;
  --space32: 2rem;
  --space40: 2.5rem;
  --space44: 2.75rem;
  --space48: 3rem;
  --space56: 3.5rem;
  --space64: 4rem;
  --space72: 4.5rem;
  --space80: 5rem;
  --space88: 5.5rem;
  --space96: 6rem;

  /* Radius */
  --radiusSm: 0.25rem;
  --radiusMd: 0.5rem;
  --radiusLg: 0.75rem;
  --radius-none: 0px;
  --radius-full: 9999px;

  /* Derived interactive colors */
  --background-hover: color-mix(in srgb, #3b424b, transparent 96%);
  --background-pressed: color-mix(in srgb, #3b424b, transparent 92%);
  --elevatedBackground-hover: color-mix(in srgb, #3b424b, var(--background) 86%);
  --elevatedBackground-pressed: color-mix(in srgb, #3b424b, var(--background) 80%);
  --action-hover: color-mix(in srgb, var(--action), #fff calc(var(--_color-mix-constant-status) * 1));
  --action-pressed: color-mix(in srgb, var(--action), #fff calc(var(--_color-mix-constant-status) * 2));
  --actionBackground: color-mix(in srgb, var(--action), transparent calc(100% - (var(--_color-mix-constant-status-background) * 1)));
  --actionBackground-hover: color-mix(in srgb, var(--action), transparent calc(100% - (var(--_color-mix-constant-status-background) * 2)));
  --actionBackground-pressed: color-mix(in srgb, var(--action), transparent calc(100% - (var(--_color-mix-constant-status-background) * 3)));
  --brandBackground: color-mix(in srgb, var(--brand), transparent calc(100% - (var(--_color-mix-constant-status-background) * 1)));
  --brandBackground-hover: color-mix(in srgb, var(--brand), transparent calc(100% - (var(--_color-mix-constant-status-background) * 2)));
  --brandBackground-pressed: color-mix(in srgb, var(--brand), transparent calc(100% - (var(--_color-mix-constant-status-background) * 3)));
  --infoBackground: color-mix(in srgb, var(--info), transparent calc(100% - (var(--_color-mix-constant-status-background) * 1)));
  --infoBackground-hover: color-mix(in srgb, var(--info), transparent calc(100% - (var(--_color-mix-constant-status-background) * 2)));
  --infoBackground-pressed: color-mix(in srgb, var(--info), transparent calc(100% - (var(--_color-mix-constant-status-background) * 3)));
  --successBackground: color-mix(in srgb, var(--success), transparent calc(100% - (var(--_color-mix-constant-status-background) * 1)));
  --successBackground-hover: color-mix(in srgb, var(--success), transparent calc(100% - (var(--_color-mix-constant-status-background) * 2)));
  --successBackground-pressed: color-mix(in srgb, var(--success), transparent calc(100% - (var(--_color-mix-constant-status-background) * 3)));
  --warningBackground: color-mix(in srgb, var(--warning), transparent calc(100% - (var(--_color-mix-constant-status-background) * 1)));
  --warningBackground-hover: color-mix(in srgb, var(--warning), transparent calc(100% - (var(--_color-mix-constant-status-background) * 2)));
  --warningBackground-pressed: color-mix(in srgb, var(--warning), transparent calc(100% - (var(--_color-mix-constant-status-background) * 3)));
  --failureBackground: color-mix(in srgb, var(--failure), transparent calc(100% - (var(--_color-mix-constant-status-background) * 1)));
  --failureBackground-hover: color-mix(in srgb, var(--failure), transparent calc(100% - (var(--_color-mix-constant-status-background) * 2)));
  --failureBackground-pressed: color-mix(in srgb, var(--failure), transparent calc(100% - (var(--_color-mix-constant-status-background) * 3)));
  --inactiveBackground: color-mix(in srgb, var(--inactive), transparent calc(100% - (var(--_color-mix-constant-inactive-background) * 1)));

  accent-color: var(--action);
  color-scheme: light dark;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --foreground: #fff;
    --foregroundMuted: #b5bfca;
    --foregroundSubtle: #78818b;
    --background: #00131a;
    --elevatedBackground: color-mix(in srgb, #ececee, #00131a 92%);
    --brand: #00b6f0;
    --action: #00b6f0;
    --success: #00ce5c;
    --info: #00b6f0;
    --warning: #ffa600;
    --failure: #fe4a49;
    --inactive: #78818b;
    --lightElevatedBackground: color-mix(in srgb, #ececee, #00131a 92%);
    --darkBackground: #00131a;
    --darkBlevatedBackground: color-mix(in srgb, #fff, #00131a 92%);
    --darkForeground: #1a2129;
    --darkForegroundMuted: #1a2129cc;
    --onBrand: #1a2129;
    --onAction: #1a2129;
    --onSuccess: #1a2129;
    --onInfo: #1a2129;
    --onWarning: #1a2129;
    --onFailure: #1a2129;
    --onInactive: #e5e7e8;
    --_color-mix-stroke-multiplier: 2;
    --stroke: color-mix(in srgb, #ececee, transparent calc(100% - (18.7% * 1)));
    --strokeStrong: color-mix(in srgb, #ececee, transparent calc(100% - (18.7% * 2)));
    --invertedBackground: #fff;
    --invertedForeground: #1a2129;
    --shadow: #000;
    --shadowLight: 0 1px 4px color-mix(in srgb, #000, transparent 90%);
    --shadowStrong: 0 1px 2px color-mix(in srgb, #000, transparent 90%), 0 4px 12px color-mix(in srgb, #000, transparent 90%);
    --shadowText: 0 1px 0 color-mix(in srgb, #000, transparent 90%);
    --scrim: #00000060;

    --background-hover: color-mix(in srgb, #00131a, #fff calc(8% * 1));
    --background-pressed: color-mix(in srgb, #00131a, #fff calc(8% * 2));
    --elevatedBackground-hover: color-mix(in srgb, color-mix(in srgb, #ececee, #00131a 92%), #fff calc(8% * 1));
    --elevatedBackground-pressed: color-mix(in srgb, color-mix(in srgb, #ececee, #00131a 92%), #fff calc(8% * 2));
    --action-hover: color-mix(in srgb, #00b6f0, #1a2129 calc(12% * 1));
    --action-pressed: color-mix(in srgb, #00b6f0, #1a2129 calc(12% * 2));
    --actionBackground: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 1)));
    --actionBackground-hover: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 2)));
    --actionBackground-pressed: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 3)));
    --brandBackground: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 1)));
    --brandBackground-hover: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 2)));
    --brandBackground-pressed: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 3)));
    --infoBackground: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 1)));
    --infoBackground-hover: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 2)));
    --infoBackground-pressed: color-mix(in srgb, #00b6f0, transparent calc(100% - (16% * 3)));
    --successBackground: color-mix(in srgb, #00ce5c, transparent calc(100% - (16% * 1)));
    --successBackground-hover: color-mix(in srgb, #00ce5c, transparent calc(100% - (16% * 2)));
    --successBackground-pressed: color-mix(in srgb, #00ce5c, transparent calc(100% - (16% * 3)));
    --warningBackground: color-mix(in srgb, #ffa600, transparent calc(100% - (16% * 1)));
    --warningBackground-hover: color-mix(in srgb, #ffa600, transparent calc(100% - (16% * 2)));
    --warningBackground-pressed: color-mix(in srgb, #ffa600, transparent calc(100% - (16% * 3)));
    --failureBackground: color-mix(in srgb, #fe4a49, transparent calc(100% - (16% * 1)));
    --failureBackground-hover: color-mix(in srgb, #fe4a49, transparent calc(100% - (16% * 2)));
    --failureBackground-pressed: color-mix(in srgb, #fe4a49, transparent calc(100% - (16% * 3)));
    --inactive-hover: color-mix(in srgb, #78818b, #e5e7e8 calc(12% * 1));
    --inactive-pressed: color-mix(in srgb, #78818b, #e5e7e8 calc(12% * 2));
    --inactiveBackground: color-mix(in srgb, #78818b, transparent calc(100% - (48% * 1)));
    --inactiveBackground-hover: color-mix(in srgb, #78818b, transparent calc(100% - (16% * 2)));
    --inactiveBackground-pressed: color-mix(in srgb, #78818b, transparent calc(100% - (16% * 3)));
    --success-hover: color-mix(in srgb, #00ce5c, #1a2129 calc(12% * 1));
    --success-pressed: color-mix(in srgb, #00ce5c, #1a2129 calc(12% * 2));
    --failure-hover: color-mix(in srgb, #fe4a49, #1a2129 calc(12% * 1));
    --failure-pressed: color-mix(in srgb, #fe4a49, #1a2129 calc(12% * 2));
    --info-hover: color-mix(in srgb, #00b6f0, #1a2129 calc(12% * 1));
    --info-pressed: color-mix(in srgb, #00b6f0, #1a2129 calc(12% * 2));
    --warning-hover: color-mix(in srgb, #ffa600, #1a2129 calc(12% * 1));
    --warning-pressed: color-mix(in srgb, #ffa600, #1a2129 calc(12% * 2));
  }
}

body, html {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--fontFamily);
  font-weight: var(--fontWeightRegular);
  line-height: var(--lineHeightCopy);
  font-size: var(--fontSize16);
  min-height: 100vh;
}

::selection {
  background-color: var(--brand);
  color: var(--onBrand);
}

.container {
  max-width: 70.5rem;
  margin: 0 auto;
  padding: 0 var(--space24);
}

a {
  color: var(--action);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--action-hover);
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--stroke);
  z-index: 100;
  height: 56px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: var(--space16);
}

.logo {
  color: #fff;
  line-height: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo:hover {
  color: #fff;
}

.logo-svg {
  width: 150px;
  height: auto;
  fill: currentColor;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space20);
  flex-shrink: 0;
  margin-left: auto;
}

.nav a {
  color: var(--foregroundMuted);
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize14);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--foreground);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ===== Buttons ===== */
.btn {
  padding: var(--space8) var(--space24);
  border-radius: var(--radius-full);
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize14);
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  font-family: var(--fontFamily);
  display: inline-flex;
  align-items: center;
  gap: var(--space8);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--action);
  color: var(--onAction);
}

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

.btn-primary:active {
  background-color: var(--action-pressed);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--stroke);
}

.btn-outline:hover {
  border-color: var(--strokeStrong);
  background-color: var(--background-hover);
}

.btn-full {
  width: 100%;
  padding: var(--space12) var(--space24);
  font-size: var(--fontSize16);
  justify-content: center;
}

/* ===== Hero Cover ===== */
.hero {
  position: relative;
  min-height: 420px;
  margin-top: 56px;
  background-color: var(--darkBackground);
  background-image: url('https://images.unsplash.com/photo-1459749411175-04bf5292ceea?w=1600&h=900&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space64) var(--space24);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,19,26,0.45) 0%, rgba(0,19,26,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 640px;
  width: 100%;
}

.hero h1 {
  font-size: var(--fontSize56);
  font-weight: var(--fontWeightBlack);
  margin-bottom: var(--space24);
  color: #fff;
  letter-spacing: -2px;
  line-height: var(--lineHeightHeading);
}

/* Hero search bar */
.hero-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-search-inner {
  display: flex;
  align-items: center;
  background-color: var(--background);
  border-radius: var(--radiusMd);
  padding: 0 var(--space16);
  height: var(--space44);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.hero-search-icon {
  flex-shrink: 0;
  color: var(--foregroundSubtle);
  display: flex;
  align-items: center;
  margin-right: var(--space12);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: var(--fontSize15);
  outline: none;
  font-family: var(--fontFamily);
  min-width: 0;
  height: 100%;
}

.hero-search input::placeholder {
  color: var(--foregroundSubtle);
}

/* ===== Tabs Section ===== */
.tabs-section {
  padding: var(--space20) 0 0;
  border-bottom: 1px solid var(--stroke);
  background-color: var(--background);
  position: sticky;
  top: 56px;
  z-index: 50;
}

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space16);
}

.tabs {
  display: flex;
  gap: 0;
  position: relative;
}

.tab {
  padding: var(--space8) var(--space20);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--foregroundSubtle);
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize16);
  cursor: pointer;
  font-family: var(--fontFamily);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--foreground);
}

.tab.active {
  color: var(--foreground);
  border-bottom-color: var(--brand);
}

.city-filter {
  display: flex;
  align-items: center;
  gap: var(--space8);
  padding: var(--space8) var(--space16);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius-full);
  color: var(--foregroundMuted);
  font-size: var(--fontSize14);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease;
  background: transparent;
}

.city-filter:hover {
  border-color: var(--strokeStrong);
  color: var(--foreground);
}

.category-filters {
  display: flex;
  gap: var(--space8);
  overflow-x: auto;
  padding-bottom: var(--space16);
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-chip {
  padding: 6px var(--space16);
  background: transparent;
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius-full);
  color: var(--foregroundMuted);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-size: var(--fontSize13);
  font-family: var(--fontFamily);
}

.category-chip:hover {
  border-color: var(--strokeStrong);
  color: var(--foreground);
  background-color: var(--background-hover);
}

.category-chip.active {
  background-color: var(--action);
  border-color: var(--action);
  color: var(--onAction);
}

/* ===== Event Grid Sections ===== */
.events {
  padding: var(--space32) 0;
}

.grid-section {
  margin-bottom: var(--space40);
}

.grid-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space16);
  gap: var(--space16);
}

.grid-title {
  font-size: var(--fontSize20);
  font-weight: var(--fontWeightBold);
  letter-spacing: -0.3px;
  color: var(--foreground);
  margin-bottom: var(--space2);
}

.grid-subtitle {
  font-size: var(--fontSize14);
  color: var(--foregroundMuted);
}

.see-all-link {
  font-size: var(--fontSize14);
  font-weight: var(--fontWeightSemibold);
  color: var(--action);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}

.see-all-link:hover {
  color: var(--action-hover);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space12);
  list-style: none;
}

/* ===== Event Card - TicketSwap style ===== */
.event-card {
  background-color: var(--elevatedBackground);
  border-radius: var(--radiusLg);
  cursor: pointer;
  transition: background-color 0.15s ease;
  overflow: hidden;
}

.event-card:hover {
  background-color: var(--background-hover);
}

.event-card-inner {
  display: flex;
  align-items: center;
  padding: var(--space12);
  gap: var(--space12);
}

.event-card-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radiusMd);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--background-hover);
}

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

.event-card-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
}

.event-card-content {
  flex: 1;
  min-width: 0;
}

.event-name {
  font-size: var(--fontSize15);
  font-weight: var(--fontWeightBold);
  margin: 0 0 2px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-location {
  font-size: var(--fontSize12);
  color: var(--foregroundMuted);
  margin: 0 0 var(--space8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: var(--fontWeightRegular);
}

.event-meta {
  display: flex;
  align-items: center;
  gap: var(--space16);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space4);
}

.event-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.event-icon-calendar {
  color: var(--mars);
}

.event-icon-ticket {
  color: var(--foregroundSubtle);
}

.event-date {
  font-size: var(--fontSize12);
  font-weight: var(--fontWeightSemibold);
  color: var(--mars);
  white-space: nowrap;
}

.event-ticket-count {
  font-size: var(--fontSize12);
  font-weight: var(--fontWeightSemibold);
  color: var(--action);
}

.event-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.event-fav-btn:hover {
  background-color: var(--background-hover);
}

.price-badge {
  font-size: 0.6875rem;
  padding: 2px var(--space8);
  border-radius: var(--radius-full);
  font-weight: var(--fontWeightBold);
  margin-left: var(--space4);
}

.price-badge.good {
  background-color: var(--successBackground);
  color: var(--success);
}

.price-badge.high {
  background-color: var(--warningBackground);
  color: var(--warning);
}

/* ===== Category Picker Cards ===== */
.category-cards-section {
  margin-bottom: var(--space40);
}

.category-cards-section h2 {
  font-size: var(--fontSize20);
  font-weight: var(--fontWeightBold);
  letter-spacing: -0.3px;
  color: var(--foreground);
  margin-bottom: var(--space16);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space12);
  list-style: none;
}

.category-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space16);
  background-color: var(--elevatedBackground);
  border-radius: var(--radiusLg);
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: var(--foreground);
  overflow: hidden;
}

.category-link-card:hover {
  background-color: var(--background-hover);
  color: var(--foreground);
}

.category-link-card h4 {
  font-size: var(--fontSize15);
  font-weight: var(--fontWeightBold);
}

.category-link-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radiusMd);
}

/* ===== Discover More ===== */
.discover-more {
  text-align: center;
  padding: var(--space24) 0;
}

.btn-discover {
  padding: var(--space12) var(--space40);
  font-size: var(--fontSize16);
}

/* ===== Reviews Section ===== */
.reviews-section {
  padding: var(--space40) 0;
  background-color: var(--background);
  border-top: 1px solid var(--stroke);
}

.reviews-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space24);
}

.reviews-section-header h3 {
  font-size: var(--fontSize20);
  font-weight: var(--fontWeightBold);
  color: var(--foreground);
  letter-spacing: -0.3px;
}

.reviews-section-header a {
  font-size: var(--fontSize14);
  font-weight: var(--fontWeightSemibold);
}

.reviews-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space16);
}

.review-item {
  background-color: var(--elevatedBackground);
  border-radius: var(--radiusLg);
  padding: var(--space20);
}

.review-item-header {
  display: flex;
  align-items: center;
  gap: var(--space12);
  margin-bottom: var(--space12);
}

.review-avatar-wrap {
  flex-shrink: 0;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author {
  display: block;
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize14);
  color: var(--foreground);
  line-height: 1.3;
}

.review-time {
  display: block;
  font-size: var(--fontSize12);
  color: var(--foregroundSubtle);
}

.review-text {
  font-size: var(--fontSize14);
  color: var(--foregroundMuted);
  line-height: var(--lineHeightCopy);
}

/* ===== Star Rating ===== */
.star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space8);
}

.star-rating svg {
  width: 16px;
  height: 16px;
}

/* ===== Partners Section ===== */
.partners {
  padding: var(--space40) 0;
  background-color: var(--background);
  border-top: 1px solid var(--stroke);
}

.partners-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space24);
}

.partners-title {
  font-size: var(--fontSize18);
  font-weight: var(--fontWeightBold);
  color: var(--foreground);
  letter-spacing: -0.3px;
}

.partners-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space4);
  font-size: var(--fontSize14);
  font-weight: var(--fontWeightSemibold);
  color: var(--action);
  transition: color 0.15s ease;
}

.partners-link:hover {
  color: var(--action-hover);
}

.partners-link svg {
  flex-shrink: 0;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space32);
  flex-wrap: wrap;
}

.partners-logos img {
  opacity: 0.5;
  transition: opacity 0.15s ease;
  max-height: 56px;
  width: auto;
}

.partners-logos img:hover {
  opacity: 1;
}

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: var(--background);
  border-radius: 1rem;
  padding: var(--space32);
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.modal h2 {
  margin-bottom: var(--space24);
  font-size: var(--fontSize20);
  font-weight: var(--fontWeightBold);
  letter-spacing: -0.3px;
  color: var(--foreground);
}

.modal-close {
  position: absolute;
  top: var(--space16);
  right: var(--space16);
  background: none;
  border: none;
  color: var(--foregroundSubtle);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

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

/* ===== Forms ===== */
.form-group {
  margin-bottom: var(--space16);
}

.form-group label {
  display: block;
  margin-bottom: var(--space4);
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize13);
  color: var(--foregroundMuted);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space12) var(--space16);
  background-color: var(--background);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radiusMd);
  color: var(--foreground);
  font-size: var(--fontSize15);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--fontFamily);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--action);
  box-shadow: 0 0 0 3px var(--actionBackground);
}

.form-group input::placeholder {
  color: var(--foregroundSubtle);
}

.form-footer {
  text-align: center;
  margin-top: var(--space16);
  color: var(--foregroundMuted);
  font-size: var(--fontSize14);
}

/* ===== Ticket Detail ===== */
.ticket-detail-header {
  text-align: center;
  margin-bottom: var(--space24);
}

.ticket-detail-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radiusMd);
  margin-bottom: var(--space16);
}

.ticket-detail-name {
  font-size: var(--fontSize20);
  font-weight: var(--fontWeightExtrabold);
  letter-spacing: -0.3px;
  color: var(--foreground);
}

.ticket-detail-info {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space24);
}

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

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

.ticket-detail-label {
  color: var(--foregroundMuted);
  font-size: var(--fontSize14);
}

.ticket-detail-value {
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize14);
  color: var(--foreground);
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: var(--space8);
}

.original-price {
  text-decoration: line-through;
  color: var(--foregroundSubtle);
  font-size: var(--fontSize14);
}

.current-price {
  color: var(--success);
  font-size: var(--fontSize18);
  font-weight: var(--fontWeightExtrabold);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: var(--space32);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--invertedBackground);
  color: var(--invertedForeground);
  padding: var(--space12) var(--space24);
  border-radius: var(--radiusMd);
  font-weight: var(--fontWeightSemibold);
  font-size: var(--fontSize14);
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== Footer ===== */
.footer {
  padding: var(--space48) 0 var(--space24);
  background-color: var(--background);
  color: var(--foreground);
}

.footer .container {
  max-width: 70.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space40);
  margin-bottom: var(--space32);
}

.footer-logo {
  margin-bottom: var(--space16);
  color: #fff;
}

.footer-logo:hover {
  color: #fff;
}

.footer-logo .logo-icon {
  stroke: var(--brand);
}

.footer-ratings {
  display: flex;
  flex-direction: column;
  gap: var(--space12);
}

.footer-rating-item {
  display: flex;
  align-items: center;
  gap: var(--space8);
}

.footer-rating-item span {
  font-size: var(--fontSize13);
  color: rgba(255,255,255,0.6);
}

.app-badge {
  font-weight: var(--fontWeightSemibold);
  color: rgba(255,255,255,0.6);
  font-size: var(--fontSize13);
}

.footer-grid h4 {
  margin-bottom: var(--space16);
  font-weight: var(--fontWeightBold);
  font-size: var(--fontSize14);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-grid > div > a {
  display: block;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space12);
  font-size: var(--fontSize14);
  transition: color 0.15s ease;
}

.footer-grid > div > a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space24);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: var(--fontSize14);
}

.footer-bottom-left {
  display: flex;
  gap: var(--space24);
}

.footer-bottom-left a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom-right {
  display: flex;
  gap: var(--space24);
  color: rgba(255,255,255,0.55);
}

/* Footer right column */
.footer-right-col {
  display: flex;
  flex-direction: column;
  gap: var(--space16);
}

.how-it-works-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space8);
  padding: var(--space16) var(--space24);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-full, 9999px);
  color: var(--brand) !important;
  font-weight: 700;
  font-size: var(--fontSize16);
  text-decoration: none;
  transition: background 0.15s ease;
  margin-bottom: 0;
}

.how-it-works-btn:hover {
  background-color: rgba(0, 182, 240, 0.1);
  color: var(--brand) !important;
}

.app-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space16);
}

.app-badge img {
  height: 40px;
  width: auto;
}

.app-rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-rating .star-rating {
  margin-bottom: 0;
}

.app-rating span {
  font-size: var(--fontSize12);
  color: rgba(255,255,255,0.5);
}

/* ===== Following Tab (empty state) ===== */
.following-empty {
  text-align: center;
  padding: var(--space80) 0;
  color: var(--foregroundSubtle);
}

.following-empty p {
  margin-bottom: var(--space8);
}

/* ===== No results ===== */
.no-results {
  text-align: center;
  padding: var(--space80) 0;
  color: var(--foregroundMuted);
}

.no-results .no-results-icon {
  font-size: 3rem;
  margin-bottom: var(--space16);
}

/* ===== Checkout Modal ===== */
.checkout-summary-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radiusMd);
  margin-bottom: var(--space16);
}

.checkout-event-name {
  font-size: var(--fontSize20);
  font-weight: var(--fontWeightExtrabold);
  letter-spacing: -0.3px;
  color: var(--foreground);
  margin-bottom: var(--space4);
}

.checkout-event-sub {
  font-size: var(--fontSize14);
  color: var(--foregroundMuted);
  margin-bottom: var(--space16);
}

.checkout-details {
  background-color: var(--elevatedBackground);
  border-radius: var(--radiusMd);
  padding: var(--space16);
  margin-bottom: var(--space20);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space8) 0;
}

.checkout-row:not(:last-child) {
  border-bottom: 1px solid var(--stroke);
}

.checkout-row-label {
  font-size: var(--fontSize14);
  color: var(--foregroundMuted);
}

.checkout-row-value {
  font-size: var(--fontSize14);
  font-weight: var(--fontWeightSemibold);
  color: var(--foreground);
}

.checkout-row-total .checkout-row-label,
.checkout-row-total .checkout-row-value {
  font-size: var(--fontSize16);
  font-weight: var(--fontWeightBold);
  color: var(--foreground);
}

.checkout-quantity {
  display: flex;
  align-items: center;
  gap: var(--space12);
  margin-bottom: var(--space20);
}

.checkout-quantity label {
  font-size: var(--fontSize14);
  font-weight: var(--fontWeightSemibold);
  color: var(--foregroundMuted);
}

.checkout-qty-control {
  display: flex;
  align-items: center;
  gap: var(--space8);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radiusMd);
  padding: var(--space4) var(--space8);
}

.checkout-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--fontSize18);
  color: var(--foregroundMuted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radiusSm);
  transition: background-color 0.15s ease;
  font-family: var(--fontFamily);
}

.checkout-qty-btn:hover {
  background-color: var(--background-hover);
  color: var(--foreground);
}

.checkout-qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.checkout-qty-value {
  font-size: var(--fontSize16);
  font-weight: var(--fontWeightBold);
  min-width: 24px;
  text-align: center;
}

.btn-stripe {
  background-color: #635bff;
  color: #fff;
  width: 100%;
  padding: var(--space12) var(--space24);
  font-size: var(--fontSize16);
  justify-content: center;
  gap: var(--space8);
  border: none;
  border-radius: var(--radius-full);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
  font-family: var(--fontFamily);
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-stripe:hover {
  background-color: #7a73ff;
}

.btn-stripe:active {
  transform: scale(0.97);
  background-color: #4b44db;
}

.btn-stripe svg {
  flex-shrink: 0;
}

.checkout-cancel {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--space12);
  background: none;
  border: none;
  color: var(--foregroundMuted);
  font-size: var(--fontSize14);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
  padding: var(--space8);
  font-family: var(--fontFamily);
  transition: color 0.15s ease;
}

.checkout-cancel:hover {
  color: var(--foreground);
}

.checkout-disclaimer {
  margin-top: var(--space16);
  padding-top: var(--space12);
  border-top: 1px solid var(--stroke);
  font-size: var(--fontSize12);
  color: var(--foregroundSubtle);
  text-align: center;
  line-height: 1.4;
}

.checkout-disclaimer svg {
  vertical-align: middle;
  margin-right: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 320px;
    padding: var(--space40) var(--space24);
  }

  .hero h1 {
    font-size: var(--fontSize32);
    letter-spacing: -1px;
  }

  .tabs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space12);
  }

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

  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-logos {
    justify-content: center;
    gap: var(--space24);
  }

  .partners-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space8);
  }

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

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space32);
    padding-block: var(--space32);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--fontSize28);
  }

  .hero {
    min-height: 280px;
  }

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

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space32);
    padding-block: var(--space32);
  }

  .grid-title {
    font-size: var(--fontSize18);
  }
}
