/* Global Theme Variables and Support */
/* Import Roboto and Birthstone Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Birthstone:wght@400&display=swap');

/* CSS Variables for Light/Dark Mode */
:root {
  /* Smooth scrolling behavior */
  scroll-behavior: smooth;
  
  /* Dark Mode Colors (Default) */
  --bg-primary: #100F0F; /* flexoki-black */
  --bg-secondary: #1C1B1A; /* flexoki-base-950 */
  --bg-card: #282726; /* flexoki-base-900 */
  --bg-card-hover: #343331; /* flexoki-base-850 */
  --bg-executive: #F2F0E5; /* flexoki-base-50 */
  
  --text-primary: #FFFCF0; /* flexoki-paper */
  --text-secondary: #CECDC3; /* flexoki-base-200 */
  --text-muted: #B7B5AC; /* flexoki-base-600 */
  --text-executive: #100F0F; /* dark text for light executive header */
  
  --border-color: #343331; /* flexoki-base-850 */
  
  --accent-primary: #66800B; /* flexoki-green-600 */
  --accent-secondary: #8B7EC8; /* flexoki-purple-400 */
  --success: #879A39; /* flexoki-green-400 */
  --warning: #AF3029; /* flexoki-red-600 */
  --premium: #AD8301; /* flexoki-yellow-600 */
  --admin: #A02F6F; /* flexoki-magenta-600 */
  
  /* Extended Flexoki Color Palette for Score Classifications */
  --score-ninja: #8B7EC8; /* flexoki-purple-400 - Ninja Compounder */
  --score-master: #879A39; /* flexoki-green-400 - Master Compounder */
  --score-smart: #D0A215; /* flexoki-yellow-600 - Smart Compounder */
  --score-started: #D69C74; /* flexoki-orange-400 - Getting Started */
  --score-learning: #CE5D97; /* flexoki-pink-400 - Learning Mode */
  --score-builder: #A02F6F; /* flexoki-magenta-600 - Foundation Builder */
  --score-rookie: #DA702C; /* flexoki-orange-600 - Rookie Compounder */
  --score-whats: #D14D41; /* flexoki-red-400 - What's Compounding? */
  
  --shadow: 0 20px 40px rgba(16, 15, 15, 0.8);
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #FFFCF0; /* flexoki-paper */
  --bg-secondary: #F2F0E5; /* flexoki-base-50 */
  --bg-card: #E6E4D9; /* flexoki-base-100 */
  --bg-card-hover: #DAD8CE; /* flexoki-base-150 */
  --bg-executive: #100F0F; /* flexoki-black for contrast */
  
  --text-primary: #100F0F; /* dark text for light backgrounds */
  --text-secondary: #6F6E69; /* flexoki-base-700 */
  --text-muted: #6F6E69; /* flexoki-base-700 */
  --text-executive: #FFFCF0; /* light text for dark executive header */
  
  --border-color: #CECDC3; /* flexoki-base-200 */
  
  --shadow: 0 20px 40px rgba(16, 15, 15, 0.2);
}

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

html {
  width: 100%;
  min-width: 100vw;
  height: 100%;
  min-height: 100vh;
  background: var(--bg-primary) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Force html background to update with theme */
html:not([data-theme="light"]),
html[data-theme="dark"] {
  background: #100F0F !important;
}

html[data-theme="light"] {
  background: #FFFCF0 !important;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary) !important;
  color: var(--text-primary) ;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

/* Force body background to update with theme */
html:not([data-theme="light"]) body,
html[data-theme="dark"] body {
  background: #100F0F !important;
}

html[data-theme="light"] body {
  background: #FFFCF0 !important;
}

/* Theme Toggle Button - Enhanced with JavaScript */
.theme-toggle {
  position: fixed;
  top: 90px;
  right: 20px;
  background: var(--bg-card) ;
  border: 2px solid var(--border-color) ;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex ;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.3s ease ;
  z-index: 9999 ;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-primary) ;
}

/* Ensure theme toggle is visible */
.theme-toggle .theme-icon {
  color: var(--text-primary) ;
  display: block;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--bg-card-hover) ;
  border-color: var(--accent-primary) ;
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Adjust theme toggle position for pages without navigation */  
/* Force theme toggle to be visible on all pages */
body .theme-toggle {
  top: 20px ; /* Default position for pages without nav */
  display: flex ;
  z-index: 9999 ;
}

/* Override position when site navigation is present (logged in users) */
body:has(.site-navigation) .theme-toggle {
  top: 90px ;
}

/* For pages with professional-nav (like scoring page) */
body .professional-nav ~ * .theme-toggle,
.professional-nav + * .theme-toggle {
  top: 80px ; /* Position below the professional nav */
}

/* Roboto Typography */
h1, h2, h3 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  letter-spacing: -0.025em;
}

/* Birthstone Font Class - Enhanced specificity */
.birthstone-font,
h1.birthstone-font,
nav .birthstone-font,
.site-navigation .birthstone-font {
  font-family: 'Birthstone', cursive ;
  font-weight: 400 ;
  font-size: 1.5rem ;
  color: var(--accent-primary) ;
  margin: 0 ;
  line-height: 1 ;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; color: var(--text-primary); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 500; }

p {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Status Badge Consistency - for non-navigation badges */
.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Roboto', sans-serif;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.status-badge.premium {
  background: var(--premium);
  color: #FFFFFF;
}

.status-badge.free {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

/* Button Consistency */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.btn-primary {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 128, 11, 0.3);
  text-decoration: none;
  color: #FFFFFF;
}

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

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  text-decoration: none;
}

/* Form Consistency */
input, textarea, select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(102, 128, 11, 0.1);
}

/* Card Consistency */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

/* Dashboard Styles */
.masterclass-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.executive-header {
  background: var(--bg-executive);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.welcome-section h1 {
  color: var(--text-executive);
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.new-user-subtitle,
.returning-user-subtitle {
  color: var(--text-executive);
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
  opacity: 0.7;
  font-style: italic;
}

.new-user-subtitle {
  color: var(--accent-primary);
  opacity: 0.8;
}

.returning-user-subtitle {
  color: var(--text-executive);
  opacity: 0.6;
}

/* Hero Score Card */
.hero-score-card {
  border: none;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.score-card-content {
  padding: 1rem;
  position: relative;
  color: #000;
}

.score-card-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.score-main-content {
  flex: 1;
  text-align: center;
}

.score-number-large {
  font-size: 6rem;
  font-weight: 900;
  color: #000;
  line-height: 1;
  margin-bottom: 0;
}

[data-theme="dark"] .score-number-large {
  color: #FFFFFF;
}

.score-label-large {
  font-size: 0.875rem;
  color: #000;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .score-label-large {
  color: #FFFFFF;
}

.score-rank-display {
  text-align: center;
  margin-top: 1.5rem;
}

.birthstone-rank {
  font-family: 'Birthstone', cursive;
  font-size: 3rem;
  color: white;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.stat-card:hover {
  background: var(--bg-card-hover);
}

.stat-content {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon-wrapper {
  flex-shrink: 0;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-green {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
}

[data-theme="dark"] .stat-icon-green {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(74, 222, 128);
}

.stat-icon-yellow {
  background: rgba(234, 179, 8, 0.1);
  color: rgb(234, 179, 8);
}

[data-theme="dark"] .stat-icon-yellow {
  background: rgba(234, 179, 8, 0.2);
  color: rgb(250, 204, 21);
}

.stat-icon-primary {
  background: rgba(139, 149, 56, 0.2);
  color: #8B9538;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-primary);
  margin: 0.25rem 0 0 0;
  font-weight: 500;
}

.stat-sublabel {
  color: var(--text-primary);
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.7;
}

/* Action Center */
.action-center {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Action Cards Grid */
.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-card-modern:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-card-modern:hover .action-arrow-modern {
  color: var(--text-primary);
}

.action-card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-card-content {
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.action-start {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.action-icon-modern {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: rgb(59, 130, 246);
}

[data-theme="dark"] .action-icon-blue {
  background: rgba(59, 130, 246, 0.25);
  color: rgb(96, 165, 250);
}

.action-icon-green {
  background: rgba(34, 197, 94, 0.15);
  color: rgb(34, 197, 94);
}

[data-theme="dark"] .action-icon-green {
  background: rgba(34, 197, 94, 0.25);
  color: rgb(74, 222, 128);
}

.action-icon-purple {
  background: rgba(147, 51, 234, 0.15);
  color: rgb(147, 51, 234);
}

[data-theme="dark"] .action-icon-purple {
  background: rgba(147, 51, 234, 0.25);
  color: rgb(168, 85, 247);
}

.action-icon-orange {
  background: rgba(249, 115, 22, 0.15);
  color: rgb(249, 115, 22);
}

[data-theme="dark"] .action-icon-orange {
  background: rgba(249, 115, 22, 0.25);
  color: rgb(251, 146, 60);
}

.action-icon-pink {
  background: rgba(236, 72, 153, 0.15);
  color: rgb(236, 72, 153);
}

[data-theme="dark"] .action-icon-pink {
  background: rgba(236, 72, 153, 0.25);
  color: rgb(244, 114, 182);
}

.action-icon-disabled {
  background: rgba(107, 114, 128, 0.1);
  color: rgb(107, 114, 128);
}

.action-text {
  flex: 1;
  min-width: 0;
}

.action-title {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.action-description {
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
}

.upgrade-hint {
  color: #AD8301;
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.action-arrow-modern {
  color: var(--text-primary);
  opacity: 0.4;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.action-lock {
  color: var(--text-primary);
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Legacy Action Cards */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.action-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
}

.action-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.action-content p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.action-card-form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.action-card.upgrade-card {
  background: var(--bg-card);
  border: 2px solid var(--premium);
  position: relative;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  color: inherit;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.action-card.upgrade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--premium);
}

.upgrade-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--premium);
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0 12px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Recent Activity */
.recent-activity h2 {
  margin-bottom: 1.5rem;
}

.activity-list {
  display: grid;
  gap: 1rem;
}

.activity-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s ease;
}

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

.activity-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 500;
}

.activity-info p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  opacity: 0.7;
}

.activity-score {
  text-align: center;
  margin: 0 1rem;
}

.activity-score .score {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.activity-score small {
  display: block;
  color: var(--text-primary);
  font-size: 0.8rem;
  opacity: 0.7;
}

.btn-review {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-review:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  text-decoration: none;
}

/* Onboarding Guide */
.onboarding-guide {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
}

.onboarding-guide h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.onboarding-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem auto;
}

.onboarding-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.onboarding-card p {
  margin: 0;
  line-height: 1.5;
}

/* Landing Page Styles */
.landing-masterclass {
  min-height: 100vh;
}

.professional-nav {
  background: rgba(16, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

[data-theme="light"] .professional-nav {
  background: rgba(255, 252, 240, 0.95);
}

.professional-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--accent-primary);
  font-weight: 900;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-text-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-text-link:hover {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom-color: var(--text-primary);
}

/* Hero Section */
.hero-masterclass {
  background: var(--bg-primary);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-masterclass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 128, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-title {
  font-size: 3.6225rem !important;
  margin-bottom: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.birthstone-text {
  font-family: 'Birthstone', cursive;
  font-weight: 400;
  font-size: 1.4em;
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.8;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Professional Features */
.features-professional {
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features-container h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
}

.feature-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.7;
}

.feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.premium-badge-small {
  background: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(102, 128, 11, 0.3);
}

.free-badge-small {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.premium-feature-card {
  border: 1px solid rgba(102, 128, 11, 0.2);
}

.premium-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: rgba(102, 128, 11, 0.2);
}

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

[data-theme="light"] .premium-feature-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
}

.free-feature-card {
  border: 1px solid var(--border-color);
}

.free-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.free-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--border-color);
}

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

[data-theme="light"] .free-feature-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
}

/* Premium Showcase */
.premium-showcase {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.showcase-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.showcase-header {
  margin-bottom: 3rem;
}

.showcase-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.showcase-header p {
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.pricing-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid var(--border-color);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.pricing-card.premium-enhanced {
  border: 2px solid var(--accent-primary);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(102, 128, 11, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.pricing-card.premium-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(102, 128, 11, 0.08) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pricing-card.premium-enhanced:hover::before {
  opacity: 1;
}

.pricing-card.premium-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 128, 11, 0.15);
  border-color: var(--accent-primary);
}

.pricing-card.basic {
  padding: 1.75rem;
  transform: scale(0.95);
}

.pricing-card.basic .card-header h3 {
  font-size: 1.35rem;
}

.pricing-card.basic .price {
  font-size: 2.7rem;
}

.pricing-card.basic .card-header p {
  font-size: 0.95rem;
}

.value-prop {
  background: rgba(102, 128, 11, 0.15);
  color: var(--accent-primary);
  padding: 0.3rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.5rem auto;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(102, 128, 11, 0.3);
  transition: all 0.3s ease;
}

.value-prop:hover {
  background: rgba(102, 128, 11, 0.2);
  transform: scale(1.05);
}

.premium-feature {
  font-weight: 500;
  padding: 0.875rem 0 ;
  border-bottom: 1px solid rgba(102, 128, 11, 0.1) ;
}

.premium-feature:hover {
  background: rgba(102, 128, 11, 0.05);
  border-radius: 4px;
  padding-left: 0.5rem ;
  transition: all 0.2s ease;
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.price span {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 400;
  opacity: 0.7;
}

.card-header p {
  color: var(--text-primary);
  margin: 0;
  opacity: 0.7;
}

.features-list {
  margin-bottom: 2rem;
}

.feature {
  padding: 0.75rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature:last-child {
  border-bottom: none;
}

.btn-premium {
  background: var(--accent-primary);
  color: #FFFFFF;
  border: 2px solid var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  background: #FFFFFF;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 128, 11, 0.3);
}

[data-theme="light"] .btn-premium:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

[data-theme="dark"] .btn-premium:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Disclaimer Section */
.disclaimer-section {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.disclaimer-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-container h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.disclaimer-card {
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.2);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.disclaimer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.disclaimer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: rgba(128, 128, 128, 0.3);
}

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

[data-theme="light"] .disclaimer-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
}

.disclaimer-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.disclaimer-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.8;
}

/* Final CTA */
.final-cta {
  padding: 4rem 2rem;
  background: var(--bg-primary);
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.cta-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  opacity: 0.7;
}

/* Enhanced Button Styles */
.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
}

.btn-card {
  width: 100%;
  margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .pricing-comparison {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .disclaimer-grid {
    grid-template-columns: 1fr;
  }

  .professional-nav .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .showcase-header h2,
  .features-container h2,
  .disclaimer-container h2,
  .cta-container h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .masterclass-container,
  .professional-nav .nav-container,
  .hero-container,
  .showcase-container,
  .features-container,
  .disclaimer-container,
  .cta-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-secondary);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copyright {
  margin-top: 1rem;
}

.footer-copyright p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.8;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-footer {
    margin-top: 2rem;
  }
}

/* Universal Footer */
.universal-footer {
  background: var(--bg-card) ;
  border-top: 2px solid var(--border-color) ;
  margin-top: 3rem;
  padding: 2rem 0 1.5rem 0;
  position: relative;
  z-index: 100;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif ;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Light mode specific footer styling for better contrast */
[data-theme="light"] .universal-footer {
  background: #E6E4D9 ; /* flexoki-base-100 - darker than bg-secondary */
  border-top: 2px solid #CECDC3 ; /* flexoki-base-200 */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.universal-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.universal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.universal-footer-link {
  color: var(--text-muted) ;
  text-decoration: none ;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif ;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
}

.universal-footer-link:hover {
  color: var(--accent-primary) ;
  text-decoration: none ;
  background-color: rgba(102, 128, 11, 0.1);
  transform: translateY(-1px);
}

.universal-footer-link:visited {
  color: var(--text-muted) ;
}

.universal-footer-link:focus {
  color: var(--accent-primary) ;
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Light mode specific link styling */
[data-theme="light"] .universal-footer-link {
  color: #6F6E69 ; /* flexoki-base-700 */
}

[data-theme="light"] .universal-footer-link:hover {
  color: #66800B ; /* flexoki-green-600 */
}

[data-theme="light"] .universal-footer-link:visited {
  color: #6F6E69 ; /* flexoki-base-700 */
}

.universal-footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent-primary) ;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.universal-footer-link:hover::after {
  width: 80%;
}

.universal-footer-copyright {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color) ;
  transition: border-color 0.3s ease;
}

.universal-footer-copyright p {
  color: var(--text-muted) ;
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.8;
  font-weight: 400;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif ;
  transition: color 0.3s ease;
}

/* Mobile Universal Footer */
@media (max-width: 768px) {
  .universal-footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .universal-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 1rem 0 ;
  }
  
  .universal-footer-content {
    padding: 0 1rem;
  }
  
  .universal-footer-link {
    font-size: 0.7rem ;
    padding: 0.3rem 0.7rem;
  }
  
  .universal-footer-copyright p {
    font-size: 0.7rem ;
  }
}

/* FORCE UNIVERSAL FOOTER STYLING - HIGHEST SPECIFICITY */
body footer.universal-footer {
  background: var(--bg-secondary) ; /* Flexoki secondary background */
  border-top: 1px solid var(--border-color) ;
  margin-top: 3rem ;
  padding: 2rem 0 1.5rem 0 ;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif ;
  width: 100% ;
  transition: background-color 0.3s ease, border-color 0.3s ease ;
}

body footer.universal-footer .universal-footer-content {
  max-width: 1200px ;
  margin: 0 auto ;
  padding: 0 2rem ;
  text-align: center ;
}

body footer.universal-footer .universal-footer-links {
  display: flex ;
  justify-content: center ;
  align-items: center ;
  gap: 1.5rem ;
  margin-bottom: 1rem ;
  flex-wrap: wrap ;
}

body footer.universal-footer a.universal-footer-link {
  color: var(--text-muted) ; /* Light grey text */
  text-decoration: none ;
  font-size: 0.8rem ;
  font-weight: 400 ;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif ;
  padding: 0.25rem 0.5rem ;
  border-radius: 4px ;
  transition: all 0.3s ease ;
  display: inline-block ;
  position: relative ;
}

body footer.universal-footer a.universal-footer-link:hover {
  color: var(--text-secondary) ; /* Slightly lighter on hover */
  text-decoration: none ;
}

body footer.universal-footer a.universal-footer-link:visited {
  color: var(--text-muted) ; /* Same as default */
}

body footer.universal-footer .universal-footer-copyright {
  padding-top: 1rem ;
  border-top: 1px solid var(--border-color) ;
}

body footer.universal-footer .universal-footer-copyright p {
  color: var(--text-muted) ; /* Light grey text */
  font-size: 0.75rem ;
  margin: 0 ;
  opacity: 0.8 ;
  font-weight: 400 ;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif ;
}

/* Mobile styles with highest specificity */
@media (max-width: 768px) {
  body footer.universal-footer .universal-footer-links {
    flex-direction: column ;
    gap: 1rem ;
  }
  
  body footer.universal-footer a.universal-footer-link {
    font-size: 0.8rem ;
    padding: 0.4rem 0.8rem ;
  }
}

/* PROFILE PAGE DARK THEME ENFORCEMENT */
/* Force dark Flexoki colors for profile page elements */
.profile-card {
  background: var(--bg-card) ;
  border: 1px solid var(--border-color) ;
  color: var(--text-primary) ;
}

.profile-card .card-header {
  background: var(--bg-executive) ;
  border-bottom: 1px solid var(--border-color) ;
}

.profile-card .card-content {
  background: var(--bg-card) ;
  color: var(--text-primary) ;
}

.profile-card .form-input {
  background: var(--bg-primary) ;
  border: 1px solid var(--border-color) ;
  color: var(--text-primary) ;
}

.profile-card .stat-item {
  background: var(--bg-primary) ;
  border: 1px solid var(--border-color) ;
  color: var(--text-primary) ;
}

/* Ensure profile container uses dark theme */
.masterclass-container {
  background: var(--bg-primary) ;
  color: var(--text-primary) ;
}

/* Additional profile page enforcement */
body .profile-card,
body .masterclass-container .profile-card {
  background: var(--bg-card) ;
  border: 1px solid var(--border-color) ;
  color: var(--text-primary) ;
}

body .profile-card .card-header,
body .masterclass-container .profile-card .card-header {
  background: var(--bg-executive) ;
  color: var(--text-executive) ;
}

body .profile-card .card-content,
body .masterclass-container .profile-card .card-content {
  background: var(--bg-card) ;
  color: var(--text-primary) ;
}

/* Make sure stat items use dark theme */
body .stat-item,
body .profile-card .stat-item {
  background: var(--bg-primary) ;
  color: var(--text-primary) ;
  border: 1px solid var(--border-color) ;
}