/* ==============================================================================
   L'Arome Perfume Loyalty — Haute Parfumerie Design System
   Modern Luxury Theme (Noir Obsidian & Champagne Gold)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #090b0e;
  --bg-surface: #12161c;
  --bg-card: rgba(22, 27, 36, 0.75);
  --bg-card-hover: rgba(30, 37, 49, 0.85);
  --border-subtle: rgba(212, 175, 55, 0.2);
  --border-active: rgba(212, 175, 55, 0.6);
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa820a;
  --gold-gradient: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #aa8010 100%);
  --rose-gold: #c98a7d;
  
  --text-main: #f5f6f8;
  --text-muted: #9aa1ad;
  --text-dim: #656c78;
  
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-gold: 0 10px 30px -5px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(16px);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(183, 110, 121, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #090b0e 0%, #0d1015 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.mobile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Luxury Glass Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(18, 22, 28, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0d10;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

/* Cards & Glass Containers */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.card-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0d10;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-subtle);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
}

.btn-block {
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(13, 16, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background: rgba(18, 22, 28, 0.95);
}

/* Digital Perfume Member Card */
.digital-loyalty-card {
  position: relative;
  background: linear-gradient(135deg, #1b2029 0%, #111419 60%, #0d0f13 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.digital-loyalty-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.card-boutique-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.card-tier-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.card-balance-display {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.balance-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}

.balance-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.card-holder-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card-holder-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stamp Card Grid */
.stamp-card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 480px) {
  .stamp-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stamp-slot {
  aspect-ratio: 1 / 1;
  background: rgba(14, 18, 23, 0.85);
  border: 2px dashed rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.stamp-slot.stamped {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(18, 22, 28, 0.95) 80%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.stamp-slot.stamped .stamp-icon {
  color: var(--gold-light);
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.stamp-slot.reward-slot {
  border-color: rgba(201, 138, 125, 0.5);
}

.stamp-slot.reward-slot.stamped {
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(245, 215, 127, 0.5);
}

.stamp-number {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: bold;
  color: var(--text-dim);
}

.stamp-slot.stamped .stamp-number {
  color: var(--gold-primary);
}

/* Tactile Cashier Secret PIN Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pin-modal {
  background: #14181f;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .pin-modal {
  transform: scale(1);
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.4);
  background: transparent;
  transition: var(--transition);
}

.pin-dot.filled {
  background: var(--gold-gradient);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  transform: scale(1.15);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 280px;
  margin: 0 auto;
}

.pin-key {
  height: 60px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pin-key:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.pin-key:active {
  transform: scale(0.94);
  background: var(--gold-primary);
  color: #0b0d10;
}

.pin-key.action-key {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Badge & Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

/* Rewards Catalog Items */
.reward-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(18, 22, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.reward-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.reward-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.reward-cost-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

/* Printable Counter Stand Section */
.counter-stand-box {
  background: #ffffff;
  color: #111419;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 440px;
  margin: 2rem auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 3px double #d4af37;
  position: relative;
}

.counter-stand-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #0b0d10;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.counter-stand-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b6b1b;
  margin-bottom: 1.5rem;
}

.counter-qr-display {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 1.25rem;
}

.counter-instructions {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}

.nfc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: #f7f4ef;
  border: 1px solid #d4af37;
  font-weight: 600;
  font-size: 0.85rem;
  color: #8b6b1b;
}

/* Animations */
@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse-gold {
  animation: goldPulse 2s infinite;
}

/* Print Rules */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .navbar, .btn, .no-print, .modal-overlay {
    display: none !important;
  }
  .counter-stand-box {
    box-shadow: none !important;
    border: 3px double #000 !important;
    margin: 0 auto !important;
    page-break-inside: avoid;
  }
}
