/* ════════════════════════════════════════════════════════════════
   LoyaltyPro — Unified Design System v3.0
   Brand: Deep Navy (#060a12) + Gold (#d97706) + White Cards
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand Core (Gold/Yellow) */
  --primary:        #f59e0b; 
  --secondary:      #d97706;
  --accent:         #b45309;

  /* Navy Theme */
  --lp-navy:        #060a12;
  --lp-navy-mid:    #0f172a;
  --lp-navy-light:  #1e293b;
  
  /* Gold Accents */
  --lp-gold:        #d97706;
  --lp-gold-light:  #f59e0b;
  --lp-gold-pale:   #fef3c7;
  --lp-gold-border: #fbbf24;

  /* Universal Backgrounds */
  --bg-color:       #ffffff; /* White page bg */
  --card-color:     #ffffff; /* White cards */
  --glass-bg:       rgba(255,255,255,0.95);
  --border-color:   #e2e8f0;

  /* Universal Text */
  --text-color:     #0f172a;
  --text-muted:     #64748b;
  --text-on-dark:   #ffffff;

  /* Status Colors */
  --success:        #16a34a;
  --danger:         #dc2626;
  --warning:        #d97706;
  --purple:         #7c3aed;

  /* Typography */
  --font-sans:  'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Shared values */
  --transition: all 0.3s ease;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Force light mode base variables (Navy is used selectively for headers/sidebars) */
html {
  color-scheme: light;
}

body {
  font-family: var(--font-sans) !important;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Utilities */
.text-muted, small.text-muted, .form-text { color: var(--text-muted) !important; }
.text-gold { color: var(--lp-gold-light) !important; }
.bg-gold { background-color: var(--lp-gold-light) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--lp-gold-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--lp-gold); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--lp-gold-light), var(--lp-gold));
  border: none;
  color: #ffffff !important;
  border-radius: var(--radius);
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(217, 119, 6, 0.3);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--lp-gold), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(217, 119, 6, 0.4);
}

/* ── Form Controls ─────────────────────────────────────────────── */
.form-control, .form-select {
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-color) !important;
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
}
.form-control:focus, .form-select:focus {
  border-color: var(--lp-gold);
  box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-label {
  color: var(--text-color) !important;
  font-weight: 600;
  font-size: 0.84rem;
}
.form-floating > label { color: var(--text-muted); }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--lp-gold);
  background: #ffffff;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  transform: scale(0.85) translateY(-1.5rem) translateX(0.15rem);
}

/* ── Universal Cards & White Surfaces ──────────────────────────── */
.card, .glass-card, .lp-store-card, .lp-referral-card {
  background: var(--card-color) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  color: var(--text-color) !important;
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 { color: var(--text-color) !important; }
.card small { color: var(--text-muted) !important; }

.glass-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
}

/* ── Admin & Store Shared Layout (Sidebar) ─────────────────────── */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-mid) 100%);
  border-right: none;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1040;
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar-nav .nav-link {
  color: rgba(255,255,255,0.6);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  border-radius: 0;
}
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active {
  color: var(--lp-gold-light);
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--lp-gold-light);
}
.sidebar-nav .nav-link i { font-size: 1.25rem; }

.main-wrapper {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
}

/* Admin Specific Overrides */
.admin-navbar {
  background: rgba(6, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.revenue-card {
  background: linear-gradient(135deg, var(--lp-navy-light) 0%, var(--lp-navy) 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.revenue-card h5, .revenue-card h6, .revenue-card .text-muted { color: rgba(255,255,255,0.8) !important; }
.revenue-card h2, .revenue-card .stat-val { color: #fff !important; }
.revenue-card .stat-icon { background: rgba(245,158,11,0.2); color: var(--lp-gold-light); }

/* ── Customer Portal Responsive Layout ──────────────────────────── */
.customer-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-mid) 100%);
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 1045;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.customer-sidebar .brand-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.customer-sidebar .nav-link {
  color: rgba(255,255,255,0.65);
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.85rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
}

.customer-sidebar .nav-link:hover,
.customer-sidebar .nav-link.active {
  color: var(--lp-gold-light);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--lp-gold-light);
}

.customer-sidebar .nav-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}

.customer-main-wrapper {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-width: calc(100% - 260px);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left 0.3s ease, width 0.3s ease;
  background-color: #f0f4f8;
  flex-grow: 1;
}

.customer-top-navbar {
  height: 68px;
  background: var(--lp-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #ffffff;
  width: 100%;
}

.lp-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.lp-brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--lp-gold), var(--accent));
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 1rem;
}
.lp-brand-title {
  font-family: var(--font-sans); font-weight: 800; font-size: 1.3rem; color: #ffffff !important; letter-spacing: -0.02em;
}
.lp-brand-title span { color: var(--lp-gold-light) !important; }
.lp-notif-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff !important; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s;
}
.lp-notif-btn:hover { background: rgba(255,255,255,0.15); }
.lp-avatar-ring { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--lp-gold); object-fit: cover; }
.lp-page-content { padding: 1.5rem; min-height: calc(100vh - 68px); width: 100%; }

/* ── Customer App Bottom Nav ───────────────────────────────────── */
.lp-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; width: 100%; height: 65px;
  background: var(--lp-navy); border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-around; align-items: center; z-index: 1040;
}
.lp-nav-item {
  display: flex; flex-direction: column; align-items: center; text-decoration: none !important;
  color: rgba(255,255,255,0.38) !important; font-size: 0.7rem; font-weight: 600; transition: color 0.2s; gap: 2px;
}
.lp-nav-item i { font-size: 1.25rem; }
.lp-nav-item.active, .lp-nav-item:hover { color: var(--lp-gold-light) !important; }

@media (max-width: 991.98px) {
  .customer-sidebar { transform: translateX(-100%); }
  .customer-sidebar.show { transform: translateX(0); }
  .customer-main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  .lp-bottom-nav { display: flex !important; }
}

@media (min-width: 992px) {
  .customer-main-wrapper {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
    min-width: calc(100% - 260px) !important;
  }
  .lp-bottom-nav { display: none !important; }
}

/* ── Customer Store Cards & Search ─────────────────────────────── */
.lp-store-card { padding: 1.15rem; margin-bottom: 0; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; background: #ffffff; border-radius: 1rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.lp-store-card:hover { transform: translateY(-2px); border-color: var(--lp-gold-border) !important; box-shadow: 0 8px 25px rgba(217,119,6,0.12); }

.lp-search-box { position: relative; display: flex; align-items: center; background: #ffffff; border-radius: 3rem; box-shadow: 0 8px 20px rgba(0,0,0,0.15); margin: -1.2rem 1.5rem 1.5rem; z-index: 10; padding: 0.25rem; }
.lp-search-box .form-control { border: none; background: transparent; padding-left: 0.75rem; color: #1e293b; font-weight: 500; }
.lp-search-box .form-control:focus { box-shadow: none; }
.lp-search-box .form-control::placeholder { color: #94a3b8; }
.lp-filter-btn { background: var(--lp-navy); color: var(--lp-gold-light); border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.lp-filter-btn:hover { background: var(--lp-navy-light); }

.lp-categories-row { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 0.5rem; scrollbar-width: none; }
.lp-categories-row::-webkit-scrollbar { display: none; }
.lp-cat-pill { padding: 0.4rem 1.2rem; background: #ffffff; color: #64748b; font-size: 0.85rem; font-weight: 600; border-radius: 2rem; white-space: nowrap; text-decoration: none; border: 1px solid rgba(0,0,0,0.05); transition: all 0.2s; }
.lp-cat-pill:hover { color: var(--lp-navy); background: #f8fafc; }
.lp-cat-pill.active { background: var(--lp-gold); color: #92400e; border-color: var(--lp-gold); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); }

.lp-store-avatar {
  width: 56px; height: 56px; border-radius: 0.9rem; background: var(--lp-navy);
  color: var(--lp-gold-light) !important; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; border: 1px solid rgba(245,158,11,0.2);
}
.lp-store-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.15rem; }

/* ── Store Specific Components ─────────────────────────────────── */
.qr-scanner-overlay {
  position: relative; width: 100%; max-width: 400px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 20px rgba(245,158,11,0.2);
}
.qr-scanner-overlay video { width: 100%; border-radius: var(--radius-lg); display: block; }
.scan-frame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 250px; height: 250px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px; box-shadow: 0 0 0 4000px rgba(0,0,0,0.5); z-index: 10;
}
.scan-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--lp-gold-light); box-shadow: 0 0 10px var(--lp-gold-light);
  animation: scanLine 2s infinite linear;
}
.success-animation-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 10, 18, 0.9); z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.success-animation-overlay.show { opacity: 1; pointer-events: all; }
.success-checkmark {
  width: 80px; height: 80px; border-radius: 50%; background: var(--success); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  animation: bounce 1s ease; margin-bottom: 20px;
}

/* ── Shared Animations ─────────────────────────────────────────── */
@keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes scanLine { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-in-up { animation: slideInUp 0.5s ease forwards; }

/* ── Tables & Badges ───────────────────────────────────────────── */
.table { color: var(--text-color); vertical-align: middle; }
.table-hover tbody tr:hover { background-color: rgba(245,158,11,0.06); }
.table thead th { font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }

.badge { padding: 0.4em 0.75em; font-weight: 600; border-radius: 50rem; letter-spacing: 0.02em; }
.badge-success { background-color: rgba(22, 163, 74, 0.15); color: var(--success); border: 1px solid rgba(22, 163, 74, 0.3); }
.badge-warning { background-color: rgba(217, 119, 6, 0.15); color: var(--warning); border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-danger { background-color: rgba(220, 38, 38, 0.15); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.3); }
.badge-primary { background-color: rgba(245, 158, 11, 0.15); color: var(--primary); border: 1px solid rgba(245, 158, 11, 0.3); }

.lp-badge-category { background: var(--lp-gold-pale); color: #92400e !important; font-size: 0.7rem; font-weight: 700; padding: 0.28em 0.65em; border-radius: 0.45rem; white-space: nowrap; flex-shrink: 0; }
.lp-badge-cusid { background: #fffbeb; border: 1px dashed var(--lp-gold-border); color: #92400e !important; font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 0.5rem; display: inline-flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.lp-badge-accepting { background: #ecfdf5; color: #047857 !important; font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.6rem; border-radius: 2rem; display: inline-flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.min-w-0 { min-width: 0 !important; }

/* ── Auth Screens (Login / Register) ───────────────────────────── */
.auth-bg {
  background: var(--bg-color);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative; overflow-x: hidden; overflow-y: auto;
}
.auth-card {
  background: var(--lp-navy);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  width: 100%; max-width: 400px; position: relative; z-index: 10;
  color: #ffffff !important;
}
.auth-card h1, .auth-card h2, .auth-card h3, .auth-card h4, .auth-card h5, .auth-card h6 {
  color: #ffffff !important;
}
.auth-card .text-dark {
  color: #ffffff !important;
}
.auth-card p.text-muted, .auth-card label, .auth-card .form-check-label {
  color: rgba(255,255,255,0.7) !important;
}
.auth-card .form-control {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: #ffffff !important;
}
.auth-card .form-control:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--lp-gold-light);
}
.auth-card .form-floating > label {
  color: rgba(255,255,255,0.5) !important;
}
.auth-card .form-floating > .form-control:focus ~ label,
.auth-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  background: var(--lp-navy) !important;
  color: var(--lp-gold-light) !important;
}
.otp-input {
  width: 45px; height: 55px; text-align: center; font-size: 1.5rem; font-weight: 700;
  border-radius: var(--radius); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15); color: #ffffff !important; transition: var(--transition);
}
.otp-input:focus {
  border-color: var(--lp-gold-light);
  box-shadow: 0 0 0 0.25rem rgba(245,158,11, 0.25); outline: none;
}
.step-container { display: none; }
.step-container.active { display: block; animation: slideInUp 0.4s ease forwards; }
.circle-decoration {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-gold-pale) 0%, var(--lp-gold-light) 100%);
  filter: blur(60px); z-index: 0; opacity: 0.4;
}

/* ── Stat/KPI Grids & Additional Components ────────────────────── */
.lp-stats-grid {
  background: #ffffff; border-radius: 1rem; padding: 1.25rem 0.5rem;
  border: 1px solid var(--border-color); display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,0.03); margin-bottom: 1.25rem;
}
.lp-stat-col { border-right: 1px solid #f1f5f9; padding: 0 0.5rem; }
.lp-stat-col:last-child { border-right: none; }
.lp-stat-val { font-weight: 800; font-size: 1.2rem; color: var(--text-color); margin-top: 0.3rem; line-height: 1.1; }
.lp-stat-lbl { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; margin-top: 0.2rem; }
.lp-tx-row {
  background: #ffffff; border-radius: 0.85rem; border: 1px solid var(--border-color);
  padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.85rem; transition: box-shadow 0.2s;
}
.lp-tx-row:hover { box-shadow: 0 4px 14px rgba(217,119,6,0.1); }
.lp-tx-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.lp-tx-icon.earn { background: #dcfce7; color: var(--success); }
.lp-tx-icon.redeem { background: #fee2e2; color: var(--danger); }
.lp-tx-pts { font-weight: 800; font-size: 0.95rem; }
.lp-tx-pts.earn { color: var(--success); }
.lp-tx-pts.redeem { color: var(--danger); }
.lp-search-box { background: #ffffff; border-radius: 0.85rem; padding: 0.4rem 0.5rem; display: flex; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.lp-search-box input { border: none; outline: none; background: transparent; font-size: 0.95rem; padding: 0.6rem 0.75rem; flex: 1; }
.lp-filter-btn { background: var(--lp-navy); color: #ffffff !important; border-radius: 0.65rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: none; transition: background 0.2s; }
.lp-filter-btn:hover { background: var(--lp-navy-light); }
.lp-categories-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 1.25rem 0 0.5rem 0; scrollbar-width: none; }
.lp-cat-pill { padding: 0.42rem 1.1rem; border-radius: 2rem; font-size: 0.84rem; font-weight: 600; white-space: nowrap; background: #ffffff; border: 1.5px solid var(--border-color); text-decoration: none; transition: all 0.2s ease; }
.lp-cat-pill.active, .lp-cat-pill:hover { background: var(--lp-gold); color: #ffffff !important; border-color: var(--lp-gold); box-shadow: 0 4px 12px rgba(217,119,6,0.3); }

/* Sticky Btn */
.lp-sticky-btn {
  background: var(--lp-navy) !important; color: #ffffff !important; font-weight: 700;
  border-radius: 0.85rem; padding: 0.9rem; width: 100%; border: 1px solid rgba(245,158,11,0.3) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); letter-spacing: 0.03em; transition: all 0.2s;
}
.lp-sticky-btn:hover { background: var(--lp-navy-light) !important; }

/* Modal overrides */
.modal-content { background: #ffffff; color: var(--text-color); border: 1px solid var(--border-color); border-radius: 1.25rem; }
.modal-header { border-bottom-color: var(--border-color) !important; }
.modal-footer { border-top-color: var(--border-color) !important; }


/* --- EXTRACTED VIEW STYLES --- */

/* Source: home.php */
.portal-card {
            transition: all 0.4s ease;
            cursor: pointer;
            text-decoration: none;
            display: block;
            height: 100%;
        }
        .portal-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
            border-color: var(--primary);
        }
        .portal-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .floating-shapes {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }
        .shape {
            position: absolute;
            filter: blur(50px);
            opacity: 0.5;
            border-radius: 50%;
            animation: float 20s infinite ease-in-out alternate;
        }
        .shape-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: rgba(99, 102, 241, 0.3); }
        .shape-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: rgba(139, 92, 246, 0.2); }
        .shape-3 { top: 40%; left: 60%; width: 300px; height: 300px; background: rgba(6, 182, 212, 0.2); }
        
        @keyframes float {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, 50px) scale(1.1); }
        }
        
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
        }
        .content-wrapper {
            position: relative;
            z-index: 1;
        }

/* Source: loyalty_rules.php */
/* ── Attachment-Matched Loyalty Program Configuration Design ── */
.lr-container {
    max-width: 500px;
    margin: 0 auto;
    background: #8b8f99;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.lr-header {
    background: #5850ec; /* Vibrant purple-blue */
    padding: 24px 20px;
    position: relative;
}

.lr-header-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.lr-header-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.lr-header-close {
    position: absolute;
    right: 20px;
    top: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.lr-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lr-item-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.lr-label-group {
    margin-bottom: 12px;
}

.lr-label-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.lr-label-desc {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Custom inputs matching screenshot layout */
.lr-input-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b; /* Dark background input */
}

.lr-input-addon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.lr-input-field {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    width: 100%;
}

.lr-input-field:focus {
    outline: none;
}

/* Auto points specific style */
.lr-auto-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc; /* Light background */
    border: 1px solid #e2e8f0;
}

.lr-auto-field {
    flex: 1;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    cursor: not-allowed;
}

.lr-auto-addon {
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* How it works badges */
.lr-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.lr-flow-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lr-flow-arrow {
    color: #cbd5e1;
    font-weight: 700;
}

.lr-pct-text {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.lr-save-container {
    padding: 0 16px 20px;
}

.lr-submit-btn {
    width: 100%;
    background: #5850ec;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(88, 80, 236, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.lr-submit-btn:hover {
    background: #4338ca;
}

/* Source: promotion_master.php */
/* ── Promotion Master Styles ──────────────────────────────── */
.pm-header { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); border-radius: 16px; padding: 2rem; color: #fff; margin-bottom: 1.5rem; }
.pm-header h2 { font-family: 'Playfair Display', serif; font-weight: 700; }
.pm-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.pm-tab { padding: 0.6rem 1.5rem; border-radius: 30px; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.25s; }
.pm-tab.active, .pm-tab:hover { background: #f59e0b; color: #000; border-color: #f59e0b; }
.pm-panel { display: none; }
.pm-panel.active { display: block; }

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 14px; padding: 1.25rem; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 0.75rem; }
.kpi-value { font-size: 1.75rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.kpi-label { font-size: 0.78rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Chart containers */
.chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .chart-row { grid-template-columns: 1fr; } }
.chart-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 14px; padding: 1.25rem; }
.chart-card h6 { font-weight: 700; margin-bottom: 1rem; }

/* Promotions Table */
.promo-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.promo-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; padding: 0.75rem 1rem; border-bottom: 1px solid var(--bs-border-color); font-weight: 600; }
.promo-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--bs-border-color); vertical-align: middle; font-size: 0.88rem; }
.promo-table tr:hover td { background: rgba(245,158,11,0.04); }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.status-active { background: rgba(16,185,129,0.15); color: #10b981; }
.status-draft { background: rgba(148,163,184,0.15); color: #94a3b8; }
.status-scheduled { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-expired { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ── Wizard Styles ──────────────────────────────────────────── */
.wizard-progress { display: flex; gap: 0; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.wz-step { flex: 1; text-align: center; position: relative; min-width: 100px; }
.wz-step-circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bs-border-color); background: var(--bs-body-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #94a3b8; transition: all 0.3s; position: relative; z-index: 2; }
.wz-step.active .wz-step-circle { border-color: #f59e0b; background: #f59e0b; color: #000; box-shadow: 0 0 0 4px rgba(245,158,11,0.2); }
.wz-step.done .wz-step-circle { border-color: #10b981; background: #10b981; color: #fff; }
.wz-step-label { font-size: 0.7rem; margin-top: 0.4rem; color: #94a3b8; font-weight: 500; }
.wz-step.active .wz-step-label { color: #f59e0b; font-weight: 700; }
.wz-step.done .wz-step-label { color: #10b981; }
.wz-step::after { content: ''; position: absolute; top: 18px; left: 50%; right: -50%; height: 2px; background: var(--bs-border-color); z-index: 1; }
.wz-step:last-child::after { display: none; }
.wz-step.done::after { background: #10b981; }
.wz-panel { display: none; animation: fadeInUp 0.3s ease; }
.wz-panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Reward Type Cards */
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 768px) { .reward-grid { grid-template-columns: repeat(2, 1fr); } }
.reward-card { background: var(--bs-body-bg); border: 2px solid var(--bs-border-color); border-radius: 12px; padding: 1rem; cursor: pointer; text-align: center; transition: all 0.25s; }
.reward-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-2px); }
.reward-card.selected { border-color: #f59e0b; background: rgba(245,158,11,0.08); box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.reward-card .rc-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.reward-card .rc-name { font-weight: 700; font-size: 0.82rem; }
.reward-card .rc-desc { font-size: 0.7rem; color: #94a3b8; margin-top: 0.25rem; }

/* Store allocation table */
.alloc-table { width: 100%; }
.alloc-table th { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; padding: 0.5rem; }
.alloc-table td { padding: 0.5rem; vertical-align: middle; }
.alloc-table input[type=number] { width: 80px; text-align: center; border-radius: 8px; border: 1px solid var(--bs-border-color); padding: 0.35rem; background: var(--bs-body-bg); color: var(--bs-body-color); }

/* Wizard navigation */
.wz-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--bs-border-color); }
.wz-nav .btn { min-width: 120px; }

/* Color swatches */
.color-swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.color-swatch { width: 32px; height: 32px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.color-swatch:hover, .color-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px #f59e0b; transform: scale(1.1); }

/* Review summary */
.review-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--bs-border-color); }
.review-item:last-child { border-bottom: none; }
.review-label { font-size: 0.82rem; color: #94a3b8; font-weight: 500; }
.review-value { font-size: 0.88rem; font-weight: 600; text-align: right; }

/* Toggle switch */
.form-check.form-switch .form-check-input { width: 3rem; height: 1.5rem; }

/* Source: dashboard.php */
@keyframes qrPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
    50%      { box-shadow: 0 0 0 14px rgba(99,102,241,0); }
}
.qr-glow { animation: qrPulse 2.5s infinite; cursor: pointer; }

@keyframes fillRing { from { stroke-dasharray: 0, 100; } }

/* Source: offers.php */
/* ── Customer Offers Page Styles ──────────────────────────── */
.co-header {
    background: radial-gradient(circle at top right, #1e293b 0%, #060a12 100%);
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.co-header h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* My Vouchers Section (Horizontal scroll) */
.vouchers-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scroll-snap-type: x mandatory;
}
.voucher-card {
    flex: 0 0 280px;
    background: radial-gradient(circle at top right, #1e293b 0%, #060a12 100%);
    color: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(245,158,11,0.25);
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.voucher-card:active, .voucher-card:hover {
    transform: scale(0.98);
}
.voucher-card::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bs-body-bg);
    border-radius: 50%;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
}
.voucher-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bs-body-bg);
    border-radius: 50%;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
}
.voucher-card-head {
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Offer Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
@media (max-width: 576px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}
.offer-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e8edf5;
    transition: transform 0.25s, box-shadow 0.25s;
}
.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.offer-banner {
    height: 130px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.offer-banner .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
}
.offer-banner .store-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}
.offer-body {
    padding: 1.25rem;
}
.offer-body h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #0f172a;
}
.reward-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(245,158,11,0.1);
    color: #d97706;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
    margin-bottom: 0.75rem;
}
.progress-bar-container {
    margin-bottom: 0.75rem;
}
.stock-text {
    font-size: 0.78rem;
    font-weight: 600;
}
.stock-progress {
    height: 5px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}
.stock-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 10px;
}
.expiry-timer {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

/* Modal Styling */
.modal-qr-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 1.5rem auto;
    width: 220px;
    height: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Source: profile.php */
@keyframes prog{to{width:100%}}

/* Source: store_dashboard.php */
/* ── Celebration Overlay ──────────────────────────────── */
#celebrationOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.celeb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: celebFadeIn 0.4s ease;
}
#confettiCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.celeb-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    background: radial-gradient(circle at top, #1a1a2e 0%, #0a0a14 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(245, 158, 11, 0.1);
    animation: celebScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Checkmark animation */
.celeb-checkmark-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
}
.celeb-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
    animation: celebFill 0.4s ease-in-out 0.4s forwards, celebScale 0.3s ease-in-out 0.9s both;
}
.celeb-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke: #10b981;
    fill: none;
    animation: celebStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.celeb-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #10b981;
    animation: celebStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.celeb-title {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: celebShimmer 2s ease infinite;
    background-size: 200% auto;
}
.celeb-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.celeb-details {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.celeb-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.celeb-detail-row:last-child { border-bottom: none; }
.celeb-detail-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
}
.celeb-detail-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}
.celeb-done-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.celeb-done-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

/* Keyframes */
@keyframes celebFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebScaleIn { from { opacity: 0; transform: scale(0.6) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes celebStroke { 100% { stroke-dashoffset: 0; } }
@keyframes celebFill { 100% { box-shadow: inset 0 0 0 30px rgba(16, 185, 129, 0.08); } }
@keyframes celebScale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes celebShimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* Source: admin_layout.php */
:root {
            --sidebar-width: 260px;
            --sidebar-collapsed-width: 70px;
            --primary-gradient: linear-gradient(180deg, #060a12 0%, #0f172a 100%);
            --gold-accent: #f59e0b;
        }
        
        body {
            min-height: 100vh;
            display: flex;
            background-color: var(--bs-body-bg);
            transition: background-color 0.3s ease;
        }

        /* Sidebar Styles */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--primary-gradient);
            color: white;
            transition: all 0.3s ease;
            position: fixed;
            height: 100vh;
            z-index: 1000;
            overflow-y: auto;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
        }
        
        .sidebar-collapsed {
            width: var(--sidebar-collapsed-width);
        }

        .sidebar .nav-link {
            color: rgba(255, 255, 255, 0.7);
            padding: 0.8rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .sidebar .nav-link:hover {
            color: var(--gold-accent);
            background: rgba(255, 255, 255, 0.05);
        }

        .sidebar .nav-link.active {
            color: var(--gold-accent) !important;
            background: rgba(245, 158, 11, 0.1) !important;
            border-left: 4px solid var(--gold-accent);
        }
        
        .sidebar .nav-link i {
            font-size: 1.2rem;
        }

        .brand-logo {
            padding: 1.5rem;
            font-size: 1.2rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        /* Main Content */
        .main-wrapper {
            flex: 1;
            margin-left: var(--sidebar-width);
            transition: margin-left 0.3s ease;
            display: flex;
            flex-direction: column;
            min-width: 0; /* Important for charts */
        }
        
        .sidebar-collapsed + .main-wrapper {
            margin-left: var(--sidebar-collapsed-width);
        }

        /* Top Navbar */
        .top-navbar {
            background: var(--bs-body-bg);
            border-bottom: 1px solid var(--bs-border-color);
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 999;
        }

        .content-area {
            padding: 1.5rem;
            flex: 1;
        }
        
        /* Utility */
        .glass-card {
            background: var(--bs-body-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--bs-border-color);
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.show {
                transform: translateX(0);
            }
            .main-wrapper {
                margin-left: 0 !important;
            }
        }

/* Source: customer_layout.php */
.confetti-piece {
            position: absolute;
            width: 10px;
            height: 10px;
            background: #ffd700;
            top: -20px;
            opacity: 0;
            animation: fall 3s linear infinite;
        }
        @keyframes fall {
            0% {
                top: -20px;
                transform: translateX(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                top: 100%;
                transform: translateX(100px) rotate(360deg);
                opacity: 0;
            }
        }
        #congratsDetailsList .last-no-border:last-child {
            border-bottom: 0 !important;
            margin-bottom: 0 !important;
            border-bottom: 0 !important;
            margin-bottom: 0 !important;
            pb-2: 0 !important;
        }

/* Source: store_layout.php */
:root {
            --lp-dark:    #060a12;
            --lp-navy:    #0f172a;
            --lp-gold:    #f59e0b;
            --lp-gold-dk: #d97706;
            --lp-sidebar-w: 260px;
        }

        *, *::before, *::after { box-sizing: border-box; }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
            background-color: #f4f6f9;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        /* ── Sidebar ─────────────────────────────────────────────── */
        .lps-sidebar {
            width: var(--lp-sidebar-w);
            height: 100vh;
            position: fixed;
            top: 0; left: 0;
            z-index: 1000;
            background: linear-gradient(180deg, #060a12 0%, #0f172a 100%);
            color: white;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(245, 158, 11, 0.12);
            box-shadow: 4px 0 24px rgba(0,0,0,0.25);
        }

        .lps-brand {
            padding: 1.5rem 1.25rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            text-decoration: none;
        }
        .lps-brand-icon {
            width: 42px; height: 42px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--lp-gold) 0%, var(--lp-gold-dk) 100%);
            display: flex; align-items: center; justify-content: center;
            color: #060a12; font-size: 1.2rem;
        }
        .lps-brand-text { line-height: 1.1; }
        .lps-brand-title {
            font-weight: 800; font-size: 1rem;
            color: #ffffff; letter-spacing: -0.01em;
            display: block;
        }
        .lps-brand-sub {
            font-size: 0.72rem; color: rgba(255,255,255,0.45);
            font-weight: 500; letter-spacing: 0.02em;
            display: block;
        }

        /* Store Info Badge */
        .lps-store-badge {
            margin: 1rem 1.25rem 0.5rem;
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.2);
            border-radius: 10px;
            padding: 0.75rem;
            display: flex; align-items: center; gap: 0.6rem;
        }
        .lps-store-avatar {
            width: 36px; height: 36px; border-radius: 8px;
            background: var(--lp-gold);
            color: #060a12; font-weight: 700; font-size: 1rem;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .lps-store-name { font-size: 0.82rem; font-weight: 700; color: #fff; }
        .lps-store-role { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

        /* Nav Links */
        .lps-nav { flex: 1; padding: 0.75rem 0; overflow-y: auto; }
        .lps-nav-link {
            display: flex; align-items: center; gap: 0.75rem;
            padding: 0.7rem 1.25rem;
            margin: 2px 0.75rem;
            border-radius: 10px;
            color: rgba(255,255,255,0.55);
            text-decoration: none;
            font-size: 0.88rem; font-weight: 500;
            transition: all 0.2s ease;
            position: relative;
        }
        .lps-nav-link i { width: 20px; text-align: center; font-size: 0.95rem; }
        .lps-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
        .lps-nav-link.active {
            color: var(--lp-gold);
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.18);
        }
        .lps-nav-link.active i { color: var(--lp-gold); }

        .lps-nav-section {
            padding: 0.5rem 1.25rem 0.25rem;
            font-size: 0.65rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.1em;
            color: rgba(255,255,255,0.25);
            margin-top: 0.5rem;
        }

        .lps-sidebar-footer {
            padding: 1rem 1.25rem;
            border-top: 1px solid rgba(255,255,255,0.07);
        }
        .lps-logout-btn {
            display: flex; align-items: center; gap: 0.6rem;
            color: rgba(255,255,255,0.4);
            text-decoration: none; font-size: 0.85rem;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            transition: all 0.2s;
        }
        .lps-logout-btn:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); }

        /* -- Top Navbar -------------------------------------------- */
        .lps-topbar {
            background: #ffffff;
            box-shadow: 0 1px 12px rgba(0,0,0,0.06);
            border-radius: 0 0 14px 14px;
            padding: 0.75rem 1.5rem;
            margin-bottom: 1.5rem;
            display: flex; justify-content: space-between; align-items: center;
            position: sticky; top: 0; z-index: 100;
        }
        .lps-page-title { font-weight: 700; font-size: 1.1rem; color: #0f172a; }
        .lps-page-subtitle { font-size: 0.75rem; color: #94a3b8; }

        /* -- Main Content ------------------------------------------ */
        .lps-main {
            margin-left: var(--lp-sidebar-w);
            width: calc(100% - var(--lp-sidebar-w));
            padding: 0;
            min-height: 100vh;
            transition: margin-left 0.3s, width 0.3s;
        }
        .lps-content-wrap { padding: 0 1.5rem 2rem; width: 100%; }

        /* -- Glass Card ------------------------------------------ */
        .glass-card {
            background: #fff;
            border-radius: 14px;
            border: 1px solid #e8edf5;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }

        /* -- Mobile Toggle ------------------------------------------ */
        .lps-menu-toggle {
            display: none; background: none; border: none;
            font-size: 1.4rem; color: #0f172a; padding: 0;
        }

        @media (max-width: 991px) {
            .lps-sidebar { transform: translateX(-100%); }
            .lps-sidebar.show { transform: translateX(0); }
            .lps-main { margin-left: 0; width: 100%; }
            .lps-menu-toggle { display: flex; }
        }

        @media (max-width: 767px) {
            .lps-content-wrap { padding: 0 1rem 1.5rem; }
        }

/* Source: dashboard.php */
/* ── Store Dashboard – Clean Light Mobile-First ─── */
.sd-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.sd-kpi-card {
    background: #ffffff;
    border: 1.5px solid #f0f4f8;
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sd-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sd-kpi-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sd-kpi-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sd-kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

/* Quick action bar */
.sd-quick-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.sd-quick-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 15px 12px;
    border-radius: 14px;
    font-weight: 700; font-size: 0.92rem;
    text-decoration: none;
    transition: opacity 0.15s;
}
.sd-quick-btn:active { opacity: 0.85; }
.sd-btn-earn   { background: #059669; color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,0.3); }
.sd-btn-redeem { background: #f59e0b; color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,0.3); }

/* Points banner */
.sd-pts-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 18px;
    padding: 20px 16px;
    margin-bottom: 20px;
    display: flex; justify-content: space-around; align-items: center;
}
.sd-pts-col    { text-align: center; }
.sd-pts-label  { font-size: 0.68rem; color: rgba(255,255,255,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sd-pts-val    { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1; }
.sd-pts-cash   { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin-top: 3px; }
.sd-pts-div    { width: 1px; height: 50px; background: rgba(255,255,255,0.12); }

/* Section headers */
.sd-section-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sd-section-title { font-size: 0.92rem; font-weight: 700; color: #1e293b; }
.sd-section-link  { font-size: 0.78rem; font-weight: 600; color: #3b82f6; text-decoration: none; }

/* Chart card */
.sd-chart-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Transaction cards */
.sd-txn-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.sd-txn-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 14px;
    padding: 13px 15px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.sd-txn-left { display: flex; align-items: center; gap: 11px; }
.sd-txn-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.88rem;
    color: #fff; flex-shrink: 0;
}
.sd-txn-name  { font-size: 0.88rem; font-weight: 700; color: #0f172a; }
.sd-txn-meta  { font-size: 0.7rem;  color: #94a3b8; margin-top: 1px; }
.sd-txn-right { text-align: right; flex-shrink: 0; }
.sd-txn-pts   { font-size: 0.98rem; font-weight: 800; }
.sd-txn-bill  { font-size: 0.7rem;  color: #94a3b8; }

/* Customer cards */
.sd-cust-list { display: flex; flex-direction: column; gap: 8px; }
.sd-cust-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 14px;
    padding: 12px 15px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

@media (min-width: 768px) {
    .sd-kpi-grid    { grid-template-columns: repeat(3, 1fr); }
    .sd-kpi-value   { font-size: 1.9rem; }
    .sd-quick-bar   { grid-template-columns: repeat(2, max-content); }
}

/* Source: loyalty_rules.php */
/* ── Attachment-Matched Loyalty Program Configuration Design ── */
.lr-container {
    max-width: 500px;
    margin: 0 auto;
    background: #8b8f99;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.lr-header {
    background: #5850ec; /* Vibrant purple-blue */
    padding: 24px 20px;
    position: relative;
}

.lr-header-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.lr-header-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.lr-header-close {
    position: absolute;
    right: 20px;
    top: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.lr-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lr-item-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.lr-label-group {
    margin-bottom: 12px;
}

.lr-label-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.lr-label-desc {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Custom inputs matching screenshot layout */
.lr-input-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b; /* Dark background input */
}

.lr-input-addon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.lr-input-field {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    width: 100%;
}

.lr-input-field:focus {
    outline: none;
}

/* Auto points specific style */
.lr-auto-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc; /* Light background */
    border: 1px solid #e2e8f0;
}

.lr-auto-field {
    flex: 1;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    cursor: not-allowed;
}

.lr-auto-addon {
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* How it works badges */
.lr-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.lr-flow-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lr-flow-arrow {
    color: #cbd5e1;
    font-weight: 700;
}

.lr-pct-text {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.lr-save-container {
    padding: 0 16px 20px;
}

.lr-submit-btn {
    width: 100%;
    background: #5850ec;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(88, 80, 236, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.lr-submit-btn:hover {
    background: #4338ca;
}

/* Source: profile.php */
/* ── Profile – same clean palette as Dashboard ─── */
.pf-avatar-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.pf-avatar-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(245,158,11,0.08);
}
.pf-avatar {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: #f59e0b;
    color: #fff;
    font-size: 1.8rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}
.pf-store-name {
    font-size: 1.1rem; font-weight: 800; color: #fff;
    margin-bottom: 4px;
}
.pf-store-email {
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}
.pf-status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 0.75rem; font-weight: 700; color: #34d399;
}

/* Rate summary strip */
.pf-rate-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.pf-rate-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.pf-rate-lbl { font-size: 0.68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.pf-rate-val { font-size: 1rem; font-weight: 800; color: #0f172a; }

/* Form cards */
.pf-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pf-card-title {
    font-size: 0.88rem; font-weight: 800; color: #1e293b;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.pf-card-icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}

/* Form fields */
.pf-field { margin-bottom: 14px; }
.pf-label {
    font-size: 0.72rem; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 6px; display: block;
}
.pf-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.pf-input:focus {
    border-color: #3b82f6;
    background: #fff;
}

/* Rate row - 2 inputs side by side */
.pf-rate-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.pf-rate-sep {
    font-size: 0.8rem; font-weight: 700; color: #94a3b8;
    text-align: center;
}
.pf-rate-hint {
    font-size: 0.7rem; color: #94a3b8; font-weight: 500;
    margin-bottom: 14px; margin-top: -8px;
}

/* Save button */
.pf-save-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: #0f172a;
    color: #fff;
    font-size: 1rem; font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.15s;
}
.pf-save-btn:active { opacity: 0.85; }

/* Toast */
.pf-toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    background: #059669; color: #fff;
    padding: 12px 24px; border-radius: 30px;
    font-size: 0.88rem; font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none; z-index: 9999; white-space: nowrap;
}

/* Source: promotions.php */
/* ── Promotions – same clean palette as Dashboard ── */
.pm-header-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.pm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .pm-grid { grid-template-columns: 1fr 1fr; }
}

.pm-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.pm-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.pm-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, rgba(15,23,42,0.75));
}
.pm-status-pill {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase;
}
.pm-status-active { background: #059669; color: #fff; }
.pm-status-scheduled { background: #3b82f6; color: #fff; }

.pm-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.pm-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }

.pm-reward-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff7ed; color: #d97706; border: 1px solid #fed7aa;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700;
    margin-bottom: 12px; align-self: flex-start;
}

.pm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.pm-stat-box {
    text-align: center; padding: 8px 4px;
    background: #f8fafc; border: 1px solid #f1f5f9;
    border-radius: 10px;
}
.pm-stat-val { font-size: 0.95rem; font-weight: 800; color: #0f172a; }
.pm-stat-lbl { font-size: 0.6rem; color: #64748b; text-transform: uppercase; font-weight: 700; }

.pm-progress { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.pm-progress-fill { height: 100%; background: #f59e0b; border-radius: 3px; }

.pm-meta-text { font-size: 0.72rem; color: #64748b; display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.pm-meta-text.urgent { color: #ef4444; font-weight: 700; }

.pm-actions { display: flex; gap: 8px; margin-top: auto; }
.pm-btn {
    flex: 1; padding: 8px 12px; border-radius: 10px; border: none;
    font-size: 0.75rem; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    cursor: pointer; transition: opacity 0.15s;
}
.pm-btn-wa { background: #25d366; color: #fff; }
.pm-btn-link { background: #f1f5f9; color: #475569; }

/* Redemption Section */
.pm-redeem-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pm-redeem-title { font-size: 0.92rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.pm-redeem-desc  { font-size: 0.75rem; color: #64748b; margin-bottom: 14px; }

/* Form inputs for voucher validation */
.pm-input-wrap {
    display: flex; flex-direction: column; gap: 8px;
}
.pm-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem; font-weight: 600; color: #0f172a;
    background: #f8fafc; outline: none;
    transition: border-color 0.2s;
    font-family: monospace; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pm-input:focus { border-color: #f59e0b; background: #fff; }
.pm-input::placeholder { font-family: inherit; letter-spacing: 0; color: #94a3b8; }
.pm-btn-validate {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: #f59e0b; color: #fff; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Validation success detail sheet */
.pm-detail-sheet {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff; border-radius: 16px; padding: 20px; margin-top: 16px;
    display: none;
}
.pm-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pm-sheet-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.5); text-transform: uppercase; font-weight: 700; }
.pm-sheet-val { font-size: 0.9rem; font-weight: 700; color: #fff; }
.pm-sheet-input-wrap { grid-column: 1 / -1; }

/* Source: referrals.php */
/* ── Referrals – same clean palette as Dashboard ── */
.rf-header-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rf-status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 35px;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase;
}
.rf-status-active { background: rgba(52,211,153,0.15); border: 1.5px solid rgba(52,211,153,0.3); color: #34d399; }
.rf-status-disabled { background: rgba(239,68,68,0.15); border: 1.5px solid rgba(239,68,68,0.3); color: #f87171; }

/* Scheme detail cards */
.rf-scheme-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rf-scheme-title { font-size: 0.88rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.rf-scheme-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem; color: #475569;
}
.rf-scheme-row:last-child { border-bottom: none; }
.rf-scheme-val { font-weight: 700; color: #0f172a; }

/* KPI Grid */
.rf-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.rf-kpi-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rf-kpi-top {
    display: flex; align-items: center; justify-content: space-between;
}
.rf-kpi-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.rf-kpi-lbl {
    font-size: 0.68rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.rf-kpi-val { font-size: 1.5rem; font-weight: 800; line-height: 1; color: #0f172a; }

/* Leaderboard */
.rf-lead-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.rf-lead-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between;
}

/* Log Cards */
.rf-log-list { display: flex; flex-direction: column; gap: 8px; }
.rf-log-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.rf-log-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.rf-log-row:last-child { margin-bottom: 0; }
.rf-log-lbl { font-size: 0.72rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; }
.rf-log-val { font-size: 0.85rem; font-weight: 700; color: #0f172a; }

@media (min-width: 768px) {
    .rf-kpi-grid { grid-template-columns: repeat(4, 1fr); }
    .rf-kpi-val  { font-size: 1.7rem; }
}

/* Source: reports.php */
/* ── Reports – same palette as Dashboard ─────── */
.rp-period-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.rp-period-btn {
    flex-shrink: 0;
    padding: 9px 22px;
    border-radius: 30px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.rp-period-btn.active,
.rp-period-btn:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.rp-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.rp-kpi-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rp-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rp-kpi-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.rp-kpi-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rp-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

/* Section headers */
.rp-section-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rp-section-title { font-size: 0.92rem; font-weight: 700; color: #1e293b; }

/* Transaction cards */
.rp-txn-list { display: flex; flex-direction: column; gap: 8px; }
.rp-txn-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 14px;
    padding: 13px 15px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.rp-txn-left { display: flex; align-items: center; gap: 11px; }
.rp-txn-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.88rem;
    color: #fff; flex-shrink: 0;
}
.rp-txn-name  { font-size: 0.88rem; font-weight: 700; color: #0f172a; }
.rp-txn-meta  { font-size: 0.7rem; color: #94a3b8; margin-top: 1px; }
.rp-txn-right { text-align: right; flex-shrink: 0; }
.rp-txn-pts   { font-size: 0.98rem; font-weight: 800; }
.rp-txn-bill  { font-size: 0.7rem; color: #94a3b8; }

/* Empty state */
.rp-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 0.88rem;
}
.rp-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; opacity: 0.4; }

@media (min-width: 768px) {
    .rp-kpi-grid  { grid-template-columns: repeat(3, 1fr); }
    .rp-kpi-value { font-size: 1.8rem; }
}

/* Source: scan_earn.php */
/* ── Scan & Earn – same clean palette as Dashboard ── */
.se-card {
    background: #ffffff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

/* Search box */
.se-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.se-search-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s;
}
.se-search-input:focus {
    border-color: #059669;
    background: #fff;
}
.se-search-input::placeholder { color: #94a3b8; font-weight: 500; }
.se-search-btn {
    border: none;
    border-radius: 14px;
    background: #059669;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.15s;
}
.se-search-btn:active { opacity: 0.85; }

/* Customer profile card */
.se-cus-card {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
}
.se-cus-avatar {
    width: 52px; height: 52px; border-radius: 14px;
    background: #059669; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
}
.se-cus-name   { font-size: 1rem; font-weight: 800; color: #0f172a; }
.se-cus-meta   { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.se-cus-pts    { margin-left: auto; text-align: right; flex-shrink: 0; }
.se-cus-pts-lbl{ font-size: 0.68rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.se-cus-pts-val{ font-size: 1.4rem; font-weight: 800; color: #f59e0b; }

/* Bill input */
.se-bill-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s;
}
.se-bill-wrap:focus-within { border-color: #059669; background: #fff; }
.se-bill-prefix {
    padding: 16px 16px;
    font-size: 1.3rem; font-weight: 800;
    color: #059669; background: transparent;
    border: none; user-select: none;
}
.se-bill-input {
    flex: 1; border: none; background: transparent;
    font-size: 1.6rem; font-weight: 800; color: #0f172a;
    padding: 16px 16px 16px 0;
    outline: none;
}

/* Points preview strip */
.se-pts-strip {
    display: flex; align-items: center; justify-content: space-between;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 12px;
}
.se-pts-strip-left  { font-size: 0.78rem; font-weight: 600; color: #059669; }
.se-pts-strip-right { font-size: 1.3rem; font-weight: 800; color: #059669; }

/* Action buttons */
.se-btn-row { display: flex; gap: 10px; margin-top: 16px; }
.se-btn {
    flex: 1; padding: 15px;
    border-radius: 14px; border: none;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.se-btn:active { opacity: 0.85; }
.se-btn-cancel { background: #f1f5f9; color: #64748b; }
.se-btn-add    { background: #059669; color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,0.3); }

/* Success card */
.se-success-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.se-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: #059669; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(5,150,105,0.35);
    animation: pop-in 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes pop-in {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
.se-receipt {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    margin: 20px 0;
}
.se-receipt-row {
    display: flex; justify-content: space-between;
    font-size: 0.88rem; color: #475569;
    padding: 6px 0;
    border-bottom: 1px solid #f0f4f8;
}
.se-receipt-row:last-child { border-bottom: none; }
.se-receipt-val { font-weight: 700; color: #0f172a; }

/* Alert inline */
.se-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    display: none;
}
.se-alert.error   { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }
.se-alert.success { background: #f0fdf4; color: #059669; border: 1.5px solid #bbf7d0; }

/* Source: scan_redeem.php */
/* ── Scan & Redeem – same clean palette as Dashboard ── */
.sr-card {
    background: #ffffff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

/* Search box */
.sr-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sr-search-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s;
    font-family: monospace;
    letter-spacing: 0.06em;
}
.sr-search-input:focus {
    border-color: #f59e0b;
    background: #fff;
}
.sr-search-input::placeholder { color: #94a3b8; font-weight: 500; letter-spacing: 0; font-family: inherit; }
.sr-search-btn {
    border: none;
    border-radius: 14px;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.15s;
}
.sr-search-btn:active { opacity: 0.85; }

/* Customer card */
.sr-cus-card {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
}
.sr-cus-avatar {
    width: 52px; height: 52px; border-radius: 14px;
    background: #f59e0b; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800; flex-shrink: 0;
}
.sr-cus-name   { font-size: 1rem; font-weight: 800; color: #0f172a; }
.sr-cus-meta   { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.sr-cus-pts    { margin-left: auto; text-align: right; flex-shrink: 0; }
.sr-cus-pts-lbl{ font-size: 0.68rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.sr-cus-pts-val{ font-size: 1.4rem; font-weight: 800; color: #f59e0b; }

/* Redemption summary strip */
.sr-redeem-strip {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.sr-redeem-pts  { font-size: 2.2rem; font-weight: 800; color: #ef4444; line-height: 1; }
.sr-redeem-val  { font-size: 1.2rem; font-weight: 700; color: #059669; margin-top: 6px; }
.sr-redeem-lbl  { font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }

/* Timer pill */
.sr-timer {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fef9c3; border: 1.5px solid #fde047;
    border-radius: 30px; padding: 6px 16px;
    font-size: 0.85rem; font-weight: 700; color: #854d0e;
    margin-top: 12px;
}

/* Action buttons */
.sr-btn-row { display: flex; gap: 10px; }
.sr-btn {
    flex: 1; padding: 15px;
    border-radius: 14px; border: none;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sr-btn:active { opacity: 0.85; }
.sr-btn-cancel  { background: #f1f5f9; color: #64748b; }
.sr-btn-approve { background: #ef4444; color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,0.3); flex: 2; }

/* Alert */
.sr-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    display: none;
}
.sr-alert.error   { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }

/* Success card */
.sr-success-card {
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sr-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: #f59e0b; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
    animation: pop-in 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes pop-in {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
.sr-receipt {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    margin: 20px 0;
}
.sr-receipt-row {
    display: flex; justify-content: space-between;
    font-size: 0.88rem; color: #475569;
    padding: 6px 0;
    border-bottom: 1px solid #f0f4f8;
}
.sr-receipt-row:last-child { border-bottom: none; }
.sr-receipt-val { font-weight: 700; color: #0f172a; }

/* Referrals Page Specific */
.lp-referral-card {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
}
.lp-referral-icon-box {
    width: 54px;
    height: 54px;
}
.lp-ref-toggle-switch {
    cursor: pointer;
    width: 2.5em;
    height: 1.4em;
}
.lp-modal-rounded {
    border-radius: 1.25rem;
}
.lp-badge-sm {
    font-size: 0.8rem;
}

/* ── Reusable Component Classes for Customer Panel ───────────────────── */
.lp-store-header-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.lp-gold-radial-accent {
    position: absolute;
    top: 0; right: 0;
    width: 180px; height: 180px;
    background: radial-gradient(circle at top right, #fef3c7 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}
.lp-store-avatar-box {
    width: 68px; height: 68px;
    font-size: 2rem;
    border-radius: 1rem;
    background: #f59e0b;
    color: #0f172a;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}
.lp-store-title-text {
    font-family: var(--lp-font-sans);
    font-size: 1.8rem;
    color: #0f172a !important;
    font-weight: 700;
    margin-bottom: 0;
}
.lp-badge-category-amber {
    font-size: 0.78rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309 !important;
    font-weight: 700;
    padding: 0.35em 0.75em;
    font-family: var(--lp-font-mono);
}
.lp-store-address-text {
    color: #475569 !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.lp-badge-cusid-gold {
    background: #f59e0b;
    color: #0f172a !important;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    font-family: var(--lp-font-mono);
    display: inline-flex; align-items: center; gap: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.lp-badge-accepting-green {
    background: #16a34a;
    color: #ffffff !important;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.lp-cash-value-banner {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(4,120,87,0.2);
}
.lp-cash-banner-title {
    letter-spacing: 0.03em;
    font-weight: 700;
    font-size: 0.85rem;
}
.lp-cash-banner-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
}
.lp-icon-circle-box {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.lp-icon-circle-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.lp-icon-circle-primary { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.lp-icon-circle-warning { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.lp-icon-circle-info { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.lp-icon-circle-purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.lp-icon-circle-success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.lp-refer-promo-text {
    color: #0f172a !important;
    font-weight: 600;
    font-size: 0.875rem;
}
.lp-about-store-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.lp-about-store-desc {
    color: #475569 !important;
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 0;
}
.lp-qr-img {
    width: 180px; height: 180px;
    display: block;
}
.lp-qr-img-lg {
    width: 240px; height: 240px;
    display: block;
}
.lp-qr-img-sm {
    width: 200px; height: 200px;
    display: block;
}
.lp-modal-dark-content {
    background: #090e17 !important;
    border-radius: 1.5rem !important;
    color: #ffffff !important;
    border: none !important;
}
.lp-modal-pin-content {
    background: #212529 !important;
    border-radius: 1.5rem !important;
    color: #ffffff !important;
    border: none !important;
}
.lp-pin-badge {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.lp-hero-page-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    border-radius: 1.5rem;
    color: #ffffff !important;
    border: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(30,27,75,0.15);
}
.lp-instagram-badge {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    font-size: 0.72rem;
    font-weight: 700;
}

/* ── Mobile Compactness Overrides (Customer Panel) ───────────────── */
@media (max-width: 991.98px) {

    /* Page header banners — smaller heading & padding */
    .lp-customer-page-banner .card-body,
    .card.border-0.text-white .card-body {
        padding: 1rem 1.25rem !important;
    }
    .lp-customer-page-banner h2,
    .card.border-0.text-white h2 {
        font-size: 1.25rem !important;
    }
    .lp-customer-page-banner p,
    .card.border-0.text-white p {
        font-size: 0.78rem !important;
    }

    /* Glass cards — tighter padding */
    .glass-card {
        padding: 1rem !important;
    }

    /* Section headings inside cards */
    .glass-card h5 {
        font-size: 1rem !important;
    }
    .glass-card h6 {
        font-size: 0.85rem !important;
    }

    /* Form labels */
    .form-label {
        font-size: 0.78rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Form inputs */
    .form-control,
    .form-select {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.65rem !important;
    }

    /* Stat numbers in summary cards */
    .glass-card h3 {
        font-size: 1.3rem !important;
    }

    /* Table text */
    .table th,
    .table td {
        font-size: 0.78rem !important;
        padding: 0.4rem 0.5rem !important;
    }

    /* Bottom nav labels */
    .lp-nav-item span {
        font-size: 0.62rem !important;
    }

    /* Profile summary avatar initials */
    .lp-store-avatar-box {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem !important;
    }

    /* Store header title */
    .lp-store-title-text {
        font-size: 1.3rem !important;
    }

    /* Badge text */
    .badge {
        font-size: 0.68rem !important;
    }

    /* Small helper text */
    .small, small {
        font-size: 0.75rem !important;
    }

    /* Points summary value numbers */
    .glass-card .text-success.fw-bold,
    .glass-card .text-danger.fw-bold,
    .glass-card .text-warning.fw-bold,
    .glass-card .text-primary.fw-bold {
        font-size: 1.1rem !important;
    }

    /* Cash banner amount */
    .lp-cash-banner-amount {
        font-size: 1.7rem !important;
    }

    /* Store card info text */
    .glass-card .text-secondary {
        font-size: 0.78rem !important;
    }

    /* Category filter pills */
    .lp-cat-pill {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* ----------------------------------------------------------------
   DriveMaster  Layout & Modal Fixes
   These overrides ensure Bootstrap modals, scrollable dialogs,
   and the flex-body layout all work correctly together.
   ---------------------------------------------------------------- */

/* Fix: body { display:flex } breaks Bootstrap modal positioning */
body {
    display: block !important;
    min-height: 100vh;
}

/* Ensure modals always appear above sidebar and navbar */
.modal                { z-index: 1055 !important; }
.modal-backdrop       { z-index: 1050 !important; }
.modal-dialog         { z-index: 1056 !important; }

/* Fix: modal-dialog-scrollable max-height so full content is visible */
.modal-dialog-scrollable {
    max-height: calc(100vh - 3.5rem) !important;
}
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}

/* Fix: modal-lg centering */
.modal-dialog {
    margin-top: 1.75rem !important;
}

/* Fix: top-navbar z-index must be BELOW modal backdrop */
.top-navbar { z-index: 999 !important; }
.sidebar    { z-index: 1000 !important; }

/* Table inside cards */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
}
.table td { vertical-align: middle; font-size: 0.9rem; }

/* Card header */
.card-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* ----------------------------------------------------------------
   DriveMaster  Modal Height Fix v2
   Ensures modal footer (Save/Cancel buttons) is always visible.
   ---------------------------------------------------------------- */

/* Hard-limit modal height so footer is never cut off */
.modal-dialog {
    margin: 1rem auto !important;
    max-height: calc(100vh - 2rem) !important;
}

.modal-dialog-scrollable {
    height: calc(100vh - 2rem) !important;
    max-height: calc(100vh - 2rem) !important;
}

.modal-dialog-scrollable .modal-content {
    height: auto !important;
    max-height: calc(100vh - 2rem) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Modal header and footer MUST NOT scroll  keep them fixed */
.modal-dialog-scrollable .modal-header {
    flex-shrink: 0 !important;
    overflow: hidden !important;
}
.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

/* Only the body scrolls */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
    -webkit-overflow-scrolling: touch;
}

/* For non-scrollable modals, also constrain height */
.modal-dialog:not(.modal-dialog-scrollable) .modal-content {
    max-height: calc(100vh - 2rem) !important;
    overflow-y: auto !important;
}
