:root {
  --bg-cream: #f5ecbe;
  --bg-cream-light: #faf5d8;
  --bg-paper: #fdf9e7;
  --red-primary: #c8161d;
  --red-dark: #8e0c12;
  --red-bright: #e0242a;
  --blue-primary: #1c57a5;
  --blue-dark: #123c75;
  --gold-fill: #fff1aa;
  --gold-bright: #ffe678;
  --ink-dark: #2c1512;
  --ink-muted: #5e3830;
  --stripe-white: #faf6ec;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-hanzi: 'Noto Serif TC', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink-dark);
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 252, 232, 0.85) 0%, transparent 45%),
    radial-gradient(circle at 85% 22%, rgba(255, 240, 175, 0.55) 0%, transparent 42%),
    radial-gradient(rgba(164, 14, 20, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 14px 14px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 44px;
}

/* Retro Hanging Lamps */
.retro-lamps {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 6%;
}

.lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lamp-cord {
  width: 3px;
  height: 22px;
  background: #2b1b17;
}

.lamp-cap {
  width: 24px;
  height: 14px;
  background: var(--red-dark);
  border-radius: 8px 8px 0 0;
  border: 2px solid var(--red-primary);
}

.lamp-shade {
  width: 110px;
  height: 36px;
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red-primary) 60%, var(--red-dark) 100%);
  border-radius: 55px 55px 10px 10px;
  box-shadow: 0 8px 18px rgba(142, 12, 18, 0.25);
  position: relative;
}

.lamp-shade::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 10px;
  background: #fff4b8;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 18px 6px rgba(255, 232, 120, 0.65);
}

/* Left Vertical Striped Ribbon "三姐妹" */
.vertical-ribbon {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
}

@media (min-width: 1120px) {
  .vertical-ribbon {
    display: block;
  }
}

.ribbon-stripes {
  width: 58px;
  padding: 22px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--red-primary) 0px,
    var(--red-primary) 12px,
    var(--stripe-white) 12px,
    var(--stripe-white) 24px,
    var(--blue-primary) 24px,
    var(--blue-primary) 36px,
    var(--stripe-white) 36px,
    var(--stripe-white) 48px
  );
  border: 3px solid var(--stripe-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hanzi-stack {
  font-family: var(--font-hanzi);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.35;
  color: #ffffff;
  background: rgba(200, 22, 29, 0.9);
  padding: 8px 6px;
  border: 2px solid #fff2b2;
  text-shadow: 2px 2px 0 var(--red-dark);
}

/* Main Container */
.page-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  position: relative;
  z-index: 2;
}

/* Brand Header */
.brand-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding-top: 24px;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 253, 244, 0.92);
  border: 3px solid var(--red-primary);
  border-radius: 20px;
  padding: 8px 16px;
  box-shadow: 4px 4px 0 var(--red-primary);
}

.brand-logo-img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-primary);
  color: var(--gold-fill);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--gold-fill);
  box-shadow: 0 4px 0 var(--red-dark);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

@media (max-width: 860px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-kicker {
  display: inline-block;
  background: var(--blue-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 3px 0 var(--blue-dark);
}

/* Iconic 3D Retro Poster Typography */
.retro-3d-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  transform: rotate(-1.5deg);
}

.retro-3d-title span {
  display: block;
  color: var(--gold-fill);
  text-shadow:
    -2px -2px 0 var(--red-dark),
     2px -2px 0 var(--red-dark),
    -2px  2px 0 var(--red-dark),
     2px  2px 0 var(--red-dark),
     0px -2px 0 var(--red-dark),
     0px  2px 0 var(--red-dark),
    -2px  0px 0 var(--red-dark),
     2px  0px 0 var(--red-dark),
     3px  3px 0 var(--red-primary),
     4px  4px 0 var(--red-primary),
     5px  5px 0 var(--red-primary),
     6px  6px 0 var(--red-dark),
     7px  7px 0 var(--red-dark),
     8px  8px 0 var(--red-dark),
     10px 12px 18px rgba(90, 8, 12, 0.35);
}

.title-line-1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.title-line-2 {
  font-size: clamp(2.6rem, 5.8vw, 3.9rem);
}

.title-line-3 {
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
}

/* Offer Banner */
.offer-banner {
  background: var(--bg-paper);
  border: 3px solid var(--red-primary);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 6px 6px 0 var(--red-primary);
  margin-bottom: 16px;
  text-align: left;
}

.offer-tag {
  display: inline-block;
  background: var(--red-primary);
  color: var(--gold-fill);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.9rem;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--gold-fill);
  box-shadow: 0 3px 0 var(--red-dark);
  margin-bottom: 12px;
}

.offer-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 390px) {
  .offer-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.price-3d {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  line-height: 0.95;
  color: var(--gold-bright);
  text-shadow:
    -2px -2px 0 var(--red-dark),
     2px -2px 0 var(--red-dark),
    -2px  2px 0 var(--red-dark),
     2px  2px 0 var(--red-dark),
     0px -2px 0 var(--red-dark),
     0px  2px 0 var(--red-dark),
    -2px  0px 0 var(--red-dark),
     2px  0px 0 var(--red-dark),
     3px  3px 0 var(--red-primary),
     4px  4px 0 var(--red-primary),
     5px  5px 0 var(--red-primary),
     6px  6px 0 var(--red-dark),
     8px  8px 14px rgba(142, 12, 18, 0.3);
  flex-shrink: 0;
}

.size-badge {
  display: inline-block;
  background: var(--red-dark);
  color: var(--gold-fill);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--gold-fill);
  margin-bottom: 6px;
}

.offer-desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-dark);
}

.offer-desc strong {
  color: var(--red-primary);
}

.validity-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.75);
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px dashed var(--red-primary);
  margin-bottom: 16px;
}

.hero-quick-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2467c2 0%, var(--blue-primary) 100%);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  border: 2.5px solid var(--stripe-white);
  box-shadow: 0 5px 0 var(--blue-dark), 0 10px 18px rgba(18, 60, 117, 0.24);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hero-quick-cta:hover {
  transform: translateY(-2px);
}

.hero-quick-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--blue-dark);
}

.icon-cal {
  width: 18px;
  height: 18px;
  color: var(--red-primary);
  flex-shrink: 0;
}

/* Hero Visual: Milk Tea Cup on Red Retro Cafe Table */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cup-stage {
  position: relative;
  width: 340px;
  height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cup-photo {
  position: relative;
  z-index: 3;
  width: 300px;
  height: auto;
  display: block;
  transform: translateY(38px);
  filter: drop-shadow(0 12px 18px rgba(80, 12, 12, 0.28));
}

.cafe-table-top {
  width: 310px;
  height: 84px;
  background: radial-gradient(ellipse at center, var(--red-bright) 0%, var(--red-primary) 70%, var(--red-dark) 100%);
  border-radius: 50%;
  border: 5px solid #d9dee6;
  box-shadow: 0 14px 28px rgba(105, 10, 15, 0.32);
  position: relative;
  z-index: 1;
}

.cup-shadow {
  position: absolute;
  bottom: 48px;
  width: 150px;
  height: 24px;
  background: rgba(70, 5, 8, 0.36);
  border-radius: 50%;
  z-index: 2;
  filter: blur(3px);
}

/* Claim Card */
.claim-section {
  margin-bottom: 30px;
}

.claim-card {
  background: var(--bg-paper);
  border: 4px solid var(--red-primary);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 8px 8px 0 var(--red-primary), 0 18px 40px rgba(142, 12, 18, 0.14);
  position: relative;
}

.card-corner-badge {
  position: absolute;
  top: -15px;
  left: 28px;
  background: var(--blue-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--stripe-white);
  box-shadow: 0 3px 0 var(--blue-dark);
}

.claim-header {
  margin-bottom: 20px;
}

.claim-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  color: var(--red-primary);
  margin-bottom: 6px;
}

.claim-subtitle {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.voucher-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-dark);
}

.req {
  color: var(--red-primary);
}

.form-group input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid #d6c598;
  background: #ffffff;
  color: var(--ink-dark);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(28, 87, 165, 0.18);
}

.form-error {
  color: var(--red-primary);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.btn-claim-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border: 3px solid var(--stripe-white);
  border-radius: 16px;
  background: linear-gradient(180deg, #2467c2 0%, var(--blue-primary) 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--blue-dark), 0 10px 20px rgba(18, 60, 117, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-claim-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--blue-dark), 0 12px 24px rgba(18, 60, 117, 0.32);
}

.btn-claim-cta:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--blue-dark);
}

.btn-arrow {
  width: 22px;
  height: 22px;
}

.one-per-customer-note {
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.hidden {
  display: none !important;
}

/* Issued E-Voucher Ticket */
.issued-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e9f7ef;
  border: 2px solid #1e8449;
  color: #145a32;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.issued-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e8449;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.evoucher-ticket {
  display: grid;
  grid-template-columns: 1fr auto 190px;
  background: linear-gradient(135deg, #fffdf4 0%, #fff4c8 100%);
  border: 3px solid var(--red-primary);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--red-primary);
}

@media (max-width: 720px) {
  .evoucher-ticket {
    grid-template-columns: 1fr;
  }
}

.ticket-left {
  padding: 22px 24px;
}

.ticket-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--blue-primary);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ticket-reward {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.38rem;
  color: var(--red-primary);
  margin-bottom: 4px;
}

.ticket-cond {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.code-box {
  background: #ffffff;
  border: 2px dashed var(--red-primary);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.code-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.code-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.voucher-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--red-dark);
  letter-spacing: 0.06em;
}

.btn-copy {
  background: var(--blue-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-copy:hover {
  background: var(--blue-dark);
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.86rem;
  color: var(--ink-dark);
}

.ticket-divider {
  position: relative;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashed-line {
  width: 2px;
  height: 80%;
  border-left: 2px dashed var(--red-primary);
}

.notch {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--bg-paper);
  border: 3px solid var(--red-primary);
  border-radius: 50%;
}

.notch-top { top: -14px; }
.notch-bottom { bottom: -14px; }

@media (max-width: 720px) {
  .ticket-divider {
    width: 100%;
    height: 24px;
  }
  .dashed-line {
    width: 85%;
    height: 2px;
    border-left: none;
    border-top: 2px dashed var(--red-primary);
  }
  .notch-top { top: 0; left: -14px; }
  .notch-bottom { bottom: 0; right: -14px; }
}

.ticket-right {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.qr-box {
  width: 124px;
  height: 124px;
  background: #ffffff;
  border: 2px solid var(--red-primary);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-dark);
  text-align: center;
}

.saved-notice {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Terms & Conditions */
.terms-card {
  background: var(--bg-paper);
  border: 3px solid var(--red-primary);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 6px 6px 0 var(--red-primary);
}

.terms-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.terms-badge {
  background: var(--red-primary);
  color: var(--gold-fill);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--gold-fill);
}

.terms-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-dark);
}

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.bullet-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 32px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-seal {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--red-primary);
}

.admin-mini-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 253, 244, 0.85);
  border: 1.5px solid #d6c598;
  border-radius: 999px;
  padding: 5px 12px 5px 7px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.admin-mini-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  transform: translateY(-1px);
}

.admin-mini-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Admin Modal & Dashboard */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 21, 18, 0.65);
  backdrop-filter: blur(3px);
}

.admin-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-paper);
  border: 3px solid var(--red-primary);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.admin-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red-primary);
  background: #ffffff;
  color: var(--red-primary);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
}

.admin-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 36px;
}

.admin-head-logo {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.admin-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--red-primary);
}

.admin-subtitle {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-input,
.admin-select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 11px 14px;
  border: 2px solid #d6c598;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink-dark);
  width: 100%;
}

.admin-input:focus,
.admin-select:focus {
  outline: none;
  border-color: var(--blue-primary);
}

.admin-dash-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-right: 38px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-box {
  background: #ffffff;
  border: 2px solid #e6d9b3;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.stat-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--ink-dark);
}

.stat-blue { color: var(--blue-primary); }
.stat-red { color: var(--red-primary); }
.stat-green { color: #1e8449; }

.admin-card-block {
  background: #ffffff;
  border: 2px solid #e6d9b3;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.block-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink-dark);
  margin-bottom: 12px;
}

.chart-layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 540px) {
  .chart-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .chart-details {
    width: 100%;
  }
}

.donut-wrap {
  position: relative;
  width: 124px;
  height: 124px;
}

.donut-svg {
  width: 100%;
  height: 100%;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-center strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--red-primary);
}

.donut-center span {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.chart-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.progress-track {
  height: 10px;
  background: #efe4bc;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fill-red { background: var(--red-primary); }
.fill-blue { background: var(--blue-primary); }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: var(--red-primary); }
.dot-blue { background: var(--blue-primary); }
.dot-cream { background: #efe4bc; border: 1px solid #c9b785; }

.quota-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.quota-hint {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.btn-chip,
.btn-outline-sm {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--blue-primary);
  background: #f2f7ff;
  color: var(--blue-primary);
  cursor: pointer;
}

.btn-outline-sm {
  border-color: #d6c598;
  background: #ffffff;
  color: var(--ink-dark);
}

.admin-import-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid #d6c598;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink-dark);
  width: 100%;
  resize: vertical;
  min-height: 96px;
}

.admin-textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
}

.import-actions-row {
  display: flex;
  justify-content: flex-end;
}

.status-available {
  background: #e9f7ef;
  color: #1e8449;
}

.btn-issue-submit {
  background: var(--red-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.admin-feedback {
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e8449;
}

.manage-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.manage-header .block-title {
  margin-bottom: 0;
}

.manage-utils {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.storage-location-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: #fdf9e7;
  border: 1px dashed #d6c598;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.manage-filters {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .manage-filters {
    grid-template-columns: 1fr;
  }
}

.admin-code-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #eadfbf;
  border-radius: 12px;
  background: #fffdf6;
}

.code-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.code-row-code {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--red-dark);
  font-size: 0.96rem;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-unused {
  background: #e8f1fd;
  color: var(--blue-primary);
}

.status-used {
  background: #fdeaea;
  color: var(--red-primary);
}

.code-row-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.code-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-xs {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid #d6c598;
  background: #ffffff;
  color: var(--ink-dark);
  cursor: pointer;
}

.btn-xs-primary {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn-xs-danger {
  border-color: #e5b8b8;
  color: #a93226;
}

/* Bottom Classic Red-Cream-Blue Striped Border */
.bottom-stripes {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 30;
  background: repeating-linear-gradient(
    90deg,
    var(--red-primary) 0px,
    var(--red-primary) 34px,
    var(--stripe-white) 34px,
    var(--stripe-white) 68px,
    var(--blue-primary) 68px,
    var(--blue-primary) 102px,
    var(--stripe-white) 102px,
    var(--stripe-white) 136px
  );
  border-top: 3px solid var(--stripe-white);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
}

/* Mobile UX/UI Optimization */
@media (max-width: 640px) {
  body {
    padding-bottom: 36px;
  }

  .retro-lamps {
    padding: 0 4%;
  }

  .lamp {
    transform: scale(0.72);
    transform-origin: top center;
  }

  .page-wrapper {
    padding: 14px 14px 32px;
  }

  .brand-header {
    padding-top: 18px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .brand-logo-wrap {
    padding: 5px 10px;
    border-radius: 14px;
    border-width: 2.5px;
    box-shadow: 3px 3px 0 var(--red-primary);
  }

  .brand-logo-img {
    height: 46px;
  }

  .date-pill {
    font-size: 0.72rem;
    padding: 7px 11px;
    white-space: nowrap;
  }

  .hero-section {
    gap: 12px;
    margin-bottom: 26px;
  }

  .hero-kicker {
    font-size: 0.76rem;
    margin-bottom: 10px;
  }

  .retro-3d-title {
    margin-bottom: 16px;
  }

  .offer-banner {
    padding: 14px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--red-primary);
  }

  .offer-desc {
    font-size: 0.92rem;
  }

  .validity-strip {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
  }

  .hero-quick-cta {
    width: 100%;
    font-size: 0.95rem;
  }

  .cup-stage {
    width: 100%;
    max-width: 320px;
    height: 390px;
  }

  .cup-photo {
    width: 278px;
    transform: translateY(34px);
  }

  .cafe-table-top {
    width: 286px;
    height: 76px;
  }

  .claim-card {
    padding: 26px 16px 22px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--red-primary);
  }

  .card-corner-badge {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .form-group input {
    font-size: 16px;
    min-height: 48px;
  }

  .btn-claim-cta {
    min-height: 52px;
    font-size: 0.98rem;
  }

  .ticket-left {
    padding: 18px 16px;
  }

  .voucher-code {
    font-size: 1.35rem;
  }

  .btn-copy {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 0.9rem;
  }

  .terms-card {
    padding: 20px 16px;
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--red-primary);
  }

  .bottom-stripes {
    height: 20px;
  }
}
