@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap");

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --ink: #111827;
  --muted: #667085;
  --soft: #e5e7eb;
  --line: #d9dee8;
  --brand: #b72878;
  --brand-dark: #8e1d5d;
  --accent: #0f766e;
  --accent-soft: #d9f7ef;
  --warning: #b45309;
  --warning-soft: #fff4d6;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 222, 232, 0.75);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

.top-nav a,
.sell-link,
.login-link {
  color: #344054;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

.top-nav a {
  padding: 10px 16px;
  font-family: "Cinzel", "Cormorant Garamond", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.active {
  color: var(--brand-dark);
  background: #fce7f3;
}

.sell-link,
.login-link {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sell-link:hover,
.sell-link:focus-visible,
.login-link:hover,
.login-link:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.login-link {
  width: 48px;
  min-width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 22px rgba(183, 40, 120, 0.18);
}

.login-link:hover,
.login-link:focus-visible {
  color: #ffffff;
}

.login-link svg {
  width: 20px;
  height: 20px;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 48px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(69, 10, 47, 0.9)),
    url("/bgthree.png") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f9a8d4;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.hero-stat {
  min-width: 148px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.hero-stat span {
  display: block;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.hero-stat small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 440px);
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid rgba(217, 222, 232, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #475467;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tab:hover,
.tab:focus-visible {
  background: #f2f4f7;
  color: var(--ink);
}

.tab.active {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
}

.search-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #667085;
  background: #ffffff;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(183, 40, 120, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder {
  color: #98a2b3;
}

.status-panel,
.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.status-panel h2,
.empty-state h3 {
  margin: 0;
  font-size: 19px;
}

.status-panel p,
.empty-state p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status-icon,
.detail-empty-art {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: #fce7f3;
}

.status-panel.error .status-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.loader {
  width: 42px;
  height: 42px;
  border: 4px solid #f2f4f7;
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.tickets-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.tickets-column,
.detail-panel {
  min-width: 0;
  border: 1px solid rgba(217, 222, 232, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.tickets-column {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 4px 4px 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.ticket-list {
  display: grid;
  gap: 14px;
}

.ticket-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.ticket-card:hover,
.ticket-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 40, 120, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.ticket-card.selected {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  box-shadow: 0 18px 42px rgba(183, 40, 120, 0.16);
}

.ticket-cover {
  width: 96px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #b72878);
}

.ticket-main {
  min-width: 0;
}

.ticket-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ticket-title-row h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.ticket-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ticket-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ticket-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.active,
.chip.active {
  color: #027a48;
  background: var(--accent-soft);
}

.status-pill.pending,
.chip.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill.past,
.chip.past {
  color: #475467;
  background: #eaecf0;
}

.ticket-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667085;
  background: #ffffff;
}

.ticket-card.selected .ticket-arrow {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

.empty-state {
  grid-template-columns: auto 1fr;
  box-shadow: none;
}

.detail-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.detail-empty,
.detail-content {
  padding: 24px;
}

.detail-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 520px;
  align-content: center;
  text-align: center;
}

.detail-empty h2,
.detail-content h2 {
  margin: 0;
}

.detail-empty p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
}

.detail-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-topline > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-content h2 {
  font-size: 28px;
  line-height: 1.08;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.detail-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.qr-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

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

.qr-header h3 {
  margin: 0;
  font-size: 20px;
}

.qr-header > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.qr-code {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(183, 40, 120, 0.5), rgba(15, 118, 110, 0.45)) border-box;
  border: 1px solid transparent;
}

.qr-code canvas,
.qr-code img {
  width: min(250px, 100%) !important;
  height: auto !important;
  border-radius: 4px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid var(--brand);
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 26px rgba(183, 40, 120, 0.22);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  margin-top: 28px;
  color: #6a737c;
  background: #f0f1f5;
}

.footer-main {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 5vw, 56px) 30px;
  text-align: center;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #6a737c;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 156px;
  height: auto;
}

.footer-brand span {
  font-size: 15px;
  line-height: 1.25;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #111827;
  border-radius: 999px;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--brand-dark);
  background: rgba(183, 40, 120, 0.09);
  transform: translateY(-1px);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.15;
}

.footer-socials .brand-fill {
  fill: currentColor;
  stroke: none;
}

.footer-contact {
  display: grid;
  gap: 2px;
  font-size: 15px;
  line-height: 1.35;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--brand-dark);
}

.footer-copy {
  margin: 2px 0 0;
  font-size: 15px;
}

.footer-legal {
  background: #ffffff;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px 18px;
}

.footer-legal a {
  color: #6a737c;
  font-size: 13px;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #111827;
}

:focus-visible {
  outline: 3px solid rgba(183, 40, 120, 0.32);
  outline-offset: 3px;
}

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

@media (max-width: 1080px) {
  .tickets-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand img {
    width: 118px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    order: 3;
    padding-top: 2px;
  }

  .header-actions {
    grid-column: 2;
    justify-self: end;
    gap: 8px;
  }

  .sell-link {
    padding-inline: 12px;
    font-size: 13px;
  }

  .login-link {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-stat {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

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

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

  .ticket-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .ticket-cover {
    width: 72px;
  }

  .ticket-arrow {
    display: none;
  }

  .ticket-title-row h3 {
    white-space: normal;
  }

  .detail-grid,
  .action-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .footer-brand img {
    width: 146px;
  }

  .footer-socials {
    gap: 10px;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 430px) {
  .top-nav a {
    padding: 9px 11px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .header-actions {
    grid-column: 2;
    justify-self: end;
    order: initial;
  }

  .sell-link {
    padding-inline: 10px;
    font-size: 12px;
  }

  .login-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 8px;
  }
}
