@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================
   CSS CUSTOM VARIABLES & RESET
   ========================================== */
:root {
  --bg-primary: #080c14;
  --bg-surface: #0f1524;
  --bg-surface-glass: rgba(15, 21, 36, 0.65);
  --bg-input: #151d30;
  
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  
  --accent-red: #f43f5e;
  --accent-red-glow: rgba(244, 63, 94, 0.2);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow-emerald: rgba(16, 185, 129, 0.4);
  --border-glow-gold: rgba(245, 158, 11, 0.4);
  
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  /* Tech background pattern */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1c263c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-section svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--accent-emerald-glow));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-suffix {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-left: -2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--accent-emerald);
  border-radius: 8px 8px 0 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-emerald);
}

.api-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-ring 1.8s infinite;
}

.btn-pro {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
  transition: var(--transition-smooth);
}

.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ==========================================
   APP LAYOUT / WRAPPERS
   ========================================== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

/* ==========================================
   PAGE: HOME / LANDING
   ========================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 80px 0;
}

.hero-info h1 {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-info h1 span {
  background: linear-gradient(135deg, var(--accent-emerald) 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-hover) 100%);
  color: #080c14;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-emerald-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

/* Glassmorphism Graphic Panel */
.hero-graphic {
  position: relative;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.graphic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.graphic-dot-group {
  display: flex;
  gap: 6px;
}

.graphic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.graphic-dot:nth-child(1) { background: #ef4444; }
.graphic-dot:nth-child(2) { background: #eab308; }
.graphic-dot:nth-child(3) { background: #22c55e; }

.graphic-tab {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

.floating-card-simulation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.sim-row:hover {
  background: rgba(16, 185, 129, 0.03);
  border-color: var(--accent-emerald-glow);
}

.sim-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-item-icon {
  width: 40px;
  height: 40px;
  background: #192338;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sim-item-name {
  font-weight: 600;
  font-size: 14px;
}

.sim-item-category {
  font-size: 12px;
  color: var(--text-muted);
}

.sim-metrics {
  text-align: right;
}

.sim-profit {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}

.sim-alert-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Ticker Section */
.ticker-section {
  background: #0b111e;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 60px;
  overflow: hidden;
  position: relative;
}

.ticker-wrapper {
  display: flex;
  white-space: nowrap;
  animation: ticker-animation 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 48px;
  font-size: 14px;
}

.ticker-item strong {
  color: var(--accent-gold);
}

.ticker-profit {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Features Grid */
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
}

.section-title span {
  color: var(--accent-emerald);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-emerald-glow);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Homepage Calculator Demo Widget */
.demo-calculator-section {
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 50%), var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 80px;
}

.calc-widget-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.input-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-value-badge {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-input);
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-emerald);
  transition: var(--transition-smooth);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

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

.risk-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.risk-btn.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.calc-outputs {
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-results-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.metric-highlight {
  margin-bottom: 24px;
}

.metric-lbl {
  font-size: 13px;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: 0 0 15px var(--accent-gold-glow);
}

.suggested-item-card {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.suggested-item-header {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.suggested-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.suggested-item-profit {
  font-size: 14px;
  color: var(--accent-emerald);
}

/* ==========================================
   PAGE: LIVE FLIPS & DATA TABLES
   ========================================== */
.flips-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.search-filter-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px 10px 42px;
  border-radius: 8px;
  width: 280px;
  outline: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.search-bar:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.table-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 8px;
}

.table-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.table-tab-btn.active {
  background: var(--bg-input);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.data-table-container {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: rgba(15, 21, 36, 0.8);
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.table-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-item-icon {
  width: 36px;
  height: 36px;
  background: #192338;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.table-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.table-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cell-numeric {
  font-family: var(--font-mono);
  font-weight: 500;
}

.cell-profit {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
}

.badge-rarity {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.rarity-legendary {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.rarity-epic {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.rarity-rare {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.rarity-uncommon {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-copy-command {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-copy-command:hover {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Flashing price indicators */
.price-update-up {
  animation: flash-green-text 1.5s ease-out;
}

.price-update-down {
  animation: flash-red-text 1.5s ease-out;
}

/* ==========================================
   PAGE: CRAFTING CHAIN SOLVER
   ========================================== */
.crafting-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.crafting-visual-box {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.craft-flow-diagram {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.craft-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.craft-node.main-output {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.03);
}

.craft-node-connection {
  width: 2px;
  height: 20px;
  background: var(--border-color);
  margin-left: 36px;
}

.crafting-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================
   PAGE: ALERTS CONFIGURATOR
   ========================================== */
.alerts-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.alert-config-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
}

.alert-item-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  width: 100%;
  transition: var(--transition-smooth);
}

.text-input:focus {
  border-color: var(--accent-emerald);
}

.alert-trigger-list {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
}

.alert-list-items {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-delete-alert {
  background: transparent;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-tester-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.btn-test-sound {
  background: var(--accent-gold);
  border: none;
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-test-sound:hover {
  background: var(--accent-gold-hover);
}

/* ==========================================
   PAGE: PRICING CARD MATRIX
   ========================================== */
.pricing-header {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 12px auto 0 auto;
}

.currency-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.toggle-switch-lbl {
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-input);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--accent-emerald);
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 400px);
  justify-content: center;
  gap: 32px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pricing-card.free-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.pro-card {
  border-color: var(--accent-gold-glow);
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.05);
}

.pricing-card.pro-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 50px rgba(245, 158, 11, 0.15);
}

.pro-badge {
  position: absolute;
  top: 24px;
  right: -36px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #000;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pricing-tier-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-tier-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 48px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-features-list li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-pricing-cta {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.free-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.free-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.pro-cta {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  border: none;
  color: #000;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.pro-cta:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  border-top: 1px solid var(--border-color);
  background: #06090e;
  padding: 48px 24px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

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

@keyframes ticker-animation {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes flash-green-text {
  0% {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
  100% {
    color: inherit;
    text-shadow: none;
  }
}

@keyframes flash-red-text {
  0% {
    color: #f43f5e;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
  }
  100% {
    color: inherit;
    text-shadow: none;
  }
}

/* ==========================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 36px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .calc-widget-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .crafting-container {
    grid-template-columns: 1fr;
  }
  
  .alerts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-info h1 {
    font-size: 42px;
  }
  
  .data-table-container {
    overflow-x: auto;
  }
  
  .data-table th, .data-table td {
    padding: 12px 16px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   MULTI-PAGE LAYOUT & LOGIN STYLES
   ========================================== */
.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.login-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.forgot-link {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.forgot-link:hover {
  text-decoration: underline;
  color: var(--accent-emerald-hover);
}

.social-login-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.social-divider::before, .social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.social-divider:not(:empty)::before {
  margin-right: .5em;
}

.social-divider:not(:empty)::after {
  margin-left: .5em;
}

.social-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1e293b;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-social:hover {
  background-color: #334155;
  border-color: var(--text-secondary);
}

.btn-social svg {
  width: 18px;
  height: 18px;
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent-emerald);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-message {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-message.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.auth-message.error {
  display: block;
  background-color: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--accent-red);
}

/* Ensure sections default to active/visible in multi-page environment */
.view-section {
  display: block !important;
}

/* ==========================================
   LIGHT MODE STYLES
   ========================================== */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --bg-input: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(15, 23, 42, 0.08);
  
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 40%),
    linear-gradient(rgba(15, 23, 42, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.005) 1px, transparent 1px);
}

body.light-theme header {
  background-color: rgba(248, 250, 252, 0.85);
}

body.light-theme .nav-link:hover, body.light-theme .nav-link.active {
  background-color: rgba(15, 23, 42, 0.04);
}

body.light-theme .feature-card, body.light-theme .suggested-item-card {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.light-theme .btn-social {
  background-color: #f1f5f9;
  color: var(--text-primary);
}

body.light-theme .btn-social:hover {
  background-color: #e2e8f0;
}

body.light-theme .btn-theme-toggle:hover {
  background: rgba(15, 23, 42, 0.04);
}

body.light-theme .alert-card {
  background-color: rgba(15, 23, 42, 0.02);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-theme-toggle svg {
  width: 18px;
  height: 18px;
}


