/* ========================================
   BlooketPro - Enhanced Stylesheet
   Bold, vibrant gaming theme with Poppins
   ======================================== */

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary palette */
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #fd79a8;
  --secondary-dark: #e84393;
  --accent: #00cec9;
  --accent-dark: #00b894;

  /* Backgrounds */
  --bg-body: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-alt: #16213e;
  --bg-hero: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 30%, #fd79a8 70%, #e84393 100%);
  --bg-section: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  --bg-nav: rgba(15,15,26,0.95);
  --bg-footer: linear-gradient(135deg, #0a0a15 0%, #0f0f1a 100%);

  /* Text */
  --text: #edf2f7;
  --text-light: #a0aec0;
  --text-muted: #4a5568;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border: #2d3748;
  --border-light: #1e2a3a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 25px rgba(108,92,231,0.4);
  --shadow-glow-pink: 0 0 25px rgba(253,121,168,0.3);

  /* Rarity colors */
  --rarity-common: #78909c;
  --rarity-uncommon: #4caf50;
  --rarity-rare: #2196f3;
  --rarity-epic: #9c27b0;
  --rarity-legendary: #ff9800;
  --rarity-chroma: #e91e63;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 70px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-body: #f0f2f8;
  --bg-card: #ffffff;
  --bg-card-alt: #f8f9fc;
  --bg-section: linear-gradient(135deg, #eef1f8 0%, #f0f2f8 100%);
  --bg-nav: rgba(255,255,255,0.95);
  --bg-footer: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #dfe6e9;
  --border-light: #eee;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(108,92,231,0.2);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  font-weight: 500;
}

strong, b {
  font-weight: 800;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  font-weight: 700;
}

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(108,92,231,0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.nav-brand i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
  background: rgba(108,92,231,0.12);
}

.nav-link.active {
  font-weight: 700;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-arrow {
  font-size: 0.65rem;
  transition: var(--transition);
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--primary-light);
  background: rgba(108,92,231,0.12);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Theme Toggle */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(108,92,231,0.15);
  color: var(--primary-light);
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid rgba(108,92,231,0.3);
}

.theme-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(30deg);
  box-shadow: var(--shadow-glow);
}

/* ---- Main Content ---- */
.main-content {
  padding-top: var(--nav-height);
  min-height: calc(100vh - 200px);
}

/* ---- Hero Section ---- */
.hero {
  background: var(--bg-hero);
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 18px;
  text-shadow: 0 3px 15px rgba(0,0,0,0.3);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  font-weight: 500;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.5);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(0,206,201,0.4);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,206,201,0.5);
  color: white;
}

.btn-pink {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(253,121,168,0.4);
}

.btn-pink:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(253,121,168,0.5);
  color: white;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(108,92,231,0.3);
}

.card-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
}

.card-header h2 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-header h3 {
  font-size: 1.15rem;
  color: var(--text);
}

/* ---- Section Styles ---- */
.section {
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ---- Grid Layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---- Feature Cards (Home Page) ---- */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(108,92,231,0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 22px;
  font-weight: 500;
  line-height: 1.6;
}

/* ---- Page Header ---- */
.page-header {
  background: var(--bg-hero);
  padding: 52px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.page-header p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* ---- Stats Cards on Home ---- */
.stat-home-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-home-value {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stat-home-label {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ---- Pack Preview Cards (Home) ---- */
.pack-preview-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pack-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: var(--transition);
}

.pack-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pack-preview-card:hover::before {
  height: 5px;
}

.pack-preview-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.7rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pack-preview-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pack-preview-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pack-preview-blooks {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pack-preview-blooks img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  object-fit: contain;
  padding: 2px;
}

/* ---- Calculator Page ---- */
.calc-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto 32px;
}

.calc-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.calc-step h3 {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.calc-step-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-step label {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Input Styles */
.input-styled {
  padding: 11px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
  min-width: 200px;
}

.input-styled:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
  outline: none;
}

.select-styled {
  padding: 11px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  min-width: 200px;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c5ce7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.select-styled:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
  outline: none;
}

/* Token Slider */
.token-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.token-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  outline: none;
}

.token-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.token-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(108,92,231,0.5);
}

.token-display {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  min-width: 80px;
  text-align: center;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 14px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Action Buttons Row */
.calc-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.calc-actions .btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 1.15rem;
  font-weight: 800;
}

/* Results Area */
.results-area {
  max-width: 900px;
  margin: 0 auto;
}

.results-hidden {
  display: none;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.profit .stat-value {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-card.loss .stat-value {
  background: linear-gradient(135deg, #f44336, #c62828);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Results Table */
.results-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.results-table tr:hover {
  background: rgba(108,92,231,0.05);
}

/* Rarity Badge */
.rarity-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rarity-common { background: var(--rarity-common); }
.rarity-uncommon { background: var(--rarity-uncommon); }
.rarity-rare { background: var(--rarity-rare); }
.rarity-epic { background: var(--rarity-epic); }
.rarity-legendary { background: var(--rarity-legendary); }
.rarity-chroma { background: linear-gradient(135deg, #e91e63, #ff5722, #e91e63); }

/* ---- Simulator Animation ---- */
.sim-pack-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.sim-pack {
  width: 180px;
  height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.sim-pack:hover {
  transform: scale(1.05);
}

.sim-pack.opening {
  animation: packShake 0.5s ease-in-out;
}

.sim-pack-inner {
  text-align: center;
  color: white;
}

.sim-pack-inner i {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.sim-pack-inner span {
  font-weight: 800;
  font-size: 1.1rem;
}

@keyframes packShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-10px) rotate(-3deg); }
  40% { transform: translateX(10px) rotate(3deg); }
  60% { transform: translateX(-8px) rotate(-2deg); }
  80% { transform: translateX(8px) rotate(2deg); }
}

/* Sim Result Reveal */
.sim-reveal {
  text-align: center;
  padding: 24px;
  display: none;
}

.sim-reveal.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-blook-result {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 44px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

.sim-blook-result.legendary {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 30px rgba(255,152,0,0.3);
}

.sim-blook-result.chroma {
  border-color: var(--rarity-chroma);
  box-shadow: 0 0 30px rgba(233,30,99,0.3);
  animation: chromaGlow 2s ease-in-out infinite alternate;
}

@keyframes chromaGlow {
  from { box-shadow: 0 0 20px rgba(233,30,99,0.3); }
  to { box-shadow: 0 0 40px rgba(233,30,99,0.5), 0 0 60px rgba(255,87,34,0.2); }
}

.sim-blook-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.sim-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.sim-history-item {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.sim-history-item:hover {
  transform: scale(1.1);
}

.sim-history-item .tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg-body);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  font-weight: 700;
}

.sim-history-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---- Value Guide ---- */
.vg-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.vg-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-card);
  color: var(--text-light);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.vg-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.vg-pack-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.vg-pack-card:hover,
.vg-pack-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.vg-pack-card.active {
  background: rgba(108,92,231,0.08);
}

.vg-pack-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.vg-pack-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

/* Value Guide Detail Panel */
.vg-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.vg-blooks-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.vg-blook-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.vg-blook-row:hover,
.vg-blook-row.active {
  background: rgba(108,92,231,0.08);
}

.vg-blook-row:last-child {
  border-bottom: none;
}

.vg-blook-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  padding: 3px;
  overflow: hidden;
}

.vg-blook-icon .blook-img {
  width: 100% !important;
  height: 100% !important;
}

.vg-blook-info {
  flex: 1;
}

.vg-blook-info h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.vg-blook-info .chance {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Detail Panel */
.vg-info-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  padding: 26px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  box-shadow: var(--shadow-glow);
}

.vg-info-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
}

.vg-info-header h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 8px;
}

.vg-info-blooks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 14px 0;
}

.vg-info-blooks-grid .mini-blook {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-alt);
  padding: 2px;
}

.vg-info-blooks-grid .mini-blook .blook-img {
  width: 100% !important;
  height: 100% !important;
}

.vg-info-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vg-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.vg-stat-row .label {
  color: var(--text-light);
  font-weight: 600;
}

.vg-stat-row .value {
  font-weight: 800;
  color: var(--text);
}

.vg-stat-row .value .token-icon {
  color: var(--rarity-legendary);
}

.vg-selected-blook {
  text-align: center;
  padding: 22px 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
}

.vg-selected-blook .blook-img {
  width: 90px !important;
  height: 90px !important;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 6px;
}

.vg-selected-blook h4 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-top: 10px;
}

/* ---- Guess the Blook Game ---- */
.guess-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.guess-game {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 24px;
  align-items: start;
}

/* Left Panel - Difficulty */
.guess-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.guess-panel h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.difficulty-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diff-btn {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  transition: var(--transition);
  text-transform: capitalize;
}

.diff-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.diff-btn.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3), var(--shadow-md);
}

.diff-easy { background: linear-gradient(135deg, #4caf50, #388e3c); }
.diff-medium { background: linear-gradient(135deg, #ff9800, #e65100); }
.diff-hard { background: linear-gradient(135deg, #f44336, #c62828); }
.diff-expert { background: linear-gradient(135deg, #9c27b0, #6a1b9a); }

/* Seed System */
.seed-section {
  margin-top: 20px;
}

.seed-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.seed-input-wrap {
  display: flex;
  gap: 6px;
}

.seed-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card-alt);
  color: var(--text);
}

.seed-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
}

.seed-btn.apply { background: var(--accent); }
.seed-btn.reset { background: var(--secondary); }

/* Center - Game Area */
.guess-main {
  text-align: center;
}

.blook-preview {
  width: 270px;
  height: 270px;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blook-preview svg,
.blook-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}

.blook-preview.blurred svg,
.blook-preview.blurred img {
  filter: blur(20px);
}

.blook-preview.partial svg,
.blook-preview.partial img {
  filter: blur(10px);
}

.blook-preview.hard-blur svg,
.blook-preview.hard-blur img {
  filter: blur(30px) saturate(0.5);
}

.blook-preview.expert-blur svg,
.blook-preview.expert-blur img {
  filter: blur(40px) saturate(0.3) brightness(0.8);
}

.blook-preview.revealed svg,
.blook-preview.revealed img {
  filter: none;
  transition: filter 0.5s ease;
}

/* Answer Input */
.guess-input-wrap {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.guess-input-wrap input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}

.guess-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
  outline: none;
}

.guess-submit-btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
}

.guess-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,206,201,0.4);
}

/* Autocomplete */
.autocomplete-list {
  position: absolute;
  left: 0;
  right: 60px;
  top: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: var(--shadow-md);
}

.autocomplete-list.show {
  display: block;
}

.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-item:hover {
  background: rgba(108,92,231,0.1);
  color: var(--primary-light);
}

/* Feedback */
.guess-feedback {
  margin-top: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  display: none;
}

.guess-feedback.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.guess-feedback.correct {
  background: rgba(76,175,80,0.15);
  color: #66bb6a;
  border: 2px solid #4caf50;
}

.guess-feedback.wrong {
  background: rgba(244,67,54,0.15);
  color: #ef5350;
  border: 2px solid #f44336;
}

/* Right Panel - Stats */
.guess-stats h3 {
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.guess-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.guess-stat-item:last-child {
  border-bottom: none;
}

.guess-stat-item .stat-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.guess-stat-item .stat-val {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary-light);
}

.guess-elo {
  margin-top: 16px;
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(253,121,168,0.1));
  border-radius: var(--radius-md);
  border: 1px solid rgba(108,92,231,0.2);
}

.guess-elo .elo-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
}

.guess-elo .elo-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Previous Blook */
.prev-blook-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--border-light);
}

.prev-blook-section h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.prev-blook-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
}

.prev-blook-display span {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- About & Privacy Pages ---- */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-page h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.content-page h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.content-page p {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 500;
}

.content-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-page li {
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 500;
}

.content-page a {
  color: var(--primary-light);
  text-decoration: underline;
}

.disclaimer-box {
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(253,121,168,0.1));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}

.disclaimer-box h3 {
  margin-top: 0;
  color: var(--secondary);
}

.disclaimer-box p {
  color: var(--text);
}

/* Tool Cards on About Page */
.tools-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.tool-showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.tool-showcase-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tool-showcase-card i {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 10px;
  display: block;
}

.tool-showcase-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tool-showcase-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-footer);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.7);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ---- Scroll to Top ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---- Sound Toggle ---- */
.sound-toggle-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--primary-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  z-index: 999;
  transition: var(--transition);
}

.sound-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.sound-toggle-btn.muted {
  color: var(--text-muted);
}

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 44px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

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

.modal h2 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.modal p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 500;
}

/* ---- Animations ---- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  background-size: 200% auto;
  animation: shimmer 2s infinite;
}

/* ---- Loading Spinner ---- */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
  .vg-detail {
    grid-template-columns: 1fr;
  }
  
  .vg-info-panel {
    position: static;
  }
  
  .guess-game {
    grid-template-columns: 1fr;
  }
  
  .guess-panel,
  .guess-stats-panel {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow-y: auto;
    align-items: stretch;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
  }
  
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
  
  .nav-theme-toggle {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  
  /* Hero */
  .hero {
    padding: 50px 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Grids */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .tools-showcase {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  /* Calculator */
  .calc-actions {
    flex-direction: column;
  }
  
  .results-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Tables */
  .results-table-wrap {
    overflow-x: auto;
  }
  
  .results-table {
    min-width: 600px;
  }
  
  .page-header h1 {
    font-size: 1.9rem;
  }
  
  /* Value Guide */
  .vg-packs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .results-summary {
    grid-template-columns: 1fr;
  }
  
  .blook-preview {
    width: 210px;
    height: 210px;
  }
  
  .guess-input-wrap {
    flex-direction: column;
  }
  
  .vg-packs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-step-content {
    flex-direction: column;
  }
  
  .token-slider-wrap {
    max-width: 100%;
  }
}

/* ---- Welcome Modal specific ---- */
.welcome-modal h2 {
  font-size: 2.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
}

/* ---- Sim batch results ---- */
.sim-batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.sim-batch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  text-align: center;
  transition: var(--transition);
  animation: fadeInUp 0.3s ease backwards;
}

.sim-batch-item .blook-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* Relative position for autocomplete */
.guess-input-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

/* Token icon */
.token-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ffa726, #e65100);
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
}

.token-icon::after {
  content: 'T';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  font-weight: 900;
}

/* Blook Image Styles */
.blook-img {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 6px;
}

/* How it works section */
.how-it-works-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.how-it-works-card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 500;
}

.how-it-works-card p:last-child {
  margin-bottom: 0;
}
