* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 16px;
}

@media (max-width: 430px) {
  html { font-size: 14px; }
}

@media (min-width: 431px) and (max-width: 768px) {
  html { font-size: 15px; }
}

body {
  background: #0a0a0a;
  color: #fff;
  position: relative;
  transition: all 0.5s ease;
  min-height: 100vh;
}

/* Premium Luxury Theme */
body.theme-premium-black {
  background: linear-gradient(135deg, #0a0a0a 0%, #0d0d0d 50%, #0a0a0a 100%);
  --primary: #ffd700;
  --secondary: #ffd700;
  --accent: #d4af37;
  --dark: #0a0a0a;
  --darker: #050505;
  --card-bg: rgba(15, 15, 15, 0.95);
  --border-glow: rgba(255, 215, 0, 0.3);
  --purple: #9b59b6;
  --blue: #3498db;
  --green: #2ecc71;
  --red: #e74c3c;
  --orange: #e67e22;
}

/* Premium Animated Gradient Background */
body.theme-premium-black::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 40% 90%, rgba(52, 152, 219, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(46, 204, 113, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Premium Pattern Overlay */
.pattern-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: 
    repeating-linear-gradient(45deg, #ffd700 0px, #ffd700 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(135deg, #9b59b6 0px, #9b59b6 1px, transparent 1px, transparent 30px);
  pointer-events: none;
  z-index: 1;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffd700;
  border-radius: 50%;
  animation: float 15s infinite linear;
  opacity: 0.3;
}

.particle:nth-child(even) {
  background: #9b59b6;
  width: 3px;
  height: 3px;
}

.particle:nth-child(3n) {
  background: #3498db;
}

@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* Splash Screen - Premium */
.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: opacity 0.5s ease;
}
.splash-screen.fade-out { opacity: 0; pointer-events: none; }
.splash-content { text-align: center; max-width: 400px; width: 90%; }
.splash-logo {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  animation: logoPulse 2s infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 20px 80px rgba(255, 215, 0, 0.5); }
}
.splash-logo::before { content: '♛'; font-size: 4rem; color: #0a0a0a; font-family: 'Playfair Display', serif; }
.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700 0%, #ffd700 30%, #9b59b6 60%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.splash-subtitle { font-size: 1rem; color: #ffd700; margin-bottom: 2rem; opacity: 0.8; letter-spacing: 0.3em; }
.splash-progress { width: 100%; max-width: 280px; margin: 0 auto; }
.progress-bar-container { height: 3px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ffd700, #9b59b6, #3498db); animation: loading 1.5s ease-out forwards; border-radius: 999px; }
@keyframes loading { 0% { width: 0%; } 100% { width: 100%; } }
.loading-text { font-size: 0.7rem; background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0.2em; margin-top: 1rem; }

/* Auth Modal - Premium Multi-Color */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 4500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}
.auth-overlay.active { display: flex; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-container {
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.98), rgba(10, 10, 15, 0.99));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 215, 0, 0.1);
  position: relative;
}
.auth-container::-webkit-scrollbar { width: 4px; }
.auth-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 2px; }
.auth-container::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffd700, #9b59b6); border-radius: 2px; }
.close-auth {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffd700;
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}
.close-auth:hover { background: rgba(255, 215, 0, 0.15); transform: rotate(90deg); }
.auth-header { padding: 2rem 2rem 1.5rem; text-align: center; border-bottom: 1px solid rgba(255, 215, 0, 0.1); }
.auth-logo {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #ffd700, #9b59b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.25rem; font-weight: 700; }
.auth-subtitle { color: #888; font-size: 0.8rem; }
.auth-content { padding: 2rem; }
.auth-form { display: none; }
.auth-form.active { display: block; animation: slideUp 0.4s ease; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.error-message {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  color: #e74c3c;
  font-size: 0.8rem;
  display: none;
  text-align: center;
}
.error-message.active { display: block; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; }
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}
.form-input:focus {
  border-color: #ffd700;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.15); }
.auth-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  border-radius: 14px;
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-btn:active { transform: scale(0.98); }
.auth-divider { text-align: center; margin: 1.5rem 0; position: relative; }
.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), #9b59b6, rgba(255, 215, 0, 0.3), transparent);
}
.auth-divider span {
  background: linear-gradient(145deg, rgba(20,20,25,0.98), rgba(10,10,15,0.99));
  padding: 0 1rem;
  background: linear-gradient(90deg, #ffd700, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.75rem;
  position: relative;
}
.guest-btn {
  width: 100%;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 14px;
  color: #ffd700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}
.guest-btn:active { transform: scale(0.98); background: rgba(255, 215, 0, 0.08); }
.auth-link { text-align: center; margin-top: 1.5rem; color: #666; font-size: 0.8rem; }
.auth-link a { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; font-weight: 600; cursor: pointer; }

/* Profile Modal - Premium */
.profile-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3500;
  display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(10px);
}
.profile-modal-overlay.active { display: flex; }
.profile-container {
  background: linear-gradient(145deg, rgba(20,20,25,0.98), rgba(10,10,15,0.99));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.profile-header { padding: 2rem; text-align: center; border-bottom: 1px solid rgba(255,215,0,0.1); position: relative; }
.profile-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.03); border: none; color: #888; font-size: 1.2rem; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.profile-close:active { background: rgba(255,255,255,0.08); color: #fff; }
.profile-avatar-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #ffd700, #9b59b6);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid rgba(255,215,0,0.3);
  cursor: pointer;
  transition: transform 0.2s;
}
.profile-avatar-large:active { transform: scale(1.05); }
.profile-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.25rem; }
.profile-id { color: #666; font-size: 0.75rem; }
.vip-badge { margin-top: 0.5rem; padding: 0.2rem 0.8rem; background: linear-gradient(145deg, #ffd700, #9b59b6); border-radius: 20px; display: inline-block; color: #000; font-weight: bold; font-size: 0.7rem; }
.profile-content { padding: 1.5rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.5rem; }
.profile-stat { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,215,0,0.1); border-radius: 12px; padding: 0.8rem; text-align: center; }
.stat-number { font-size: 1.2rem; font-weight: 700; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.65rem; color: #666; margin-top: 0.25rem; }

/* Wager Progress Section */
.profile-wager-section {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.profile-wager-section h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.85rem; margin-bottom: 0.75rem; }
.wager-progress-container {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.wager-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #9b59b6, #3498db);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}
.wager-progress-text { font-size: 0.7rem; color: #ffd700; text-align: center; margin-top: 0.5rem; }
.wager-info-text { font-size: 0.6rem; color: #888; text-align: center; margin-top: 0.5rem; }

.profile-withdrawal-section { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,215,0,0.1); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.profile-withdrawal-section h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.9rem; margin-bottom: 1rem; }
.withdrawal-account-fields { display: flex; flex-direction: column; gap: 0.8rem; }
.change-username-btn {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 12px;
  background: linear-gradient(90deg, #ffd700, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s;
}
.change-username-btn:active { background: rgba(255,215,0,0.15); }
.logout-btn {
  width: 100%;
  padding: 0.8rem;
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: 12px;
  color: #e74c3c;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}
.profile-edit-section { margin-top: 1rem; padding: 1rem; background: rgba(0,0,0,0.3); border-radius: 12px; }

/* Avatar Grid */
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1rem 0; }
.avatar-option { font-size: 1.8rem; cursor: pointer; padding: 0.5rem; border: 2px solid transparent; border-radius: 50%; text-align: center; transition: all 0.3s; }
.avatar-option:active { transform: scale(1.1); border-color: #ffd700; background: rgba(255,215,0,0.1); }

/* Popup - Premium */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 5000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(10px);
}
.popup-overlay.active { display: flex; }
.popup-content {
  background: linear-gradient(145deg, rgba(20,20,25,0.98), rgba(10,10,15,0.99));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 350px;
  width: 90%;
  text-align: center;
  animation: popupSlideDown 0.3s ease;
}
@keyframes popupSlideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.popup-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.popup-title { font-family: 'Playfair Display', serif; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 700; }
.popup-text { color: #aaa; margin-bottom: 1rem; line-height: 1.5; font-size: 0.85rem; }
.popup-btn-group { display: flex; gap: 0.75rem; margin-top: 1rem; }
.popup-btn {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.popup-btn-confirm { background: linear-gradient(145deg, #ffd700, #b8962e); color: #000; }
.popup-btn-cancel { background: rgba(255,255,255,0.03); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.popup-close { padding: 0.6rem 1.5rem; background: linear-gradient(145deg, #ffd700, #b8962e); border: none; border-radius: 8px; color: #000; font-weight: 700; cursor: pointer; }

/* Download Link Container */
.download-link-container { display: flex; flex-direction: column; gap: 0.8rem; margin: 1rem 0; }
.download-link-container input {
  font-size: 0.65rem;
  word-break: break-all;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  padding: 0.6rem;
  color: #ffd700;
  font-family: monospace;
}
.copy-link-btn {
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}
.copy-link-btn:active { transform: scale(0.98); }

/* Account Display */
.account-display { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 0.5rem; font-size: 0.8rem; color: #ffd700; word-break: break-all; }

/* Purchase Page */
.purchase-page {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a, #0d0d0d);
  z-index: 8000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.purchase-page.active { display: flex; }
.purchase-header {
  background: linear-gradient(180deg, rgba(20,20,25,0.98), rgba(10,10,15,0.99));
  border-bottom: 1px solid rgba(255,215,0,0.2);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.purchase-back-btn {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: #ffd700;
  cursor: pointer;
  font-weight: 600;
}
.purchase-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; flex: 1; text-align: center; }
.purchase-content { flex: 1; padding: 2rem 1.5rem; max-width: 500px; margin: 0 auto; width: 100%; }
.purchase-amount-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.purchase-amount { font-family: 'Playfair Display', serif; font-size: 2rem; color: #ffd700; font-weight: 900; }
.purchase-coins { color: #ffd700; font-size: 0.9rem; margin-top: 0.5rem; }
.purchase-bonus { color: #ffd700; font-size: 0.7rem; margin-top: 0.5rem; opacity: 0.8; }
.payment-number-card {
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.payment-number { font-size: 1.5rem; font-weight: bold; color: #ffd700; letter-spacing: 2px; font-family: monospace; margin: 0.5rem 0; }
.payment-number-text { color: #666; font-size: 0.75rem; margin-bottom: 0.5rem; }
.payment-note { background: rgba(255,215,0,0.05); padding: 0.8rem; border-radius: 10px; margin-top: 0.8rem; font-size: 0.7rem; color: #ffd700; }
.submit-form { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,215,0,0.1); border-radius: 16px; padding: 1.5rem; }
.submit-form h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; font-size: 0.9rem; text-align: center; }
.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
}
.submit-btn:active { transform: scale(0.98); }

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(180deg, #0f0f14, #0a0a0f);
  border-left: 1px solid rgba(255,215,0,0.2);
  z-index: 6000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .notification-panel { right: -350px; } }
.notification-panel.open { right: 0; }
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  background: #0a0a0f;
}
.notification-header h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.1rem; }
.notification-actions { display: flex; gap: 0.5rem; }
.notification-action-btn { background: rgba(255,255,255,0.03); border: none; color: #888; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.close-notification { background: none; border: none; color: #888; font-size: 1.2rem; cursor: pointer; }
.notification-list { flex: 1; overflow-y: auto; padding: 1rem; }
.notification-item { display: flex; gap: 0.8rem; padding: 0.8rem; background: rgba(255,255,255,0.02); border-radius: 12px; margin-bottom: 0.5rem; }
.notification-item.unread { background: rgba(255,215,0,0.05); border-left: 2px solid #ffd700; }
.notification-icon { font-size: 1.2rem; min-width: 35px; text-align: center; }
.notification-content { flex: 1; }
.notification-title { font-weight: 600; color: #ffd700; margin-bottom: 0.2rem; font-size: 0.8rem; }
.notification-message { color: #aaa; font-size: 0.7rem; }
.notification-time { color: #555; font-size: 0.6rem; margin-top: 0.2rem; }

/* Fullscreen Sections */
.fullscreen-section {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a, #0d0d0d);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.fullscreen-section.active { display: flex; animation: slideIn 0.3s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.fullscreen-header {
  background: linear-gradient(180deg, rgba(20,20,25,0.98), rgba(10,10,15,0.99));
  border-bottom: 1px solid rgba(255,215,0,0.2);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.back-btn {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: #ffd700;
  cursor: pointer;
  font-weight: 600;
}
.fullscreen-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; flex: 1; text-align: center; }
.fullscreen-content { flex: 1; padding: 1.5rem; max-width: 800px; margin: 0 auto; width: 100%; }

/* Offers Grid - Premium Cards */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; padding: 1rem; }
.offer-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 20px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.offer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.offer-card:active::before { opacity: 1; }
.offer-card:active { transform: translateY(-3px); border-color: #ffd700; box-shadow: 0 10px 30px rgba(255,215,0,0.15); }
.offer-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: bold;
  color: white;
}
.offer-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.offer-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.3rem; }
.offer-desc { font-size: 0.65rem; color: #888; line-height: 1.3; }

/* Daily Rewards */
.vip-info-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.vip-info-card h2 { background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.1rem; margin-bottom: 0.5rem; }
.vip-progress { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; margin: 0.5rem 0; }
.vip-progress-bar { height: 100%; background: linear-gradient(90deg, #ffd700, #9b59b6, #3498db); width: 0%; transition: width 0.5s ease; }
.rewards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.reward-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}
.reward-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.reward-title { font-weight: bold; background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.9rem; margin-bottom: 0.3rem; }
.reward-amount { font-size: 1.5rem; font-weight: bold; color: #ffd700; margin-bottom: 0.3rem; }
.claim-btn {
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.claim-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Mission Cards */
.mission-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.mission-header { margin-bottom: 0.5rem; }
.mission-title { font-weight: bold; background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.9rem; }
.mission-desc { color: #888; font-size: 0.7rem; margin-bottom: 0.5rem; }
.mission-reward { display: inline-block; background: rgba(255,215,0,0.1); padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.65rem; color: #ffd700; margin-bottom: 0.5rem; }
.mission-btn {
  background: linear-gradient(145deg, #ffd700, #b8962e);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  font-size: 0.8rem;
}
.mission-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Support Section */
.support-container { max-width: 600px; margin: 0 auto; padding: 1rem; }
.support-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1rem;
}
.support-btn.additional { background: linear-gradient(145deg, #1a1a1a, #0d0d0d); border: 1px solid rgba(255,215,0,0.3); color: #ffd700; }
.support-btn:active { transform: scale(0.98); }

/* Support Ticket */
.support-ticket-container { max-width: 600px; margin: 0 auto; }
.ticket-form { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,215,0,0.1); border-radius: 16px; padding: 1.2rem; }
.ticket-form h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; font-size: 1rem; }
.ticket-form textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 12px;
  padding: 0.8rem;
  color: #fff;
  font-size: 0.85rem;
  resize: vertical;
  font-family: inherit;
}
.ticket-form textarea:focus { border-color: #ffd700; outline: none; }

/* Shop - Premium Cards */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 480px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.shop-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 0.5s;
}
.shop-card:active::before { left: 100%; }
.shop-card:active { transform: translateY(-3px); border-color: #ffd700; }
.shop-card.featured { border-color: #ffd700; background: linear-gradient(145deg, rgba(255,215,0,0.05), rgba(20,20,25,0.9)); }
.shop-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.shop-amount { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #ffd700; margin-bottom: 0.3rem; font-weight: 900; }
.shop-coins { color: #ffd700; font-size: 0.7rem; margin-bottom: 0.5rem; }
.shop-bonus { color: #9b59b6; font-size: 0.65rem; margin: 0.2rem 0; }
.shop-total { color: #aaa; font-size: 0.65rem; margin: 0.2rem 0; }
.shop-btn {
  width: 100%;
  padding: 0.5rem;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* Referral System */
.referral-container { max-width: 800px; margin: 0 auto; }
.referral-stats-card {
  background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.referral-stats-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.referral-stats-header h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1rem; }
.referral-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stat-item { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 0.6rem; }
.stat-item .stat-label { color: #666; font-size: 0.65rem; margin-bottom: 0.3rem; }
.stat-item .stat-value { font-size: 1.2rem; font-weight: 700; color: #ffd700; }
.referral-code-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.referral-code-card h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.9rem; margin-bottom: 1rem; }
.referral-code-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
}
.referral-code-display span { flex: 1; font-family: monospace; font-size: 1rem; color: #ffd700; }
.referral-link-display { display: flex; align-items: center; gap: 0.5rem; }
.referral-link-display input { flex: 1; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; padding: 0.5rem; color: #666; font-size: 0.65rem; }
.copy-btn {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  color: #ffd700;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.copy-btn:active { background: rgba(255,215,0,0.2); }
.referral-info { margin-top: 0.8rem; padding: 0.5rem; background: rgba(255,215,0,0.05); border-radius: 8px; font-size: 0.65rem; color: #ffd700; }
.commission-rates-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.commission-rates-card h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.9rem; margin-bottom: 1rem; }
.commission-table { display: flex; flex-direction: column; gap: 0.5rem; }
.commission-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; background: rgba(255,255,255,0.02); border-radius: 8px; font-size: 0.8rem; }
.commission-row.bonus { background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.2); }
.amount-positive { color: #2ecc71; font-weight: 600; }
.referral-list-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.referral-list-card h3 { background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.9rem; margin-bottom: 1rem; }
.referral-filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.filter-btn {
  background: rgba(255,255,255,0.03);
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  color: #aaa;
  cursor: pointer;
  font-size: 0.65rem;
}
.filter-btn.active { background: linear-gradient(90deg, #ffd700, #9b59b6); color: #000; }
.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.data-table th { text-align: left; padding: 0.5rem; background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; border-bottom: 1px solid rgba(255,215,0,0.2); }
.data-table td { padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: #aaa; }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.6rem; font-weight: 600; }
.status-badge.approved { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-badge.pending { background: rgba(255,215,0,0.1); color: #ffd700; }

/* App Container */
.app-container {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.app-container.visible { opacity: 1; pointer-events: auto; }

/* Lobby Header - Premium */
.lobby-header {
  background: linear-gradient(180deg, rgba(15,15,20,0.98), rgba(5,5,10,0.99));
  border-bottom: 1px solid rgba(255,215,0,0.2);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 50;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.header-left { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
.profile-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #ffd700, #9b59b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid rgba(255,215,0,0.3);
  cursor: pointer;
}
.user-info { display: flex; flex-direction: column; }
.username { font-weight: 700; background: linear-gradient(90deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 0.85rem; }
.user-status { font-size: 0.6rem; color: #888; }
.balance-container {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.coin-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.balance-amount { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.9rem; color: #ffd700; }
.header-center { display: flex; gap: 0.8rem; justify-content: center; }
.auth-header-btn {
  padding: 0.4rem 1rem;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.75rem;
}
.auth-header-btn.register { background: transparent; border: 1px solid rgba(255,215,0,0.3); color: #ffd700; }
.header-actions { display: flex; gap: 0.5rem; }
.header-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffd700;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.header-btn:active { background: rgba(255,215,0,0.1); transform: scale(0.95); }

/* Lobby Content */
.lobby-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 768px) { .lobby-content { grid-template-columns: 1fr; } }
.games-section { display: flex; flex-direction: column; gap: 0.8rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; max-width: 500px; margin: 0 auto; width: 100%; }
.game-tile {
  background: linear-gradient(145deg, rgba(20,20,25,0.9), rgba(10,10,15,0.95));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.game-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.05), transparent);
  transition: left 0.5s;
}
.game-tile:active::after { left: 100%; }
.game-tile:active { transform: translateY(-3px); border-color: #ffd700; box-shadow: 0 10px 25px rgba(255,215,0,0.1); }
.game-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid rgba(255,215,0,0.3);
  position: relative;
}
.game-tile.hot .game-icon::after {
  content: '🔥';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.9rem;
  animation: burn 1s infinite alternate;
}
@keyframes burn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.game-name { font-weight: 700; font-size: 0.9rem; background: linear-gradient(135deg, #fff, #ddd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-align: center; }
.game-stats { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.65rem; color: #ffd700; }
.entry-fee { background: rgba(0,0,0,0.4); padding: 0.2rem 0.6rem; border-radius: 10px; border: 1px solid rgba(255,215,0,0.2); color: #ffd700; }
.play-btn {
  background: linear-gradient(145deg, #ffd700, #b8962e);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  transition: all 0.3s;
}
.play-btn:active { transform: scale(1.02); box-shadow: 0 0 15px rgba(255,215,0,0.5); }

/* Leaderboard Panel */
.leaderboard-panel {
  background: linear-gradient(145deg, rgba(20,20,25,0.6), rgba(10,10,15,0.8));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 0.8rem;
  height: fit-content;
}
.leaderboard-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,215,0,0.2); color: #ffd700; font-size: 0.9rem; }
.leaderboard-list { display: flex; flex-direction: column; gap: 0.5rem; }
.leaderboard-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem; background: rgba(0,0,0,0.3); border-radius: 10px; transition: all 0.3s; }
.leaderboard-item:active { transform: translateX(5px); background: rgba(255,215,0,0.05); }
.rank-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.05);
}
.rank-number.gold { background: linear-gradient(145deg, #ffd700, #b8962e); color: #000; }
.rank-number.silver { background: linear-gradient(145deg, #c0c0c0, #808080); color: #000; }
.rank-number.bronze { background: linear-gradient(145deg, #cd7f32, #8b4513); color: #fff; }
.leader-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid rgba(255,215,0,0.3);
}
.leader-info { flex: 1; }
.leader-name { font-weight: 600; font-size: 0.7rem; background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.leader-win { font-size: 0.6rem; color: #ffd700; }

/* Bottom Nav */
.bottom-nav {
  background: linear-gradient(180deg, rgba(15,15,20,0.98), rgba(5,5,10,0.99));
  border-top: 1px solid rgba(255,215,0,0.2);
  padding: 0.4rem 0.6rem;
  display: flex;
  justify-content: space-around;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  transition: all 0.3s;
}
.nav-item.active { color: #ffd700; }
.nav-item:active { transform: translateY(-2px); }
.nav-icon { font-size: 1.2rem; }
.nav-label { font-size: 0.5rem; font-weight: 600; text-transform: uppercase; }

/* Game View */
.game-view {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a, #0d0d0d);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.game-view.active { opacity: 1; pointer-events: auto; }
.back-to-lobby {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 300;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.7rem;
}
.game-screen { max-width: 550px; margin: 0 auto; padding: 4rem 0.8rem 1.5rem; }
.game-header { text-align: center; margin-bottom: 1rem; }
.game-header h1 { background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.5rem; }
.balance-bar {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #fff;
}
.stats-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; margin-bottom: 0.5rem; }
.stat-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px;
  padding: 0.4rem;
  text-align: center;
}
.stat-label { font-size: 0.45rem; color: #666; text-transform: uppercase; margin-bottom: 0.1rem; }
.stat-value { font-size: 0.8rem; font-weight: 700; color: #fff; }
.stat-value.win { color: #2ecc71; }
.stat-value.multiplier { color: #e74c3c; }
.stat-value.pairs { color: #ffd700; }

/* Bet Panel */
.bet-panel {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
}
.bet-panel-title { color: #888; font-size: 0.55rem; text-transform: uppercase; text-align: center; margin-bottom: 0.5rem; }
.bet-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.5rem; }
@media (max-width: 480px) { .bet-options { grid-template-columns: repeat(2, 1fr); } }
.bet-option {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 8px;
  padding: 0.5rem;
  color: #aaa;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}
.bet-option.selected { background: linear-gradient(145deg, #ffd700, #b8962e); border-color: #ffd700; color: #000; }

/* Action Buttons */
.action-buttons { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.5rem; }
.action-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  border: none;
  max-width: 120px;
  transition: all 0.3s;
}
.start-btn { background: linear-gradient(145deg, #2ecc71, #27ae60); color: #fff; }
.cashout-btn { background: linear-gradient(145deg, #ffd700, #e67e22); color: #000; animation: pulse-gold 1s infinite; }
.continue-btn { background: linear-gradient(145deg, #3498db, #2980b9); color: #fff; }
.action-btn:active { transform: scale(0.95); }
@keyframes pulse-gold { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

/* Message Display */
.message-display { text-align: center; padding: 0.4rem; background: rgba(0,0,0,0.3); border-radius: 8px; margin-bottom: 0.5rem; }
.message-text { color: #888; font-size: 0.65rem; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; perspective: 1000px; margin-bottom: 0.5rem; }
@media (max-width: 480px) { .card-grid { gap: 2px; } }

/* Card Styles - Premium */
.card {
  aspect-ratio: 2.5 / 3.5;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card.flipped { transform: rotateY(180deg); }
.card.matched { animation: match-glow 0.3s ease-out; }
@keyframes match-glow {
  0% { transform: rotateY(180deg) scale(1); box-shadow: 0 0 0 0 rgba(46,204,113,0); }
  50% { transform: rotateY(180deg) scale(1.05); box-shadow: 0 0 20px 5px rgba(46,204,113,0.5); }
  100% { transform: rotateY(180deg) scale(1); box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-back {
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border: 1px solid rgba(255,215,0,0.3);
}
.card-back-pattern {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,215,0,0.03) 3px, rgba(255,215,0,0.03) 6px);
}
.card-back-logo { font-family: 'Playfair Display', serif; font-size: 0.7rem; font-weight: 800; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; z-index: 1; }
.card-front {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 1px solid #ddd;
  transform: rotateY(180deg);
  flex-direction: column;
  padding: 3px;
}
.card-front.red { border-color: #e74c3c; }
.card-front.black { border-color: #1a1a1a; }
.card-front.bomb {
  background: linear-gradient(145deg, #2a0a0a, #1a0505);
  border-color: #e74c3c;
}
.card-front.golden {
  background: linear-gradient(145deg, #ffd700, #f39c12);
  border: 2px solid #fff;
}
.card-corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 900; }
.card-corner-tl { top: 3px; left: 4px; }
.card-corner-br { bottom: 3px; right: 4px; transform: rotate(180deg); }
.card-rank { font-family: 'Playfair Display', serif; font-size: 0.8rem; font-weight: 900; line-height: 1; margin-bottom: 1px; }
@media (max-width: 480px) { .card-rank { font-size: 0.65rem; } .card-suit-small { font-size: 0.5rem; } .card-center { font-size: 1rem; } }
.card-suit-small { font-size: 0.65rem; }
.card-front.red .card-rank { color: #e74c3c; }
.card-front.black .card-rank { color: #0a0a0a; }
.card-center { font-size: 1.4rem; }
.bomb-content { display: flex; flex-direction: column; align-items: center; color: #e74c3c; }
.bomb-icon { font-size: 1.5rem; animation: bomb-pulse 1s infinite; }
@keyframes bomb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.bomb-text { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.1em; margin-top: 3px; text-transform: uppercase; }
.golden-content { display: flex; flex-direction: column; align-items: center; color: #000; }
.golden-icon { font-size: 1.5rem; animation: crown-glow 1s infinite; }
.golden-text { font-size: 0.55rem; font-weight: 900; letter-spacing: 0.08em; margin-top: 3px; text-transform: uppercase; color: #5c4300; }
@keyframes crown-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Win/Lose Overlays */
.win-overlay, .lose-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 400;
  background: rgba(0,0,0,0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.win-overlay.active, .lose-overlay.active { opacity: 1; visibility: visible; }
.win-amount { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: #2ecc71; margin: 1rem 0; animation: winPulse 0.5s ease-out; }
@keyframes winPulse { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.win-label { color: #888; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; }
.lose-icon { font-size: 2.5rem; margin-bottom: 1rem; animation: bombExplode 0.5s ease-out; }
@keyframes bombExplode { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.lose-text { color: #e74c3c; font-size: 1.3rem; font-weight: 800; }
.play-again-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(145deg, #ffd700, #e67e22);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(10px);
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: linear-gradient(145deg, rgba(20,20,25,0.98), rgba(10,10,15,0.99));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,215,0,0.2); }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; background: linear-gradient(135deg, #ffd700, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.modal-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.settings-option { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,215,0,0.1); border-radius: 12px; padding: 0.8rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.settings-label { display: flex; align-items: center; gap: 0.75rem; color: #fff; font-weight: 600; font-size: 0.85rem; }
.settings-icon { font-size: 1.2rem; }
.toggle-switch {
  width: 45px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.toggle-switch.active { background: #ffd700; }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s;
}
.toggle-switch.active::after { left: 24px; }
.theme-selector { margin-top: 1rem; display: none; }
.theme-selector.active { display: block; }
.theme-btn {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-btn.active { border-color: #ffd700; background: rgba(255,215,0,0.1); }
.theme-preview { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #fff; }
.change-theme-btn {
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(145deg, #ffd700, #b8962e);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
}

/* Utility Classes */
.hidden { display: none !important; }

/* Touch Optimization */
button, .btn, .nav-item, .game-tile, .shop-card, .offer-card, .auth-btn, .guest-btn, .back-btn, .claim-btn, .mission-btn, .support-btn, .copy-btn, .filter-btn, .popup-close, .popup-btn, .modal-close, .change-theme-btn, .theme-btn, .header-btn, .play-btn, .bet-option, .action-btn, .card, .profile-avatar, .close-auth, .auth-link a, .submit-btn, .purchase-back-btn, .copy-link-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}