/* Member Kemeja - Dark Luxury & Gold/Emerald Mobile-First Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');

:root {
  --bg-main: #07090e;
  --bg-card: #0f141f;
  --bg-card-hover: #162032;
  --border-subtle: rgba(245, 158, 11, 0.12);
  --border-gold: rgba(245, 158, 11, 0.35);
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --gold-shimmer: linear-gradient(90deg, #f59e0b 0%, #fef3c7 50%, #f59e0b 100%);
  --emerald-primary: #10b981;
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 5.5rem; /* Space for Bottom Nav Bar */
}

.font-luxury {
  font-family: 'Cinzel', serif;
}

/* Glass Card */
.glass-card {
  background: rgba(15, 20, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  transition: all 0.25s ease;
}

.glass-card:hover {
  border-color: var(--border-gold);
}

.glass-card-gold {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.07) 0%, rgba(15, 20, 31, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 25px -8px rgba(245, 158, 11, 0.12);
}

.glass-card-emerald {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.07) 0%, rgba(15, 20, 31, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 25px -8px rgba(16, 185, 129, 0.12);
}

/* Text Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald-gradient {
  background: linear-gradient(135deg, #a7f3d0 0%, #10b981 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #07090e;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
}

.btn-gold:active {
  transform: scale(0.98);
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.btn-emerald:active {
  transform: scale(0.98);
}

/* Compact Digital Membership Card */
.member-vip-card {
  background: linear-gradient(135deg, #151d2d 0%, #0a0f18 60%, #161208 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
}

/* Progress Shimmer */
.progress-shimmer {
  background: linear-gradient(90deg, #f59e0b 0%, #fef3c7 50%, #f59e0b 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Bottom Navigation Bar */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bnav-item:active {
  transform: scale(0.92);
}

.bnav-floating-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07090e;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  margin-top: -1.25rem;
  border: 3px solid #07090e;
  transition: all 0.2s ease;
}

.bnav-floating-btn:active {
  transform: scale(0.92);
}

/* Scanner viewport wrapper */
#inlineReader {
  width: 100% !important;
  border: none !important;
}
#inlineReader video {
  border-radius: 0.75rem;
  object-fit: cover;
  max-height: 220px !important;
}

/* Viewfinder overlay guide */
.scanner-viewfinder {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: 2px;
}

/* Toast Animation */
.toast-slide-in {
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
