/* ===== MODERN CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== COLOR THEMES ===== */
:root {
  /* Spacing & Typography (unchanged across themes) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Theme: Purple Haze (Fixed) */
[data-theme="purple"], body {
  --bg-primary: #1a0b2e;
  --bg-secondary: #2d1b4e;
  --bg-tertiary: #3d2a5c;
  --surface: rgba(167, 139, 250, 0.05);
  --surface-hover: rgba(167, 139, 250, 0.1);
  --border: rgba(167, 139, 250, 0.2);
  --text-primary: #faf5ff;
  --text-secondary: #e9d5ff;
  --text-muted: #c4b5fd;
  --accent-primary: #a855f7;
  --accent-secondary: #ec4899;
  --accent-tertiary: #8b5cf6;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --gradient-hero: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7e22ce 100%);
  --gradient-card: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.4);
  --bg-radial-1: rgba(168, 85, 247, 0.15);
  --bg-radial-2: rgba(236, 72, 153, 0.15);
  --bg-radial-3: rgba(139, 92, 246, 0.1);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, var(--bg-radial-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--bg-radial-2) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--bg-radial-3) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  transition: all 0.5s ease;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* ===== MODERN HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: var(--space-xl) 0 var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  animation: slideInDown 0.6s ease;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-primary); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #ffffff 0%, #a8b3cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  animation: slideInUp 1s ease;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: scale(1.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* ===== STATS SECTION ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  padding: var(--space-xl) 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== TRACKER SECTION ===== */
.tracker-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  position: relative;
  overflow: hidden;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.tracker-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tracker-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.countdown-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.countdown-time {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

/* ===== STOCK GRID ===== */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.item-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: var(--space-xs);
  transition: transform 0.3s ease;
}

.item-card:hover .item-image {
  transform: scale(1.05);
}

.item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-rarity {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-xs);
}

/* Rarity Colors */
.item-rarity.rarity-common, .rarity-common { 
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af; 
}

.item-rarity.rarity-uncommon, .rarity-uncommon { 
  background: rgba(16, 185, 129, 0.2);
  color: #10b981; 
}

.item-rarity.rarity-rare, .rarity-rare { 
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6; 
}

.item-rarity.rarity-epic, .rarity-epic { 
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7; 
}

.item-rarity.rarity-legendary, .rarity-legendary { 
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b; 
}

.item-rarity.rarity-mythic, .rarity-mythic { 
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899; 
}

.item-rarity.rarity-godly, .rarity-godly {
  background: linear-gradient(90deg, #ff0000, #ffa500, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.item-rarity.rarity-secret, .rarity-secret { 
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.item-info {
  margin-top: auto;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border);
}

.item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-primary);
  font-family: var(--font-display);
}

.item-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stock-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stock-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== CONTENT SECTION ===== */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-md) 0;
  color: var(--text-primary);
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.content-section li {
  color: var(--text-secondary);
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  position: relative;
  line-height: 1.8;
}

.content-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.content-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== PREDICTIONS SECTION ===== */
.predictions-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.predictions-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.predictions-description {
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl) auto;
  line-height: 1.6;
}

.predictions-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.predictions-controls label {
  color: var(--text-primary);
  font-weight: 500;
}

#timezone-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  padding-right: 2.5rem; /* Make space for the custom arrow */
  min-width: 280px; /* Wider for readability */
  max-width: 100%;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0); /* avoid iOS oddities */
}

#timezone-select:hover {
  border-color: var(--accent-primary);
  background-color: var(--surface-hover);
}

#timezone-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

#timezone-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.prediction-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prediction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prediction-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(236, 72, 153, 0.4);
}

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

.prediction-item-image {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.prediction-item-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.prediction-item-rarity {
  font-size: 0.8rem;
  text-transform: capitalize;
  margin-bottom: var(--space-md);
}

.prediction-time-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.prediction-time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.prediction-time-item span:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.prediction-time-item span:last-child {
  color: var(--accent-warning);
  font-weight: 600;
}

.prediction-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--space-md);
  color: var(--accent-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.prediction-discord-link:hover {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .predictions-section {
    padding: var(--space-md);
    margin: var(--space-md) 0;
  }

  .predictions-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
  }

  .predictions-description {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
  }

  .predictions-controls {
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  #timezone-select {
    width: 100%;
    text-align: left;
    padding-left: var(--space-md);
    padding-right: 2.5rem;
    min-width: 0;
  }

  .predictions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.faq-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-primary);
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.faq-question:hover {
  background: var(--surface);
}

.faq-arrow {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-md);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ===== LAST SEEN TABLE ===== */
.lastseen-section {
  margin: var(--space-xl) 0;
}

.lastseen-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.lastseen-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lastseen-table th,
.lastseen-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.lastseen-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.lastseen-table td {
  color: var(--text-secondary);
}

.lastseen-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.lastseen-badge.in {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-primary);
}

.lastseen-badge.out {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-warning);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
  text-align: center;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-lg) 0 var(--space-md) 0;
  }

  .hero-content {
    padding-bottom: var(--space-sm);
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px var(--space-sm);
    margin-bottom: var(--space-sm);
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: row;
    gap: var(--space-xs);
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }

  .btn span {
    display: none;
  }

  .btn::before {
    display: none;
  }

  .header {
    padding: var(--space-sm) 0;
  }

  .header.scrolled {
    padding: var(--space-xs) 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  .nav {
    gap: var(--space-sm);
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 6px var(--space-xs);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    margin: var(--space-md) 0;
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .tracker-section {
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
  }

  .tracker-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
  }

  .tracker-title {
    font-size: 1.25rem;
  }

  .tracker-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .countdown-card {
    flex: 1;
  }

  .tracker-actions .btn {
    flex: 0 0 auto;
    padding: var(--space-sm);
    min-width: 48px;
  }

  .tracker-actions .btn svg {
    width: 20px;
    height: 20px;
  }

  .tracker-actions .btn span {
    display: none;
  }

  .stock-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
  }

  .item-card {
    padding: var(--space-xs);
  }

  .item-name {
    font-size: 0.8rem;
    min-height: auto;
  }

  .item-rarity {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .price-value {
    font-size: 0.85rem;
  }

  .stock-value {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .section-divider {
    font-size: 1.25rem;
    margin: var(--space-lg) 0 var(--space-md) 0;
  }

  .content-section {
    padding: var(--space-md);
  }

  .content-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
  }

  .content-section h3 {
    font-size: 1.25rem;
    margin: var(--space-md) 0 var(--space-sm) 0;
  }

  .faq-section {
    padding: var(--space-md);
  }

  .faq-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
  }

  .faq-question {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }

  .lastseen-section {
    margin: var(--space-md) 0;
  }

  .lastseen-title {
    font-size: 1.25rem;
  }

  .lastseen-table {
    font-size: 0.8rem;
  }

  .lastseen-table th,
  .lastseen-table td {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--surface-hover);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-button {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex-grow: 1;
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.modal-section {
  margin-bottom: var(--space-xl);
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.alert-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.alert-item-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-primary);
}

.alert-item-card.selected {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.alert-item-card.selected .item-name,
.alert-item-card.selected .item-rarity {
  color: white;
}

.alert-item-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: var(--space-xs);
}

.alert-item-card .item-name {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.alert-item-card .item-rarity {
  font-size: 0.65rem;
  text-transform: capitalize;
  color: var(--text-secondary);
}

.modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 100%;
    margin: var(--space-md);
  }
  
  .modal-title {
    font-size: 1.5rem;
  }

  .modal-header,
  .modal-footer {
    padding: var(--space-sm) var(--space-md);
  }

  .modal-body {
    padding: var(--space-md);
  }

  .modal-section h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
  }

  .alerts-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: var(--space-xs);
  }

  .alert-item-card {
    min-height: 100px;
    padding: var(--space-xs);
  }

  .alert-item-card img {
    width: 50px;
    height: 50px;
  }

  .alert-item-card .item-name {
    font-size: 0.75rem;
  }

  .alert-item-card .item-rarity {
    font-size: 0.6rem;
  }
}
