/* ==============================
   CLUB 1 PIANO — APP STYLES
   ============================== */

:root {
  --gold: #ffb800;
  --gold-light: #ffd966;
  --gold-dim: #9c7000;
  --gold-glow: rgba(255,184,0,0.18);
  --dark: #0D0D0D;
  --surface: #181818;
  --surface2: #202020;
  --surface3: #2A2A2A;
  --text: #F0EDE6;
  --text-muted: #9A9080;
  --border: rgba(201,168,76,0.15);
  --danger: #E24B4A;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --nav-h: 72px;
}

/* ===== LIGHT THEME ===== */
body.theme-light {
  --dark: #F5F2EC;
  --surface: #FFFFFF;
  --surface2: #EDE9E0;
  --surface3: #E2DDD3;
  --text: #1A1714;
  --text-muted: #7A7268;
  --border: rgba(180,148,60,0.2);
}
body.theme-light #app,
body.theme-light .screen,
body.theme-light .bottomnav { background: var(--dark); }
body.theme-light .topbar { background: var(--dark); }
body.theme-light .hero-card { background: #FFF8E8; }
body.theme-light .splash-logo div,
body.theme-light #splash-text { color: var(--text); }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
}

/* ========== APP SHELL ========== */
#app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--dark);
  overflow: hidden;
}
#app.hidden { display: none; }

#app-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Hidden on mobile, shown on desktop via media query */
.nav-brand    { display: none; }

/* ========== SCREENS ========== */
.screen {
  display: none;
  flex-direction: column;
  height: 100dvh;
  position: absolute;
  inset: 0;
  background: var(--dark);
  animation: fadeUp 0.28s ease;
}
.screen.active { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 12px);
  scrollbar-width: none;
}
.scroll-content::-webkit-scrollbar { display: none; }

/* ========== TOPBAR ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 20px 14px;
  background: var(--dark);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}


.topbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1;
}
.topbar-greeting {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.topbar-center-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
  flex: 1;
  text-align: center;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
}
.icon-btn:active { transform: scale(0.93); }

.badge-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
  border: 1.5px solid var(--dark);
}

.back-btn {
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 0.5px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.back-btn:active { transform: scale(0.93); }

/* ========== HERO CARD ========== */
.hero-card {
  margin: 4px 16px 24px;
  border-radius: var(--radius-lg);
  background: #111005;
  border: 1px solid var(--gold-dim);
  padding: 20px 18px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-card:active { transform: scale(0.98); }
.hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 28px,
    rgba(201,168,76,0.03) 28px, rgba(201,168,76,0.03) 29px
  );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hero-eyebrow {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-title span { color: var(--gold); }

.hero-pts-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-pts-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
}
.hero-pts-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mini-qr {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--gold-dim);
}
.hero-tap-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.hero-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-progress-bg {
  flex: 1;
  height: 5px;
  background: var(--surface3);
  border-radius: 40px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 5px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.6s ease;
}
.hero-progress-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========== SECTION HEADERS ========== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
}
.section-link {
  font-size: 12px;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* ========== HORIZONTAL SCROLL OFFERS ========== */
.cards-scroll {
  display: flex;
  gap: 12px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
}
.cards-scroll::-webkit-scrollbar { display: none; }

.offer-snap-card {
  min-width: 170px;
  max-width: 170px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}
.offer-snap-card:active { transform: scale(0.96); }
.offer-snap-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--gold);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.offer-snap-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.offer-snap-name { font-weight: 500; font-size: 14px; margin-bottom: 3px; }
.offer-snap-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.35; }
.offer-snap-price {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--gold);
}
.offer-snap-orig {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.offer-snap-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(201,168,76,0.13);
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  border: 0.5px solid var(--gold-dim);
}
.offer-snap-use-btn {
  margin-top: 10px;
  width: 100%;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.15s;
}
.offer-snap-use-btn:active { opacity: 0.8; }

/* ========== CATEGORY GRID ========== */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 28px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  border: 1px solid rgba(255,255,255,0.06);
}
.cat-card:active { transform: scale(0.96); }

/* Colori per categoria */
.cat-card:nth-child(1) { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.cat-card:nth-child(2) { background: linear-gradient(135deg, #1c1206 0%, #2a1a06 100%); }
.cat-card:nth-child(3) { background: linear-gradient(135deg, #1a0a0a 0%, #2a0f0f 100%); }
.cat-card:nth-child(4) { background: linear-gradient(135deg, #0d1a10 0%, #132014 100%); }

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transition: opacity .18s;
}
.cat-card:hover::before { opacity: 0.3; }

.cat-icon {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.cat-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.cat-arrow {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ========== FILTER PILLS ========== */
.filter-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-pill {
  background: var(--surface);
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 16px;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}
.filter-pill.active {
  background: var(--gold);
  color: #0D0D0D;
  border-color: var(--gold);
  font-weight: 500;
}

/* ========== OFFER LIST (FULL) ========== */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.offer-full-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}
.offer-full-card:active { transform: scale(0.98); }
.offer-full-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.offer-full-card.dimmed { opacity: 0.45; pointer-events: none; }

.offer-full-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.offer-full-name { font-weight: 500; font-size: 15px; line-height: 1.2; flex: 1; }
.offer-full-chip {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid var(--gold-dim);
  white-space: nowrap;
  margin-left: 8px;
}
.offer-full-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.offer-full-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.offer-full-price {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  color: var(--gold);
}
.offer-full-orig {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.offer-use-btn {
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.12s;
}
.offer-use-btn:active { transform: scale(0.94); }
.offer-expiry {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}
.offer-coming-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ========== QR SCREEN ========== */
/* ========== QR SCREEN ========== */
.qr-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 20px calc(var(--nav-h) + 28px);
}

/* Member header */
.qr-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.qr-header-text { display: flex; flex-direction: column; gap: 5px; }
.qr-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2A1F05, #4A380A);
  border: 1.5px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.qr-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  line-height: 1;
  color: var(--text);
}
.qr-level-badge {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid rgba(201,168,76,0.25);
  letter-spacing: 0.08em;
  width: fit-content;
}

/* QR code area */
.qr-code-wrap {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.qr-box {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: inline-block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: opacity 0.3s;
}
.qr-box.refreshing { opacity: 0.15; }
.qr-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}
.qr-validity {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.qr-validity span { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Points block */
.qr-pts-block {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.qr-pts-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.qr-pts-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
}
.qr-pts-lbl { font-size: 13px; color: var(--text-muted); }
.progress-bg {
  height: 5px;
  background: var(--surface3);
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: 7px;
}
.progress-fill {
  height: 5px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.6s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* Refresh button */
.refresh-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 11px;
  border-radius: 40px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  transition: color 0.15s, background 0.15s;
}
.refresh-btn:active { background: var(--surface2); color: var(--text); }

/* ========== ACCOUNT ========== */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 20px 24px;
  text-align: center;
}
.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2A1F05, #4A380A);
  border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 12px;
}
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 3px;
}
.profile-email { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.profile-badge {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--gold-dim);
  letter-spacing: 1px;
}

.stats-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}
.stat-card--mid { border-color: var(--gold-dim); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.menu-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--text-muted);
  padding: 0 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}
.menu-row {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: background 0.15s;
}
.menu-row:active { background: var(--surface2); }
.menu-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(201,168,76,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.menu-label { flex: 1; font-size: 14px; text-align: left; }
.menu-arrow { color: var(--text-muted); font-size: 16px; }

.danger-icon { background: rgba(226,75,74,0.1); color: var(--danger); }
.danger-label { color: var(--danger); }

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  width: 46px;
  height: 26px;
  border-radius: 40px;
  background: var(--surface3);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}
.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.25s, background 0.25s;
}
.theme-toggle.on {
  background: var(--gold);
  border-color: var(--gold-dim);
}
.theme-toggle.on .theme-toggle-knob {
  transform: translateX(20px);
  background: #0D0D0D;
}

.app-version {
  font-size: 11px;
  color: var(--surface3);
  text-align: center;
  padding: 24px 20px 8px;
}

/* ========== BOTTOM NAV ========== */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-h);
  background: rgba(13,13,13,0.97);
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 10px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav-item i { font-size: 22px; }
.nav-item span { font-size: 10px; font-family: 'DM Sans', sans-serif; }
.nav-item.active { color: var(--gold); }


/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  position: relative;
  animation: slideUp 0.28s ease;
  max-height: 85dvh;
  overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface3);
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.modal-eyebrow { font-size: 11px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 10px; }
.modal-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.modal-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.modal-price { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--gold); }
.modal-orig { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.modal-cta {
  width: 100%;
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.12s;
}
.modal-cta:active { transform: scale(0.97); }
.modal-expiry { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* ========== TOAST ========== */
#toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%; transform: translateX(-50%);
  background: var(--surface3);
  color: var(--text);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 40px;
  border: 0.5px solid var(--border);
  white-space: nowrap;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, bottom 0.25s;
}
#toast.show {
  opacity: 1;
  bottom: calc(var(--nav-h) + 18px);
}

/* ========== SPLASH ========== */
#splash {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.5s;
}
#splash.fade-out { opacity: 0; pointer-events: none; }

.splash-logo img {
  width: 200px;
  filter: brightness(1.1);
}
.splash-logo {
  margin-bottom: 14px;
}
#splash-text {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--gold);
}
.splash-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.splash-loader {
  width: 140px;
  height: 3px;
  background: var(--surface3);
  border-radius: 40px;
  overflow: hidden;
}
.splash-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 40px;
  animation: loadBar 1.8s ease forwards;
}
@keyframes loadBar {
  from { width: 0; }
  to { width: 100%; }
}

/* ========== AUTH SCREEN ========== */
#auth-screen {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image: radial-gradient(ellipse at 50% 40%, rgba(255,184,0,0.08) 0%, transparent 65%);
}
#auth-screen.hidden { display: none; }

.auth-inner {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 32px 24px 36px;
  animation: slideUp 0.35s ease;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.auth-logo img { width: 80px; }

.auth-tagline {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-tagline span { color: var(--gold); }

.auth-tabs {
  display: flex;
  background: var(--surface2);
  border-radius: 40px;
  padding: 3px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  padding: 9px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active {
  background: var(--gold);
  color: #0D0D0D;
  font-weight: 500;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; color: var(--text-muted); }
.field-input {
  background: var(--surface3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s;
}
.field-input:focus { border-color: var(--gold-dim); }
.field-input::placeholder { color: var(--surface3); filter: brightness(3); }

.auth-error {
  background: rgba(226,75,74,0.1);
  color: #E24B4A;
  border: 0.5px solid rgba(226,75,74,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
}
.auth-error.hidden { display: none; }

.auth-cta {
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  border-radius: 40px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
  margin-top: 4px;
}
.auth-cta:active { transform: scale(0.97); }
.auth-cta:disabled { opacity: 0.5; }

.auth-forgot {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}
.auth-terms {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== NOTIF PANEL ========== */
.notif-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 16px 24px;
}
.notif-panel-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notif-panel-left > i { font-size: 22px; color: var(--gold); }
.notif-panel-title { font-size: 14px; font-weight: 500; }
.notif-panel-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.notif-toggle-btn {
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.notif-toggle-btn.active {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

/* ========== MINI QR CANVAS ========== */
.mini-qr canvas { display: block; border-radius: 8px; }
.qr-box canvas { display: block; border-radius: 8px; }

/* ========== GUEST MODE ========== */
.guest-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: all;
}

.guest-screen-lock {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 32px;
}

.guest-lock-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 280px;
}

.guest-lock-icon { font-size: 40px; }

.guest-lock-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
}

.guest-lock-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.guest-lock-btn {
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  border-radius: 40px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.12s;
}
.guest-lock-btn:active { transform: scale(0.97); }

/* ========== RESPONSIVE ========== */
@media (min-width: 430px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ===== TABLET (≥ 600px) ===== */
@media (min-width: 600px) {
  .modal-card { max-width: 560px; }

  .topbar { padding: 36px 28px 14px; }
  .hero-card { margin: 8px 24px 28px; }
  .section-head { padding: 0 28px; }
  .cards-scroll { padding: 0 28px 4px; }
  .cat-grid { padding: 0 24px; }
  .filter-row { padding: 0 24px 18px; }
  .offer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 24px; }
  .stats-trio { padding: 0 24px; }
  .menu-list { padding: 0 24px; }
  .menu-section-title { padding: 0 28px; }
  .notif-panel { margin: 0 24px 24px; }
}

/* ===== DESKTOP SIDEBAR (≥ 900px) ===== */
@media (min-width: 900px) {

  /* ---- App shell: flex row ---- */
  #app {
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: visible;
    min-height: 100dvh;
  }

  /* ---- Content wrapper ---- */
  #app-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
  }

  .screen {
    position: absolute;
    inset: 0;
  }

  /* Scroll content: no nav-h padding (nav is sidebar) */
  .scroll-content { padding-bottom: 32px; }

  /* ---- Sidebar ---- */
  .bottomnav {
    position: sticky;
    top: 0;
    left: auto;
    transform: none;
    width: 220px;
    min-width: 220px;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 32px 12px 32px;
    border-top: none;
    border-right: 1px solid var(--border);
    border-bottom: none;
    background: var(--surface);
    gap: 4px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-shrink: 0;
    overflow-y: auto;
  }

  /* Brand / logo in sidebar */
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 32px;
  }
  .nav-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }
  .nav-brand span {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 0.3px;
    line-height: 1.2;
  }

  /* Nav items: horizontal → vertical */
  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    transition: background 0.18s, color 0.18s;
  }
  .nav-item span { font-size: 14px; display: block; }
  .nav-item i { font-size: 20px; }
  .nav-item.active {
    color: var(--gold);
    background: rgba(255,184,0,0.08);
    border: 0.5px solid rgba(255,184,0,0.18);
  }


  /* ---- Topbar ---- */
  .topbar { padding: 24px 32px 16px; }
  .topbar-logo { font-size: 20px; }
  .topbar-greeting { font-size: 13px; }

  /* ---- Hero ---- */
  .hero-card { margin: 16px 32px 32px; padding: 28px 24px 22px; }
  .hero-title { font-size: 30px; }
  .hero-pts-num { font-size: 36px; }

  /* ---- Sections ---- */
  .section-head { padding: 0 32px; margin-bottom: 14px; }
  .section-title { font-size: 18px; }
  .cards-scroll { padding: 0 32px 4px; }
  .offer-snap-card { min-width: 205px; max-width: 205px; }

  /* ---- Cat grid ---- */
  .cat-grid { padding: 0 32px; gap: 14px; }
  .cat-card { padding: 26px 22px; }
  .cat-icon { font-size: 40px; }
  .cat-name { font-size: 16px; }

  /* ---- Filters ---- */
  .filter-row { padding: 0 32px 18px; }

  /* ---- Offer list 2 col ---- */
  .offer-list { grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 32px; }

  /* ---- Account ---- */
  .profile-avatar { width: 84px; height: 84px; font-size: 28px; }
  .profile-name { font-size: 24px; }
  .stats-trio { padding: 0 32px; gap: 12px; }
  .menu-list { padding: 0 32px; }
  .menu-section-title { padding: 0 36px; font-size: 15px; }
  .notif-panel { margin: 0 32px 24px; }
  .menu-row { padding: 14px 16px; }
  .menu-label { font-size: 15px; }
  .menu-icon { width: 38px; height: 38px; font-size: 19px; }

  /* ---- QR screen ---- */
  .qr-screen { padding: 24px 32px 32px; }
  .qr-card { max-width: 460px; margin: 0 auto 16px; }
  .qr-info-cards { max-width: 460px; margin: 0 auto; }

  /* ---- Modal ---- */
  .modal-card { max-width: 580px; }

  /* ---- Referral ---- */
  .referral-panel { margin: 0 32px 16px; }
  .referral-reward { margin: 0 32px 24px; }
}

/* ==============================
   REFERRAL
   ============================== */
/* ---- Invite panel ---- */
.invite-panel {
  background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,184,0,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 0 20px 16px;
}
.invite-panel-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.invite-panel-icon { font-size: 26px; line-height: 1; }
.invite-panel-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.invite-panel-sub { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.invite-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.invite-phone-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.invite-phone-input:focus { border-color: var(--gold); }
.invite-send-btn {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  width: 42px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.invite-list { display: flex; flex-direction: column; gap: 6px; }
.invite-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--surface2);
  border-radius: 8px;
  font-size: 13px;
}
.invite-phone { color: var(--text-muted); }
.invite-status { font-size: 12px; font-weight: 600; }
.invite-status--pending  { color: var(--gold); }
.invite-status--accepted { color: #3ecf8e; }
.invite-status--declined { color: #888; }

.referral-reward {
  background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(255,184,0,0.05));
  border: 1px solid rgba(255,184,0,0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 0 20px 16px;
}
.referral-reward-top { margin-bottom: 8px; }
.referral-reward-badge {
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.referral-reward-name { font-size: 16px; font-weight: 700; color: var(--text); margin: 10px 0 4px; }
.referral-reward-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ==============================
   OFFER IMAGES
   ============================== */
.offer-snap-img {
  width: calc(100% + 32px);
  margin: -16px -16px 12px;
  height: 120px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.offer-snap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.offer-full-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.offer-full-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-img {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==============================
   PULL TO REFRESH
   ============================== */
#ptr-indicator {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  transition: top .2s ease;
}
#ptr-indicator.ptr-visible { top: 16px; }
.ptr-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,184,0,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
}
#ptr-indicator.ptr-spinning .ptr-spinner {
  animation: ptr-spin .5s linear infinite;
}
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ==============================
   BANNER INVITO RICEVUTO
   ============================== */
.invite-banner {
  position: fixed;
  bottom: 90px;
  left: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid rgba(255,184,0,0.4);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 80;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: bannerSlideUp .35s ease;
}
@keyframes bannerSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.invite-banner-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.invite-banner-icon { font-size: 30px; flex-shrink: 0; }
.invite-banner-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.invite-banner-sub { font-size: 12px; color: var(--text-muted); }
.invite-banner-actions { display: flex; gap: 8px; }
.invite-accept-btn {
  flex: 1;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
/* ==============================
   EDIT PROFILE
   ============================== */
.edit-profile-wrap {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edit-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.edit-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 100%;
}
.edit-input:focus { border-color: var(--gold); }
.edit-field--readonly .edit-input,
.edit-readonly {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 10px 12px;
  font-size: 14px;
}
.edit-save-btn {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.phone-prompt {
  position: fixed;
  bottom: 90px;
  left: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 79;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.phone-prompt-close {
  position: absolute;
  top: 10px; right: 10px;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 16px;
}
.phone-prompt-body {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.phone-prompt-icon { font-size: 26px; flex-shrink: 0; }
.phone-prompt-title { font-size: 14px; font-weight: 600; color: var(--text); }
.phone-prompt-sub { font-size: 12px; color: var(--text-muted); }
.phone-prompt-row { display: flex; gap: 8px; }

.invite-decline-btn {
  flex: 1;
  background: var(--surface3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px;
  font-size: 14px;
  cursor: pointer;
}


/* ==============================
   TIME RESTRICTION BANNER
   ============================== */
.time-banner-card {
  text-align: center;
  padding: 36px 28px 44px;
}
.time-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1.5px solid rgba(255,184,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.time-banner-icon i {
  font-size: 32px;
  color: var(--gold);
}
.time-banner-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.time-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.time-banner-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  white-space: pre-line;
  line-height: 1.6;
}
.time-banner-btn {
  width: 100%;
  background: var(--gold);
  color: #0a0a0a;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.1s;
}
.time-banner-btn:active { opacity: 0.82; transform: scale(0.98); }

/* ==============================
   OFFER QR OVERLAY
   ============================== */
.offer-qr-modal {
  text-align: center;
  padding: 28px 24px 40px;
}
.offer-qr-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.offer-qr-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.offer-qr-canvas-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  transition: opacity 0.3s;
}
.offer-qr-canvas-wrap canvas {
  border-radius: 12px;
  display: block;
}
.offer-qr-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.offer-qr-timer {
  font-size: 13px;
  color: var(--text-muted);
  transition: opacity 0.3s;
}
.offer-qr-timer span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.offer-qr-regen {
  margin-top: 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: auto;
}

/* QR screen section labels */
.qr-section-label {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.qr-section-label i { font-size: 14px; color: var(--gold); }

.qr-offer-hint-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.qr-offer-hint-card strong { color: var(--text); font-weight: 600; }

/* Hero card progress */
.hero-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-progress-bg {
  flex: 1;
  height: 4px;
  background: rgba(201,168,76,0.15);
  border-radius: 40px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 4px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.6s ease;
}
.hero-progress-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mini QR hide duplicate img from qrcodejs */
.mini-qr img, #qr-box img, #oqr-canvas-wrap img { display: none; }
.mini-qr canvas { display: block; border-radius: 6px; }

/* QR screen — offer cards */
.qr-offer-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-offer-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qr-offer-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.qr-offer-card-name i { color: var(--gold); font-size: 15px; }
.qr-offer-card-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
}
.qr-offer-box-wrap { position: relative; }
.qr-offer-box {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.qr-offer-box img { display: none; }
.qr-offer-card--used {
  position: relative;
  overflow: hidden;
  border-color: rgba(201,168,76,0.35);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(201,168,76,0.06) 100%);
  padding: 28px 20px 24px;
  align-items: center;
  gap: 6px;
  border-style: dashed;
}
.qr-offer-card--used .qr-offer-card-remove {
  position: absolute;
  top: 10px;
  right: 10px;
}
.qr-used-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 6px;
  color: rgba(201,168,76,0.07);
  pointer-events: none;
  user-select: none;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.qr-used-icon {
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.qr-used-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.qr-used-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  opacity: 0.9;
}
.qr-used-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
#qr-offers-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
