/* ============================================
   CrackProSignals — Premium Design System
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  /* Colors */
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: #0f0f1a;
  --bg-card-hover: #14142a;
  --bg-glass: rgba(10, 10, 18, 0.85);
  --bg-input: #12121f;

  --gold: #f0b90b;
  --gold-dim: #c49a09;
  --gold-glow: rgba(240, 185, 11, 0.15);
  --gold-glow-strong: rgba(240, 185, 11, 0.3);

  --green: #00ffa3;
  --green-dim: #00c853;
  --green-glow: rgba(0, 255, 163, 0.15);
  --green-neon: #00ffa3;

  --red: #ff3d71;
  --red-dim: #d50000;
  --red-glow: rgba(255, 61, 113, 0.15);
  --red-neon: #ff3d71;

  --blue: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.2);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(240, 185, 11, 0.3);

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --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-gold: 0 4px 30px rgba(240, 185, 11, 0.2);
  --shadow-green: 0 4px 20px rgba(0, 230, 118, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Premium Depth Colors */
  --bg-deep: #05070a;
  --bg-surface: #0a0c14;
}

/* ---- Glassmorphism Utility ---- */
.glass {
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass:hover {
  border-color: rgba(240, 185, 11, 0.3);
  box-shadow: 0 8px 32px 0 rgba(240, 185, 11, 0.1);
}

/* ---- Animations ---- */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.1),
    transparent
  );
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--gold-dim);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* ---- Glassmorphism Card ---- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: #D4AF37;
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: #c49b3c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-success {
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  color: #000;
  box-shadow: var(--shadow-green);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---- Inputs ---- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.input-field::placeholder {
  color: var(--text-muted);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 8, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.2));
}

.logo-img.small {
  width: 32px;
  height: 32px;
}

.navbar-brand .logo-icon, .sidebar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.7; transform: translateX(-50%) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold), #ffd54f, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s ease-in-out infinite;
}

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

.pulse-dot-live {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 163, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); }
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  animation: fadeInUp 1.4s ease;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== LIVE SIGNAL PREVIEW ===== */
.signal-preview {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* ===== SIGNAL CARD ===== */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.signal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.signal-card.call::before {
  background: linear-gradient(90deg, var(--green), transparent);
}

.signal-card.put::before {
  background: linear-gradient(90deg, var(--red), transparent);
}

.signal-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.signal-card .signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.signal-card .signal-pair {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.signal-card .signal-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.signal-card .signal-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-card .signal-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.signal-card .signal-direction.call {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.signal-card .signal-direction.put {
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.signal-card .signal-timeframe {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-full);
}

.signal-card .signal-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-result .result-badge {
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-badge.win {
  background: var(--green-glow);
  color: var(--green);
}

.result-badge.loss {
  background: var(--red-glow);
  color: var(--red);
}

.result-badge.pending {
  background: var(--gold-glow);
  color: var(--gold);
  animation: pulse 2s infinite;
}

/* Signal card entry animation */
.signal-card.new-signal {
  animation: signalSlideIn 0.5s ease;
}

@keyframes signalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 80px 0;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-gold);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #ffd54f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', monospace;
}

.stat-card .stat-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 100px 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 0 40px rgba(240, 185, 11, 0.15);
  transform: scale(1.05);
  z-index: 2;
  background: linear-gradient(180deg, #121220 0%, #0f0f1a 100%);
}

.pricing-card.featured::after {
  content: '⭐ MÁS POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #000;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pricing-card .plan-name {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-card .plan-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.pricing-card .plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .plan-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.pricing-card .plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card .plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card .plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 0.9rem;
}

.testimonial-card .author-info .author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card .author-info .author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
  display: block;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-glass);
  border-right: 1px solid var(--border);
  padding: 0;
  position: fixed;
  width: 260px;
  height: 100vh;
  overflow: hidden;
  z-index: 1000;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  flex-direction: column;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.collapsed .brand-text {
  display: none;
}

.sidebar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: black;
  box-shadow: 0 0 15px var(--gold-glow);
  flex-shrink: 0;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.05);
  color: var(--gold);
}

.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

.sidebar-nav {
  list-style: none;
  padding: 0 12px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
  overflow: hidden;
}

.sidebar-nav li a:hover {
  color: white;
  background: rgba(255,255,255,0.03);
}

.sidebar-nav li a.active {
  background: var(--gold-glow);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding-left: 13px;
}

.collapsed .nav-text {
  display: none;
}

.sidebar-nav li a .nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.sidebar-nav li a:hover .nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px var(--gold));
}

.dashboard-main {
  margin-left: 260px;
  padding: 32px 40px;
  min-height: 100vh;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 40px 40px;
}

.collapsed + .dashboard-main {
  margin-left: 80px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  animation: slide-down 0.5s ease-out;
}

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

.dashboard-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Radar Pulse Live Indicator */
.radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--green-glow);
  border-radius: var(--radius-lg);
  color: var(--green-neon);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: 1px solid rgba(0, 255, 163, 0.2);
}

.radar-container {
  position: relative;
  width: 14px;
  height: 14px;
}

.radar-dot {
  width: 100%;
  height: 100%;
  background: var(--green-neon);
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
}

.radar-pulse {
  width: 100%;
  height: 100%;
  background: var(--green-neon);
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  animation: radar-grow 2s linear infinite;
  opacity: 0.5;
}

.radar-pulse:nth-child(3) { animation-delay: 1s; }

@keyframes radar-grow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(4); opacity: 0; }
}

/* Dashboard stats bar */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.1;
  transition: opacity 0.3s;
}

.dash-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.dash-stat-card:hover::before {
  opacity: 0.5;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px currentColor);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.dash-stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.dash-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-top: 4px;
}

.pulse-glow {
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(255, 165, 0, 0.05); }
    to { box-shadow: 0 0 25px rgba(255, 165, 0, 0.15); border-color: rgba(255, 165, 0, 0.2); }
}

/* Signals list in dashboard */
.signals-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.signals-container .signals-title {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signals-container .signals-title h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.signals-list {
  max-height: 600px;
  overflow-y: auto;
}

/* ===== ELITE TRADING HUB (v2) ===== */
.signals-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 24px;
}

.signal-row {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 !important;
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  border-left: 4px solid var(--text-muted);
}

.signal-row.call { border-left-color: var(--green-neon); }
.signal-row.put { border-left-color: var(--red-neon); }

.signal-row::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

.signal-row:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.signal-row.call:hover { box-shadow: 0 8px 20px var(--green-glow); }
.signal-row.put:hover { box-shadow: 0 8px 20px var(--red-glow); }

.signal-card-header {
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.signal-card-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.signal-card-pair {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}

.signal-card-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.signal-card-direction.call { background: var(--green-glow); color: var(--green-neon); border: 1px solid rgba(0, 255, 163, 0.2); }
.signal-card-direction.put { background: var(--red-glow); color: var(--red-neon); border: 1px solid rgba(255, 61, 113, 0.2); }

.signal-center-clock {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signal-center-clock .time-value {
  font-size: 2.4rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  color: white;
  line-height: 1;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.signal-center-clock .time-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.entry-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  height: 20px;
  margin-top: 5px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.entry-timer.active {
  opacity: 1;
}

.entry-timer.urgency {
  color: var(--gold);
  animation: timerPulse 0.5s ease infinite alternate;
}

.entry-timer.critical {
  color: var(--gold);
  font-size: 1.1rem;
  text-shadow: 0 0 10px var(--gold-glow-strong);
}

@keyframes timerPulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; }
}

.signal-card-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.signal-card-footer {
  padding: 12px 20px;
  background: rgba(0,0,0,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Status Badges */
.status-badge-elite {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge-elite.win { background: var(--green-neon); color: black; box-shadow: 0 0 15px var(--green-glow); }
.status-badge-elite.loss { background: var(--red-neon); color: white; box-shadow: 0 0 15px var(--red-glow); }
.status-badge-elite.pending { 
  background: var(--gold); 
  color: black; 
  animation: pulse-gold 2s infinite; 
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(240, 185, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0); }
}

/* Scanline Effect */
.signal-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: scanline 3s linear infinite;
  z-index: 2;
}

@keyframes scanline {
  0% { top: 0; }
  100% { top: 100%; }
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.auth-card .auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 8px;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.auth-card .auth-logo:hover {
  opacity: 0.8;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.auth-card .auth-form .btn {
  margin-top: 8px;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s ease;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-exit {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100px); }
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 16px;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .signals-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .signal-row {
    grid-template-columns: 1fr 80px 80px;
  }

  .signal-row .pair-date,
  .signal-row .signal-timeframe {
    display: none;
  }
}

/* ===== ACADEMY ===== */
/* Modal System */
.dashboard-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  animation: modalEnter 0.3s ease-out;
}
@keyframes modalEnter { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Sidebar Footer & User Card */
.sidebar-footer {
  margin-top: auto;
  padding: 20px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-id-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  transition: background 0.3s;
}

.collapsed .user-id-card {
  padding: 12px 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--gold-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
}

.collapsed .user-details {
  display: none;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

.user-plan {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.logout-link:hover {
  color: var(--red-neon);
}

.collapsed .logout-link .nav-text {
  display: none;
}

/* Academy Cards Enhancements */
.lesson-card { cursor: pointer; transition: all 0.3s ease; }
.lesson-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(255,165,0,0.2); }
.lesson-card h3 { margin: 10px 0 5px; font-size: 1.1rem; }
.lesson-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

/* Admin Editor Styling & Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.admin-table th {
  text-align: left;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.admin-table tr:hover {
  background: rgba(255,255,255,0.01);
}

.admin-lesson-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 100px;
  gap: 15px;
  align-items: start;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all 0.3s;
}

.admin-lesson-row:hover {
  border-color: var(--gold-glow-strong);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.lesson-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.lesson-card .lesson-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.lesson-card .lesson-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 8px;
  background: var(--gold-glow);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
}

.lesson-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.lesson-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lesson-card .read-more {
  margin-top: 10px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== PAYMENT MODAL & SQUARE SDK ===== */
.payment-modal {
  max-width: 480px !important;
}

#payment-form {
  padding: 10px 0;
}

#card-container {
  min-height: 120px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#card-container.sq-card-focused {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.2);
}

/* Wallet Buttons */
#google-pay-button, #apple-pay-button {
  width: 100%;
  height: 48px;
  margin-bottom: 15px;
}

.payment-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.payment-separator:not(:empty)::before { margin-right: 1em; }
.payment-separator:not(:empty)::after { margin-left: 1em; }

/* Payment Status */
#payment-status-container {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
#payment-status-container.success { background: rgba(0, 255, 163, 0.1); color: var(--green-neon); display: block; }
#payment-status-container.error { background: rgba(255, 61, 113, 0.1); color: var(--red-neon); display: block; }

/* Confetti Layer */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3000;
}

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

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
/* Trust Signals */
.trust-signals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.trust-signals svg {
  display: block;
}

.trust-signals span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-left: 5px;
}

/* Modal Separator Refining */
.payment-separator {
  margin: 25px 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-separator::before,
.payment-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

#google-pay-button {
  min-height: 48px;
  margin-bottom: 5px;
}

#apple-pay-button {
  min-height: 48px;
  margin-bottom: 5px;
}

/* Card Container Premium Styling */
#card-container {
  min-height: 50px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

#card-container:focus-within {
  border-color: #D4AF37;
  box-shadow: 0 0 0 1px #D4AF37, 0 0 15px rgba(212, 175, 55, 0.3);
  background: #1e1e35;
}

#card-container.is-ready {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-loading-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 1px;
  pointer-events: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 0.3; }
}

/* ---- History Panel Cleanup & Style ---- */
.history-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-box input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    width: 300px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--gold);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.glass-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
}

.glass-select option {
    background: #1a1a2e;
    color: white;
}

.history-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.history-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: white;
}

.history-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.row-win { color: var(--green-neon) !important; font-weight: 800; }
.row-loss { color: var(--red-neon) !important; font-weight: 800; }

.hist-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.hist-badge.win { background: rgba(0, 255, 163, 0.1); color: var(--green-neon); border: 1px solid rgba(0, 255, 163, 0.2); }
.hist-badge.loss { background: rgba(255, 61, 113, 0.1); color: var(--red-neon); border: 1px solid rgba(255, 61, 113, 0.2); }

@media (max-width: 768px) {
    .history-toolbar { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
}
/* ---- Charts & Stats Hub ---- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.chart-container h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.canvas-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.ranking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: black;
    font-weight: 800;
    font-size: 0.7rem;
    margin-right: 10px;
}

.row-top { 
    background: rgba(212, 175, 55, 0.05) !important;
}

.trend-up { color: var(--green-neon); font-size: 0.8rem; margin-right: 4px; }
.trend-down { color: var(--red-neon); font-size: 0.8rem; margin-right: 4px; }

/* ---- Account & Profile View ---- */
.account-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.profile-main-card {
    position: sticky;
    top: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: black;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    border: 5px solid rgba(255,255,255,0.1);
}

.profile-badge {
    background: var(--gold-glow);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: inline-block;
    margin-top: -10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.p-stat {
    text-align: center;
}

.p-stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.p-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Subscription Center ---- */
.pricing-grid-dash {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.pricing-card-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pricing-card-glass:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pricing-card-glass.active {
    border: 2px solid var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.02);
}

.p-tag {
    position: absolute;
    top: 25px;
    right: -35px;
    background: var(--gold);
    color: black;
    padding: 6px 45px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.p-tag.gray { background: #4b5563; color: white; }
.p-tag.blue { background: #3b82f6; color: white; }

.p-title { font-size: 1.4rem; margin-bottom: 12px; font-weight: 700; }
.p-price { font-size: 2.8rem; font-weight: 800; margin-bottom: 25px; font-family: 'Outfit', sans-serif; color: white; }
.p-price span { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; }

.p-features {
    list-style: none;
    margin-bottom: 35px;
    text-align: left;
    display: inline-block;
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.sub-footer-trust {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

@media (max-width: 1000px) {
    .account-grid { grid-template-columns: 1fr; }
    .sub-footer-trust { grid-template-columns: 1fr; gap: 30px; }
}
