/* ============================================
   PUREWAGER REWARDS — MAIN STYLESHEET
   Brand: Dark navy + gold (#E8B84B) + accent orange
   ============================================ */

:root {
  --pw-navy:      #0A1628;
  --pw-navy-mid:  #0F2044;
  --pw-navy-card: #122550;
  --pw-navy-light:#1A3060;
  --pw-gold:      #E8B84B;
  --pw-gold-light:#F5D07A;
  --pw-gold-dark: #C49A30;
  --pw-orange:    #F4602A;
  --pw-green:     #27AE60;
  --pw-red:       #E74C3C;
  --pw-text:      #E8EDF5;
  --pw-text-muted:#8AA0C0;
  --pw-border:    rgba(232,184,75,0.15);
  --pw-card-bg:   #122550;
  --radius-lg:    20px;
  --radius-md:    14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold:  0 4px 20px rgba(232,184,75,0.25);
  --nav-h:        72px;
  --status-h:     64px;
}

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

html {
  height: 100%;
  height: 100dvh;
}
body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--pw-navy);
  color: var(--pw-text);
  -webkit-font-smoothing: antialiased;
  position: fixed;
  width: 100%;
  top: 0; left: 0;
}

a { color: var(--pw-gold); text-decoration: none; }

/* ============ SCREENS ============ */
.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
  flex-direction: column;
  background: var(--pw-navy);
}
.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  z-index: 1;
}
/* Splash starts visible */
#screen-splash {
  display: flex;
  z-index: 1;
}

/* ============ SPLASH SCREEN ============ */
.splash-bg {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0A1628 0%, #0F2044 50%, #1a0a00 100%);
  overflow: hidden;
}
.splash-bg::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,184,75,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.splash-bg::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,96,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.splash-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8B84B' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 32px 40px;
  text-align: center;
}
.pw-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.pw-logo-img {
  width: 280px;
  max-width: 88vw;
  height: auto;
  border-radius: 14px;
  display: block;
  /* slight drop-shadow to lift it off dark backgrounds */
  filter: drop-shadow(0 4px 18px rgba(232,184,75,0.25));
}
.logo-rewards-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 6px;
  color: var(--pw-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.splash-tagline {
  font-size: 18px; font-weight: 500;
  color: var(--pw-text);
  line-height: 1.5;
  margin-bottom: 24px;
}
.splash-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge-item {
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.25);
  color: var(--pw-gold);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.splash-actions { width: 100%; max-width: 340px; }
.splash-legal {
  margin-top: 16px;
  font-size: 11px;
  color: var(--pw-text-muted);
}
.btn-admin-link {
  margin-top: 20px;
  background: transparent;
  color: var(--pw-text-muted);
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  transition: color 0.2s ease;
}
.btn-admin-link:hover {
  color: var(--pw-gold);
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: linear-gradient(135deg, var(--pw-gold), var(--pw-gold-dark));
  color: var(--pw-navy);
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 24px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--pw-gold);
  border: 2px solid var(--pw-gold);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s ease;
}
.btn-outline:hover { background: rgba(232,184,75,0.08); }

.btn-full { width: 100%; margin-bottom: 12px; }

.btn-back {
  background: rgba(255,255,255,0.08);
  border: none; color: #fff;
  width: 40px; height: 40px;
  border-radius: 12px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.btn-icon {
  background: rgba(255,255,255,0.06);
  border: none; color: var(--pw-text);
  width: 40px; height: 40px;
  border-radius: 12px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); }
.notif-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--pw-orange);
  border-radius: 50%;
  border: 2px solid var(--pw-navy-mid);
}

/* ============ AUTH SCREENS (LOGIN/REGISTER) ============ */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(160deg, var(--pw-navy) 0%, var(--pw-navy-mid) 100%);
  overflow-y: auto;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 44px) 20px 20px;
  padding-top: max(env(safe-area-inset-top, 0px), 44px);
  flex-shrink: 0;
}
.auth-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  flex: 1;
}
.auth-form {
  padding: 0 24px 40px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--pw-text);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.form-group label i { color: var(--pw-gold); font-size: 14px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"] {
  width: 100%;
  background: var(--pw-navy-card);
  border: 1.5px solid var(--pw-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--pw-text);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--pw-gold);
  background: rgba(255,255,255,0.04);
}
.form-group input::placeholder {
  color: var(--pw-text-muted);
  opacity: 0.6;
}
.form-hint {
  display: block;
  font-size: 11px;
  color: var(--pw-text-muted);
  margin-top: 5px;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--pw-gold);
}
.form-checkbox label {
  font-size: 12px;
  color: var(--pw-text);
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox label a {
  color: var(--pw-gold);
  text-decoration: underline;
}
.form-error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show {
  display: block;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--pw-text-muted);
  margin-top: 16px;
}
.auth-switch a {
  color: var(--pw-gold);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* ============ ONBOARDING ============ */
.onboard-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(160deg, var(--pw-navy) 0%, var(--pw-navy-mid) 100%);
  overflow: hidden;
}
.onboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 16px;
}
.pw-mini-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pw-mini-logo-img {
  height: 28px;
  width: auto;
  border-radius: 5px;
  filter: drop-shadow(0 2px 6px rgba(232,184,75,0.2));
}
.pw-mini-rewards {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--pw-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.onboard-slides { flex: 1; position: relative; overflow: hidden; }
.onboard-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 36px;
  text-align: center;
  opacity: 0; transform: translateX(40px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.onboard-slide.active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
}
.slide-icon {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, rgba(232,184,75,0.15), rgba(232,184,75,0.05));
  border: 2px solid rgba(232,184,75,0.3);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--pw-gold);
  margin-bottom: 28px;
}
.qr-icon { background: linear-gradient(135deg, rgba(39,174,96,0.15), rgba(39,174,96,0.05)); border-color: rgba(39,174,96,0.3); color: #27AE60; }
.map-icon { background: linear-gradient(135deg, rgba(244,96,42,0.15), rgba(244,96,42,0.05)); border-color: rgba(244,96,42,0.3); color: var(--pw-orange); }

.onboard-slide h2 {
  font-size: 26px; font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}
.onboard-slide p {
  color: var(--pw-text-muted);
  font-size: 15px; line-height: 1.6;
  margin-bottom: 28px;
}
.tier-preview {
  display: flex; gap: 8px;
}
.tier-badge {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px; font-weight: 700;
  text-align: center;
  opacity: 0.5;
}
.tier-badge small { display: block; font-weight: 400; font-size: 10px; opacity: 0.8; }
.tier-badge.bronze { background: rgba(205,127,50,0.2); color: #cd7f32; border: 1px solid rgba(205,127,50,0.3); }
.tier-badge.silver { background: rgba(192,192,192,0.2); color: #C0C0C0; border: 1px solid rgba(192,192,192,0.3); }
.tier-badge.gold { background: rgba(232,184,75,0.2); color: var(--pw-gold); border: 1px solid rgba(232,184,75,0.3); }
.tier-badge.platinum { background: rgba(180,100,255,0.2); color: #b464ff; border: 1px solid rgba(180,100,255,0.3); }
.tier-badge.active-tier { opacity: 1; transform: scale(1.1); }

.vendor-preview-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vp-chip {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 13px; font-weight: 600;
  color: var(--pw-gold);
  display: flex; align-items: center; gap: 6px;
}
.feature-list { text-align: left; }
.feat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 14px; color: var(--pw-text);
}
.feat-item i { color: var(--pw-green); }

.onboard-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 16px 0;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active {
  width: 24px;
  background: var(--pw-gold);
}
.onboard-nav {
  display: flex; gap: 12px;
  padding: 16px 20px 36px;
}
.onboard-nav .btn-outline, .onboard-nav .btn-primary { flex: 1; }

/* ============ APP LAYOUT ============ */
#screen-app {
  background: var(--pw-navy);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 44px) 16px 12px;
  padding-top: max(env(safe-area-inset-top, 0px), 44px);
  background: linear-gradient(180deg, var(--pw-navy-mid) 0%, transparent 100%);
  min-height: var(--status-h);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.status-left { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--pw-gold), var(--pw-gold-dark));
  color: var(--pw-navy);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  flex-shrink: 0;
}
.user-greeting { display: block; font-size: 14px; color: var(--pw-text); }
.user-tier {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  color: var(--pw-gold);
}
.status-right { display: flex; gap: 8px; }

.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--nav-h) + 16px);
  scroll-behavior: smooth;
  position: relative;
}

/* ============ PAGES ============ */
.page { display: none; padding: 0 16px 20px; }
.page.active { display: block; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}
.page-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 800;
  letter-spacing: 0.5px;
}
.partner-note {
  font-size: 12px; font-weight: 600;
  color: var(--pw-gold);
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.2);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}

/* ============ POINTS HERO ============ */
.points-hero {
  background: linear-gradient(135deg, var(--pw-navy-card) 0%, var(--pw-navy-light) 50%, #1A2E5E 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 8px 0 20px;
  border: 1px solid var(--pw-border);
  position: relative;
  overflow: hidden;
}
.points-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,184,75,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--pw-gold);
  margin-bottom: 8px;
}
.hero-points {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px; font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(232,184,75,0.3);
}
.hero-sub {
  font-size: 13px;
  color: var(--pw-text-muted);
  margin-bottom: 16px;
}
.tier-glow { color: var(--pw-gold); font-weight: 700; }
.tier-progress-wrap { margin-bottom: 20px; }
.tier-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--pw-text-muted);
  margin-bottom: 6px;
}
.tier-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pw-gold), var(--pw-gold-light));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.tier-progress-pts {
  font-size: 11px; color: var(--pw-text-muted);
  margin-top: 5px; text-align: right;
}
.points-hero-actions {
  display: flex; gap: 10px;
}
.hero-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--pw-text);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  transition: all 0.2s;
}
.hero-action-btn:hover { background: rgba(232,184,75,0.1); border-color: rgba(232,184,75,0.2); color: var(--pw-gold); }
.hero-action-btn i { font-size: 18px; color: var(--pw-gold); }

/* ============ SECTION HEADERS ============ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-header h3 {
  font-size: 17px; font-weight: 700;
}
.see-all-btn {
  background: none; border: none;
  color: var(--pw-gold);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.mt-20 { margin-top: 20px; }

/* ============ ACTIVE QR CODES (home) ============ */
.active-qr-list { display: flex; flex-direction: column; gap: 10px; }
.active-qr-card {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.active-qr-card:hover { border-color: var(--pw-gold); }
.qr-card-icon {
  width: 44px; height: 44px;
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #27AE60;
  flex-shrink: 0;
}
.qr-card-info { flex: 1; min-width: 0; }
.qr-card-title { font-size: 14px; font-weight: 700; color: #fff; }
.qr-card-vendor { font-size: 12px; color: var(--pw-text-muted); margin-top: 2px; }
.qr-card-status {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.qr-badge-active {
  background: rgba(39,174,96,0.15);
  color: #27AE60;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  border: 1px solid rgba(39,174,96,0.3);
}
.qr-expiry-small { font-size: 11px; color: var(--pw-text-muted); }
.no-qr-empty {
  background: var(--pw-navy-card);
  border: 1px dashed var(--pw-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--pw-text-muted);
}
.no-qr-empty i { font-size: 32px; margin-bottom: 8px; display: block; opacity: 0.4; }
.no-qr-empty p { font-size: 13px; }
.no-qr-empty button {
  margin-top: 12px;
  background: none; border: 1px solid var(--pw-gold);
  color: var(--pw-gold); padding: 8px 20px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}

/* ============ REWARDS SCROLL ROW ============ */
.rewards-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rewards-scroll-row::-webkit-scrollbar { display: none; }

.reward-card-sm {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 180px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.reward-card-sm:hover { border-color: var(--pw-gold); transform: translateY(-2px); }
.reward-vendor-tag {
  font-size: 10px; font-weight: 700;
  color: var(--pw-gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.reward-sm-title {
  font-size: 14px; font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.reward-sm-discount {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--pw-gold);
  margin-bottom: 8px;
}
.reward-sm-pts {
  font-size: 12px; font-weight: 600;
  color: var(--pw-text-muted);
  display: flex; align-items: center; gap: 4px;
}
.reward-sm-pts i { color: var(--pw-gold); }
.featured-star {
  position: absolute; top: 10px; right: 10px;
  color: var(--pw-gold); font-size: 12px;
}
.reward-category-chip {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  margin-bottom: 8px;
}
.cat-food { background: rgba(244,96,42,0.15); color: var(--pw-orange); border: 1px solid rgba(244,96,42,0.3); }
.cat-drinks { background: rgba(52,152,219,0.15); color: #3498db; border: 1px solid rgba(52,152,219,0.3); }
.cat-hotel { background: rgba(142,68,173,0.15); color: #8e44ad; border: 1px solid rgba(142,68,173,0.3); }
.cat-experience { background: rgba(39,174,96,0.15); color: #27AE60; border: 1px solid rgba(39,174,96,0.3); }

/* ============ REWARDS GRID (full page) ============ */
.rewards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}
.reward-card-lg {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.reward-card-lg:hover { border-color: var(--pw-gold); transform: translateY(-2px); }
.reward-lg-discount {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--pw-gold);
  margin: 6px 0;
  line-height: 1;
}
.reward-lg-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.reward-lg-vendor { font-size: 11px; color: var(--pw-text-muted); margin-bottom: 10px; }
.reward-lg-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.reward-lg-pts {
  font-size: 12px; font-weight: 700;
  color: var(--pw-gold);
  display: flex; align-items: center; gap: 3px;
}
.redeem-btn-sm {
  background: var(--pw-gold);
  color: var(--pw-navy);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.redeem-btn-sm:hover { filter: brightness(1.1); }
.redeem-btn-sm.disabled {
  background: rgba(255,255,255,0.1);
  color: var(--pw-text-muted);
  cursor: not-allowed;
}

/* ============ FILTER TABS ============ */
.filter-tabs, .vendor-type-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar, .vendor-type-filter::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--pw-text-muted);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab.active, .filter-tab:hover {
  background: rgba(232,184,75,0.12);
  border-color: rgba(232,184,75,0.35);
  color: var(--pw-gold);
}
.points-chip {
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.25);
  color: var(--pw-gold);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}

/* ============ VENDOR MAP ============ */
.map-visual {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.map-bg {
  position: relative;
  height: 240px;
  background:
    linear-gradient(135deg, #0d1e3a 0%, #102040 50%, #0d1e38 100%);
  overflow: hidden;
}
.map-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(232,184,75,0.04) 28px, rgba(232,184,75,0.04) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(232,184,75,0.04) 28px, rgba(232,184,75,0.04) 29px);
}
.map-label-camden {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 11px; font-weight: 700;
  color: var(--pw-gold);
  background: rgba(10,22,40,0.85);
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(232,184,75,0.3);
}
.map-ripple {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(232,184,75,0.2);
  animation: ripple 3s ease-out infinite;
}
.map-ripple::before, .map-ripple::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(232,184,75,0.1);
}
.map-ripple::after { inset: -40px; animation: ripple2 3s ease-out infinite 1s; }
@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
@keyframes ripple2 {
  0% { opacity: 0.6; } 100% { opacity: 0; }
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pw-navy);
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.pin-dot.featured { background: var(--pw-gold); width: 18px; height: 18px; }
.pin-dot.hotel { background: #8e44ad; }
.pin-dot.bar { background: #3498db; }
.pin-dot.rest { background: var(--pw-orange); }
.map-pin:hover .pin-dot { transform: scale(1.4); }
.pin-label {
  font-size: 9px; font-weight: 700;
  color: #fff;
  background: rgba(10,22,40,0.85);
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 3px;
  white-space: nowrap;
  pointer-events: none;
}
.map-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--pw-border);
  font-size: 11px; color: var(--pw-text-muted);
}
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-dot.featured { background: var(--pw-gold); }
.legend-dot.hotel { background: #8e44ad; }
.legend-dot.bar { background: #3498db; }
.legend-dot.rest { background: var(--pw-orange); }

/* ============ VENDOR LIST ============ */
.vendor-list { display: flex; flex-direction: column; gap: 12px; }
.vendor-card {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.vendor-card:hover { border-color: var(--pw-gold); }
.vendor-card-top {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.vendor-type-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.icon-stadium { background: rgba(232,184,75,0.15); }
.icon-hotel { background: rgba(142,68,173,0.15); }
.icon-bar { background: rgba(52,152,219,0.15); }
.icon-pub { background: rgba(52,152,219,0.15); }
.icon-restaurant { background: rgba(244,96,42,0.15); }

.vendor-card-info { flex: 1; min-width: 0; }
.vendor-card-name { font-size: 16px; font-weight: 700; }
.vendor-card-type-row {
  display: flex; align-items: center; gap: 8px; margin-top: 3px;
}
.vendor-type-chip {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase;
}
.chip-stadium { background: rgba(232,184,75,0.15); color: var(--pw-gold); }
.chip-hotel { background: rgba(142,68,173,0.15); color: #8e44ad; }
.chip-bar, .chip-pub { background: rgba(52,152,219,0.15); color: #3498db; }
.chip-restaurant { background: rgba(244,96,42,0.15); color: var(--pw-orange); }

.vendor-rating {
  font-size: 12px; font-weight: 600;
  color: var(--pw-gold);
  display: flex; align-items: center; gap: 3px;
}
.pw-partner-badge {
  font-size: 10px; font-weight: 700;
  color: var(--pw-green);
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.25);
  padding: 2px 8px; border-radius: 10px;
  display: flex; align-items: center; gap: 4px;
}
.vendor-card-address {
  font-size: 12px; color: var(--pw-text-muted);
  display: flex; align-items: flex-start; gap: 6px;
}
.vendor-card-address i { margin-top: 2px; flex-shrink: 0; font-size: 10px; }
.vendor-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--pw-border);
}
.vendor-distance {
  font-size: 12px; color: var(--pw-text-muted);
  display: flex; align-items: center; gap: 5px;
}
.vendor-offers-count {
  font-size: 12px; font-weight: 600;
  color: var(--pw-gold);
  display: flex; align-items: center; gap: 4px;
}
.vendor-view-btn {
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.25);
  color: var(--pw-gold);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.vendor-view-btn:hover { background: rgba(232,184,75,0.2); }

/* ============ VENDORS PREVIEW HOME ============ */
.vendors-preview-list { display: flex; flex-direction: column; gap: 8px; }
.vendor-preview-card {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.vendor-preview-card:hover { border-color: var(--pw-gold); }
.vendor-preview-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.vendor-preview-info { flex: 1; min-width: 0; }
.vendor-preview-name { font-size: 13px; font-weight: 700; }
.vendor-preview-type { font-size: 11px; color: var(--pw-text-muted); }
.vendor-preview-dist {
  font-size: 11px; font-weight: 600;
  color: var(--pw-text-muted);
  display: flex; align-items: center; gap: 4px;
}

/* ============ HISTORY PAGE ============ */
.history-tabs {
  display: flex; gap: 0;
  margin-bottom: 16px;
  background: var(--pw-navy-card);
  border-radius: 12px;
  padding: 4px;
}
.htab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--pw-text-muted);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.htab.active {
  background: rgba(232,184,75,0.12);
  color: var(--pw-gold);
  border: 1px solid rgba(232,184,75,0.2);
}
.history-panel { display: none; }
.history-panel.active { display: block; }

/* QR in history */
.history-qr-card {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.history-qr-card:hover { border-color: var(--pw-gold); }
.hqr-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hqr-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hqr-icon-active { background: rgba(39,174,96,0.15); color: #27AE60; }
.hqr-icon-used { background: rgba(255,255,255,0.05); color: var(--pw-text-muted); }
.hqr-icon-expired { background: rgba(231,76,60,0.1); color: var(--pw-red); }
.hqr-info { flex: 1; }
.hqr-title { font-size: 14px; font-weight: 700; }
.hqr-vendor { font-size: 12px; color: var(--pw-text-muted); }
.hqr-status { }
.status-active { color: #27AE60; font-size: 11px; font-weight: 700; }
.status-used { color: var(--pw-text-muted); font-size: 11px; font-weight: 700; }
.status-expired { color: var(--pw-red); font-size: 11px; font-weight: 700; }
.hqr-code-preview {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px; font-weight: 700;
  color: var(--pw-text-muted);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
}
.hqr-code-preview i { color: var(--pw-gold); flex-shrink: 0; }
.hqr-pts-spent { color: var(--pw-orange); font-size: 12px; font-weight: 700; }

/* Transaction list */
.txn-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.txn-earn { background: rgba(39,174,96,0.15); color: #27AE60; }
.txn-redeem { background: rgba(244,96,42,0.12); color: var(--pw-orange); }
.txn-info { flex: 1; min-width: 0; }
.txn-desc { font-size: 13px; font-weight: 600; }
.txn-date { font-size: 11px; color: var(--pw-text-muted); }
.txn-pts {
  font-size: 15px; font-weight: 800;
}
.txn-pts.earn { color: #27AE60; }
.txn-pts.redeem { color: var(--pw-orange); }

/* ============ PROFILE ============ */
.profile-hero {
  text-align: center;
  padding: 24px 16px 20px;
}
.profile-avatar-lg {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--pw-gold), var(--pw-gold-dark));
  color: var(--pw-navy);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(232,184,75,0.3);
}
.profile-hero h2 { font-size: 22px; font-weight: 800; }
.profile-hero p { color: var(--pw-text-muted); font-size: 14px; margin-top: 4px; }
.profile-tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.25);
  color: var(--pw-gold);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  margin-top: 10px;
}
.profile-stats {
  display: flex; gap: 10px;
  margin: 0 16px 20px;
}
.stat-card {
  flex: 1;
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--pw-gold);
}
.stat-label { font-size: 10px; color: var(--pw-text-muted); margin-top: 2px; }

.profile-sections { padding: 0 16px; }
.profile-section-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--pw-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.profile-menu-list {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.profile-menu-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: none; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 14px 16px;
  color: var(--pw-text);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: rgba(255,255,255,0.03); }
.profile-menu-item i:first-child { color: var(--pw-gold); width: 18px; }
.profile-menu-item span { flex: 1; }
.menu-arr { color: rgba(255,255,255,0.2); font-size: 12px; }

.profile-legal {
  margin-top: 24px;
  padding: 0 !important;
  text-align: center;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  display: flex;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--pw-border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: none; border: none;
  color: var(--pw-text-muted);
  font-size: 10px; font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  padding: 0;
}
.nav-item i { font-size: 20px; transition: transform 0.2s; }
.nav-item.active { color: var(--pw-gold); }
.nav-item.active i { transform: scale(1.1); }
.nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--pw-gold);
  border-radius: 0 0 2px 2px;
  transition: width 0.2s;
}
.nav-item.active::before { width: 32px; }
.nav-center-btn {
  margin-top: -20px;
}
.nav-center-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--pw-gold), var(--pw-gold-dark));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 -4px 20px rgba(232,184,75,0.3);
  border: 2px solid var(--pw-navy);
}
.nav-center-btn i { font-size: 22px; color: var(--pw-navy); }
.nav-center-btn.active .nav-center-icon {
  background: linear-gradient(135deg, var(--pw-gold-light), var(--pw-gold));
}
.nav-center-btn::before { display: none; }

/* ============ MODALS ============ */
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
}
.modal-sheet {
  width: 100%;
  max-height: 90vh;
  background: var(--pw-navy-mid);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--pw-border);
  padding: 0 20px 32px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  padding-bottom: env(safe-area-inset-bottom, 32px);
}
.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}
.modal-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 12px auto 16px;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 20px; font-weight: 800; }
.modal-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: none; color: var(--pw-text-muted);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.modal-vendor-badge {
  font-size: 12px; font-weight: 700;
  color: var(--pw-gold);
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.2);
  padding: 5px 14px; border-radius: 20px;
}

/* QR Modal */
.qr-modal-content { text-align: center; padding: 0 8px; }
.qr-reward-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.qr-discount-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px; font-weight: 900;
  color: var(--pw-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(232,184,75,0.4);
}
.qr-code-wrap {
  position: relative;
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(232,184,75,0.2);
}
.qr-scan-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: rgba(232,184,75,0.7);
  animation: scanline 2s ease-in-out infinite;
  top: 12px;
}
@keyframes scanline {
  0% { top: 12px; opacity: 1; }
  50% { opacity: 0.7; }
  100% { top: calc(100% - 12px); opacity: 1; }
}
.qr-code-text {
  font-size: 12px; font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--pw-gold);
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.2);
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.qr-expiry { font-size: 13px; color: var(--pw-text-muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.qr-instructions { margin-bottom: 20px; }
.qr-instructions p { font-size: 12px; color: var(--pw-text-muted); margin-bottom: 4px; }

/* Confirm Modal */
.confirm-content { text-align: center; padding: 0 8px; }
.confirm-reward-icon {
  width: 72px; height: 72px;
  background: rgba(232,184,75,0.12);
  border: 2px solid rgba(232,184,75,0.25);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--pw-gold);
  margin: 0 auto 16px;
}
.confirm-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.confirm-vendor { font-size: 14px; color: var(--pw-text-muted); margin-bottom: 20px; }
.confirm-points-row, .confirm-balance-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.confirm-cost { font-weight: 700; color: var(--pw-orange); display: flex; align-items: center; gap: 5px; }
.confirm-cost i { color: var(--pw-gold); }
.confirm-balance-after { font-weight: 700; color: var(--pw-gold); }
.confirm-actions {
  display: flex; gap: 12px;
  margin-top: 20px;
}
.confirm-actions .btn-outline, .confirm-actions .btn-primary { flex: 1; }

/* Vendor Modal */
.vendor-modal-content { }
.vendor-modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.vendor-modal-desc { font-size: 14px; color: var(--pw-text-muted); line-height: 1.6; margin-bottom: 16px; }
.vendor-modal-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.vmi-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--pw-text);
}
.vmi-row i { color: var(--pw-gold); margin-top: 2px; width: 14px; flex-shrink: 0; }
.vendor-modal-rewards { margin-bottom: 20px; }
.vr-title { font-size: 13px; font-weight: 700; color: var(--pw-text-muted); letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; font-size: 11px; }
.vendor-reward-mini {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.vendor-reward-mini:hover { border-color: var(--pw-gold); }
.vrm-discount { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--pw-gold); min-width: 70px; }
.vrm-title { flex: 1; font-size: 13px; font-weight: 600; }
.vrm-pts { font-size: 12px; color: var(--pw-text-muted); font-weight: 600; display: flex; align-items: center; gap: 3px; }
.vrm-pts i { color: var(--pw-gold); }
.vendor-modal-actions { display: flex; gap: 12px; }
.vendor-modal-actions a { flex: 1; text-align: center; }

/* Earn Modal */
.earn-modal-content { }
.earn-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.earn-item:last-child { border-bottom: none; }
.earn-icon {
  width: 44px; height: 44px;
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--pw-gold);
  flex-shrink: 0;
}
.earn-info { flex: 1; }
.earn-title { font-size: 14px; font-weight: 700; }
.earn-desc { font-size: 12px; color: var(--pw-text-muted); margin-top: 2px; }
.earn-pts { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--pw-green); min-width: 55px; text-align: right; }

/* Tier Modal */
.tier-modal-content { }
.tier-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.active-tier-item {
  background: rgba(232,184,75,0.05);
  border-color: rgba(232,184,75,0.2);
}
.tier-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.bronze-tier .tier-icon { color: #cd7f32; }
.silver-tier .tier-icon { color: #C0C0C0; }
.gold-tier .tier-icon { color: var(--pw-gold); }
.platinum-tier .tier-icon { color: #b464ff; }
.tier-name { font-size: 16px; font-weight: 800; }
.tier-range { font-size: 12px; color: var(--pw-text-muted); margin: 3px 0; }
.tier-perks { font-size: 12px; color: var(--pw-text); }

/* ============ TOAST ============ */
.toast {
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(39,174,96,0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px; font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ NOTIFICATIONS ============ */
.notif-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: none;
}
.notif-overlay.open { display: block; }
.notif-panel {
  position: absolute;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--pw-navy-mid);
  border-left: 1px solid var(--pw-border);
  z-index: 301;
  transition: right 0.3s ease;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.notif-panel.open { right: 0; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 56px 20px 16px;
  border-bottom: 1px solid var(--pw-border);
  flex-shrink: 0;
}
.notif-header h3 { font-size: 20px; font-weight: 800; }
.notif-header button { background: none; border: none; color: var(--pw-text-muted); font-size: 18px; cursor: pointer; }
.notif-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notif-item.unread { background: rgba(232,184,75,0.03); }
.notif-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(232,184,75,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--pw-gold);
  flex-shrink: 0;
}
.notif-icon.golden { background: rgba(232,184,75,0.15); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.notif-msg { font-size: 12px; color: var(--pw-text-muted); line-height: 1.5; }
.notif-time { font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 4px; }

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--pw-border);
  text-align: center;
}
.footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 8px;
  border-radius: 5px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}
.legal-footer p { font-size: 10px; color: var(--pw-text-muted); }
.legal-footer a { color: var(--pw-text-muted); text-decoration: underline; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ============ EMPTY STATES ============ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--pw-text-muted);
}
.empty-state i { font-size: 48px; opacity: 0.3; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 360px) {
  .hero-points { font-size: 46px; }
  .rewards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050d1a;
  }
  .screen {
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    overflow: hidden;
  }
  #screen-splash {
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
  }
  .bottom-nav {
    border-radius: 0 0 24px 24px;
  }
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */

.admin-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--pw-navy) 0%, var(--pw-navy-mid) 100%);
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 44px) 20px 16px;
  padding-top: max(env(safe-area-inset-top, 0px), 44px);
  background: var(--pw-navy-mid);
  border-bottom: 1px solid var(--pw-border);
  flex-shrink: 0;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--pw-gold);
  letter-spacing: 0.5px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px 12px;
  background: var(--pw-navy-mid);
  border-bottom: 1px solid var(--pw-border);
  flex-shrink: 0;
}

.admin-tab {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pw-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.admin-tab.active {
  background: var(--pw-gold);
  color: var(--pw-navy);
  border-color: var(--pw-gold);
}

.admin-tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
}

.admin-tab-content.active {
  display: flex;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-section-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pw-text);
}

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

.admin-item {
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-item-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--pw-text);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-item-actions button {
  background: transparent;
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pw-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-item-actions button:hover {
  border-color: var(--pw-gold);
  color: var(--pw-gold);
}

.admin-item-actions button.danger:hover {
  border-color: var(--pw-red);
  color: var(--pw-red);
}

.admin-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--pw-text-muted);
}

.admin-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-item-row i {
  width: 16px;
  text-align: center;
  color: var(--pw-gold);
}

.admin-item-badge {
  display: inline-block;
  background: var(--pw-gold);
  color: var(--pw-navy);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.admin-item-badge.inactive {
  background: var(--pw-text-muted);
  color: var(--pw-navy-card);
}

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

.admin-form .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-text);
}

.admin-form .form-group label i {
  color: var(--pw-gold);
  width: 16px;
  text-align: center;
}

.admin-form select {
  width: 100%;
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--pw-text);
  font-family: inherit;
}

.admin-form textarea {
  width: 100%;
  background: var(--pw-navy-card);
  border: 1px solid var(--pw-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--pw-text);
  font-family: inherit;
  resize: vertical;
}

/* ============================================================
   THEME SELECTOR MODAL STYLES
   ============================================================ */

.theme-modal-sheet {
  padding-bottom: env(safe-area-inset-bottom, 32px);
}

/* Section labels */
.theme-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pw-text-muted);
  padding: 12px 2px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.theme-section-label i { color: var(--pw-gold); }

/* Theme grid */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

/* Theme card */
.theme-card {
  background: var(--pw-navy-card);
  border: 1.5px solid var(--pw-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.theme-card:hover {
  border-color: var(--pw-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.theme-card.active {
  border-color: var(--pw-gold);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px var(--pw-gold), 0 6px 20px var(--pw-glow);
}

/* Color swatches row */
.theme-swatch-row {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.theme-swatch:first-child {
  width: 30px;   /* primary is a bit wider */
}

/* Card text */
.theme-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--pw-text);
  margin-bottom: 2px;
  line-height: 1.2;
}
.theme-card-sub {
  font-size: 10px;
  color: var(--pw-text-muted);
  font-weight: 600;
}

/* Active checkmark */
.theme-active-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--pw-gold);
}
.theme-card.active .theme-active-check {
  display: flex;
}

/* Header theme palette button dot */
.theme-toggle-btn { position: relative; }
.theme-dot {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pw-gold);
  border: 1.5px solid var(--pw-navy-mid);
  transition: background 0.3s ease;
}

/* Profile menu theme dot */
.theme-preview-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pw-gold);
  border: 2px solid rgba(255,255,255,0.1);
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

/* Map grid color updates per theme */
[data-theme] .map-bg {
  background: linear-gradient(135deg,
    var(--pw-bg-card) 0%,
    var(--pw-bg-mid) 50%,
    var(--pw-bg) 100%
  );
}
[data-theme] .map-bg::before {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, var(--pw-border-col) 28px, var(--pw-border-col) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, var(--pw-border-col) 28px, var(--pw-border-col) 29px);
}

