:root {
  --red: #C31D1D;
  --yellow: #F7C500;
  --green: #006633;
  --charcoal: #2B2B2B;
  --gray: #D9D9D9;
  --burgundy: #5B0E1A;
  --gold: #C8A86B;
  --paper: #fafaf7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  color: var(--charcoal);
  background: #f3f3ef;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: #6b6b6b; }
.small { font-size: 0.85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--red); margin: 0 0 0.5rem; }
.right { text-align: right; }
.inline { display: inline-block; }

/* Nav */
.topnav {
  background: #fff;
  border-bottom: 3px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.topnav .brand { display: flex; align-items: center; gap: 0.75rem; color: var(--charcoal); }
.topnav .brand img { height: 44px; width: auto; }
.brand-text strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; display: block; line-height: 1; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: #777; letter-spacing: 0.08em; text-transform: uppercase; }
.topnav nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.topnav nav a, .topnav nav .link-btn { color: var(--charcoal); font-weight: 600; font-size: 0.9rem; }

/* Mobile nav: stack brand above wrapped nav links */
@media (max-width: 720px) {
  .topnav {
    flex-direction: column; align-items: stretch; gap: 0.6rem;
    padding: 0.75rem 1rem;
  }
  .topnav .brand { justify-content: center; }
  .topnav .brand img { height: 36px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text em { font-size: 0.65rem; }
  .topnav nav {
    gap: 0.5rem 0.9rem; justify-content: center; row-gap: 0.4rem;
  }
  .topnav nav a, .topnav nav .link-btn { font-size: 0.85rem; }
}
.link-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; color: var(--charcoal); font-weight: 600; }
.link-btn:hover { color: var(--red); }

/* Container */
.container { max-width: 1100px; margin: 2.25rem auto; padding: 0 1.5rem; }

/* Buttons */
.btn-primary, .btn-secondary {
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 0.75rem 1.4rem; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--red); transition: transform 0.05s ease, filter 0.15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--red); }
.btn-secondary:hover { background: #fff4f4; }
.btn-lg { font-size: 1.05rem; padding: 0.95rem 1.75rem; }
.btn-link { background: none; border: none; color: var(--red); cursor: pointer; font-family: inherit; font-weight: 600; padding: 0 0.4rem; font-size: 0.9rem; }
.btn-link:hover { text-decoration: underline; }

/* Hero */
.hero-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: grid; grid-template-columns: 1.3fr 1fr;
  overflow: hidden; min-height: 320px;
}
.hero-copy { padding: 2.5rem; align-self: center; }
.hero-copy h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.1rem; margin: 0 0 0.75rem; color: var(--charcoal); }
.hero-copy p { font-size: 1rem; line-height: 1.55; max-width: 46ch; }
.hero-copy form { margin-top: 1.5rem; }
.gen-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.gen-form label { display: block; font-size: 0.85rem; color: #444; font-weight: 600; }
.gen-form label span em { color: #888; font-style: normal; font-weight: 400; font-size: 0.78rem; margin-left: 0.25rem; }
.gen-form input { width: 100%; padding: 0.65rem 0.8rem; margin-top: 0.3rem; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 0.95rem; }
.gen-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(195,29,29,0.15); }
@media (max-width: 560px) { .gen-form .form-row { grid-template-columns: 1fr; } }
.hero-art { background: var(--burgundy); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.wine-card .hero-art { background: #640c23; }
.hero-art img { max-width: 90%; max-height: 280px; }
@media (max-width: 720px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* Page head */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { font-family: 'Playfair Display', Georgia, serif; margin: 0; color: var(--charcoal); }

/* Table */
.table-wrap { background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); overflow-x: auto; overflow-y: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid #eee; font-size: 0.92rem; }
table.data th { background: #faf6f6; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: #6b6b6b; }
table.data tr:last-child td { border-bottom: none; }
.code-link { font-family: 'Courier New', monospace; font-weight: 700; }
.badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.active { background: #e6f4ea; color: var(--green); }
.badge.redeemed { background: #fff4d6; color: #8a6d00; }
.badge.expired { background: #f5e6e6; color: var(--red); }

/* Login */
body.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(195,29,29,0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0,102,51,0.10), transparent 60%),
    #f3f3ef;
}
.login-shell { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-card { background: #fff; padding: 2.25rem; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; }
.login-logo { width: 90px; margin-bottom: 0.75rem; }
.login-card h1 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 0.25rem; font-size: 1.5rem; color: var(--charcoal); }
.login-card p.muted { margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.login-card label { display: block; text-align: left; margin: 0.85rem 0; font-size: 0.85rem; font-weight: 600; color: #444; }
.login-card input { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: inherit; margin-top: 0.3rem; }
.login-card input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(195,29,29,0.15); }
.login-card .btn-primary { width: 100%; margin-top: 0.75rem; }
.error { background: #fdecec; color: var(--red); border: 1px solid #f4caca; padding: 0.65rem 0.85rem; border-radius: 6px; margin-bottom: 0.75rem; font-size: 0.9rem; }

/* ===== Voucher ===== */
.voucher-actions {
  max-width: 8.5in; margin: 1.5rem auto 0; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.voucher-actions > div { display: flex; gap: 0.6rem; }

.voucher-stage { padding: 1.5rem 1rem 3rem; display: flex; justify-content: center; }

.voucher {
  box-sizing: border-box;
  width: 8.5in;
  min-height: 11in;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.3in;
  position: relative;
  overflow: visible;
}
.voucher-overflow-warn {
  display: none;
  max-width: 8.5in; margin: 0.75rem auto 0; padding: 0.7rem 0.9rem;
  background: #fdecec; border: 1px solid #f4caca; color: #8a1a1a;
  border-radius: 8px; font-size: 0.9rem; text-align: center;
}
.voucher-overflow-warn.show { display: block; }
.voucher-border {
  box-sizing: border-box;
  border: 2px solid var(--burgundy);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  min-height: 10.4in;
  padding: 0.35in 0.5in 0.25in;
  display: flex; flex-direction: column;
  position: relative;
  background:
    radial-gradient(circle at 10% 10%, rgba(91,14,26,0.04), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(200,168,107,0.06), transparent 55%),
    var(--paper);
}

/* New voucher header — stacked, certificate-style */
.voucher-header {
  text-align: center;
  padding-bottom: 0.1in;
}
.presented-by {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding-top: 0.05in;
}
.presented-label {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  color: #888;
  font-weight: 600;
}
.thv-bar { display: inline-flex; align-items: center; gap: 0.75rem; }
.thv-logo-img { height: 52px; width: auto; }
.thv-text { text-align: left; }
.thv-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; color: var(--charcoal); line-height: 1; }
.thv-sub { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: #888; margin-top: 4px; }

.ornate-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  margin: 0.2in auto 0.15in;
  max-width: 5in;
}
.ornate-rule .rule-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(200,168,107,0), rgba(91,14,26,0.45), rgba(200,168,107,0));
}
.ornate-rule .rule-mark { color: var(--gold); font-size: 1rem; line-height: 1; }

.winery-stage {
  display: flex; justify-content: center; align-items: center;
  padding: 0.1in 0 0.2in;
}
.winery-badge {
  width: 5.2in; height: auto;
  max-height: 1.5in;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(91,14,26,0.18);
}

.voucher-headline { text-align: center; padding: 0.05in 0 0.15in; }
.voucher-headline .eyebrow.gold { color: var(--gold); letter-spacing: 0.32em; }
.voucher-headline h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem; line-height: 1.05; color: var(--burgundy);
  margin: 0.25rem 0 0.4rem;
}
.voucher-headline .lede { color: #555; font-size: 1.05rem; margin: 0; }

/* Issued To / Reservation block */
.issued-to {
  display: flex; align-items: stretch; justify-content: center;
  gap: 1.25in;
  margin: 0.05in auto 0.2in;
  padding: 0.18in 0.4in;
  max-width: 6.5in;
  background: rgba(91,14,26,0.04);
  border-top: 1px solid rgba(91,14,26,0.15);
  border-bottom: 1px solid rgba(91,14,26,0.15);
}
.issued-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.18rem; }
.issued-label {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: #8a6a5e; font-weight: 700;
}
.issued-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; color: var(--charcoal); font-weight: 600;
  letter-spacing: 0.01em;
}
.issued-value.mono {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
}
.issued-divider { width: 1px; background: rgba(91,14,26,0.2); }

.voucher-code-box {
  margin: 0.15in auto;
  border: 1.5px dashed var(--burgundy);
  border-radius: 8px;
  padding: 0.22in 0.4in;
  text-align: center;
  background: #fff;
  max-width: 6.5in;
}
.code-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.24em; color: #777; }
.code-value {
  font-family: 'Courier New', monospace;
  font-size: 2.4rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--burgundy); margin: 0.35rem 0 0.6rem;
}
.code-dates { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.code-dates > div:not(.divider) { text-align: center; }
.code-dates span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: #888; margin-bottom: 0.15rem; }
.code-dates strong { font-size: 0.95rem; color: var(--charcoal); }
.code-dates .divider { width: 1px; height: 30px; background: rgba(91,14,26,0.2); }

.voucher-where { text-align: center; margin-top: auto; padding-top: 0.2in; }
.addr-title { font-family: 'Playfair Display', Georgia, serif; color: var(--burgundy); font-size: 1.15rem; margin-bottom: 0.25rem; }
.voucher-where .addr div { font-size: 0.95rem; line-height: 1.4; }
.voucher-where .phone { margin-top: 0.25rem; font-weight: 600; color: var(--charcoal); }

.voucher-fine {
  border-top: 1px solid rgba(91,14,26,0.18);
  margin-top: 0.2in; padding-top: 0.15in;
  text-align: center;
}
.voucher-fine p { font-size: 0.78rem; color: #555; max-width: 6in; margin: 0 auto; line-height: 1.45; }

/* Print */
@media print {
  @page { size: letter; margin: 0; }
  html, body { background: #fff !important; }
  body { margin: 0 !important; padding: 0 !important; }
  .no-print { display: none !important; }
  .voucher-stage { padding: 0; }
  .voucher { box-shadow: none; width: 8.5in; height: auto; min-height: 0; padding: 0.3in; box-sizing: border-box; overflow: visible; page-break-inside: avoid; }
  .voucher-border { min-height: 0; }
  .voucher-overflow-warn { display: none !important; }
  a[href]:after { content: ''; }
}

/* Reports */
.filter-bar {
  display: flex; align-items: end; gap: 0.75rem; flex-wrap: wrap;
  background: #fff; padding: 1rem 1.1rem; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05); margin-bottom: 1.25rem;
}
.filter-bar label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b6b6b;
}
.filter-bar input[type="date"] {
  padding: 0.5rem 0.6rem; border: 1px solid #ddd; border-radius: 8px;
  font: inherit; color: var(--charcoal);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: #fff; border-radius: 12px; padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.stat-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: #6b6b6b; margin-bottom: 0.35rem;
}
.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem; color: var(--burgundy); line-height: 1;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal); margin: 0 0 0.85rem;
}
table.data td.right, table.data th.right { text-align: right; }
table.data td.voucher-actions { white-space: nowrap; min-width: 200px; }
table.data td.voucher-actions .btn-link, table.data td.voucher-actions a.btn-link { white-space: nowrap; }
table.data td.voucher-actions .inline { margin-left: 0.25rem; }

/* Voucher activity / history */
.voucher-history { max-width: 7in; margin: 1.5rem auto 3rem; padding: 0 1rem; }
.history-card {
  background: #fff;
  border: 1px solid rgba(91,14,26,0.15);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.history-card h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--burgundy); margin: 0 0 0.75rem; font-size: 1.25rem; }
.history-card h3 { margin: 1.25rem 0 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; }
.history-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.history-meta > div { margin: 0; }
.history-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #888; margin-bottom: 0.15rem; }
.history-meta dd { margin: 0; font-weight: 600; color: var(--charcoal); }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.history-list li:last-child { border-bottom: none; }
.history-type {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.15rem 0.55rem; border-radius: 999px; background: #efe6e9; color: var(--burgundy);
}
.history-type.history-redeemed { background: #e6f1ea; color: #1f6b3a; }
.history-type.history-unredeemed { background: #f4ece0; color: #8a5a14; }
.history-actor { color: var(--charcoal); font-size: 0.92rem; }
.history-when { margin-left: auto; color: #777; font-size: 0.85rem; }

/* Topnav account link + role pill */
.topnav nav .who { display: inline-flex; align-items: center; gap: 0.4rem; color: #555; font-size: 0.85rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: #f4f0ea; }
.topnav nav .who:hover { background: #ece4d6; text-decoration: none; }
.role-pill { background: var(--burgundy); color: #fff; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.1rem 0.4rem; border-radius: 999px; }

/* Filter bar selects */
.filter-bar select { padding: 0.5rem 0.6rem; border: 1px solid #ddd; border-radius: 8px; font: inherit; color: var(--charcoal); background: #fff; }

/* Callouts */
.callout { border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 1.25rem; }
.callout p { margin: 0 0 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.success { background: #e8f4ec; border: 1px solid #b9e0c5; color: #1f6b3a; }
.callout.warn { background: #fff7df; border: 1px solid #f0dba0; color: #6b5208; }
.callout.note { background: #eef3f8; border: 1px solid #cfdcea; color: #2f4a66; }

.copy-row { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.25rem; }
.copy-row input { flex: 1; padding: 0.6rem 0.75rem; border: 1px solid #ccc; border-radius: 8px; font-family: 'Courier New', monospace; font-size: 0.9rem; background: #fff; }

/* Staff page */
.staff-section { margin: 1.75rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.75rem; }
.staff-section .section-title { margin-top: 0; }

/* Account page */
.account-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); padding: 1.5rem 1.75rem; max-width: 540px; }
.account-card .section-title { margin-top: 1.25rem; font-size: 1.05rem; }
.account-card .section-title:first-of-type { margin-top: 0; }
.account-form label { display: block; font-size: 0.85rem; color: #444; font-weight: 600; margin-bottom: 0.75rem; }
.account-form input { width: 100%; padding: 0.65rem 0.8rem; margin-top: 0.3rem; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 0.95rem; }
.account-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(195,29,29,0.15); }

/* ===== Golf voucher block ===== */
:root {
  --golf-green: #1f6b3a;
  --golf-green-dark: #143f23;
  --golf-cream: #f6f3e7;
}
.hero-card + .hero-card { margin-top: 1.75rem; }
.golf-card .eyebrow.golf-eyebrow { color: var(--golf-green); }
.golf-card .hero-art { background: var(--golf-green-dark); flex-direction: column; gap: 0.75rem; }
.golf-art-logo { width: 140px; max-width: 70%; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35)); }
.golf-art-text { text-align: center; color: #fff; }
.golf-art-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; line-height: 1.1; }
.golf-art-sub { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; color: var(--gold); letter-spacing: 0.06em; }
.golf-art-tag { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

.golf-form fieldset.radio-set { border: none; padding: 0; margin: 0; }
.golf-form fieldset.radio-set legend {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: #6b6b6b; font-weight: 700; margin-bottom: 0.4rem; padding: 0;
}
.golf-form .form-row { grid-template-columns: 1fr 1fr; }
.golf-form .form-row:has(input[name="quantity"]) { grid-template-columns: 120px 1fr 1fr; }
@media (max-width: 720px) {
  .golf-form .form-row,
  .golf-form .form-row:has(input[name="quantity"]) { grid-template-columns: 1fr; }
}

.radio-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; margin: 0.15rem 0.4rem 0.15rem 0;
  border: 1px solid #d8d3c8; border-radius: 999px;
  background: #fff; font-size: 0.9rem; font-weight: 600; color: #555;
  cursor: pointer; transition: all 0.12s;
}
.radio-pill input { accent-color: var(--golf-green); margin: 0; }
.radio-pill:has(input:checked) {
  background: var(--golf-green); color: #fff; border-color: var(--golf-green);
}
.radio-pill:has(input:checked) input { accent-color: #fff; }
.radio-pill-custom { gap: 0.5rem; padding: 0.35rem 0.7rem; }
.radio-pill-custom input[type="date"] {
  border: none; background: transparent; font: inherit; color: inherit;
  padding: 0; min-width: 130px;
}
.radio-pill-custom:has(input[type="radio"]:checked) input[type="date"] { color: #fff; }

/* Holes / Type pills: dot on the left, label centered to its right. */
.radio-set { display: flex; flex-direction: column; gap: 0.4rem; }
.radio-set .radio-pill {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 0.6rem; width: 100%; margin: 0; padding: 0.55rem 0.9rem;
  box-sizing: border-box;
}
.radio-set .radio-pill > span { text-align: center; padding-right: 1.2rem; }

.exp-set { margin-top: 0.5rem; margin-bottom: 1rem; }
.exp-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.exp-pills .radio-pill {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 0.5rem; margin: 0; padding: 0.5rem 0.9rem; min-width: 110px;
  box-sizing: border-box;
}
.exp-pills .radio-pill > span { text-align: center; padding-right: 0.6rem; }
.exp-pills .radio-pill-custom {
  grid-template-columns: auto auto 1fr; min-width: 240px; gap: 0.55rem;
}
.exp-pills .radio-pill-custom > span { text-align: left; padding-right: 0; }
.exp-pills .radio-pill-custom > input[type="date"] { padding-right: 0.2rem; justify-self: end; }

/* Status / type pills in list */
.type-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.type-pill-promo { background: #e8f4ec; color: var(--golf-green); }
.type-pill-purchase { background: #fdf1d6; color: #8a6d00; }

/* Golf voucher print page */
.golf-voucher .golf-border { border-color: var(--golf-green-dark); }
.golf-voucher .golf-border {
  background:
    radial-gradient(circle at 10% 10%, rgba(31,107,58,0.06), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(200,168,107,0.07), transparent 55%),
    var(--golf-cream);
}
.golf-voucher .voucher-headline h1 { color: var(--golf-green-dark); }
.golf-voucher .ornate-rule .rule-mark { color: var(--golf-green); }
.golf-voucher .addr-title { color: var(--golf-green-dark); }
.golf-voucher .voucher-code-box { border-color: var(--golf-green-dark); }
.golf-voucher .code-value { color: var(--golf-green-dark); }
.golf-voucher .voucher-fine {
  display: flex; align-items: center; gap: 0.5rem;
  text-align: left;
}
.golf-voucher .voucher-fine p { flex: 1; margin: 0; max-width: none; text-align: center; }
.golf-voucher .type-mark {
  position: static; flex-shrink: 0; align-self: center;
}
.golf-voucher .issued-to { background: rgba(31,107,58,0.05); border-color: rgba(31,107,58,0.18); }
.golf-voucher .issued-label { color: var(--golf-green-dark); }

/* ===== Pizza voucher block ===== */
:root {
  --pizza-warm: #8a4a14;
  --pizza-warm-dark: #5c2f0a;
  --pizza-cream: #fff8ef;
}
.pizza-card .eyebrow.pizza-eyebrow { color: var(--pizza-warm); }
.pizza-card .hero-art.pizza-art {
  background: linear-gradient(135deg, #2b1a0e, #4a2812);
  padding: 1.25rem;
}
.pizza-card .hero-art.pizza-art img {
  max-width: 92%; max-height: 280px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.pizza-voucher .voucher-border {
  border-color: var(--pizza-warm-dark);
  background:
    radial-gradient(circle at 50% 40%, rgba(138,74,20,0.06), transparent 60%),
    var(--pizza-cream);
}
.pizza-voucher .voucher-border { padding: 0.25in 0.45in 0.2in; }
.pizza-voucher .voucher-header { padding-bottom: 0.05in; }
.pizza-voucher .voucher-headline { padding: 0; }
.pizza-voucher .voucher-headline h1 { color: var(--pizza-warm-dark); font-size: 2.1rem; line-height: 1.05; margin: 0.1rem 0 0.25rem; }
.pizza-voucher .voucher-headline .lede { font-size: 0.9rem; margin: 0; }
.pizza-voucher .winery-stage { padding: 0.04in 0 0.05in; }
.pizza-voucher .winery-badge { width: 5.2in; max-height: 1.5in; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 18px rgba(138,74,20,0.18); }
.pizza-voucher .ornate-rule { margin: 0.08in auto 0.06in; }
.pizza-voucher .issued-to { margin: 0.04in auto 0.08in; padding: 0.1in 0.4in; }
.pizza-voucher .voucher-code-box { margin: 0.06in auto; padding: 0.14in 0.4in; }
.pizza-voucher .code-value { font-size: 2rem; margin: 0.25rem 0 0.45rem; }
.pizza-voucher .voucher-where { padding-top: 0.08in; }
.pizza-voucher .voucher-where .addr div { font-size: 0.88rem; }
.pizza-voucher .addr-title { font-size: 1.05rem; margin-bottom: 0.15rem; }
.pizza-voucher .voucher-fine { margin-top: 0.06in; padding-top: 0.06in; }
.pizza-voucher .voucher-fine p { font-size: 0.68rem; line-height: 1.35; }
.pizza-voucher .ornate-rule .rule-mark { color: var(--pizza-warm); }
.pizza-voucher .addr-title { color: var(--pizza-warm-dark); }
.pizza-voucher .voucher-code-box { border-color: var(--pizza-warm-dark); }
.pizza-voucher .code-value { color: var(--pizza-warm-dark); }
.pizza-voucher .issued-to { background: rgba(138,74,20,0.05); border-color: rgba(138,74,20,0.2); }
.pizza-voucher .issued-label { color: var(--pizza-warm-dark); }
.pizza-voucher .voucher-code-box.has-qr .code-qr { border-left-color: rgba(138,74,20,0.3); }

.pizza-art-row {
  display: flex; justify-content: center; align-items: center;
  margin: 0.02in 0 0.05in;
}
.pizza-decor {
  width: 1.1in; height: 1.1in; object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(92,47,10,0.35);
}

.pizza-upgrade {
  margin: 0.08in auto 0.05in;
  max-width: 5.5in;
  text-align: center;
  background: linear-gradient(135deg, var(--pizza-warm), #b86a28);
  color: #fff;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(138,74,20,0.25);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
@media print {
  .pizza-upgrade {
    border: 2px solid #7a3a10;
    color: #4a1f00;
    background: none !important;
  }
}

.pizza-report-heading {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: var(--pizza-warm-dark);
}

.golf-brand-stage { padding: 0.1in 0 0.2in; text-align: center; }
.golf-brand-name { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; color: var(--golf-green-dark); line-height: 1; }
.golf-brand-sub { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: var(--gold); letter-spacing: 0.06em; margin-top: 0.15rem; }
.golf-brand-loc { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: #777; margin-top: 0.35rem; }

.type-mark {
  position: absolute; right: 0.3in; bottom: 0.2in;
  font-family: 'Courier New', monospace; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.2em;
  padding: 0.2rem 0.55rem; border-radius: 4px;
  border: 1.5px solid currentColor;
}
.type-mark-promo { color: var(--golf-green-dark); }
.type-mark-purchase { color: #8a6d00; }

/* Batch print: each voucher on its own page */
.batch-stage { flex-direction: column; gap: 1.5rem; padding: 1.5rem 1rem 3rem; }
.batch-voucher { page-break-after: always; break-after: page; }
.batch-voucher:last-child { page-break-after: auto; break-after: auto; }
.batch-actions-meta { color: #555; }

.redeem-actions { margin: 1rem 0; }
.golf-report-heading { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.1); color: var(--golf-green-dark); }
.photo-report-heading { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.1); color: var(--photo-sepia-dark); }

@media print {
  .batch-voucher { page-break-after: always; }
  .batch-voucher:last-child { page-break-after: auto; }
}

/* ===== QR code on voucher ===== */
.voucher-code-box.has-qr {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5in;
  text-align: left;
  padding: 0.3in 0.4in;
}
.voucher-code-box.has-qr .code-main { text-align: center; }
.voucher-code-box.has-qr .code-qr {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  border-left: 1px dashed rgba(91,14,26,0.25);
  padding-left: 0.4in;
}
.golf-voucher .voucher-code-box.has-qr .code-qr { border-left-color: rgba(31,107,58,0.3); }
.voucher-code-box.has-qr .code-qr img {
  width: 1.4in; height: 1.4in; display: block;
  background: #fff;
}
.voucher-code-box.has-qr .qr-caption {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: #888;
}
@media (max-width: 720px) {
  .voucher-code-box.has-qr {
    grid-template-columns: 1fr; gap: 1rem;
  }
  .voucher-code-box.has-qr .code-qr {
    border-left: none; border-top: 1px dashed rgba(91,14,26,0.25);
    padding-left: 0; padding-top: 0.75rem;
  }
}

/* ===== Scan page ===== */
.scan-link {
  background: var(--red); color: #fff !important; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.scan-link:hover { filter: brightness(1.08); text-decoration: none; }

.scan-cta {
  background: linear-gradient(135deg, var(--burgundy), var(--red));
  color: #fff; border-radius: 14px; padding: 1.5rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.75rem;
  box-shadow: 0 8px 24px rgba(91,14,26,0.18);
}
.scan-cta-copy .eyebrow { color: var(--yellow); }
.scan-cta-copy h2 { font-family: 'Playfair Display', Georgia, serif; margin: 0.25rem 0 0.4rem; font-size: 1.6rem; }
.scan-cta-copy p { margin: 0; opacity: 0.92; max-width: 50ch; }
.scan-cta-btn { background: #fff; color: var(--burgundy); border-color: #fff; white-space: nowrap; }
.scan-cta-btn:hover { background: #f7e6c8; }
@media (max-width: 720px) {
  .scan-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .scan-cta-btn { width: 100%; }
}

.scan-shell { max-width: 640px; margin: 1.5rem auto 3rem; padding: 0 1rem; }
.scan-head { text-align: center; margin-bottom: 1.25rem; }
.scan-head h1 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 0.35rem; color: var(--charcoal); }
.scan-head p { margin: 0; }
.scan-card {
  background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 1.25rem 1.25rem 1.5rem; margin-bottom: 1.25rem;
}
.scan-subhead { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 0.85rem; color: var(--charcoal); font-size: 1.15rem; }
.scan-status { font-size: 0.9rem; color: #555; margin-bottom: 0.65rem; text-align: center; }
.scan-viewport {
  position: relative; width: 100%; aspect-ratio: 1 / 1; background: #000;
  border-radius: 12px; overflow: hidden;
}
.scan-viewport video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame {
  position: absolute; inset: 12%; border: 3px solid rgba(255,255,255,0.85);
  border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.25);
  pointer-events: none;
}
.scan-controls {
  display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.85rem;
}
.scan-error {
  margin-top: 0.85rem; background: #fff7df; border: 1px solid #f0dba0; color: #6b5208;
  padding: 0.75rem 0.9rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.45;
}

.manual-form { display: grid; gap: 0.75rem; }
.manual-form label { display: block; font-size: 0.85rem; color: #444; font-weight: 600; }
.manual-form input {
  width: 100%; padding: 0.8rem 0.9rem; margin-top: 0.3rem;
  border: 1px solid #ddd; border-radius: 8px; font-family: 'Courier New', monospace;
  font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.manual-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(195,29,29,0.15); }
.manual-form .btn-primary { justify-self: stretch; }

/* Scan detail */
.scan-back { margin-bottom: 0.5rem; }
.detail-card { padding: 1.5rem 1.5rem 1.75rem; }
.detail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 0.5rem;
}
.kind-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.kind-pill.kind-wine { background: #f5e6e9; color: var(--burgundy); }
.kind-pill.kind-golf { background: #e8f4ec; color: var(--golf-green-dark); }
.kind-pill.kind-photo { background: #efe6d8; color: #5a3a1f; }
.detail-offer { margin: 0.25rem 0 0.5rem; color: #5a3a1f; font-weight: 600; font-size: 0.95rem; }
.kind-pill.kind-pizza { background: #fdecd6; color: #8a4a14; }
.detail-code {
  font-family: 'Courier New', monospace; font-size: 1.8rem; letter-spacing: 0.14em;
  margin: 0.25rem 0 1rem; color: var(--charcoal); word-break: break-all;
}
.status-banner {
  border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.status-banner strong { font-size: 1rem; }
.status-banner span { font-size: 0.88rem; }
.banner-redeemed { background: #fff4d6; color: #8a6d00; border: 1px solid #f0dba0; }
.banner-expired { background: #fdecec; color: var(--red); border: 1px solid #f4caca; }

.detail-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1.5rem; margin: 0 0 1.25rem;
}
.detail-meta > div { margin: 0; }
.detail-meta dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; margin-bottom: 0.15rem; }
.detail-meta dd { margin: 0; font-weight: 600; color: var(--charcoal); font-size: 0.98rem; }
.detail-meta dd.mono { font-family: 'Courier New', monospace; letter-spacing: 0.08em; }

.redeem-form { margin: 0.75rem 0 0.5rem; text-align: center; }
.btn-redeem {
  width: 100%; padding: 1.2rem 1.5rem; font-size: 1.15rem;
  background: var(--green); border-color: var(--green);
  letter-spacing: 0.04em;
}
.btn-redeem:hover { filter: brightness(1.06); }
.detail-secondary { margin-top: 0.85rem; text-align: center; }

.scan-notfound { text-align: center; }
.scan-notfound h1 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 0.5rem; color: var(--red); }
.scan-notfound .btn-primary { margin-top: 1rem; display: inline-block; }

/* In print: hide QR caption only, keep image */
@media print {
  .voucher-code-box.has-qr .qr-caption { display: none; }
  .photo-brand-stage { padding: 0.03in 0 0.04in; }
  .photo-brand-logo { max-height: 0.6in; }
  .photo-samples { margin: 0.03in auto 0.04in; gap: 0.15in; }
  .photo-sample { width: 0.75in; height: 0.75in; }
  .photo-voucher .ornate-rule { margin: 0.05in 0; }
}

/* ===== Photo (Judge Stone's Old Time Photo) voucher block ===== */
:root {
  --photo-sepia: #5a3a1f;
  --photo-sepia-dark: #3a2412;
  --photo-cream: #f4ebd9;
  --photo-tan: #c8a978;
}
.photo-card .eyebrow.photo-eyebrow { color: var(--photo-sepia); }
.photo-card .hero-art { background: var(--photo-sepia-dark); flex-direction: column; gap: 0.75rem; }
.photo-art-logo { width: 200px; max-width: 80%; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45)); }

.photo-offer-set { margin-bottom: 1rem; }
.photo-offer-set .radio-pill:has(input:checked) { background: var(--photo-sepia); border-color: var(--photo-sepia); color: #fff; }
.photo-offer-set .radio-pill:has(input:checked) input { accent-color: #fff; }
.photo-offer-set .radio-pill input { accent-color: var(--photo-sepia); }

.type-pill-photo { background: #efe6d8; color: var(--photo-sepia); }

/* Photo printable voucher */
.photo-voucher .photo-border {
  border-color: var(--photo-sepia-dark);
  background:
    radial-gradient(circle at 10% 10%, rgba(90,58,31,0.06), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(200,168,107,0.10), transparent 55%),
    var(--photo-cream);
}
.photo-voucher .voucher-headline h1 { color: var(--photo-sepia-dark); }
.photo-voucher .ornate-rule .rule-mark { color: var(--photo-tan); }
.photo-voucher .addr-title { color: var(--photo-sepia-dark); }
.photo-voucher .voucher-code-box { border-color: var(--photo-sepia-dark); }
.photo-voucher .code-value { color: var(--photo-sepia-dark); font-size: 1.9rem; letter-spacing: 0.07em; white-space: nowrap; }
.photo-voucher .issued-to { background: rgba(90,58,31,0.05); border-color: rgba(90,58,31,0.2); }
.photo-voucher .issued-label { color: var(--photo-sepia-dark); }
.photo-voucher .voucher-code-box.has-qr .code-qr { border-left-color: rgba(90,58,31,0.3); }

.photo-brand-stage { display: flex; justify-content: center; align-items: center; padding: 0.05in 0 0.1in; }
.photo-brand-logo { width: 3.6in; max-height: 1.05in; object-fit: contain; }

.photo-samples {
  display: flex; gap: 0.2in; justify-content: center; align-items: center;
  margin: 0.05in auto 0.1in; max-width: 6in;
}
.photo-sample {
  width: 1.15in; height: 1.15in; object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  filter: sepia(0.55) contrast(1.02) brightness(0.98);
  transform: rotate(-1.5deg);
}
.photo-sample:nth-child(2) { transform: rotate(1deg); }
.photo-sample:nth-child(3) { transform: rotate(-0.5deg); }

@media (max-width: 720px) {
  .photo-samples { gap: 0.3rem; max-width: 100%; }
  .photo-sample { width: 28%; height: auto; aspect-ratio: 1/1; }
}


