:root {
      --panel-bg: rgba(10, 6, 32, 0.82);
      --panel-border: rgba(255, 255, 255, 0.12);
      --accent: #ffffff;
      --accent-soft: rgba(255, 255, 255, 0.2);
      --accent-strong: #fffbf2;
      --text-muted: rgba(255, 255, 255, 0.7);
      --radius-xl: 24px;
    }

    body {
      display: flex;
      align-items: stretch;
      justify-content: center;
      padding: 24px 16px;
    }

    .page-shell {
      max-width: 1120px;
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
      grid-template-areas: "info ticket";
      column-gap: 32px;
      align-items: flex-start;
    }

    .info-column {
      grid-area: info;
      display: flex;
      flex-direction: column;
      gap: 24px;
      align-self: flex-start;
    }

    /* LEFT HERO */

    .hero {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px 8px;
      /* min-height: 100%; */
      gap: 24px;
    }

    .hero-top {
      max-width: 520px;
      flex: 1;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.24);
      border: 1px solid rgba(255, 255, 255, 0.16);
      font-size: 0.76rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .eyebrow-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #ffeb3b;
      box-shadow: 0 0 8px rgba(255, 235, 59, 0.8);
    }

    .title-block h1 {
      font-size: clamp(3rem, 5vw, 4.6rem);
      line-height: 0.85;
      margin: 0 0 8px;
      letter-spacing: 0.08em;
    }

    .title-block h1 span.question {
      font-size: 0.88em;
    }

    .title-block h2 {
      margin: 0 0 12px;
      font-size: clamp(1.2rem, 2vw, 1.6rem);
      font-weight: 500;
    }

    .subtitle {
      font-size: 0.95rem;
      line-height: 1.6;
      max-width: 420px;
      color: var(--text-muted);
    }

    .meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 28px;
    }

    .meta-pill {
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--accent-soft);
      background: rgba(11, 6, 33, 0.5);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent-strong);
      white-space: nowrap;
    }

    .meta-pill strong {
      font-weight: 700;
    }

    .meta-pill a {
      color: inherit;
      text-decoration: none;
    }

    .meta-pill a:hover {
      text-decoration: underline;
    }

    .event-details {
      align-self: start;
      margin: 0;
      padding: 16px 8px;
      font-size: 0.85rem;
      color: var(--text-muted);
      max-width: 520px;
    }

    .event-details-list {
      list-style: none;
      margin: 0 0 10px;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
      color: var(--accent-strong);
    }

    .event-details-list li {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .event-details-list span.label {
      font-weight: 600;
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    /* Keep inline links white for emphasis without changing surrounding style */
    .subtitle a,
    .hero-bottom a:not(.funding-link),
    .ticket-header-left p a {
      color: #fff;
      text-decoration: underline;
      text-decoration-color: rgba(255, 255, 255, 0.55);
      text-underline-offset: 2px;
    }

    .subtitle a:hover,
    .hero-bottom a:not(.funding-link):hover,
    .ticket-header-left p a:hover {
      text-decoration-color: #fff;
    }

    .hero-bottom {
      font-size: 0.82rem;
      color: var(--text-muted);
      width: 100%;
      max-width: 520px;
      align-self: start;
      padding: 0 8px;
      margin-top: 8px;
    }

    .hero-bottom span {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 8px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .funding-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      margin-top: 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      letter-spacing: 0.06em;
    }

    .funding-link:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.28);
    }

    /* RIGHT TICKET PANEL */

    .ticket-panel {
      grid-area: ticket;
      background: var(--panel-bg);
      border-radius: var(--radius-xl);
      border: 1px solid var(--panel-border);
      box-shadow: 0 24px 80px rgba(5, 6, 23, 0.7);
      padding: 24px 24px 5px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
    }

    .ticket-panel::before {
      content: "";
      position: absolute;
      inset: -30%;
      background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.14) 0, transparent 55%),
        radial-gradient(circle at 120% 100%, rgba(255, 255, 255, 0.18) 0, transparent 60%);
      opacity: 0.6;
      pointer-events: none;
    }

    .ticket-inner {
      position: relative;
      z-index: 1;
    }

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

    .ticket-header-left h3 {
      margin: 0 0 4px;
      font-size: 1.15rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .ticket-header-left p {
      margin: 0;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .badge {
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.75rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border: 1px solid rgba(255, 255, 255, 0.4);
      background: rgba(0, 0, 0, 0.35);
    }

    .price-tag {
      margin: 8px 0 18px;
      font-size: 1.4rem;
      font-weight: 600;
    }

    .price-tag span {
      font-size: 0.76rem;
      font-weight: 400;
      opacity: 0.8;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-left: 6px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    input,
    select {
      width: 100%;
      padding: 11px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(5, 3, 20, 0.8);
      color: #fff;
      font-size: 0.95rem;
      outline: none;
    }

    input::placeholder {
      color: rgba(255, 255, 255, 0.45);
    }
    
    input[type="number"] {
      -moz-appearance: textfield;
    }
    
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .help-text {
      margin-top: 6px;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.72);
      line-height: 1.4;
    }

    button {
      width: 100%;
      margin-top: 4px;
      padding: 13px 16px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(120deg, #ffaf6b, #ff5d8f, #9b8cff);
      color: #fff;
      font-size: 0.98rem;
      font-weight: 600;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    button span.label {
      position: relative;
      z-index: 1;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    button:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    }

    button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .price-info {
      margin-top: 8px;
      font-size: 0.9rem;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .price-info strong {
      color: var(--accent-strong);
      font-size: 1rem;
    }

    .tiny-copy {
      margin-top: 16px;
      font-size: 0.75rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    .tiny-copy span {
      text-transform: uppercase;
      letter-spacing: 0.16em;
      font-size: 0.7rem;
    }

    .loading {
      margin-top: 16px;
      font-size: 0.85rem;
      color: var(--text-muted);
      text-align: center;
    }

    .spinner {
      border: 3px solid rgba(255, 255, 255, 0.15);
      border-top: 3px solid #fff;
      border-radius: 50%;
      width: 28px;
      height: 28px;
      margin: 0 auto 8px;
      animation: spin 0.9s linear infinite;
    }

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

    /* MOBILE */

    @media (max-width: 820px) {
      body {
        padding: 18px 14px 48px;
      }

      .page-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
          "hero"
          "ticket"
          "details"
          "fundraiser";
        row-gap: 16px;
      }

      .info-column {
        display: contents;
      }

      .hero {
        grid-area: hero;
        padding: 0;
      }

      .ticket-panel {
        padding: 20px 18px 18px;
      }

      .ticket-header-left h3 {
        font-size: 1rem;
      }

      .hero-bottom {
        grid-area: fundraiser;
        padding: 0;
        max-width: 100%;
        margin-top: 16px;
      }

      .event-details {
        grid-area: details;
        padding: 16px 0;
        max-width: 100%;
      }
    }

    /* Ticket Details Panel */
    .ticket-details-panel {
      background: rgba(5, 3, 20, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 16px;
      display: none;
    }

    .ticket-details-panel.visible {
      display: block;
    }

    .ticket-details-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 8px;
    }

    .ticket-details-name {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0;
      color: var(--accent-strong);
    }

    .ticket-details-price {
      font-size: 1.2rem;
      font-weight: 700;
      color: #ffaf6b;
      margin: 0;
    }

    .ticket-details-description,
    .ticket-details-extra {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin: 8px 0;
    }

    .ticket-details-extra {
      margin-top: 16px;
    }

    .ticket-details-extra ul {
      padding-left: 18px;
      margin: 6px 0 0;
    }

    .ticket-details-extra li+li {
      margin-top: 4px;
    }

    .ticket-details-includes {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }

    .include-badge {
      background: rgba(155, 140, 255, 0.2);
      border: 1px solid rgba(155, 140, 255, 0.4);
      border-radius: 999px;
      padding: 3px 8px;
      font-size: 0.7rem;
      color: #9b8cff;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .inventory-status {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      font-size: 0.85rem;
    }

    .inventory-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .inventory-dot.available {
      background: #4caf50;
      box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    }

    .inventory-dot.limited {
      background: #ffc107;
      box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
    }

    .inventory-dot.sold-out {
      background: #f44336;
      box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
    }

    .inventory-text {
      color: var(--text-muted);
    }
