:root {
  /* GLOBAL THEME - NOW LIGHT BY DEFAULT FOR LANDING PAGE */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;

  /* Surfaces - Clean Light Cards */
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-hover: rgba(241, 245, 249, 1);

  --color-primary: #3B82F6;
  /* Indigo/Blue for better readability on white */
  --color-primary-hover: #2563EB;

  --color-accent: #10B981;
  --color-danger: #EF4444;

  --color-text: #0F172A;
  /* Slate 900 for high contrast */
  --color-text-muted: #64748B;
  --color-border: rgba(0, 0, 0, 0.08);

  /* Gradients - Updated for Light mode */
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  --gradient-dark: radial-gradient(circle at top right, #F8FAFC 0%, #FFFFFF 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);

  /* Shadows & Depth - Deeper for light backgrounds */
  --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.1);

  /* Glass Variables */
  --glass-blur: blur(24px);
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);

  /* Layout Constants */
  --header-height: 80px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container-width: 1200px;

  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- DARK THEME OVERRIDES ---
   Preserve dark mode for dashboard and partner portal
*/
.dashboard-body,
.dashboard-main,
.partner-body,
#view-affiliate,
#main-stats-container,
.top-header {
  --color-bg: #0F172A;
  --color-bg-alt: #1E293B;
  --color-surface: rgba(30, 41, 59, 0.5);
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border: rgba(255, 255, 255, 0.08);
  --gradient-dark: radial-gradient(circle at top right, #1E293B 0%, #0F172A 100%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-body body {
  background-color: var(--color-bg);
  background-image: var(--gradient-dark);
  color: var(--color-text);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  background-image: var(--gradient-dark);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Explicit backdrop for app views to avoid light leaking from root */
.dashboard-body,
.partner-portal-body {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(to right, #2563EB, #4F46E5);
  /* Blue to Indigo */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-green {
  background: linear-gradient(to right, #10B981, #059669);
  /* Green to Darker Green */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* bg-glow-green now defined with specific background */

/* --- Dashboard Showcase Mockup --- */
.showcase-section {
  padding: 100px 0;
  overflow: hidden;
  background: #FFFFFF;
}


/* --- Dashboard Showcase Mockup --- */
.showcase-section {
  padding: 100px 0;
  overflow: hidden;
  background: #FFFFFF;
}

.showcase-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.dashboard-mockup {
  background: #0F172A;
  border-radius: 12px;
  box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.4);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Inter', sans-serif;
}

/* Mockup Header/Topbar */
.mock-topbar {
  height: 72px;
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-logo-icon {
  width: 24px;
  height: 24px;
}

.mock-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
}

.mock-header-stats {
  display: flex;
  gap: 48px;
  align-items: center;
}

.mock-header-stat {
  text-align: center;
}

.mock-stat-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 600;
}

.mock-stat-value {
  color: #F8FAFC;
  font-weight: 700;
  font-size: 1.1rem;
}

.mock-stat-value.green {
  color: #10B981;
}

.mock-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-btn-meta {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-btn-trade {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3B82F6, #4F46E5);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.mock-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-user-name {
  font-size: 0.9rem;
  color: #F8FAFC;
  font-weight: 500;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  background: #3B82F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

/* Mockup Content Layout */
.mockup-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 650px;
}

.mock-sidebar {
  background: #0F172A;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0;
}

.mock-sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  font-weight: 500;
  border-right: 3px solid transparent;
}

.mock-sidebar-link.active {
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.05);
  border-right-color: #3B82F6;
}

.mock-sidebar-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.active .mock-sidebar-icon {
  opacity: 1;
  color: #3B82F6;
}

.mock-main-content {
  background: #0F172A;
  padding: 40px;
  overflow-y: auto;
}

/* Dashboard Mockup Grid */
.mock-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.mock-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.mock-card-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  font-weight: 600;
}

.mock-card-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.mock-card-value.green {
  color: #10B981;
}

.mock-card-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

.mock-card-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
}

.mock-card-icon.blue {
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.1);
}

.mock-card-icon.green {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

.mock-card-icon.orange {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

/* Journal Mockup */
.mock-journal-container {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
}

.mock-table th {
  text-align: left;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.mock-table td {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #F8FAFC;
}

.mock-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
}

.mock-badge.win {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.mock-badge.loss {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.1);
}

/* Alerts Visualization */
.mock-alert-container {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
}

.mock-alert-item {
  background: rgba(245, 158, 11, 0.05);
  border-left: 4px solid #F59E0B;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mock-alert-title {
  color: #F59E0B;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.mock-alert-desc {
  color: rgba(245, 158, 11, 0.8);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.bg-glow-green::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

/* Added utility for dark text on light bg if needed specifically */
.text-dark {
  color: var(--color-text);
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* bg-glow styles unifed below */

.grid {
  display: grid;
  gap: 24px;
}

/* --- Premium Discipline Gauge V2 --- */
.check-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.gauge-premium-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
  position: relative;
}

.gauge-sc-wrapper {
  position: relative;
  width: 180px;
  height: 120px;
}

.gauge-sc-svg {
  width: 100%;
  height: 100%;
}

.gauge-sc-track {
  stroke: rgba(255, 255, 255, 0.05);
}

.gauge-sc-fill {
  stroke: url(#gauge-gradient);
  transition: stroke-dashoffset 1s ease-out;
}

.gauge-sc-ticks {
  color: rgba(255, 255, 255, 0.2);
}

.gauge-sc-value-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  text-align: center;
}

.gauge-sc-value-center span {
  font-size: 3rem;
  font-weight: 700;
  color: #10B981;
  display: block;
  line-height: 1;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.gauge-sc-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.gauge-sc-target {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gauge-sc-target .target-value {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.gauge-sc-target .target-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.gauge-sc-feedback {
  margin-top: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Professional Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism Refined for Light mode */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
}

.glass-panel-premium {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-premium);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.dashboard-body .glass-panel-premium {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-premium:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.5);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Logo Construction */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  white-space: nowrap;
}

.logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 70px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: #CBD5E1;
  /* Brightened from var(--color-text-muted) */
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

/* Benefit Items */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
}

.benefit-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* Comparison Section */
.comparison-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.comparison-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-card.negative {
  background: rgba(248, 250, 252, 0.5);
}

.comparison-card.positive {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.1);
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.comparison-item.no {
  color: var(--color-text-muted);
}

.comparison-item.yes {
  color: var(--color-text);
}

.comparison-icon {
  width: 20px;
  height: 20px;
}

/* --- Hero Text Rotator --- */
.hero-slider-container {
  height: 40px;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slider-text {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: slide-up 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.hero-slider-text li {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes slide-up {

  0%,
  15% {
    transform: translateY(0);
  }

  20%,
  35% {
    transform: translateY(-40px);
  }

  40%,
  55% {
    transform: translateY(-80px);
  }

  60%,
  75% {
    transform: translateY(-120px);
  }

  80%,
  95% {
    transform: translateY(-160px);
  }

  100% {
    transform: translateY(0);
  }
}

/* --- Headline Rotator --- */
.headline-rotator {
  display: inline-block;
  height: 1.2em;
  vertical-align: bottom;
  overflow: hidden;
}

.headline-rotator-list {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: slide-headline 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.headline-rotator-list li {
  height: 1.2em;
  line-height: 1.2em;
  white-space: nowrap;
}

@keyframes slide-headline {

  0%,
  15% {
    transform: translateY(0);
  }

  20%,
  35% {
    transform: translateY(-1.2em);
  }

  40%,
  55% {
    transform: translateY(-2.4em);
  }

  60%,
  75% {
    transform: translateY(-3.6em);
  }

  80%,
  95% {
    transform: translateY(-4.8em);
  }

  100% {
    transform: translateY(0);
  }
}

.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: var(--gradient-glow);
  z-index: -1;
  pointer-events: none;
}

/* Background Glows */
.bg-glow-danger {
  background: radial-gradient(circle at center, rgba(248, 113, 113, 0.15) 0%, transparent 70%);
}

.bg-glow-green {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-stats {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: inline-flex;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--color-accent);
}

.stat-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  padding: 32px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

/* Feature Cards */
.feature-card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-border);
  transition: all 0.3s ease;
}

.feature-card.feature-blue:hover {
  border-color: var(--color-primary);
}

.feature-card.feature-blue h3 {
  color: var(--color-primary);
}

.feature-card.feature-blue:hover::before {
  background: var(--color-primary);
}

.feature-card.feature-green:hover {
  border-color: var(--color-accent);
}

.feature-card.feature-green h3 {
  color: var(--color-accent);
}

.feature-card.feature-green:hover::before {
  background: var(--color-accent);
}

.feature-card.feature-orange:hover {
  border-color: #F59E0B;
}

.feature-card.feature-orange h3 {
  color: #F59E0B;
}

.feature-card.feature-orange:hover::before {
  background: #F59E0B;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--color-surface);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.pricing-card {
  padding: 32px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-text-muted);
}

.pricing-card.pricing-pro {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.pricing-card.pricing-pro:hover {
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
  border-color: var(--color-accent);
}

.pricing-card.pricing-elite {
  border-color: #8B5CF6;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.pricing-card.pricing-elite:hover {
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
  border-color: #8B5CF6;
}

/* Steps Section */
/* Step Color Variants */
.step-card.step-blue {
  --step-accent: #3B82F6;
  --step-accent-rgb: 59, 130, 246;
}

.step-card.step-purple {
  --step-accent: #8B5CF6;
  --step-accent-rgb: 139, 92, 246;
}

.step-card.step-orange {
  --step-accent: #F59E0B;
  --step-accent-rgb: 245, 158, 11;
}

.step-card.step-green {
  --step-accent: #10B981;
  --step-accent-rgb: 16, 185, 129;
}

.step-card {
  /* Use local variable for colors, default to primary if not set */
  --step-accent: var(--color-primary);
  --step-accent-rgb: 59, 130, 246;

  position: relative;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  /* overflow: hidden; Removed to allow numbers to float outside */
}

/* Glow effect on hover */
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, var(--step-accent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius-md);
}

.step-card:hover::before {
  opacity: 0.25;
  /* Increased opacity for better visibility of the color tint */
}

.step-card:hover {
  background: var(--color-surface);
  /* Keep it light */
  border-color: var(--step-accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(var(--step-accent-rgb), 0.25);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--step-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.step-card h3 {
  position: relative;
  z-index: 1;
  color: var(--color-text);
}

.step-card p {
  position: relative;
  z-index: 1;
}

.step-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.step-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--step-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--step-accent);
}

/* -------------------------------------------------------------------------- */
/*                                DASHBOARD                                  */
/* -------------------------------------------------------------------------- */

/* Dashboard Layout */
.dashboard-body {
  background-color: var(--color-bg-alt);
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  width: 250px;
}

.header-stats {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.stat-label {
  font-size: 0.7rem;
  color: #CBD5E1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  white-space: nowrap;
  text-align: center;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-heading);
  text-shadow: 0 0 20px rgba(248, 250, 252, 0.1);
}

.stat-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

.discipline-score-badge {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.3);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  z-index: 50;
  backdrop-filter: var(--glass-blur);
}

.sidebar-nav {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: #CBD5E1;
  /* Brightened from var(--color-text-muted) */
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  border: 1px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  background: rgba(56, 189, 248, 0.08);
  /* Using sky primary */
  color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.12);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 25%;
  height: 50%;
  width: 4px;
  background: var(--color-primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 15px var(--color-primary);
}

/* Dashboard Container */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  max-width: 1600px;
  position: relative;
}


/* --- Premium Dashboard Header (Futuristic SaaS) --- */
.dashboard-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 32px;
}

.gradient-text-premium {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: white;
  /* Fallback */
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.header-subtitle-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.subtitle-dot {
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
}

/* Mentor Neural Panel */
.mentor-neural-panel {
  position: relative;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  overflow: hidden;
  min-width: unset;
  max-width: 400px;
  flex: 1;
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.neural-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.3;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(120px);
  }
}

.neural-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.neural-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.neural-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #38BDF8;
  /* Slightly brighter blue */
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}

.neural-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.neural-border-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.05);
  pointer-events: none;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  text-align: right;
}

.user-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.user-role {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Market Filter Tabs (Glossy Pills) */
.market-filter-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.4);
  padding: 6px;
  border-radius: 100px;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  margin-bottom: 32px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.filter-tab {
  padding: 10px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: #CBD5E1;
  /* Brightened from var(--color-text-muted) */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}

.filter-tab.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(56, 189, 248, 0.2);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* --- Premium Settings View (Neural Config) --- */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
}

.glass-panel-premium {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.market-selector-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px 32px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.market-label-pro {
  display: flex;
  align-items: center;
  gap: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.settings-group {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-group:hover {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.settings-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.settings-group-icon {
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.settings-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.input-group {
  margin-bottom: 24px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.settings-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-field {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-field-icon {
  padding-left: 48px;
}

.input-field:focus {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.input-field:focus+.settings-input-icon {
  color: var(--color-primary);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

.kpi-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--accent);
}

.kpi-card:hover::after {
  opacity: 1;
  height: 6px;
  filter: blur(4px);
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  opacity: 0.6;
  filter: blur(2px);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.kpi-label {
  color: #CBD5E1;
  /* Brightened from var(--color-text-muted) */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kpi-icon {
  color: var(--accent);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

/* KPI Value */
.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.kpi-trend.positive {
  color: var(--color-accent);
}

.kpi-trend.negative {
  color: var(--color-danger);
}

.kpi-trend span {
  font-weight: 600;
}

/* Section Card (Table container) */
.section-card {
  background: var(--color-surface);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
}

/* Data Table */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th {
  text-align: left;
  padding: 18px 24px;
  color: var(--color-text-muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.data-table td {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  vertical-align: middle;
  font-size: 0.95rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(244, 63, 94, 0.1);
}

.badge-success-soft {
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.05);
}

.badge-danger-soft {
  color: var(--color-danger);
  background: rgba(244, 63, 94, 0.05);
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.text-success {
  color: var(--color-accent);
}

.text-danger {
  color: var(--color-danger);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border-left: 4px solid #F59E0B;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border-left: 4px solid var(--color-danger);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-premium);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Market Selector Styles */
.market-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
  max-width: 900px;
  /* Prevent excessive stretching on wide screens */
}

.market-card {
  background: rgba(30, 41, 59, 0.4);
  /* Darker glass */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 15px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.market-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.market-card:hover::before {
  opacity: 1;
}

.market-card.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 20px 25px -5px rgba(56, 189, 248, 0.15);
}

.market-card.active .market-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.market-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
  display: inline-block;
}

.market-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.market-card.active .market-name {
  color: var(--color-text);
}

@media (max-width: 480px) {
  .market-selector-grid {
    grid-template-columns: 1fr;
  }

  .market-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-align: left;
  }

  .market-icon {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

/* --- Notification System --- */
.notification-trigger {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  margin-right: 12px;
}

.notification-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #3B82F6;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1e293b;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.notification-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInDown 0.2s ease-out;
}

.notification-panel.active {
  display: flex;
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.notification-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
  background: #1e293b;
}

.notification-item {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  cursor: pointer;
  display: flex;
  gap: 12px;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  background: rgba(59, 130, 246, 0.03);
}

.notification-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.notification-item-content {
  flex: 1;
}

.notification-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.notification-item-text {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.notification-item-time {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 6px;
  opacity: 0.7;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.notification-footer {
  padding: 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.notification-footer a {
  font-size: 0.8rem;
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.settings-group-icon.danger {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-danger);
  border-color: rgba(244, 63, 94, 0.2);
}

.settings-group-icon.accent {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border-color: rgba(16, 185, 129, 0.2);
}

.settings-group-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Trade Type Selector - Broker Style */
.trade-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.trade-type-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 6px;
}

.trade-type-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.trade-type-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.trade-type-sublabel {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.trade-type-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Long Button (Green) - Enhanced Active State */
.trade-type-long:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.trade-type-long.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
  border-color: #10B981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.trade-type-long.active svg {
  stroke: #10B981;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.trade-type-long.active .trade-type-label {
  color: #10B981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.trade-type-long.active .trade-type-sublabel {
  color: #34D399;
}

/* Short Button (Red) - Enhanced Active State */
.trade-type-short:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
}

.trade-type-short.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(225, 29, 72, 0.2) 100%);
  border-color: #F43F5E;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4), inset 0 0 20px rgba(244, 63, 94, 0.1);
}

.trade-type-short.active svg {
  stroke: #F43F5E;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}

.trade-type-short.active .trade-type-label {
  color: #F43F5E;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.trade-type-short.active .trade-type-sublabel {
  color: #FB7185;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.btn-close {
  background: var(--color-bg-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  transform: rotate(90deg);
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: inherit;
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sidebar Navigation Link Active */
.sidebar-link[data-view].active {
  background: rgba(59, 130, 246, 0.05);
  color: var(--color-primary);
  border-right: 2px solid var(--color-primary);
}

.sidebar-link[data-view].active svg {
  color: var(--color-primary);
}

/* Calendar Heatmap Styles */
.calendar-wrapper {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.calendar-header h3 {
  text-transform: capitalize;
  font-size: 1.1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding-bottom: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
  cursor: pointer;
}

.calendar-day:hover:not(.empty) {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.calendar-day .day-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.calendar-day .day-pnl {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
}

.calendar-day.gain {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.calendar-day.gain .day-pnl {
  color: var(--color-accent);
}

.calendar-day.loss {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.calendar-day.loss .day-pnl {
  color: var(--color-danger);
}

.calendar-day.neutral {
  border-color: var(--color-text-muted);
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

/* Responsiveness for Modal */
@media (max-height: 800px) {
  .modal-content {
    max-height: 95vh;
    padding: 24px;
  }
}

/* Tooltips for KPI Cards */
.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-content {
  position: absolute;
  bottom: -45px;
  /* Position below the card */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1e293b;
  /* Dark slate blue */
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  width: 200px;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1e293b;
}

/* Discipline Score Styles */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2.5rem;
  font-weight: 800;
  transition: all 0.5s ease;
  background: var(--color-surface);
}

.score-excellent {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.score-good {
  border-color: #F59E0B;
  color: #F59E0B;
}

.score-poor {
  border-color: var(--color-danger);
  color: var(--color-danger);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

/* --- SaaS Settings Styles --- */
.settings-container {
  max-width: 1000px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

.settings-group {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.settings-group:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary);
}

.settings-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-bg-alt);
}

.settings-group-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.settings-group-icon svg {
  width: 18px;
  height: 18px;
}

.settings-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.settings-input-wrapper {
  position: relative;
  width: 100%;
}

.settings-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: color 0.2s;
}

.input-field-icon {
  padding-left: 38px !important;
}

.settings-input-wrapper:focus-within .settings-input-icon {
  color: var(--color-primary);
}

.market-selector-pro {
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.market-label-pro {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-label-pro span {
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-group {
    grid-column: span 1 !important;
  }

  .market-selector-pro {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.toast.success {
  border-left-color: var(--color-accent);
}

.toast.error {
  border-left-color: var(--color-danger);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* --- Discipline Gauge Styles --- */
.gauge-card {
  --gauge-accent: var(--color-accent);
}

.gauge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 10px 0;
  position: relative;
}

.gauge-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.gauge-base {
  fill: none;
  stroke: var(--color-bg-alt);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-progress {
  fill: none;
  stroke: var(--gauge-accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  /* Approx 240 deg arc length for r=40 */
  stroke-dashoffset: 188.5;
  /* Start empty */
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
  filter: drop-shadow(0 0 5px var(--gauge-accent));
}

.gauge-value-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-value-center #kpi-discipline-score {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1;
}

.gauge-secondary-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.score-current {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--color-text);
  opacity: 0.9;
}

.score-divider {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 4px;
}

@media (max-width: 1400px) {
  .gauge-wrapper {
    gap: 16px;
  }
}

/* --- Journal Pro Enhancements --- */
.journal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}

.journal-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.journal-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--stat-color, var(--color-primary));
}

.journal-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.journal-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.empty-journal-state {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.empty-state-icon {
  font-size: 4rem;
  filter: grayscale(0.5);
  margin-bottom: 10px;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.empty-state-text {
  color: var(--color-text-muted);
  max-width: 400px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .journal-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Psychology Pro Enhancements --- */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.insight-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.insight-item:hover {
  border-color: var(--insight-color, var(--color-primary));
  transform: translateX(4px);
}

.insight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--insight-color, var(--color-primary));
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insight-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.insight-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: white;
  color: var(--insight-color, var(--color-primary));
  border: 1px solid var(--insight-color, var(--color-primary));
}

.insight-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.insight-advice {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.empty-insights {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* --- Locked Feature Premium UI --- */
.locked-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
}

.locked-feature>*:not(.lock-overlay) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95) 0%, var(--color-bg) 100%);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: white;
  text-align: center;
  padding: 40px;
  border-radius: inherit;
}

.lock-overlay::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  opacity: 0.1;
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
}

.lock-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.lock-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.lock-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 35%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: white;
  /* Fallback */
  max-width: 500px;
}

.lock-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.lock-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- Alert Modal Pro --- */
.modal-alert-overlay {
  z-index: 20000;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.6);
}

.modal-alert-content {
  max-width: 450px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 40px;
  text-align: center;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
  background: var(--color-surface);
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-alert-header {
  margin-bottom: 24px;
}

.modal-alert-icon {
  width: 72px;
  height: 72px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: alertPulse 1.5s infinite;
}

.modal-alert-content.warning .modal-alert-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.modal-alert-content h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.modal-alert-body {
  margin-bottom: 32px;
}

.modal-alert-body p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.modal-alert-footer .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

@keyframes alertPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Specific variants for active states */
.modal-alert-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.modal-alert-overlay.active .modal-alert-content {
  transform: scale(1) translateY(0);
}

/* --- LIGHT THEME MODAL OVERRIDES --- */
.modal-content.modal-light {
  background: #ffffff !important;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%) !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

.modal-light h2,
.modal-light h3,
.modal-light p,
.modal-light span:not(.badge),
.modal-light div:not(.badge),
.modal-light .stat-label,
.modal-light .stat-value {
  color: #1e293b !important;
}

.modal-light .modal-header h2 {
  color: #0F172A !important;
  text-shadow: none !important;
}

.modal-light .modal-header p {
  color: #64748b !important;
}

.modal-light .btn-close {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

.modal-light .btn-close:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

.modal-light .data-table {
  background: transparent !important;
}

.modal-light .data-table th {
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.modal-light .data-table td {
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.modal-light .data-table tr:hover td {
  background: #f1f5f9 !important;
}

.modal-light .badge-success-soft {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.modal-light .badge-danger-soft {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #e11d48 !important;
  border-color: rgba(244, 63, 94, 0.2) !important;
}

.modal-light .text-success {
  color: #059669 !important;
}

.modal-light .text-danger {
  color: #e11d48 !important;
}

/* Tag Editor Styles - Premium */
.tags-input-container {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tags-input-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 0 20px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.6);
}

.tag {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  color: #bae6fd;
  /* Sky 200 */
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.tag:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
  color: white;
}

.tag-remove {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}

.tag-remove:hover {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  transform: scale(1.1);
}

.tag-input {
  background: transparent;
  border: none;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  flex: 1;
  min-width: 140px;
  outline: none;
  padding: 6px 0;
  font-weight: 400;
}

.tag-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
  font-style: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FINAL OVERRIDE: Tag Editor Styles (Fixing Layout & Size) */
div.tags-input-container {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 40px !important;
  max-height: 85px !important;
  /* Prevent layout shift */
  overflow-y: auto !important;
  width: 100% !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

div.tags-input-container:focus-within {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 1px #38BDF8, 0 0 15px rgba(56, 189, 248, 0.2) !important;
  background: rgba(30, 41, 59, 0.8) !important;
}

div.tag {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
  color: #bae6fd !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
  /* Smaller text */
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 24px !important;
  white-space: nowrap !important;
}

div.tag span.tag-remove {
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

div.tag span.tag-remove:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: white !important;
}

input.tag-input {
  background: transparent !important;
  border: none !important;
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  flex: 1 !important;
  min-width: 60px !important;
  outline: none !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
  height: 24px !important;
  margin: 0 !important;
}

/* Dream Goal Image Preview - Refined */
.dream-goal-preview {
  position: relative;
  width: 100%;
  height: 180px;
  /* Fixed height */
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.2);
  /* display: none; controlled via JS */
}

.dream-goal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures image fills space nicely without distortion */
  display: block;
}

/* New Aesthetic Upload Button */
.btn-upload-aesthetic {
  background: rgba(30, 41, 59, 0.6);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
}

.btn-upload-aesthetic:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(56, 189, 248, 0.05);
}

.btn-remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  /* Ensure icon is visible */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.btn-remove-image:hover {
  background: var(--color-danger);
  transform: scale(1.1);
}

/* --- Elite Evolution Section --- */
.evolution-section {
  animation: fadeIn 0.5s ease-out;
}

.evolution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.evolution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.evolution-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(139, 92, 246, 0.4);
}

.evolution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.evolution-card:hover::before {
  opacity: 1;
  height: 6px;
  filter: blur(4px);
}

.evolution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.evolution-title {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.evolution-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evolution-value-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.evolution-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.evolution-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.evolution-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.evolution-badge.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.evolution-badge.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
}

.evolution-comparison {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.evolution-prev-label {
  color: var(--color-text-muted);
}

.evolution-prev-value {
  font-weight: 600;
  color: var(--color-text);
}

/* Specific Card Variants */
.ev-profit .evolution-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.ev-discipline .evolution-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.ev-errors .evolution-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

/* --- PROFESSIONAL MODERN PRICING DESIGN (WHITE BG) --- */
.pricing-section-modern {
  background: white !important;
  color: #0F172A !important;
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

.pricing-section-modern h2 {
  color: #0F172A !important;
  font-weight: 800;
  margin-bottom: 20px;
}

.pricing-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.pricing-toggle-modern {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 4px;
  /* Reduced padding for a tighter fit */
  border-radius: 14px;
  display: flex;
  gap: 0;
  /* Remove gap as buttons will touch precisely */
  position: relative;
  max-width: fit-content;
  margin: 0 auto 32px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Subtle inner shadow */
}

/* The Premium Sliding Indicator */
.pricing-toggle-modern::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Move the slider when annual is active */
.pricing-section-modern.pricing-toggle-annual-active .pricing-toggle-modern::before {
  transform: translateX(100%);
}

.pricing-toggle-modern button {
  background: transparent !important;
  border: none;
  color: #64748B;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  z-index: 2;
  /* Stay above the slider */
  position: relative;
  min-width: 140px;
  /* Ensure equal width for both buttons */
}

.pricing-toggle-modern button.active {
  color: #0F172A !important;
}

.pricing-toggle-modern button:not(.active):hover {
  color: #0F172A;
}

.pricing-card-modern {
  border-radius: 24px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  border: none;
  box-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.pricing-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Premium Multi-stop Gradients - Softer Green/White Theme */
.pricing-card-modern.trial {
  background: linear-gradient(135deg, #FFF9C4 0%, #FFFFFF 100%) !important;
  /* Soft Yellow to White */
  border: 1px solid #FFD54F !important;
}

.pricing-card-modern.premium {
  background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%) !important;
  /* Soft Green to White */
  border: 1px solid #81C784 !important;
}

.pricing-card-modern.elite {
  background: linear-gradient(135deg, #F3E5F5 0%, #FFFFFF 100%) !important;
  /* Soft Purple to White */
  border: 1px solid #BA68C8 !important;
}

/* Badge Logic */
.annual-badge-modern {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #10B981;
  /* Solid green for contrast on white */
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-toggle-annual-active .annual-badge-modern {
  opacity: 1;
  transform: translateY(0);
}

/* Professional Pricing Typography - DARK for White Cards */
.price-display-modern {
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 1.75rem;
  font-weight: 700;
  color: #64748B;
}

.price-main {
  font-size: 4rem;
  font-weight: 900;
  color: #0F172A !important;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 1 !important;
}

.price-period {
  font-size: 1.1rem;
  font-weight: 600;
  color: #94A3B8;
}

.price-billing-subtext {
  font-size: 0.95rem;
  color: #94A3B8;
  margin-top: 8px;
  font-weight: 500;
}

/* Content Styles - DARK for White Cards */
.pricing-card-modern h3 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0F172A !important;
  margin-bottom: 4px;
}

.pricing-card-modern p {
  color: #64748B !important;
  font-size: 0.95rem;
  margin-top: 4px;
}

.features-list-modern {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  width: 100%;
}

.features-list-modern li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #334155 !important;
  font-weight: 500;
}

.features-list-modern li svg {
  color: #10B981;
  flex-shrink: 0;
}

.btn-modern {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #0F172A;
  color: white !important;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
  transform: translateY(-2px);
  background: #1E293B;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card-modern.trial .btn-modern {
  background: #FF9100;
  color: white !important;
}

.pricing-card-modern.premium .btn-modern {
  background: #10B981;
  color: white !important;
}

.pricing-card-modern.elite .btn-modern {
  background: #8B5CF6;
  color: white !important;
}

/* --- Wide Trial Button --- */
.btn-trial-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #FF9100 0%, #FF6D00 100%);
  color: white !important;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(255, 145, 0, 0.15);
  transition: all 0.3s ease;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.btn-trial-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 145, 0, 0.25);
  background: linear-gradient(135deg, #FFA000 0%, #FF8F00 100%);
}

.trial-icon {
  font-size: 1.25rem;
}

.trial-arrow {
  transition: transform 0.3s ease;
}

.btn-trial-wide:hover .trial-arrow {
  transform: translateX(6px);
}

/* --- Notification System Style Enhancements --- */
.notif-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.notif-info-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.notif-success-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.notif-warning-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.notif-error-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.notif-lead-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 15px);
  right: -10px;
  width: 350px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 1100;
  display: none;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.notification-panel.active {
  display: block;
}

.notification-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

/* --- PRICING CARDS IN DASHBOARD RULES (DARK THEME) --- */
.dashboard-body .pricing-card-modern {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dashboard-body .pricing-card-modern.premium {
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
}

.dashboard-body .pricing-card-modern.premium .btn-modern {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.dashboard-body .pricing-card-modern.elite {
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
}

.dashboard-body .pricing-card-modern.elite .btn-modern {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.dashboard-body .pricing-card-modern .price-currency,
.dashboard-body .pricing-card-modern .price-period,
.dashboard-body .pricing-card-modern .price-billing-subtext {
  color: var(--color-text-muted) !important;
}

.dashboard-body .pricing-card-modern .price-main {
  color: white !important;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.dashboard-body .pricing-card-modern h3 {
  color: white !important;
  letter-spacing: 0.2rem;
  font-family: 'Outfit', sans-serif;
}

.dashboard-body .pricing-card-modern .card-desc {
  color: var(--color-text-muted) !important;
}

.dashboard-body .pricing-card-modern .features-list-modern li {
  color: var(--color-text) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

/* Make toggles readable in dashboard */
.dashboard-body .pricing-toggle-modern {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-body .pricing-toggle-modern button {
  color: #F8FAFC;
}

.dashboard-body .pricing-toggle-modern button.active {
  background: white;
  color: #0F172A;
}

/* --- PREMIUM UI GLOBALS --- */
.dashboard-header-premium {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.gradient-text-premium {
  background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.header-subtitle-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.header-subtitle-premium span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.subtitle-dot {
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
}

.glass-panel-premium {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.glass-panel-premium:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.5);
}

/* --- PROFESSIONAL SUBSCRIPTION VIEW (DARK THEME) --- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: center;
}

.plan-card:hover {
  transform: translateY(-10px);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.plan-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--plan-accent, #94A3B8);
  opacity: 0.6;
  filter: blur(2px);
}

.plan-card.active-plan {
  border: 2px solid var(--plan-accent);
  box-shadow: 0 0 30px -5px var(--plan-accent);
}

.plan-card.active-plan::before {
  content: 'PLAN ACTUAL';
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--plan-accent);
  color: white;
  padding: 6px 40px;
  font-size: 0.7rem;
  font-weight: 800;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.plan-badge-top {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #F8FAFC;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.plan-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #F8FAFC;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.plan-price small {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #CBD5E1;
}

.plan-feature-item svg {
  flex-shrink: 0;
}

.plan-feature-item.disabled {
  color: #64748B;
  opacity: 0.6;
}

/* Plan Specific Accents */
#plan-card-free {
  --plan-accent: #94A3B8;
}

#plan-card-pro {
  --plan-accent: #3B82F6;
}

#plan-card-elite {
  --plan-accent: #8B5CF6;
}

#plan-card-partner {
  --plan-accent: #F59E0B;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

#plan-card-partner::after {
  background: linear-gradient(90deg, #F59E0B, #FCD34D, #F59E0B);
}

.partner-glow {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 16px 20px;
  display: flex;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  background: rgba(59, 130, 246, 0.03);
  border-left: 3px solid var(--color-primary);
}

.notif-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.notif-message {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Journal UI Improvements --- */
.journal-filter-tabs {
  background: rgba(15, 23, 42, 0.4);
  padding: 4px;
  border-radius: 12px;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.journal-filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.journal-filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.journal-filter-btn.active {
  background: var(--color-primary) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.journal-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.journal-summary-grid .kpi-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

/* --- Pagination Styles --- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.page-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Responsive Improvements --- */
@media (max-width: 768px) {
  .dashboard-welcome {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }

  .top-header {
    padding: 0 16px;
  }

  .header-left {
    width: auto;
  }

  .logo-text {
    display: none;
  }

  .header-stats {
    gap: 12px;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .discipline-score-badge {
    padding: 4px 10px;
    font-size: 0.85rem;
  }

  .stat-divider {
    height: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  #btn-view-goal {
    display: none;
  }

  #btn-new-trade-header span {
    display: none;
  }

  .journal-filter-tabs {
    width: 100%;
    justify-content: center;
  }

  .journal-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .journal-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Toasts & Notifications Premium --- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 400px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #10B981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.9));
}

.toast-danger {
  border-left: 4px solid #EF4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.9));
}

.toast-info {
  border-left: 4px solid #3B82F6;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.9));
}

/* --- CALCULATOR PREMIUM STYLES --- */
.form-label-pro {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-control-pro {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.2s;
  outline: none;
}

.form-control-pro:focus {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

select.form-control-pro option {
  background: #0F172A;
  color: white;
}

.res-val {
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
  transition: color 0.3s ease;
}

@media (max-width: 900px) {
  #view-calculator .grid {
    grid-template-columns: 1fr !important;
  }
}