/* -------------------------------------------------------------
   UNYKORN.ai Forge Rips - Core Styles & Design System
   ------------------------------------------------------------- */

:root {
  --bg-main: #090d16;
  --bg-surface: rgba(20, 24, 38, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.35);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --font-header: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Canvas Particle Starfield */
#ambient-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unicorn-horn-accent {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 24px solid var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
  transform: rotate(15deg);
}

.logo-text {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation tabs */
.nav-tabs {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-tab-btn:hover, .nav-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(168, 85, 247, 0.2));
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.15);
}

/* Wallet display */
.wallet-control {
  display: flex;
  align-items: center;
}

.wallet-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseGlow 1.5s infinite;
}

.wallet-address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
}

.wallet-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 0.8rem;
}

.wallet-icon-btn:hover {
  color: #ef4444;
}

/* Main content layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.view-panel {
  animation: fadeIn 0.4s ease;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(270deg, rgba(10,15,30,0.8), rgba(168,85,247,0.1), rgba(0,240,255,0.05), rgba(10,15,30,0.8));
  background-size: 800% 800%;
  animation: HeroAmbient 15s ease infinite;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

@keyframes HeroAmbient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-title {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Progressive Jackpot Section */
.jackpot-section {
  margin-bottom: 40px;
}

.jackpot-container {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.9), rgba(10, 11, 18, 0.95));
  border: 1px solid var(--gold);
  box-shadow: 0 0 30px var(--gold-glow);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jackpot-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.jackpot-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.jackpot-tag {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.jackpot-matching-badge {
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-header);
  letter-spacing: 1px;
}

.jackpot-value {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px var(--gold-glow);
  margin-bottom: 10px;
}

.jackpot-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.jackpot-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.jackpot-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  box-shadow: 0 0 10px var(--gold);
  transition: width 0.5s ease;
}

/* Key Store Widget */
.key-store-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px 30px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

/* Pack Grid */
.vaults-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.pack-card {
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.8) 0%, rgba(10, 12, 20, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pack-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pack-card.premium {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.1);
}

.pack-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.pack-card[data-tier="basic"] .pack-glow { background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 65%); }
.pack-card[data-tier="silver"] .pack-glow { background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 65%); }
.pack-card[data-tier="gold"] .pack-glow { background: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 65%); }
.pack-card[data-tier="sovereign"] .pack-glow { background: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.15) 0%, transparent 65%); }

.pack-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pack-title {
  font-family: var(--font-header);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.odds-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
}

.odds-link:hover {
  color: #fff;
}

.pack-art {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vault-3d-scene {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-holo-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  animation: rotateClockwise 8s linear infinite;
}

.vault-dial-outer {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateCounterClockwise 5s linear infinite;
}

.vault-dial-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-dial-core {
  width: 24px;
  height: 24px;
  background: var(--text-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.pack-card[data-tier="basic"] .vault-dial-outer { border-color: var(--cyan); }
.pack-card[data-tier="basic"] .vault-dial-core { background: var(--cyan); box-shadow: 0 0 15px var(--cyan-glow); }
.pack-card[data-tier="silver"] .vault-dial-outer { border-color: var(--purple); }
.pack-card[data-tier="silver"] .vault-dial-core { background: var(--purple); box-shadow: 0 0 15px var(--purple-glow); }
.pack-card[data-tier="gold"] .vault-dial-outer { border-color: var(--gold); }
.pack-card[data-tier="gold"] .vault-dial-core { background: var(--gold); box-shadow: 0 0 15px var(--gold-glow); }
.pack-card[data-tier="sovereign"] .vault-dial-outer { border-color: var(--gold); border-width: 3px; }
.pack-card[data-tier="sovereign"] .vault-dial-core { background: #fff; box-shadow: 0 0 25px var(--gold); }

.pack-info {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.pack-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 48px;
}

.pack-potential {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.pack-action {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons style */
.action-btn, .buy-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  border: 1px solid transparent;
  color: #fff;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-btn:hover, .buy-btn:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.buy-btn.rip-free-btn {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.buy-btn.rip-free-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.buy-btn.rip-golden-btn {
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.buy-btn.rip-golden-btn:hover {
  background: rgba(217, 119, 6, 0.2);
  box-shadow: 0 0 15px var(--gold-glow);
}

.buy-btn.rip-burn-btn {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid #ff3366;
  color: #ff3366;
  margin-top: 10px;
}

.buy-btn.rip-burn-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

.vault-select {
  background: #0d1220;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 4px;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

/* Ledger & Tables */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.audit-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.audit-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.audit-table tr:last-child td {
  border-bottom: none;
}

.audit-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.val-success { color: #10b981; }
.val-failed { color: #ef4444; }

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #0f1424;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: scaleIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.modal-header h3 {
  font-family: var(--font-header);
  color: var(--gold);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.wallet-option-btn {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.wallet-option-btn.btn-phantom:hover {
  border-color: #9945FF;
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.2);
}

.wallet-option-btn.btn-metamask:hover {
  border-color: #F6851B;
  box-shadow: 0 0 10px rgba(246, 133, 27, 0.2);
}

/* Pack Rip Overlay Game Mode */
.rip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rip-phase {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.rip-btn {
  background: linear-gradient(135deg, var(--gold), var(--purple));
  color: #fff;
  border: none;
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 25px var(--gold-glow);
  letter-spacing: 2px;
  animation: buttonPulse 2s infinite;
}

/* Cards & Layout details */
.drama-card {
  backdrop-filter: blur(10px);
}

/* General Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px #10b981; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes rotateClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes buttonPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px var(--gold-glow); }
  50% { transform: scale(1.03); box-shadow: 0 0 35px var(--gold); }
  100% { transform: scale(1); box-shadow: 0 0 20px var(--gold-glow); }
}

.confetti-particle { position: fixed; top: -10px; width: 15px; height: 15px; z-index: 10000; animation: confetti-fall linear forwards; border-radius: 3px; }
@keyframes confetti-fall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
@keyframes epic-shake { 0%, 100% { transform: translateX(0) scale(1); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-15px) rotate(-3deg) scale(1.05); } 20%, 40%, 60%, 80% { transform: translateX(15px) rotate(3deg) scale(1.05); } }


.vaults-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 20px; }
.vault-card { 
  border: 1px solid rgba(255,255,255,0.1); 
  padding: 20px; 
  border-radius: 12px; 
  text-align: center; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  background: rgba(10, 15, 30, 0.7);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}
.vault-card:hover { transform: translateY(-5px); }

/* Neon Borders & Glows */
.basic { border-bottom: 3px solid var(--cyan); }
.basic:hover { box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15); border-color: var(--cyan); }

.silver { border-bottom: 3px solid #b4c6d4; }
.silver:hover { box-shadow: 0 10px 30px rgba(180, 198, 212, 0.15); border-color: #b4c6d4; }

.gold { border-bottom: 3px solid var(--gold); }
.gold:hover { box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2); border-color: var(--gold); }

.sovereign { 
  border: 1px solid var(--purple);
  border-bottom: 3px solid var(--purple);
  background: linear-gradient(180deg, rgba(168,85,247,0.05), rgba(10,15,30,0.9));
  animation: sovereign-glow 3s infinite alternate; 
}
.sovereign:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3); }

.vault-img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.05); }
@keyframes sovereign-glow { 0% { box-shadow: 0 0 15px rgba(168,85,247,0.1); } 100% { box-shadow: 0 0 35px rgba(168,85,247,0.3); } }
.multipliers { font-size: 0.8rem; color: var(--text-secondary); margin: 10px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Global Metrics Ticker */
.global-metrics-ticker {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 20px;
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(10px);
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ticker-item:hover { opacity: 0.8; }
.ticker-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
.ticker-val {
  font-family: 'Orbitron';
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: bold;
}
#global-jackpot-heat { color: #ff3366; }
#global-uyk-staked { color: var(--gold); }

/* Nav Sublabels */
.nav-sublabel {
  display: block;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: none;
  margin-top: 2px;
  letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nav-tab-btn.active .nav-sublabel { color: rgba(255,255,255,0.7); }


/* --- MOBILE OPTIMIZATION (OPTION C) --- */
.mock-wallet-panel { background: rgba(20,20,20,0.9); border: 1px solid var(--gold); padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 30px; font-family: 'Share Tech Mono', monospace; color: var(--gold); box-shadow: 0 0 15px rgba(255,215,0,0.1); }
.mock-wallet-primary { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.wallet-details-toggle { display: none; background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.mock-wallet-secondary { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,215,0,0.3); display: block; }
@media (max-width: 768px) {
  .wallet-details-toggle { display: inline-block; }
  .mock-wallet-secondary { display: none; }
  .mock-wallet-secondary.show { display: block; }
  /* Vault Carousel */
  .vaults-container { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 10px; gap: 15px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .vaults-container::-webkit-scrollbar { display: none; }
  .vault-card { min-width: 85vw; scroll-snap-align: center; flex: 0 0 auto; }
  /* Tighten Copy */
  .vault-card .odds { font-size: 0.75rem !important; margin: 5px 0; }
  /* Ledger Stacked Cards */
  .audit-table thead { display: none; }
  .audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: 100%; }
  .audit-table tr { margin-bottom: 15px; border: 1px solid rgba(0,240,255,0.2); border-radius: 8px; padding: 10px; background: rgba(0,20,30,0.5); }
  .audit-table td { text-align: right; padding-left: 50%; position: relative; border-bottom: none; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; }
  .audit-table td::before { font-weight: bold; color: var(--text-secondary); }
  .audit-table td:nth-child(1)::before { content: "Timestamp"; }
  .audit-table td:nth-child(2)::before { content: "Operator"; }
  .audit-table td:nth-child(3)::before { content: "Action"; }
  .audit-table td:nth-child(4)::before { content: "Status"; }
}
}

/* ═══ SLOT MACHINE UI ═══ */
.slot-container {
  width: 100%;
  max-width: 300px;
  height: 80px;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #0a0e17;
  border: 2px solid var(--border-color);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 15px rgba(255, 51, 102, 0.2);
}

.slot-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 15px 15px -10px rgba(0,0,0,0.8), inset 0 -15px 15px -10px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.slot-reel {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 2.5s cubic-bezier(0.15, 0.85, 0.35, 1);
  will-change: transform;
}

.slot-item {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron';
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.slot-item.double {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

.slot-item.burn {
  color: #ff3366;
  text-shadow: 0 0 10px #ff3366;
}

.slot-spin-blur {
  filter: blur(2px);
}

/* ═══ MULTI-TILE REVEAL UI ═══ */
.tile-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tile-card {
  width: 120px;
  height: 160px;
  perspective: 1000px;
  cursor: pointer;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border-radius: 8px;
}

.tile-card.flipped .tile-inner {
  transform: rotateY(180deg);
}

.tile-front, .tile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.tile-front {
  background: linear-gradient(135deg, #0f1424, #1a2035);
  border: 1px solid var(--border-color);
  color: var(--gold);
  font-family: 'Orbitron';
  font-weight: bold;
}

.tile-front::after {
  content: '?';
  font-size: 3rem;
  opacity: 0.2;
}

.tile-back {
  background: #111;
  border: 1px solid #444;
  transform: rotateY(180deg);
  color: #fff;
}

.tile-back.rarity-common { border-color: #aaa; box-shadow: 0 0 10px rgba(170,170,170,0.2); }
.tile-back.rarity-epic { border-color: #a855f7; box-shadow: 0 0 15px rgba(168,85,247,0.4); background: linear-gradient(180deg, rgba(168,85,247,0.1), transparent); }
.tile-back.rarity-jackpot { border-color: #ffd700; box-shadow: 0 0 20px rgba(255,215,0,0.5); background: linear-gradient(180deg, rgba(255,215,0,0.1), transparent); }

.tile-value {
  font-family: 'Orbitron';
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 10px;
}
.tile-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 5px;
  text-transform: uppercase;
}
.tile-icon {
  font-size: 1.8rem;
}

/* ═══ POST-RIP SUMMARY ═══ */
.post-rip-summary {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  text-align: left;
  animation: fadeIn 0.5s ease;
}

/* ═══ LAUNCHPAD GAMIFICATION ═══ */
.rookie-card {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}
.rookie-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}
.rookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rookie-tag {
  font-size: 0.65rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--cyan);
  text-transform: uppercase;
}
.rookie-tag.graduating {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  border-color: var(--gold);
}
.rookie-progress-container {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}
.rookie-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  width: 0%;
  transition: width 1s ease-out;
}
.rookie-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.rookie-forge-impact {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ═══ AFFILIATE DASHBOARD ═══ */
.affiliate-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-box {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.stat-box .stat-val {
  font-family: 'Orbitron';
  font-size: 1.8rem;
  color: #fff;
  margin-top: 10px;
}
.economics-bar-container {
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.economics-stacked-bar {
  display: flex;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}
.eco-slice.treasury { background: var(--purple); width: 50%; }
.eco-slice.affiliate { background: var(--gold); width: 30%; }
.eco-slice.ecosystem { background: var(--cyan); width: 20%; }

.eco-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: bold;
  color: var(--cyan);
}

@keyframes floatUpFade {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-50px); opacity: 0; }
}

.slot-payline {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 51, 102, 0.7);
  box-shadow: 0 0 15px #ff3366, 0 0 30px #ff3366;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.reforge-blur {
  filter: blur(2px) contrast(1.2);
  transition: filter 0.1s;
}

@keyframes slideDownBounce {
  0% { transform: translateY(-30px); opacity: 0; }
  60% { transform: translateY(5px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes neonFlashCommon {
  0%, 100% { background-color: transparent; box-shadow: none; }
  10% { background-color: rgba(68, 136, 255, 0.2); box-shadow: inset 0 0 10px rgba(68, 136, 255, 0.5); }
}

@keyframes neonFlashRare {
  0%, 100% { background-color: transparent; box-shadow: none; }
  10% { background-color: rgba(255, 51, 255, 0.2); box-shadow: inset 0 0 10px rgba(255, 51, 255, 0.5); }
}

@keyframes neonFlashEpic {
  0%, 100% { background-color: transparent; box-shadow: none; }
  10% { background-color: rgba(252, 122, 8, 0.2); box-shadow: inset 0 0 10px rgba(252, 122, 8, 0.5); }
}

@keyframes neonFlashJackpot {
  0%, 100% { background-color: transparent; box-shadow: none; }
  10% { background-color: rgba(255, 215, 0, 0.2); box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.5); }
}

.slide-down-bounce {
  animation: slideDownBounce 0.5s ease-out forwards;
}

.neon-flash-common { animation: neonFlashCommon 1s ease-out, slideDownBounce 0.5s ease-out forwards; }
.neon-flash-rare { animation: neonFlashRare 1s ease-out, slideDownBounce 0.5s ease-out forwards; }
.neon-flash-epic { animation: neonFlashEpic 1s ease-out, slideDownBounce 0.5s ease-out forwards; }
.neon-flash-jackpot { animation: neonFlashJackpot 1.5s ease-out, slideDownBounce 0.5s ease-out forwards; }

.current-user-row td {
  border-bottom: 1px solid rgba(0, 255, 0, 0.3) !important;
  background-color: rgba(0, 255, 0, 0.05);
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 51, 102, 0.95);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 99999;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.receipt-modal {
  font-family: 'Courier New', Courier, monospace;
}
.receipt-modal h2 {
  font-family: 'Orbitron', sans-serif;
}
