  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg-deep: #0a0a0f;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dim: #8a7235;
    --text-primary: #e8e4dc;
    --text-secondary: #b8b3a8;
    --green: #7acc7a;
    --green-dim: #4a8a4a;
    --red-soft: #d4917a;
  }

  html { overflow-x: hidden; }   /* body alone does not stop the sideways scroll */
  body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ===== NAV ===== */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 0 2rem; height: 52px;
    display: flex; align-items: center; justify-content: center; gap: 3rem;
  }
  nav > a, .nav-links > a, .nav-dropdown > a {
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-secondary); text-decoration: none; transition: color 0.3s; line-height: 52px;
  }
  nav > a:hover, .nav-links > a:hover, .nav-dropdown > a:hover { color: var(--gold); }
  nav a { color: var(--text-secondary); text-decoration: none !important; }
  nav a:visited { color: var(--text-secondary); }
  nav a:hover { color: var(--gold); }
  .nav-dropdown { position: relative; height: 52px; display: flex; align-items: center; }
  .nav-dropdown > a { cursor: default; }
  .nav-dropdown > a::after { content: ' \25BE'; font-size: 0.6rem; opacity: 0.6; }
  .nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.96); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 4px; padding: 0.5rem 0; min-width: 200px;
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; backdrop-filter: blur(12px);
  }
  .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
  .nav-dropdown-menu a {
    display: block; padding: 0.6rem 1.4rem; font-family: 'Cinzel', serif;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    white-space: nowrap; color: var(--text-secondary); text-decoration: none !important;
  }
  .nav-dropdown-menu a:hover { color: var(--gold); background: rgba(201,168,76,0.06); }

  .hamburger {
    display: none; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background: none; border: 1px solid rgba(201,168,76,0.25);
    border-radius: 4px; cursor: pointer; flex-direction: column; align-items: center;
    justify-content: center; gap: 5px; z-index: 110; padding: 0;
  }
  .hamburger span { display: block; width: 20px; height: 2px; background: var(--gold); transition: all 0.3s; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-links { display: contents; }

  /* The nav collapses to a hamburger on a TOUCH DEVICE, not at a width. A phone
     in landscape reports 844-932px, so a 768px threshold left the full link row
     on screen - it overflowed the viewport, carrying the hamburger and the
     right-hand end of the bar off past the edge. (hover: none) asks the real
     question. The width case is kept for a narrow desktop window. */
  @media (max-width: 768px), (hover: none) {
    .hamburger { display: flex; }
    nav { justify-content: flex-start; padding: 0 1.2rem; }
    .nav-links {
      display: flex; flex-direction: column; position: fixed; top: 52px; left: 0; right: 0;
      background: rgba(10, 10, 15, 0.97); border-bottom: 1px solid rgba(201,168,76,0.15);
      padding: 0; gap: 0; max-height: 0; overflow: hidden;
      transition: max-height 0.35s ease, padding 0.35s ease; z-index: 99; backdrop-filter: blur(12px);
    }
    .nav-links.open { max-height: calc(100dvh - 52px); overflow-y: auto; padding: 1rem 0; }
    .nav-links > a, .nav-dropdown > a { line-height: 1; padding: 0.85rem 2rem; font-size: 0.78rem; display: block; }
    .nav-dropdown { height: auto; flex-direction: column; align-items: stretch; }
    .nav-dropdown > a { padding: 0.85rem 2rem; font-size: 0.78rem; cursor: pointer; }
    .nav-dropdown-menu {
      position: static; transform: none; background: rgba(15, 15, 22, 0.9);
      border: none; border-radius: 0; border-left: 2px solid rgba(201,168,76,0.2);
      margin-left: 2rem; padding: 0; min-width: 0; max-height: 0; overflow: hidden;
      opacity: 1; visibility: visible; transition: max-height 0.3s ease;
    }
    .nav-dropdown.open .nav-dropdown-menu { max-height: 360px; padding: 0.3rem 0; }
    .nav-dropdown-menu a { padding: 0.65rem 1.4rem; font-size: 0.72rem; }
    .nav-dropdown:hover .nav-dropdown-menu { max-height: 0; padding: 0; }
    .nav-dropdown.open:hover .nav-dropdown-menu { max-height: 360px; padding: 0.3rem 0; }
  }

  /* ===== STORE PAGE ===== */
  .store-page {
    padding: 72px 1.5rem 3rem; min-height: 100vh;
    position: relative;
  }
  .store-page::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 50% 20%, rgba(201,168,76,0.04) 0%, transparent 60%),
      radial-gradient(ellipse at 50% 80%, rgba(107,32,32,0.05) 0%, transparent 50%);
    pointer-events: none;
  }
  .store-content {
    max-width: 1000px; margin: 0 auto; position: relative; z-index: 1;
    visibility: hidden; /* Hidden until greeting check completes — prevents flash */
  }
  .store-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0; gap: 1.5rem; flex-wrap: wrap;
    position: sticky; top: 52px; z-index: 50;
    background: rgba(10,10,15,0.97); backdrop-filter: blur(12px);
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    margin-left: -1.5rem; margin-right: -1.5rem;
    min-height: 56px;
  }
  .store-header-left { text-align: left; }
  .store-header-right {
    text-align: right; min-width: 180px;
    font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.06em; color: var(--text-secondary); line-height: 1.7;
  }
  .store-header-right .sv { color: var(--gold); font-weight: 700; }
  .store-header-right .sv.g { color: var(--green); }

  /* ── FREE SHIPPING PROGRESS BAR — lives inside table header ── */
  .ship-col-header {
    padding: 0.2rem 0.5rem !important;
    text-align: center !important;
  }
  .ship-col-inner {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.25rem;
  }
  .ship-col-cell { /* empty cell in body rows */ }
  .ship-bar-label {
    font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); text-align: center;
    transition: color 0.5s ease;
  }
  .ship-bar-label.unlocked { color: var(--gold); }
  .ship-bar-track {
    width: 90%; max-width: 200px;
    height: 8px; background: #000;
    border: 1px solid rgba(201,168,76,0.5);
    border-radius: 4px; overflow: hidden;
    position: relative;
  }
  .ship-bar-fill {
    height: 100%; width: 0%; border-radius: 3px;
    background: var(--gold);
    box-shadow: none;
    transition: width 0.5s cubic-bezier(0.25,0,0.35,1),
                background 0.5s ease,
                box-shadow 0.5s ease;
  }
  /* Glow intensifies as bar fills — set via JS inline style */
  .ship-bar-fill.unlocked {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(201,168,76,0.9), 0 0 24px rgba(201,168,76,0.5);
  }

  /* Celebration burst */
  .ship-celebrate {
    position: fixed; inset: 0; pointer-events: none; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
  }
  .ship-celebrate.show { opacity: 1; }
  .ship-celebrate-text {
    font-family: 'Cinzel', serif; font-size: clamp(1.2rem,3vw,2rem);
    font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); text-align: center;
    text-shadow: 0 0 30px rgba(201,168,76,0.9), 0 0 60px rgba(201,168,76,0.5);
    animation: celebratePop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  }
  @keyframes celebratePop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1);   opacity: 1; }
  }
  .confetti-piece {
    position: absolute; width: 8px; height: 8px; border-radius: 2px;
    animation: confettiFall 1.8s ease-in forwards;
  }
  @keyframes confettiFall {
    0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
  }
  .store-label {
    font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.3rem;
  }
  .store-title {
    font-family: 'Cinzel', serif; font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700; letter-spacing: 0.06em; color: var(--gold);
    margin-bottom: 0.2rem;
  }
  .store-subtitle {
    font-size: 0.88rem; color: #9ad77f; font-style: italic; line-height: 1.4;
  }

  /* ── Header donation line — centered in campaign reminder row ── */
  .header-donation-line {
    display: inline-flex; align-items: center; gap: 0.5rem;
  }
  .header-donation-label-text {
    font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    animation: donationLabelFlash 1.6s ease-in-out infinite;
  }
  @keyframes donationLabelFlash {
    0%, 100% { color: var(--green); }
    50%      { color: var(--gold); }
  }
  .header-donation-input-wrap {
    display: flex; align-items: center; gap: 0.1rem;
  }
  .header-donation-dollar {
    font-family: 'Cinzel', serif; color: var(--green);
    font-size: 0.7rem; font-weight: 700;
  }
  .header-donation-input {
    width: 64px; font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 700;
    background: rgba(0,0,0,0.35); color: var(--gold);
    border: 1.5px solid var(--green); border-radius: 3px;
    padding: 0.1rem 0.3rem; text-align: right;
    -moz-appearance: textfield;
    letter-spacing: 0.05em;
  }
  .header-donation-input:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(122,204,122,0.35);
  }
  .header-donation-input::-webkit-inner-spin-button,
  .header-donation-input::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
  }

  /* Matching funds (?) info icon + popup */
  .matching-suffix-wrap {
    position: relative; display: inline-block;
  }
  #campaignReminderName.is-matching { color: var(--green) !important; }
  .matching-info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 13px; height: 13px; border-radius: 50%;
    background: rgba(122,204,122,0.15); color: var(--green);
    border: 1px solid rgba(122,204,122,0.5);
    font-size: 0.55rem; font-weight: 700; cursor: pointer;
    vertical-align: middle; line-height: 1;
    font-family: 'Cinzel', serif; letter-spacing: 0;
  }
  .matching-info-icon:hover, .matching-info-icon:focus {
    background: rgba(122,204,122,0.3); outline: none;
  }
  .matching-info-popup {
    position: absolute; top: 22px; right: -10px;
    width: 260px; padding: 0.7rem 0.85rem;
    background: rgba(10,10,15,0.98); color: var(--text-secondary);
    border: 1px solid rgba(122,204,122,0.45); border-radius: 4px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem; font-style: italic; line-height: 1.45;
    text-transform: none; letter-spacing: 0;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
    z-index: 200; pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  }
  .matching-suffix-wrap:hover .matching-info-popup,
  .matching-info-popup.open {
    opacity: 1; visibility: visible; pointer-events: auto;
  }

  /* ── Cart icon — muted by default, glow when active ── */
  .cart-btn.cart-active {
    border-color: var(--gold);
    color: var(--gold);
    animation: cartBreathe 3s ease-in-out infinite;
  }
  .cart-btn:not(.cart-active) {
    opacity: 0.5;
    color: var(--gold-dim);
    border-color: rgba(201,168,76,0.18);
  }
  @keyframes cartBreathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.0); }
    50%      { box-shadow: 0 0 18px 4px rgba(201,168,76,0.25); }
  }

  .preorder-tag {
    display: inline-block; font-family: 'Cinzel', serif;
    font-size: 0.52rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: #d4a04c; background: rgba(212,160,76,0.1);
    border: 1px solid rgba(212,160,76,0.25); border-radius: 2px;
    padding: 0.05rem 0.3rem; margin-left: 0.3rem; vertical-align: middle;
  }
  .order-confirm-preorder {
    font-size: 0.88rem; color: #d4a04c; font-style: italic;
    margin: 0.6rem 0; line-height: 1.5; padding: 0.6rem;
    background: rgba(212,160,76,0.06); border: 1px solid rgba(212,160,76,0.15);
    border-radius: 4px;
  }

  /* ===== ORDER TABLE ===== */
  .order-table-wrap {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201,168,76,0.1); border-radius: 6px;
    background: rgba(12, 12, 18, 0.6);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 220px);
    position: relative;
  }
  .order-table td, .order-table th, .order-table button, .order-table span, .order-table a {
    touch-action: auto;
  }
  .order-table {
    width: 100%; border-collapse: collapse;
    table-layout: fixed;
  }
  .order-table col.col-item   { width: 9%; }
  .order-table col.col-title  { width: 22%; }
  .order-table col.col-ship   { width: 18%; }
  .order-table col.col-format { width: 13%; }
  .order-table col.col-qty    { width: 12%; }
  .order-table col.col-unit   { width: 13%; }
  .order-table col.col-sub    { width: 13%; }
  .order-table thead th {
    font-family: 'Cinzel', serif; font-size: 0.58rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold); padding: 0.35rem 0.3rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    text-align: left; white-space: normal; line-height: 1.25;
    position: sticky; top: 0; background: rgba(12,12,18,0.98);
    z-index: 2; vertical-align: bottom;
  }
  .order-table thead th .th-sub {
    display: block; font-size: 0.58rem; font-weight: 600;
    color: var(--gold-dim); letter-spacing: 0.08em;
    opacity: 1; margin-top: 0.05rem;
  }
  .order-table thead th.r { text-align: right; }
  .order-table thead th.c { text-align: center; }
  .order-table tbody tr {
    border-bottom: 1px solid rgba(201,168,76,0.04);
    transition: background 0.15s;
  }
  .order-table tbody tr:hover { background: rgba(201,168,76,0.03); }
  .order-table tbody tr.preorder { opacity: 0.75; }
  .order-table tbody td {
    padding: 0.2rem 0.3rem; font-size: 0.85rem; vertical-align: middle;
    line-height: 1.2;
  }
  .order-table tbody tr.section-divider td {
    padding: 0.5rem 0.3rem; font-family: 'Cinzel', serif;
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold);
    border-bottom: 1px solid rgba(201,168,76,0.12);
    background: rgba(201,168,76,0.03);
  }
  .order-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
  .order-table td.c { text-align: center; }
  .order-table .item-code {
    font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 600;
    color: var(--gold-dim); letter-spacing: 0.03em;
  }
  .order-table .item-title {
    font-weight: 500; color: var(--text-primary); cursor: pointer;
    position: relative; display: inline-block;
    border-bottom: 1px dotted rgba(201,168,76,0.3);
    transition: color 0.2s; font-size: 0.82rem;
  }
  .order-table .item-title:hover { color: var(--gold); }
  .order-table .item-format {
    font-size: 0.78rem; color: var(--text-secondary);
  }
  .order-table .item-coming {
    font-size: 0.78rem; font-style: italic; color: var(--text-secondary); opacity: 0.7;
  }
  .order-table .price-cell { color: var(--text-secondary); }
  .order-table .subtotal-cell { color: var(--gold); font-weight: 700; }

  /* Qty stepper */
  .qty-stepper {
    display: inline-flex; align-items: center;
    border: 1px solid rgba(201,168,76,0.25); border-radius: 3px;
    overflow: hidden; height: 24px;
  }
  .qty-stepper button {
    width: 22px; height: 100%; border: none; background: rgba(201,168,76,0.1);
    color: var(--gold-light); font-size: 0.95rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif; transition: background 0.2s;
  }
  .qty-stepper button:hover { background: rgba(201,168,76,0.25); }
  .qty-stepper button:disabled { opacity: 1; cursor: default; color: var(--gold-light); }
  .qty-stepper .qty-val {
    width: 24px; text-align: center; font-family: 'Cinzel', serif;
    font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
    background: rgba(0,0,0,0.2); height: 100%; line-height: 24px;
    border-left: 1px solid rgba(201,168,76,0.12);
    border-right: 1px solid rgba(201,168,76,0.12);
  }
  .qty-stepper .qty-val.has-items { color: var(--green); }

  /* Free book selector */
  .free-book-row {
    background: rgba(122,204,122,0.04) !important;
    border-left: 3px solid var(--green);
  }
  .free-book-row td { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .free-select {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(122,204,122,0.3);
    color: var(--green); font-family: 'Cormorant Garamond', serif;
    font-size: 0.88rem; padding: 0.2rem 0.4rem; border-radius: 3px;
    cursor: pointer; max-width: 220px; flex: 1;
  }
  .free-select option { background: #1a1a2e; color: var(--text-primary); }
  .free-selector-row {
    display: flex; align-items: center; gap: 0.6rem;
    margin: 0.3rem 0; padding: 0.25rem 0;
  }
  .free-selector-label {
    font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
    white-space: nowrap;
  }
  .free-selector-columns {
    display: flex; gap: 1.5rem; width: 100%;
  }
  .free-selector-col {
    flex: 1; min-width: 0;
  }

  /* Cover lightbox */
  .cover-lightbox {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000;
    width: 360px; max-width: 45vw;
    background: rgba(10,10,18,0.96); backdrop-filter: blur(12px);
    border-left: 1px solid rgba(201,168,76,0.15);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .cover-lightbox.show { transform: translateX(0); }
  .cover-lightbox img {
    max-height: 70vh; max-width: 100%;
    border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 2px solid rgba(201,168,76,0.2);
  }
  .cover-lightbox .lb-close {
    position: absolute; top: 1rem; right: 1rem;
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold-dim); cursor: pointer;
    background: rgba(10,10,15,0.7); border: 1px solid rgba(201,168,76,0.2);
    padding: 0.4rem 1rem; border-radius: 4px; transition: color 0.2s;
  }
  .cover-lightbox .lb-close:hover { color: var(--gold); }
  .cover-lightbox .lb-title {
    margin-top: 1rem;
    font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 600;
    color: var(--gold); letter-spacing: 0.06em; text-align: center;
  }

  /* ===== CART PANEL ===== */
  .cart-btn {
    position: fixed; top: 10px; right: 1.5rem; z-index: 101;
    background: rgba(10, 10, 15, 0.85); border: 1px solid rgba(201,168,76,0.25);
    border-radius: 4px; padding: 0.4rem 0.7rem; cursor: pointer;
    color: var(--gold); font-size: 1.2rem; transition: border-color 0.3s;
    backdrop-filter: blur(8px);
  }
  .cart-btn:hover { border-color: var(--gold); }
  .cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--gold); color: var(--bg-deep);
    font-family: 'Cinzel', serif; font-size: 0.6rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.5); transition: all 0.3s;
  }
  .cart-badge.show { opacity: 1; transform: scale(1); }

  .cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 200; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .cart-overlay.open { opacity: 1; visibility: visible; }

  .cart-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 520px; max-width: 95vw;
    background: rgba(14, 14, 22, 0.98); backdrop-filter: blur(16px);
    border-left: 1px solid rgba(201,168,76,0.15);
    z-index: 201; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .cart-panel.open { transform: translateX(0); }

  .cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; border-bottom: 1px solid rgba(201,168,76,0.1);
  }
  .cart-title {
    font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
  }
  /* ===== THEMED SCROLLBARS ===== */
  .order-table-wrap::-webkit-scrollbar { width: 6px; }
  .order-table-wrap::-webkit-scrollbar-track { background: rgba(10,10,15,0.8); }
  .order-table-wrap::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
  .order-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--gold); }

  .cart-items::-webkit-scrollbar { width: 5px; }
  .cart-items::-webkit-scrollbar-track { background: rgba(10,10,15,0.5); }
  .cart-items::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
  .cart-items::-webkit-scrollbar-thumb:hover { background: var(--gold); }

  .cart-close { display: none; }

  .cart-items {
    flex: 0 0 auto;
    height: 310px;
    overflow-y: auto;
    padding: 0.5rem 1.5rem;
  }
  .cart-hands-wrap {
    flex: 1;
    border-top: 1px solid rgba(201,168,76,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .cart-hands-top {
    display: flex;
    align-items: stretch;
  }
  .cart-hands-img {
    width: 50%;
    height: auto;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(201,168,76,0.2));
  }
  .cart-hands-text {
    flex: 1;
    padding: 0.8rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .join-fight-line2 {
    font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
    text-align: center; line-height: 1.3;
    flex: 1;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  }
  .cart-hands-bottom {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
  }
  .join-fight-line1 {
    font-family: 'Cinzel', serif; font-size: clamp(1rem, 4vw, 1.4rem); font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-primary); text-align: center; width: 100%;
  }
  .cart-empty {
    text-align: center; padding: 2rem 0; color: var(--text-secondary);
    font-style: italic;
  }
  .cart-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.06);
  }
  .cart-item-info { flex: 1; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
  .cart-item-title {
    font-family: 'Cinzel', serif; font-size: 0.75rem; font-weight: 600;
    color: var(--text-primary); letter-spacing: 0.03em;
  }
  .cart-item-format {
    font-size: 0.72rem; color: var(--text-secondary); font-style: italic;
  }
  .cart-item-price { font-size: 0.78rem; color: var(--gold); margin-left: auto; white-space: nowrap; }
  .cart-item-remove {
    background: none; border: none; color: var(--text-secondary);
    font-size: 0.68rem; cursor: pointer; text-decoration: underline;
    transition: color 0.2s; font-family: 'Cormorant Garamond', serif;
    white-space: nowrap; flex-shrink: 0;
  }
  .cart-item-remove:hover { color: #d45; }
  .cart-item-free {
    font-size: 0.75rem; color: var(--green); font-weight: 600;
    font-family: 'Cinzel', serif; letter-spacing: 0.08em;
    text-transform: uppercase; margin-top: 0.2rem;
  }

  /* ===== CHECKOUT FORM ===== */
  /* Gift Panel */
  .gift-panel { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .gift-panel.show { display: flex; }
  .gift-panel-scroll { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
  .gift-panel-footer {
    padding: 0.8rem 1.5rem; border-top: 1px solid rgba(201,168,76,0.15);
    background: rgba(14, 14, 22, 0.98);
  }
  .gift-panel-header {
    font-family: Cinzel, serif; font-size: 1rem; font-weight: 700;
    color: var(--gold); text-align: center; margin-bottom: 0.3rem;
  }
  .gift-panel-count {
    font-size: 0.95rem; color: var(--text-secondary); font-style: italic;
    text-align: center; margin-bottom: 0.5rem;
  }
  .gift-panel-desc {
    font-size: 0.9rem; color: #c4bfb3; text-align: center;
    line-height: 1.45; margin-bottom: 1.2rem;
  }
  .gift-row {
    border: 1px solid rgba(201,168,76,0.12); border-radius: 6px;
    padding: 0.7rem 0.8rem; margin-bottom: 0.6rem;
    background: rgba(201,168,76,0.03);
  }
  .gift-row-title {
    font-family: Cinzel, serif; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.4rem;
  }
  .gift-row-title span { color: var(--text-primary); }
  .gift-row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .gift-row-fields input {
    width: 100%; padding: 0.5rem 0.7rem;
    font-family: 'Cormorant Garamond', serif; font-size: 0.95rem;
    color: var(--text-primary); background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2); border-radius: 3px; outline: none;
    -webkit-text-fill-color: var(--text-primary);
  }
  .gift-row-fields input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
  .gift-row-fields input::placeholder { color: var(--text-secondary); font-size: 0.85rem; -webkit-text-fill-color: var(--text-secondary); }
  .gift-row-fields input:-webkit-autofill,
  .gift-row-fields input:-webkit-autofill:hover,
  .gift-row-fields input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(18,18,26,1) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-color: rgba(255,255,255,0.06) !important;
    transition: background-color 5000s ease-in-out 0s;
  }
  .gift-row-msg {
    margin-top: 0.4rem;
  }
  .gift-row-msg textarea {
    width: 100%; padding: 0.5rem 0.7rem;
    font-family: 'Cormorant Garamond', serif; font-size: 0.95rem;
    color: var(--text-primary); background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2); border-radius: 3px; outline: none;
    resize: vertical; min-height: 36px; max-height: 100px;
  }
  .gift-row-msg textarea:focus { border-color: var(--gold); }
  .gift-row-msg textarea::placeholder { color: var(--text-secondary); font-size: 0.85rem; }
  .gift-skip-note {
    font-size: 0.8rem; color: var(--text-secondary); font-style: italic;
    text-align: center; margin: 0.8rem 0;
  }
  @media (max-width: 480px) {
    .gift-row-fields { grid-template-columns: 1fr; }
  }

  .checkout-form { display: none; padding: 1rem 1.5rem; overflow-y: auto; flex: 1; }
  .checkout-form.show { display: block; }
  .checkout-section-label {
    font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin: 1.2rem 0 0.5rem;
    padding-bottom: 0.3rem; border-bottom: 1px solid rgba(201,168,76,0.1);
  }
  .form-row { display: flex; gap: 0.8rem; }
  .form-group { margin-bottom: 0.7rem; flex: 1; }
  .form-group label {
    display: block; font-size: 0.78rem; color: var(--text-secondary);
    margin-bottom: 0.2rem; font-family: 'Cinzel', serif;
    font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2); border-radius: 4px;
    padding: 0.5rem 0.7rem; font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem; color: var(--text-primary); transition: border-color 0.3s;
    color-scheme: dark;
  }
  .form-group input:-webkit-autofill,
  .form-group select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 50px rgba(14,14,22,1) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    border: 1px solid rgba(201,168,76,0.2) !important;
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,168,76,0.1);
  }
  .form-group select { cursor: pointer; }
  .form-group select option { background: #1a1a2e; color: #e8e0d0; }
  .form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-secondary); opacity: 0.5;
  }

  .btn-back-cart {
    background: none; border: none; color: var(--gold-dim);
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
    margin-bottom: 0.5rem; transition: color 0.2s;
  }
  .btn-back-cart:hover { color: var(--gold); }

  .order-confirm { display: none; text-align: center; padding: 2rem 0; }
  .order-confirm.show { display: block; }
  .order-confirm-icon { font-size: 3rem; margin-bottom: 1rem; }
  .order-confirm-title {
    font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.5rem;
  }
  .order-confirm-text {
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  .order-confirm-id {
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600;
    color: var(--gold-dim); letter-spacing: 0.12em; margin-top: 0.5rem;
  }
  .order-confirm-thankyou {
    font-size: 0.92rem; color: var(--green); font-style: italic;
    margin: 0.5rem 0; line-height: 1.5;
  }

  /* Autograph section */
  .autograph-section { margin-top: 0.5rem; }
  .autograph-unlock-hint {
    font-size: 0.82rem; color: var(--text-secondary); font-style: italic;
    padding: 0.4rem 0;
  }
  .autograph-unlock-hint .lock-icon { font-size: 0.9rem; }
  .autograph-unlocked-msg {
    font-size: 0.85rem; color: var(--green); font-weight: 600; margin-bottom: 0.4rem;
  }

  /* Special instructions */
  .special-instructions { margin-top: 0.5rem; }
  .special-instructions textarea { resize: vertical; min-height: 60px; max-height: 160px; }
  .special-instructions .si-hint {
    font-size: 0.95rem; color: var(--text-secondary); font-style: italic; margin-top: 0.2rem;
  }

  /* ===== CART FOOTER ===== */
  .cart-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem; border-top: 1px solid rgba(201,168,76,0.15);
    background: rgba(10,10,15,0.5);
  }
  .cart-subtotal, .cart-discount-line, .cart-donation-line, .cart-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.7rem;
  }
  .cart-subtotal-label, .cart-discount-label, .cart-donation-line-label {
    font-family: 'Cinzel', serif; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  }
  .cart-subtotal-val { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold); min-width: 60px; text-align: right; }
  .cart-subtotal-label { min-width: 60px; }
  .cart-donation-line { display: none; }
  .cart-donation-line.show { display: flex; }
  .cart-donation-input-wrap {
    display: flex; align-items: center; gap: 0.15rem;
  }
  .donation-dollar {
    font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold);
  }
  @keyframes inputFlash {
    0%,  49% { border-color: rgba(201,168,76,0.6); box-shadow: 0 0 6px rgba(201,168,76,0.2); }
    50%, 100% { border-color: rgba(122,204,122,0.6); box-shadow: 0 0 6px rgba(122,204,122,0.2); }
  }
  .cart-donation-input {
    width: 80px; background: none;
    border: none; border-bottom: 1px solid rgba(201,168,76,0.15);
    border-radius: 0;
    padding: 0.25rem 0.4rem; font-family: 'Cinzel', serif;
    font-size: 1.1rem; font-weight: 700; color: var(--gold); text-align: right;
  }
  .cart-donation-input:focus { outline: none; border-color: var(--gold); }
  .cart-donation-input::-webkit-inner-spin-button { -webkit-appearance: none; }
  .cart-donation-input { -moz-appearance: textfield; animation: inputFlash 1.2s ease-in-out infinite; }
  .donation-tooltip-wrap {
    position: relative; display: inline-block; cursor: help; margin-left: 0.3rem;
  }
  .donation-info-icon {
    font-size: 0.72rem; color: var(--gold-dim); transition: color 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid var(--gold-dim); font-weight: 700;
    font-family: 'Cinzel', serif; line-height: 1;
  }
  .donation-tooltip-wrap:hover .donation-info-icon { color: var(--gold); }
  .donation-tooltip {
    position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
    width: 240px; background: rgba(10,10,15,0.96); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 4px; padding: 0.6rem 0.8rem; font-size: 0.78rem;
    color: var(--text-secondary); line-height: 1.4;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none; z-index: 10;
  }
  .donation-tooltip-wrap:hover .donation-tooltip { opacity: 1; visibility: visible; }
  /* DONATION label flash — alternating gold and green */
  @keyframes donationFlash {
    0%,  49% { color: var(--gold); }
    50%, 100% { color: var(--green); }
  }
  .donation-label-flash {
    animation: donationFlash 1.2s ease-in-out infinite;
    font-weight: 700;
  }

  /* Matching Funds banner */
  .matching-funds-banner {
    flex: 1; text-align: center;
    display: none; /* shown by JS when active */
  }
  .matching-funds-banner.show { display: block; }
  .matching-funds-box {
    display: inline-block;
    background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(122,204,122,0.12));
    border: 1px solid rgba(201,168,76,0.5);
    border-radius: 4px;
    padding: 0.28rem 0.7rem;
    animation: mfPulse 2.2s ease-in-out infinite;
  }
  @keyframes mfPulse {
    0%,100% { border-color: rgba(201,168,76,0.5); box-shadow: 0 0 6px rgba(201,168,76,0.2); }
    50%      { border-color: rgba(122,204,122,0.7); box-shadow: 0 0 12px rgba(122,204,122,0.3); }
  }
  .matching-funds-box-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.58rem, 1vw, 0.72rem);
    font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--gold), var(--green), var(--gold));
    background-size: 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: mfShimmer 2.5s linear infinite;
  }
  @keyframes mfShimmer {
    0%   { background-position: 0% }
    100% { background-position: 200% }
  }
  .matching-funds-box-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.68rem, 1.1vw, 0.82rem);
    font-style: italic;
    color: rgba(232,228,210,0.85);
    line-height: 1.4; margin-top: 0.15rem;
  }

  .cart-donation-thanks {
    font-size: 0.78rem; color: var(--green); font-style: italic;
    margin: 0.2rem 0 0.3rem; text-align: center;
  }
  .cart-total {
    margin-top: 0.5rem; padding-top: 0.5rem;
    border-top: 1px solid rgba(201,168,76,0.55);
  }
  .cart-total-label {
    font-family: 'Cinzel', serif; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  }
  .cart-total-val {
    font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold);
  }
  .btn-checkout {
    width: 100%; margin-top: 0.8rem; padding: 0.8rem;
    font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--bg-deep); background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s;
  }
  .btn-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 20px rgba(201,168,76,0.25);
  }
  .btn-checkout:disabled { opacity: 0.4; cursor: not-allowed; }

  /* ===== PHILANTHROPY NOTE ===== */
  .philanthropy-note {
    text-align: center; margin: 1rem 0 0;
    padding: 0.6rem 1.2rem;
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 4px;
  }
  .philanthropy-note p {
    font-size: 0.82rem; color: var(--text-secondary);
    font-style: italic; line-height: 1.5;
  }
  .philanthropy-note strong { color: var(--gold); font-style: normal; font-weight: 600; }

  /* ===== LEAVE MODAL ===== */
  /* ── Campaign Greeting Modal ────────────────────────── */
  .greeting-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 1rem;
  }
  .greeting-overlay.show { opacity: 1; visibility: visible; }
  .greeting-card {
    background: linear-gradient(160deg, #0f0f18 0%, #1a1a2e 100%);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 12px; width: 100%; max-width: 520px;
    padding: 2.2rem 2rem 1.8rem; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  }
  .greeting-logo {
    font-family: 'Cinzel', serif; font-size: 0.62rem;
    letter-spacing: 0.2em; color: var(--gold);
    text-transform: uppercase; margin-bottom: 1.4rem;
  }
  .greeting-title {
    font-family: 'Cinzel', serif; font-size: 1.15rem;
    font-weight: 500; letter-spacing: 0.06em;
    color: var(--text-primary); line-height: 1.55;
    margin-bottom: 0.6rem;
  }
  .greeting-music {
    font-family: 'Cormorant Garamond', serif; font-size: 0.92rem;
    font-style: italic; color: var(--text-primary);
    margin-bottom: 1.8rem; line-height: 1.6;
  }
  .greeting-music span { color: var(--gold); }
  .greeting-btns {
    display: flex; flex-direction: column; gap: 0.75rem;
    margin-bottom: 1.4rem;
  }
  .greeting-btn {
    font-family: 'Cinzel', serif; font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.85rem 1.4rem; border-radius: 6px;
    border: none; cursor: pointer; transition: all 0.2s;
  }
  .greeting-btn-yes {
    background: var(--gold); color: #0a0a0f; font-weight: 700;
  }
  .greeting-btn-yes:hover { background: var(--gold-light, #e8d08a); }
  .greeting-btn-no {
    background: transparent; color: var(--text-primary);
    border: 1px solid rgba(201,168,76,0.25);
  }
  .greeting-btn-no:hover { border-color: var(--gold); color: var(--gold); }
  /* Campaign selector step */
  .greeting-campaign-step { display: none; }
  .greeting-campaign-step.show { display: block; }
  .greeting-back {
    font-family: 'Cinzel', serif; font-size: 0.6rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); background: none; border: none;
    cursor: pointer; margin-bottom: 1rem; display: inline-flex;
    align-items: center; gap: 0.4rem;
  }
  .greeting-back:hover { color: var(--gold); }
  .greeting-campaign-title {
    font-family: 'Cinzel', serif; font-size: 0.95rem;
    color: var(--gold); letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
  }
  .greeting-campaign-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-size: 0.85rem; line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }
  .step2-2x-tag {
    color: var(--green); font-weight: 700; font-style: normal;
    font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.04em;
  }
  .greeting-search {
    width: 100%; padding: 0.65rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 6px; color: var(--text-primary);
    font-family: 'Cormorant Garamond', serif; font-size: 0.95rem;
    margin-bottom: 0.6rem; box-sizing: border-box;
  }
  .greeting-search:focus { outline: none; border-color: var(--gold); }
  .greeting-campaign-list {
    max-height: 320px; overflow-y: auto;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 6px; margin-bottom: 1.2rem;
  }
  .greeting-campaign-item {
    padding: 0.45rem 1rem; cursor: pointer;
    font-family: 'Cormorant Garamond', serif; font-size: 0.95rem;
    color: var(--text-primary); border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: left; transition: background 0.15s;
  }
  .greeting-campaign-item:last-child { border-bottom: none; }
  .greeting-campaign-item:hover { background: rgba(201,168,76,0.08); }
  .greeting-campaign-item.selected {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
  }
  .greeting-campaign-item.has-matching {
    color: var(--green); font-weight: 600;
  }
  .greeting-campaign-item.has-matching.selected {
    background: rgba(122,204,122,0.12);
    color: var(--green);
  }
  .greeting-campaign-empty {
    padding: 1rem; color: var(--text-muted);
    font-style: italic; font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem; text-align: center;
  }

  .leave-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 500; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  }
  .leave-modal-overlay.show { opacity: 1; visibility: visible; }
  .leave-modal {
    background: rgba(14,14,22,0.99); border: 1px solid rgba(201,168,76,0.25);
    border-radius: 8px; padding: 2rem 2rem 1.5rem;
    max-width: 380px; width: 90%; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    transform: translateY(-12px); transition: transform 0.25s;
  }
  .leave-modal-overlay.show .leave-modal { transform: translateY(0); }
  .leave-modal-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
  .leave-modal-title {
    font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.6rem;
  }
  .leave-modal-text {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 1.4rem; font-style: italic;
  }
  .leave-modal-btns { display: flex; gap: 0.8rem; justify-content: center; }
  .leave-modal-btns button {
    font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    border-radius: 4px; padding: 0.6rem 1.4rem; cursor: pointer; transition: all 0.2s;
  }
  .btn-leave-stay {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep); border: none;
  }
  .btn-leave-stay:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
  .btn-leave-go {
    background: none; color: var(--text-secondary);
    border: 1px solid rgba(201,168,76,0.2);
  }
  .btn-leave-go:hover { color: var(--gold); border-color: rgba(201,168,76,0.5); }

  /* ===== TAX EXEMPT MODAL ===== */
  .tax-exempt-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75);
    z-index: 600; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  }
  .tax-exempt-overlay.show { opacity: 1; visibility: visible; }
  .tax-exempt-modal {
    background: rgba(14,14,22,0.99); border: 1px solid rgba(201,168,76,0.3);
    border-radius: 8px; padding: 2rem 2rem 1.5rem;
    max-width: 440px; width: 92%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    transform: translateY(-12px); transition: transform 0.25s;
  }
  .tax-exempt-overlay.show .tax-exempt-modal { transform: translateY(0); }
  .tax-exempt-title {
    font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.08em; margin-bottom: 1rem; text-align: center;
  }
  .tax-exempt-body {
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 1.4rem; font-family: 'Cormorant Garamond', serif; font-size: 1rem;
  }
  .tax-exempt-body strong { color: var(--text-primary); font-weight: 600; }
  .tax-exempt-btns { display: flex; gap: 0.8rem; justify-content: center; }
  .tax-exempt-btns button {
    font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    border-radius: 4px; padding: 0.65rem 1.4rem; cursor: pointer; transition: all 0.2s;
  }
  .btn-tax-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep); border: none;
  }
  .btn-tax-submit:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
  .btn-tax-cancel {
    background: none; color: var(--text-secondary);
    border: 1px solid rgba(201,168,76,0.2);
  }
  .btn-tax-cancel:hover { color: var(--gold); border-color: rgba(201,168,76,0.5); }
  .tax-exempt-link {
    font-family: 'Cormorant Garamond', serif; font-size: 0.92rem;
    color: var(--gold-dim); text-decoration: none; cursor: pointer;
    border-bottom: 1px dashed rgba(201,168,76,0.3);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .tax-exempt-link:hover { color: var(--gold); border-color: var(--gold); }
  .tax-exempt-confirm {
    text-align: center; padding: 0.5rem 0;
    font-family: 'Cormorant Garamond', serif; font-size: 1rem;
    color: var(--text-secondary); line-height: 1.7; display: none;
  }
  .tax-exempt-confirm.show { display: block; }
  .tax-exempt-confirm strong { color: var(--gold); display: block; font-family: 'Cinzel', serif;
    font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 0.6rem; }

  /* ===== FIELD ERRORS ===== */
  .field-error {
    font-size: 0.78rem; color: #d4917a; font-style: italic;
    margin-top: 0.25rem; display: none;
  }
  .field-error.show { display: block; }
  .form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid {
    border-color: rgba(212,145,122,0.6);
    box-shadow: 0 0 0 2px rgba(212,145,122,0.1);
  }

  /* ===== INSCRIPTION COUNTER ===== */

  /* ===== STICKY BOTTOM BAR ===== */
  .store-sticky-footer {
    position: sticky; bottom: 0; z-index: 10;
    background: rgba(10,10,15,0.97); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201,168,76,0.12);
    padding: 0.5rem 1rem;
  }

  .back-link {
    display: block; text-align: center; margin-top: 1.5rem;
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold-dim); text-decoration: none; transition: color 0.3s;
  }
  .back-link:hover { color: var(--gold); }

  /* ===== SCRIPTURE BUTTON ===== */
  .scripture-btn {
    font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.08em; color: var(--gold-dim);
    background: none; border: 1px solid rgba(201,168,76,0.2);
    border-radius: 3px; padding: 0.15rem 0.5rem;
    cursor: default; transition: color 0.2s, border-color 0.2s;
    margin-left: 0.4rem; vertical-align: middle;
  }
  .scripture-wrap:hover .scripture-btn { color: var(--gold); border-color: rgba(201,168,76,0.5); }
  .scripture-popup {
    position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
    width: 300px; background: rgba(10,10,15,0.98);
    border: 1px solid rgba(201,168,76,0.25); border-radius: 6px;
    padding: 0.9rem 1rem; z-index: 300;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
  }
  .scripture-wrap:hover .scripture-popup { opacity: 1; visibility: visible; }
  .scripture-ref {
    font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.4rem;
  }
  .scripture-text {
    font-size: 1rem; color: var(--text-secondary);
    font-style: italic; line-height: 1.7;
  }
  .scripture-wrap { position: relative; display: inline-block; }

  /* ===== JOIN THE FIGHT PANEL ===== */
  .join-fight-panel {
    display: none;
    margin-top: 0.8rem;
    text-align: left;
  }
  .join-fight-panel.show { display: block; }
  .join-fight-img {
    width: 33%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(201,168,76,0.2));
  }
  .join-fight-top {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 0.6rem;
  }
  .join-fight-img-wrap { flex-shrink: 0; align-self: flex-start; margin-top: 0; padding-top: 0; }
  .join-fight-img {
    width: 150px; height: 150px; object-fit: contain; display: block;
    filter: drop-shadow(0 4px 12px rgba(201,168,76,0.2));
  }
  .join-fight-text {
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: 0; margin-top: 0;
  }
  .join-fight-learn {
    font-family: 'Cinzel', serif; font-size: 0.58rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: none; border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold-dim); border-radius: 3px;
    padding: 0.35rem 0.7rem; cursor: pointer; transition: all 0.2s;
    display: inline-block; text-align: center;
  }
  .join-fight-learn:hover { color: var(--gold); border-color: var(--gold); }
  .join-fight-btns { display: flex; flex-direction: row; gap: 0.5rem; }
  .btn-join-yes {
    font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep); border: none; border-radius: 4px;
    padding: 0.55rem 0.4rem; cursor: pointer; transition: all 0.2s; flex: 1;
  }
  .btn-join-yes:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 16px rgba(201,168,76,0.3); }
  .btn-join-no {
    font-family: 'Cormorant Garamond', serif; font-size: 0.75rem;
    font-style: italic; color: var(--text-secondary);
    background: none; border: 1px solid rgba(201,168,76,0.15);
    border-radius: 4px; cursor: pointer;
    transition: color 0.2s, border-color 0.2s; padding: 0.55rem 0.4rem;
    flex: 1; text-align: center; line-height: 1.3;
  }
  .btn-join-no:hover { color: var(--text-primary); border-color: rgba(201,168,76,0.3); }

  /* ===== THANK YOU ANIMATION ===== */
  .thankyou-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .thankyou-overlay.show { opacity: 1; visibility: visible; }
  .thankyou-text {
    font-family: 'Cinzel', serif; font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700; letter-spacing: 0.1em; text-align: center;
    color: var(--gold);
    animation: none;
  }
  .thankyou-text.flash {
    animation: flashGold 0.5s ease-in-out infinite alternate;
  }
  @keyframes flashGold {
    from { color: var(--gold); text-shadow: 0 0 20px rgba(201,168,76,0.4); }
    to   { color: var(--gold-light); text-shadow: 0 0 40px rgba(232,212,139,0.8); }
  }

  /* ===== PHILANTHROPY MODAL ===== */
  .phil-modal-overlay {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 80px 1rem 2rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
  }
  .phil-modal-overlay.show { opacity: 1; visibility: visible; }
  .phil-modal {
    background: rgba(14,14,22,0.99); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px; max-width: 680px; width: 100%;
    padding: 2rem; position: relative;
    transform: translateY(16px); transition: transform 0.3s;
  }
  .phil-modal-overlay.show .phil-modal { transform: translateY(0); }
  .phil-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold-dim); background: rgba(10,10,15,0.8);
    border: 1px solid rgba(201,168,76,0.2); border-radius: 4px;
    padding: 0.35rem 0.9rem; cursor: pointer; transition: color 0.2s;
  }
  .phil-modal-close:hover { color: var(--gold); }
  .phil-modal h2 {
    font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.08em; margin: 1.4rem 0 0.5rem;
  }
  .phil-modal h2:first-of-type { margin-top: 0.5rem; }
  .phil-modal p {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 0.6rem;
  }
  .phil-modal blockquote {
    border-left: 2px solid var(--gold-dim); margin: 1.2rem 0 0;
    padding: 0.6rem 1rem;
    font-style: italic; font-size: 0.92rem;
    color: var(--text-secondary); line-height: 1.7;
  }
  .phil-modal blockquote cite {
    display: block; margin-top: 0.5rem; font-style: normal;
    font-family: 'Cinzel', serif; font-size: 0.65rem;
    letter-spacing: 0.1em; color: var(--gold-dim);
  }
  .phil-modal-return {
    width: 100%; margin-top: 1.8rem;
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep); border: none; border-radius: 4px;
    padding: 0.75rem; cursor: pointer; transition: all 0.2s;
  }
  .phil-modal-return:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
  .btn-autograph-skip {
    flex: 1; font-family: 'Cinzel', serif; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: none; border: 1px solid rgba(201,168,76,0.2);
    color: var(--text-secondary); border-radius: 4px;
    padding: 0.8rem; cursor: pointer; transition: all 0.2s;
  }
  .btn-autograph-skip:hover { color: var(--gold); border-color: rgba(201,168,76,0.5); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .order-table-wrap { font-size: 0.85rem; }
  }

  /* ===== MOBILE STORE — full card layout ===== */
  @media (max-width: 768px) {

    /* Page padding */
    .store-page { padding: 62px 0.75rem 5rem; }
    .store-content { max-width: 100%; }

    /* Header — stack vertically */
    .store-header {
      flex-direction: column; align-items: flex-start;
      gap: 0.3rem; padding: 0.5rem 0.75rem;
      margin-left: -0.75rem; margin-right: -0.75rem;
    }
    .store-header-right { min-width: 0; text-align: left; }
    .store-header-center { display: none; }

    /* Hide table header — cards replace it */
    .order-table thead { display: none; }

    /* Colgroup — reset widths */
    .order-table col { width: auto !important; }

    /* Table → card container */
    .order-table,
    .order-table tbody { display: block; width: 100%; }

    /* Section divider rows — keep full width */
    .order-table tbody tr.section-divider { display: block; width: 100%; }
    .order-table tbody tr.section-divider td {
      display: block; width: 100%;
      padding: 0.5rem 0.75rem;
      font-size: 0.65rem; letter-spacing: 0.18em;
    }

    /* Each book/merch row → card */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) {
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto auto;
      column-gap: 0.6rem;
      row-gap: 0.15rem;
      background: rgba(12,12,18,0.7);
      border: 1px solid rgba(201,168,76,0.1);
      border-radius: 6px;
      margin-bottom: 0.5rem;
      padding: 0.6rem 0.75rem;
    }

    /* td 1 — Item Code: top-left, small */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(1) {
      grid-column: 1; grid-row: 1;
      font-size: 0.6rem; color: var(--gold-dim);
      padding: 0; align-self: center;
    }
    /* td 2 — Title: main prominent, takes most of left column */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(2) {
      grid-column: 1; grid-row: 2;
      font-size: 0.9rem; font-weight: 600;
      padding: 0.1rem 0;
    }
    /* td 3 — Empty ship column cell (hidden on mobile) */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(3) {
      display: none;
    }
    /* td 4 — Format: bottom of left column */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(4) {
      grid-column: 1; grid-row: 3;
      font-size: 0.75rem; color: var(--text-secondary);
      padding: 0;
    }
    /* td 5 — Qty stepper: right column row 1 (top right, no wasted space) */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(5) {
      grid-column: 2; grid-row: 1;
      display: flex; align-items: center; justify-content: flex-end;
      padding: 0; align-self: center;
    }
    /* td 6 — Unit Price: right column row 2 */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(6) {
      grid-column: 2; grid-row: 2;
      text-align: right; font-size: 0.78rem;
      padding: 0; color: var(--text-secondary);
      align-self: center;
    }
    /* td 7 — Subtotal: right column row 3, in gold */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(7) {
      grid-column: 2; grid-row: 3;
      text-align: right; font-size: 0.85rem; font-weight: 700;
      padding: 0; color: var(--gold);
      align-self: center;
    }
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(7):empty {
      display: none;
    }

    /* Free book row */
    .order-table tbody tr.free-book-row {
      display: block; padding: 0.5rem 0.75rem;
      margin-bottom: 0.5rem;
    }
    .order-table tbody tr.free-book-row td { display: block; padding: 0.2rem 0; }

    /* Bigger tap targets for qty stepper */
    .qty-stepper { height: 36px; }
    .qty-stepper button { width: 36px; font-size: 1.1rem; }
    .qty-stepper .qty-val { width: 36px; font-size: 0.85rem; line-height: 36px; }

    /* Cart panel — full screen on mobile */
    .cart-panel {
      width: 100vw; max-width: 100vw;
      top: 0; left: 0; right: 0; bottom: 0;
      border-left: none;
      border-top: 1px solid rgba(201,168,76,0.15);
    }

    /* Cart hands image — hide on mobile to save space */
    .cart-hands-wrap { display: none; }

    /* Cart items list — give it more room */
    .cart-items { flex: 1; overflow-y: auto; }

    /* Cart bottom totals — always visible */
    .cart-footer { flex-shrink: 0; }

    /* Checkout form — full width single column */
    .form-row { flex-direction: column; gap: 0; }
    .checkout-form { padding: 0.75rem 1rem; }

    /* Free shipping bar — full width */
    .free-ship-bar-wrap { margin: 0.5rem 0; }

    /* Sticky footer with checkout button */
    .store-sticky-footer { padding: 0.75rem 1rem; }

    /* Cart button — sits LEFT of the spinning music record (right:5rem) and LEFT of hamburger (right:1.2rem) */
    .cart-btn { right: 9.5rem !important; }   /* clears hamburger 1.2 + music 5.5 */

    /* Cover lightbox — full screen on mobile */
    .cover-lightbox {
      width: 100vw; max-width: 100vw;
      border-left: none;
      border-top: 1px solid rgba(201,168,76,0.15);
    }
  }

  /* Very small screens / landscape phones */
  @media (max-width: 480px) {
    .store-page { padding: 62px 0.5rem 5rem; }
    .qty-stepper button { width: 40px; }
    .qty-stepper .qty-val { width: 40px; }
  }

  /* ── LANDSCAPE PHONE — single row layout, use the horizontal space ── */
  /* Any touch device held in landscape - not a guess at its pixel size. The
     old gate (max-width 950 AND max-height 500) missed larger phones and
     every tablet, which is why the change appeared to do nothing. */
  @media (orientation: landscape) and (hover: none),
         (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
    /* In landscape the browser's own chrome already takes a quarter of the
       screen. The proceeds note is a standing statement, not something anyone
       reads twice - so it stops being sticky and goes back to the foot of the
       page, where it costs nothing. The clause itself is unchanged and still
       appears on every visit; it simply waits at the bottom. */
    .store-sticky-footer {
      position: static;
      background: none; backdrop-filter: none; border-top: 0;
      padding: 0.4rem 0 0;
    }
    .philanthropy-note { margin: 0.4rem 0 0; padding: 0.35rem 0.9rem; }
    .philanthropy-note p { font-size: 0.68rem; line-height: 1.35; }
    /* the row list gets the height back */
    .order-table-wrap { max-height: none; }

    /* Override the portrait-mobile grid — switch each row to a single flex row */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) {
      display: grid !important;
      grid-template-columns: 60px 1fr 110px 130px 80px 80px;
      grid-template-rows: auto;
      align-items: center;
      column-gap: 0.6rem;
      padding: 0.4rem 0.75rem;
    }
    /* td 1 — Item code */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(1) {
      grid-column: 1; grid-row: 1; font-size: 0.62rem; color: var(--gold-dim);
    }
    /* td 2 — Title (main, takes the remaining left-side space) */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(2) {
      grid-column: 2; grid-row: 1; font-size: 0.85rem; font-weight: 600;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* td 3 — Empty ship cell stays hidden */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(3) {
      display: none;
    }
    /* td 4 — Format */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(4) {
      grid-column: 3; grid-row: 1; font-size: 0.72rem; color: var(--text-secondary);
      text-align: left;
    }
    /* td 5 — Qty stepper */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(5) {
      grid-column: 4; grid-row: 1;
      display: flex; align-items: center; justify-content: center;
    }
    /* td 6 — Unit Price */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(6) {
      grid-column: 5; grid-row: 1; font-size: 0.78rem;
      text-align: right; color: var(--text-secondary);
    }
    /* td 7 — Subtotal in gold */
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(7) {
      grid-column: 6; grid-row: 1; font-size: 0.82rem; font-weight: 700;
      text-align: right; color: var(--gold);
    }
    .order-table tbody tr:not(.section-divider):not(.free-book-row) td:nth-child(7):empty {
      display: block !important;
    }
    /* Smaller stepper for landscape so it fits */
    .qty-stepper { height: 30px; }
    .qty-stepper button { width: 30px; font-size: 1rem; }
    .qty-stepper .qty-val { width: 30px; font-size: 0.8rem; line-height: 30px; }
  }

  /* ── NAV COMPACT OVERRIDE ── */
  nav { gap:0.2rem !important; padding:0 1.5rem !important; }
  nav > a, .nav-links > a, .nav-dropdown > a { font-size:0.68rem !important; letter-spacing:0.14em !important; padding:0.4rem 0.6rem !important; white-space:nowrap; }
  .nav-dropdown { height:auto !important; }
  .nav-dropdown > a::after { content:" \25BE"; font-size:0.6rem; opacity:0.6; }
  @media (max-width: 768px), (hover: none) {
    .cart-btn { right: 9.5rem !important; }   /* clears hamburger 1.2 + music 5.5 */
  }
