/* =========================================================
   Phoenix Bikes Fundraiser Styles (Brand-aligned)
   Brand:
   Orange  #F47F25
   Blue    #07A9F8
   White   #FFFFFF
   Black   #000000
   ========================================================= */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Design Tokens */
:root {
  /* Brand */
  --brand-orange: #F47F25;
  --brand-blue: #07A9F8;
  --white: #FFFFFF;
  --black: #000000;

  /* Brand-derived */
  --blue-700: #057DB8;
  --blue-100: #E6F6FE;

  --orange-700: #C96318;
  --orange-100: #FFF2E7;

  /* Neutrals */
  --text: #1A1A1A;
  --text-muted: #4A4A4A;
  --text-subtle: #7A7A7A;
  --border: #E6E6E6;
  --border-strong: #CCCCCC;
  --surface: #FFFFFF;
  --surface-soft: #F7F9FC;

  /* Effects */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;

  /* Focus ring */
  --focus: 0 0 0 3px rgba(7, 169, 248, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(
    180deg,
    var(--blue-100) 0%,
    var(--surface-soft) 55%,
    var(--white) 100%
  );
  min-height: 100vh;
}

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

/* Header */
header {
  background: rgba(255, 255, 255, 0.96);
  padding: 2rem 0;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
}

header .container {
  position: relative;
  z-index: 1;
}

header h1 {
  color: var(--brand-orange);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-subtle);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Tab Navigation */
.tab-navigation {
  background: var(--surface);
  border-bottom: 3px solid var(--brand-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-navigation .container {
  display: flex;
  justify-content: center;
  gap: 0;
}

.tab-button {
  flex: 1;
  max-width: 400px;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: none;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-subtle);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tab-button:hover {
  background: var(--surface-soft);
  color: var(--blue-700);
}

.tab-button.active {
  color: var(--blue-700);
  border-bottom-color: var(--brand-blue);
  background: var(--blue-100);
}

.tab-icon {
  font-size: 1.5rem;
}

.tab-label {
  text-align: center;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

/* Main Content */
main {
  padding: 1rem 0;
}

/* Hero Section */
.hero {
  background: var(--surface);
  padding: 2rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero h2 {
  color: var(--blue-700);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Ticket Sections */
.ticket-section {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  color: var(--blue-700);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1rem;
  color: var(--text-subtle);
}

/* Pricing Table */
.pricing-table {
  background: var(--surface-soft);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 2px solid var(--brand-blue);
}

.pricing-table h3 {
  color: var(--blue-700);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

thead {
  background: var(--blue-700);
  color: var(--white);
}

th,
td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 700;
  font-size: 0.95rem;
}

tbody tr:hover {
  background: rgba(7, 169, 248, 0.08);
}

tbody tr.popular {
  background: var(--orange-100);
}

tbody tr.best-value {
  background: rgba(7, 169, 248, 0.10);
  font-weight: 700;
}

tbody tr.best-value td:last-child {
  color: var(--blue-700);
  font-size: 1.1rem;
}

/* Ticket Cards */
.ticket-card {
  display: block;
  padding: 0;
}

.ticket-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ticket-info h3 {
  color: var(--blue-700);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.price-display {
  margin: 1rem 0;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-orange);
}

.price-label {
  display: inline;
  color: var(--text-subtle);
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

.event-description {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.highlight {
  background: var(--orange-100);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand-orange);
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Purchase Section */
.purchase-section {
  padding: 0;
}

.purchase-section label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.purchase-section input[type="number"],
.purchase-section select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
  color: var(--text);
}

/* Quantity Controls with +/- Buttons */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quantity-controls input[type="number"] {
  flex: 1;
  text-align: center;
  margin-bottom: 0;
}

.qty-btn {
  width: 45px;
  height: 45px;
  background: var(--brand-orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: var(--orange-700);
}

.qty-btn:active {
  transform: scale(0.95);
  background: var(--orange-700);
}

.qty-btn:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  background: var(--brand-orange);
}

.qty-btn:focus:not(:focus-visible) {
  outline: none;
}

.purchase-section input[type="number"]:focus,
.purchase-section select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus);
}

/* Price Breakdown */
.price-breakdown {
  background: var(--surface-soft);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.breakdown-row.total-row {
  border-top: 2px solid var(--brand-blue);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.breakdown-row.savings-row {
  background: rgba(7, 169, 248, 0.10);
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
}

.breakdown-value.savings {
  color: var(--blue-700);
  font-weight: 800;
}

.total-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-orange);
  margin: 1rem 0;
  text-align: center;
  padding: 0.75rem;
  background: var(--orange-100);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 127, 37, 0.35);
}

/* PayPal Button Container */
.paypal-button-container {
  margin: 1rem auto;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 400px;
}

/* Upsell Section */
.upsell-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--orange-100) 0%, var(--white) 100%);
  border: 2px solid var(--brand-orange);
  border-radius: var(--radius);
}

.upsell-header {
  text-align: center;
  margin-bottom: 1rem;
}

.upsell-header h4 {
  color: var(--brand-orange);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 900;
}

.upsell-tagline {
  color: var(--text-subtle);
  font-weight: 600;
  font-size: 0.9rem;
}

.upsell-toggle {
  margin: 1rem 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--border);
}

.checkbox-container:hover {
  background: var(--surface-soft);
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--brand-orange);
}

.upsell-options {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 2px solid var(--brand-orange);
}

.upsell-options label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.upsell-options select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
}

.upsell-options select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(244, 127, 37, 0.22);
}

/* Custom Quantity Input (for "More tickets..." option) */
.custom-qty-input {
  background: var(--surface-soft);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.custom-qty-input label {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.custom-qty-input .quantity-controls {
  margin-bottom: 0.75rem;
}

.custom-qty-input input[type="number"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  -moz-appearance: textfield;
}

.custom-qty-input input[type="number"]::-webkit-outer-spin-button,
.custom-qty-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-qty-input input[type="number"]:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus);
}

.custom-qty-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.upsell-pricing {
  background: var(--surface-soft);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.upsell-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.upsell-row.grand-total {
  border-top: 2px solid var(--brand-orange);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-orange);
}

/* View Prizes Button */
.view-prizes-btn {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 2px solid var(--brand-blue);
  border-radius: 10px;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-prizes-btn:hover {
  background: var(--brand-blue);
  color: var(--white);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: var(--surface);
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 600px;
  position: relative;
  animation: slideIn 0.3s;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  color: #888;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--blue-700);
}

.modal h2 {
  color: var(--blue-700);
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-size: 1.8rem;
}

.prize-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.prize-item:last-of-type {
  border-bottom: none;
}

.prize-item h3 {
  color: var(--brand-orange);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

.prize-item h4 {
  color: var(--blue-700);
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.prize-item p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0.5rem 0;
}

.prize-image-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--orange-100) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.prize-image-placeholder span {
  font-size: 4rem;
}

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

.modal-footer p {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

.modal-footer .fine-print {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 1rem;
  font-style: italic;
}

/* CTA Links */
.cta-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.cta-link a {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cta-link a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Info Section */
.info-section {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-section h2 {
  color: var(--blue-700);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.faq {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-blue);
  border: 1px solid var(--border);
}

.faq-item h3 {
  color: var(--text);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.88);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tab-button {
    padding: 1rem 1rem;
    font-size: 0.95rem;
  }

  .tab-label {
    font-size: 0.9rem;
  }

  .tab-icon {
    font-size: 1.2rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .ticket-section {
    padding: 1rem;
  }

  .modal-content {
    margin: 10% 1rem;
    padding: 1.5rem;
  }

  .prize-image-placeholder {
    height: 120px;
  }

  .prize-image-placeholder span {
    font-size: 3rem;
  }

  .pricing-table {
    padding: 1rem;
    overflow-x: auto;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem;
  }

  .price {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .info-section {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 1.25rem;
  }

  .ticket-section {
    padding: 1rem;
  }

  /* Center ticket info and price on mobile */
  .ticket-info {
    text-align: center;
  }

  .ticket-info h3 {
    text-align: center;
  }

  .price-display {
    text-align: center;
  }

  /* Reduce description font size on mobile */
  .section-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .purchase-section {
    padding: 1rem;
  }

  table {
    font-size: 0.75rem;
  }

  th,
  td {
    padding: 0.4rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticket-section,
.hero,
.info-section {
  animation: fadeIn 0.6s ease-out;
}

/* NEW: Merch Grid and Cards */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .merch-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.merch-item-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    transition: box-shadow 0.2s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.merch-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.merch-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.merch-image-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 3rem;
}

.merch-details {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-grow: 0;
}

.merch-details h4 {
    color: var(--blue-700);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.merch-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    min-height: 2rem;
    line-height: 1.3;
}

.merch-price {
    font-size: 1.3rem;
    color: var(--brand-orange);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.merch-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.merch-selector .form-group {
    text-align: left;
}

.merch-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}

.merch-sex-select,
.merch-size-select,
.merch-quantity-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
}

.merch-sex-select:focus,
.merch-size-select:focus,
.merch-quantity-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--orange-700);
}

/* Merch Cart */
.merch-cart {
    background: var(--surface-soft);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.merch-cart h4 {
    color: var(--blue-700);
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}

.cart-item-name {
    font-weight: 500;
    color: var(--text);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-btn-minus,
.cart-btn-plus {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.cart-btn-minus:hover,
.cart-btn-plus:hover {
    background: var(--blue-100);
}

.cart-item-quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-weight: 700;
    color: var(--brand-orange);
    margin-left: 0.5rem;
}

.merch-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.merch-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.merch-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.merch-card h3 {
    color: var(--blue-700);
    margin-bottom: 0.5rem;
}

.merch-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.merch-price {
    font-size: 1.2rem;
    color: var(--brand-orange);
    font-weight: 800;
    margin-bottom: 1rem;
}

.variant-selector {
    margin-bottom: 0.75rem;
    text-align: left;
}

.variant-selector label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.variant-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
}

.variant-select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.no-variants {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.merch-quantity {
    margin-bottom: 1rem;
    text-align: left;
}

.merch-quantity label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.merch-qty-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}

.merch-qty-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--orange-700);
}

.add-to-cart-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* NEW: Merch Items (matching upsell-toggle style) */
.merch-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.merch-item .checkbox-container {
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: background 0.2s ease;
}

.merch-item .checkbox-container:hover {
    background: var(--blue-100);
}

/* Merch Upsell Section Container */
.upsell-section.merch {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
}

/* Order Summary - Merchandise Details */
.summary-merch-details {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.summary-merch-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.15rem 0;
    line-height: 1.4;
}

/* Merchandise Pre-Order Countdown */
.merch-countdown {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.countdown-message {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .merch-countdown {
        padding: 1rem;
    }

    .countdown-message {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .countdown-timer {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .countdown-item {
        min-width: 0;
        flex: 1;
        padding: 0.4rem 0.25rem;
    }

    .countdown-value {
        font-size: 1.25rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }
}

/* Merchandise Pre-Orders Closed Banner */
.merch-closed-banner {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
}

.merch-closed-banner .closed-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.merch-closed-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 1rem 0;
}

.merch-closed-banner p {
    font-size: 1rem;
    color: #991b1b;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tax Deduction Note */
.tax-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-align: center;
}

/* Enhanced Prize Modal with Carousel and Video */
.prize-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    background: #f0f0f0;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.prize-video {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.prize-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.prize-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 1rem 0;
}

.prize-terms {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

/* Raffle Explanation */
.raffle-explanation {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    border-left: 4px solid var(--brand-blue);
}

.raffle-explanation p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.raffle-explanation strong {
    color: var(--brand-blue);
    font-weight: 700;
}

/* ======================================
   RAFFLE PAGE SPECIFIC STYLES
   ====================================== */

/* Prizes Section */
.prizes-section {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.prizes-section h2 {
    text-align: center;
    color: var(--brand-orange);
    margin-bottom: 1.5rem;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Ticket Selector */
.ticket-selector {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.ticket-selector h3 {
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.ticket-selector label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.ticket-selector select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface);
    color: var(--text);
}

.ticket-selector select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: var(--focus);
}

/* Pricing Details */
.pricing-details {
    background: linear-gradient(135deg, var(--orange-100) 0%, var(--white) 100%);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    border: 1px solid var(--brand-orange);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

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

.pricing-row.total-row {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-orange);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--brand-orange);
}

.pricing-row.savings-row {
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

/* Strikethrough original price */
.original-price {
    text-decoration: line-through;
    color: var(--text-subtle);
    margin-right: 0.5rem;
    font-weight: 400;
}

/* Info Grid (How It Works) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--brand-blue);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.info-item h3 {
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-subtle);
    line-height: 1.6;
}

/* Header Link (Cross-page navigation) */
.header-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 70, 140, 0.3);
}

.header-link:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 70, 140, 0.4);
}

/* Responsive adjustments for raffle page */
@media (max-width: 768px) {
    .prizes-grid {
        grid-template-columns: 1fr;
    }

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

    .ticket-selector {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .raffle-explanation {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* ======================================
   PURCHASE MODAL STYLES
   ====================================== */

.purchase-modal-content {
    text-align: center;
    max-width: 400px;
}

.purchase-state h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.purchase-state p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.purchase-state .success-note,
.purchase-state .error-note {
    font-weight: 500;
    margin-top: 1rem;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

/* Success Icon */
.success-icon {
    width: 60px;
    height: 60px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Error Icon */
.error-icon {
    width: 60px;
    height: 60px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Close Page Button */
.close-page-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* ======================================
   PROMO CODE SECTION STYLES
   ====================================== */

.promo-code-section {
    background: var(--surface-soft);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.promo-code-section h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text);
    font-size: 1rem;
}

.promo-code-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.promo-code-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-transform: uppercase;
}

.promo-code-input-wrapper input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: var(--focus);
}

.promo-code-input-wrapper input:disabled {
    background: var(--surface-soft);
    color: var(--text-muted);
}

.promo-code-input-wrapper button {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.promo-code-status {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.promo-code-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.promo-code-status.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.promo-success {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.promo-success span {
    font-weight: 600;
}

.remove-promo-btn {
    background: transparent;
    border: 1px solid #155724;
    color: #155724;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.remove-promo-btn:hover {
    background: rgba(21, 87, 36, 0.1);
}

.promo-error {
    font-weight: 500;
}

/* Comped tickets row in summary */
.promo-discount-row {
    color: #155724;
    font-weight: 500;
}

/* ======================================
   PURCHASING FOR OTHERS SECTION
   ====================================== */

.purchasing-for-others-section {
    background: var(--surface-soft);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.purchasing-for-others-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--brand-blue);
}

/* ======================================
   SOLD OUT STATE STYLES
   ====================================== */

.sold-out-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--orange-100) 0%, var(--white) 100%);
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius);
}

.sold-out-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.sold-out-message h3 {
    color: var(--brand-orange);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.sold-out-message p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.sold-out-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Secondary button style (for promo code) */
.secondary-btn {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover {
    background: var(--surface-soft);
    border-color: var(--brand-blue);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary button style (reusable) */
.primary-btn {
    display: inline-block;
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-btn:hover {
    background: var(--orange-700);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .promo-code-input-wrapper {
        flex-direction: column;
    }

    .promo-code-input-wrapper button {
        width: 100%;
    }

    .promo-success {
        flex-direction: column;
        text-align: center;
    }
}

/* ======================================
   COMPED CHECKOUT FORM STYLES
   ====================================== */

.comped-checkout-form {
    background: linear-gradient(135deg, #d4edda 0%, #fff 100%);
    border: 2px solid #28a745;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comped-checkout-form h4 {
    color: #155724;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.comped-checkout-form > p {
    color: #155724;
    margin: 0 0 1.5rem 0;
}

.comped-checkout-form .form-group {
    margin-bottom: 1rem;
}

.comped-checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.comped-checkout-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.comped-checkout-form input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}
