/* ============================================
   MODERN APP-STYLE CUSTOMER MEMBER PAGE
   Mobile-First Responsive Design
   ============================================ */

/* CSS Variables - Elegant Dark Gold Theme */
:root {
  /* Gold Color Palette */
  --primary-gold: #ffd700; /* Bright gold for main text & icons */
  --gold-dark: #b8860b; /* Dark gold for accents */
  --gold-light: #ffed4e; /* Light gold for highlights */
  --gold-metallic: #d4af37; /* Metallic gold for premium elements */
  --gold-copper: #cd7f32; /* Copper gold for contrast */

  /* Dark Background Palette */
  --bg-black: #000000; /* Pure black for main background */
  --bg-dark: #0a0a0a; /* Very dark for cards */
  --bg-darker: #111111; /* Dark for elevated elements */
  --bg-elevated: #1a1a1a; /* Elevated surfaces */
  --bg-card: #202020; /* Card backgrounds with subtle lift */

  /* Text Colors */
  --text-gold: #ffd700; /* Primary gold text */
  --text-gold-light: #ffed4e; /* Light gold for secondary text */
  --text-gold-muted: #b8860b; /* Muted gold for less important text */
  --text-white: #ffffff; /* Pure white for contrast */
  --text-gray: #888888; /* Gray for subtle text */

  /* Status Colors */
  --success-gold: #daa520; /* Golden rod for success */
  --warning-gold: #ff8c00; /* Dark orange for warnings */
  --danger-red: #dc2626; /* Red for errors */

  /* Shadows & Effects */
  --shadow-gold-sm: 0 2px 8px rgba(255, 215, 0, 0.15);
  --shadow-gold-md: 0 4px 16px rgba(255, 215, 0, 0.25);
  --shadow-gold-lg: 0 8px 32px rgba(255, 215, 0, 0.35);
  --shadow-black-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-black-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-black-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --glow-gold-strong: 0 0 30px rgba(255, 215, 0, 0.5);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  --gradient-gold-metallic: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b8860b 100%);
  --gradient-black-gold: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #ffd700 100%);
  --gradient-gold-radial: radial-gradient(circle, #ffd700 0%, #b8860b 100%);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  background: var(--bg-black);
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  color: var(--text-gold);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px; /* Space for bottom nav */
}

/* ============================================
   PROFILE HEADER
   ============================================ */
.profile-header {
  position: relative;
  width: 100%;
  padding: 60px 20px 30px;
  background: var(--gradient-black-gold);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-gold-lg), var(--shadow-black-lg);
  overflow: hidden;
  animation: slideDown 0.6s ease;
  border-bottom: 2px solid var(--primary-gold);
}

.profile-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.profile-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  animation: scaleIn 0.5s ease;
}

.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary-gold);
  background: var(--bg-card);
  object-fit: cover;
  box-shadow: var(--shadow-gold-lg), var(--glow-gold);
}

.avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-gold-metallic);
  border-radius: 50%;
  border: 3px solid var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold-md), var(--glow-gold-strong);
  transition: all var(--transition-bounce);
}

.avatar-badge i {
  display: none;
}
.avatar-badge svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.3));
}

.user-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-gold);
  text-shadow: var(--glow-gold), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.user-phone {
  font-size: 15px;
  color: var(--text-white);
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.membership-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 215, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-gold);
  box-shadow: var(--shadow-gold-md), inset 0 1px 2px rgba(255, 215, 0, 0.2);
}

.membership-type {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.membership-points {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.content-wrapper {
  flex: 1;
  padding: 20px;
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

/* ============================================
   QUICK STATS
   ============================================ */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-black-md);
  transition: all var(--transition-bounce);
  cursor: pointer;
  border: 2px solid var(--gold-dark);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold-lg), var(--glow-gold);
  border-color: var(--primary-gold);
}

.stat-card:hover::before {
  left: 100%;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.promo {
  background: var(--gradient-gold-metallic);
  color: var(--bg-black);
  box-shadow: var(--shadow-gold-sm);
}

.stat-icon.booking {
  background: var(--gradient-gold);
  color: var(--bg-black);
  box-shadow: var(--shadow-gold-sm);
}

.stat-icon.history {
  background: linear-gradient(135deg, var(--gold-copper) 0%, var(--gold-metallic) 100%);
  color: var(--bg-black);
  box-shadow: var(--shadow-gold-sm);
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-gold);
  text-shadow: var(--glow-gold);
}

.stat-label {
  font-size: 11px;
  color: var(--text-white);
  text-align: center;
}

/* ============================================
   SECTION
   ============================================ */
.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-gold);
  text-shadow: var(--glow-gold);
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

/* ============================================
   PROMO HIGHLIGHT (Home Tab)
   ============================================ */
.promo-highlight {
  margin-bottom: 24px;
}

.promo-card-home {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-black-md);
  border: 2px solid var(--gold-dark);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.promo-card-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold-metallic);
  box-shadow: var(--glow-gold);
}

.promo-card-home:hover {
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold-lg), var(--glow-gold);
  transform: translateY(-2px);
}

.promo-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-status-badge.active {
  background: rgba(0, 212, 170, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.promo-status-badge.expired {
  background: rgba(238, 90, 111, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.promo-info {
  flex: 1;
}

.promo-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.promo-code-display {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.promo-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-view-promo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-gold);
  border: none;
  color: var(--bg-dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px #ffd700;
}

.btn-view-promo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.5);
}

/* ============================================
   ACTIVITY LIST
   ============================================ */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.activity-item:hover {
  border-color: var(--primary-color);
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--text-gold);
}

.activity-info {
  flex: 1;
}

.activity-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.activity-date {
  font-size: 13px;
  color: var(--text-white);
}

/* ============================================
   SEARCH BAR INLINE
   ============================================ */
.search-bar-inline {
  margin-bottom: 24px;
  animation: fadeIn 0.5s ease;
}

.search-input-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15);
}

.search-input-wrapper i {
  color: var(--text-muted);
  font-size: 18px;
}

.search-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.btn-search {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-gold);
  border: none;
  color: var(--bg-dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px #ffd700;
  flex-shrink: 0;
}

.btn-search:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 198, 0, 0.5);
}

/* ============================================
   PROMO CARD LARGE
   ============================================ */
.promo-result,
.booking-result {
  animation: fadeInUp 0.5s ease;
}

.promo-card-large,
.booking-card-large {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.promo-qr-section {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.qr-wrapper {
  display: inline-block;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

.qr-wrapper canvas {
  display: block;
}

.promo-code-large {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-gold);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.promo-status-large {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 212, 170, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.promo-details-section {
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.detail-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.promo-terms {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--primary-color);
}

.promo-terms h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-terms h4 i {
  color: var(--text-white);
}

.promo-terms ul {
  list-style: none;
  padding-left: 0;
}

.promo-terms li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.promo-terms li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-white);
  font-weight: 700;
}

/* ============================================
   BOOKING CARD LARGE
   ============================================ */
.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.booking-status-large {
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 212, 170, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.booking-qr-section {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.booking-code-large {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-gold);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  margin-top: 16px;
}

.booking-details-section {
  margin-bottom: 24px;
}

/* ============================================
   HISTORY LIST
   ============================================ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-black-md);
  border: 2px solid var(--gold-dark);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.history-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
}

.history-item:hover {
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold-md), var(--glow-gold);
}

.history-date-badge {
  background: var(--gradient-gold-metallic);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold-sm);
  border: 1px solid var(--primary-gold);
}

.history-date-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  color: var(--bg-black);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.history-date-month {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.9;
  color: var(--bg-black);
}

.history-info {
  flex: 1;
}

.history-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-gold);
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.history-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-invoice-detail {
  background: var(--gradient-gold-metallic);
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  color: var(--bg-black);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold-sm);
}

.btn-invoice-detail:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-md), var(--glow-gold-strong);
  border-color: var(--gold-light);
}

/* ============================================
   INVOICE MODAL
   ============================================ */
.invoice-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.invoice-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-black-lg), var(--shadow-gold-lg);
  border: 2px solid var(--primary-gold);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.invoice-modal-content h3 {
  color: var(--text-gold);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  text-shadow: var(--glow-gold);
}

.invoice-modal-content div {
  margin-bottom: 8px;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
}

.invoice-modal-content div:last-child {
  margin-bottom: 0;
}

.invoice-modal-content img {
  border: 2px solid var(--primary-gold);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-gold-sm);
}

.invoice-modal-content img:hover {
  transform: scale(2);
  z-index: 1001;
  cursor: zoom-in;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-gold-sm);
}

.modal-close:hover {
  background: var(--primary-gold);
  color: var(--bg-black);
  transform: scale(1.1);
  box-shadow: var(--glow-gold);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 15px;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--gradient-black-gold);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 3px solid var(--primary-gold);
  box-shadow: var(--shadow-black-lg), var(--shadow-gold-md), 0 -2px 8px rgba(255, 215, 0, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  z-index: 1000;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--transition-bounce);
  border-radius: var(--radius-md);
  position: relative;
}

.nav-item i {
  font-size: 22px;
  transition: all var(--transition-normal);
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.nav-item.active {
  color: var(--primary-gold);
  background: rgb(0 0 0 / 50%);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-gold);
}

.nav-item.active i {
  transform: translateY(-2px);
  text-shadow: var(--glow-gold-strong);
  filter: drop-shadow(0 0 8px var(--primary-gold));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--gradient-gold-metallic);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--glow-gold);
}

.nav-item:active {
  transform: scale(0.95);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 30, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s ease;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast-icon {
  font-size: 20px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 768px) {
  .app-container {
    max-width: 768px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .quick-stats {
    gap: 16px;
  }

  .stat-card {
    padding: 20px;
  }

  .user-avatar {
    width: 120px;
    height: 120px;
  }

  .avatar-badge {
    width: 36px;
    height: 36px;
  }

  .avatar-badge i {
    font-size: 16px;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }

  .app-container {
    padding-bottom: 40px;
  }

  /* Add desktop sidebar navigation here if needed */
}

/* ============================================
   NOTIFICATION MODAL (Non-Member)
   ============================================ */
.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-modal.active {
  opacity: 1;
  visibility: visible;
}

.notification-modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-black-lg), var(--shadow-gold-lg);
  border: 2px solid var(--primary-gold);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.notification-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.notification-modal-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
  text-shadow: var(--glow-gold-strong);
}

.notification-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-gold);
  text-shadow: var(--glow-gold);
  margin: 0;
}

.notification-modal-message {
  color: var(--text-white);
  line-height: 1.6;
  margin-bottom: 24px;
}

.notification-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.notification-modal-btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-bounce);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.notification-modal-btn-primary {
  background: var(--gradient-gold-metallic);
  color: var(--bg-black);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold-md);
}

.notification-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg), var(--glow-gold-strong);
}

.notification-modal-btn-secondary {
  background: transparent;
  color: var(--text-gold);
  border-color: var(--gold-dark);
}

.notification-modal-btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--primary-gold);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-16 {
  margin-bottom: 16px;
}

.mt-16 {
  margin-top: 16px;
}
