/* ============================================
   RSI CAPITAL INVESTMENT - STYLES PREMIUM
   ============================================ */

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

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #1A3A5C;
  --primary-light: #2A5080;
  --primary-dark: #0F2338;
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #A88A1A;
  --white: #FFFFFF;
  --off-white: #F8F6F0;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-gold: 0 4px 24px rgba(212,175,55,0.25);
  
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.7; color: var(--gray-600); }

/* ========== LAYOUT ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.section { padding: var(--spacing-4xl) 0; }
.section-sm { padding: var(--spacing-2xl) 0; }

/* ========== COMPONENTS - BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-gold { background: rgba(212,175,55,0.15); color: var(--gold-dark); border: 1px solid rgba(212,175,55,0.3); }
.badge-blue { background: rgba(26,58,92,0.1); color: var(--primary); border: 1px solid rgba(26,58,92,0.2); }
.badge-success { background: rgba(34,197,94,0.1); color: #16A34A; border: 1px solid rgba(34,197,94,0.3); }
.badge-danger { background: rgba(239,68,68,0.1); color: #DC2626; border: 1px solid rgba(239,68,68,0.3); }

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
  padding: 0 var(--spacing-lg);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg { color: var(--white); width: 20px; height: 20px; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}
.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: var(--spacing-sm); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: var(--spacing-xl);
  flex-direction: column;
  gap: var(--spacing-md);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--gray-200);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4d7a 100%);
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/36685848/pexels-photo-36685848.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200') center/cover no-repeat;
  opacity: 0.12;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.95) 0%, rgba(15,35,56,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-4xl) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.2);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: var(--spacing-lg);
}
.hero-eyebrow span { font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { color: var(--white); margin-bottom: var(--spacing-lg); }
.hero h1 span { color: var(--gold); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: var(--spacing-xl); }
.hero-btns { display: flex; flex-wrap: wrap; gap: var(--spacing-md); margin-bottom: var(--spacing-2xl); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--spacing-xl); }
.hero-stat { text-align: left; }
.hero-stat-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 900; color: var(--gold); display: block; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ========== SEARCH BAR ========== */
.search-section {
  background: var(--white);
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.search-bar {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}
.search-input-wrapper {
  flex: 1;
  position: relative;
}
.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  width: 20px;
  height: 20px;
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.filter-select {
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ========== FORTUNE CARDS GRID ========== */
.fortunes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--spacing-xl);
  padding: var(--spacing-2xl) 0;
}
.fortune-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.fortune-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}
.fortune-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}
.fortune-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.fortune-rank {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--primary-dark);
}
.fortune-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: var(--spacing-md);
}
.fortune-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.fortune-title { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.fortune-card-body { padding: var(--spacing-lg); padding-top: var(--spacing-xl); }
.fortune-wealth {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--spacing-md);
}
.fortune-wealth-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.fortune-wealth-unit { font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }
.fortune-wealth-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.fortune-wealth-change.up { background: rgba(34,197,94,0.1); color: #16A34A; }
.fortune-wealth-change.down { background: rgba(239,68,68,0.1); color: #DC2626; }
.fortune-wealth-change.stable { background: rgba(245,158,11,0.1); color: #D97706; }
.fortune-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--spacing-lg);
}
.fortune-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.fortune-meta-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.fortune-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--spacing-lg);
}
.fortune-card-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fortune-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.fortune-mini-chart-bar {
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  transition: height 0.3s ease;
}

/* ========== PROFILE PAGE ========== */
.profile-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding-top: 72px;
  padding-bottom: var(--spacing-4xl);
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/321452/pexels-photo-321452.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=400&w=1200') center/cover;
  opacity: 0.05;
}
.profile-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}
.profile-avatar-lg {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-dark);
  border: 4px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.profile-info .profile-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,0.25);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: var(--spacing-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}
.profile-info h1 { color: var(--white); margin-bottom: 8px; }
.profile-info p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.profile-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-2xl);
}
.profile-stat-item {
  background: var(--white);
  padding: var(--spacing-lg);
  text-align: center;
}
.profile-stat-item .value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: block;
}
.profile-stat-item .label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.profile-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--spacing-2xl);
}
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}
.content-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--gray-100);
  font-size: 1.1rem;
}
.content-card h3 .card-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-card h3 .card-icon svg { width: 18px; height: 18px; color: var(--white); }

/* ========== INVESTMENT BARS ========== */
.investment-item { margin-bottom: var(--spacing-md); }
.investment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.investment-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.investment-pct { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.investment-bar-track {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.investment-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 1s ease;
}
.investment-detail { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }

/* ========== CHART ========== */
.chart-container {
  position: relative;
  height: 280px;
  margin-top: var(--spacing-lg);
}
.chart-canvas { width: 100%; height: 100%; }

/* ========== COMPANIES LIST ========== */
.companies-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.company-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 12px var(--spacing-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.company-item:hover { background: var(--off-white); border-color: var(--gold); }
.company-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.company-icon svg { width: 20px; height: 20px; color: var(--gold); }
.company-name { font-weight: 600; font-size: 0.95rem; color: var(--gray-800); }

/* ========== SIDEBAR WIDGETS ========== */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}
.sidebar-widget.gold-widget {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: var(--primary);
}
.sidebar-widget.gold-widget h4 { color: var(--gold); }
.sidebar-widget.gold-widget p { color: rgba(255,255,255,0.75); }
.sidebar-widget h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== SIMULATOR SECTION ========== */
.simulator-hero {
  background: linear-gradient(135deg, var(--off-white), var(--white));
  padding: var(--spacing-4xl) 0;
}
.simulators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}
.simulator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: var(--spacing-xl);
  transition: all var(--transition);
}
.simulator-card:hover { box-shadow: var(--shadow-xl); border-color: var(--primary); }
.simulator-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}
.simulator-card-icon svg { width: 28px; height: 28px; color: var(--gold); }
.simulator-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.simulator-card p { font-size: 0.85rem; margin-bottom: var(--spacing-lg); }

/* ========== FORM ELEMENTS ========== */
.form-group { margin-bottom: var(--spacing-md); }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.form-input[type="range"] {
  padding: 0;
  border: none;
  height: 6px;
  cursor: pointer;
  accent-color: var(--primary);
  box-shadow: none;
}
.result-display {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  margin-top: var(--spacing-md);
}
.result-display .result-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}
.result-display .result-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--spacing-md);
}
.result-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.result-breakdown-item strong { color: var(--gold); }

/* ========== RANKING TABLE ========== */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th {
  background: var(--gray-50);
  padding: 14px var(--spacing-lg);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.ranking-table td {
  padding: 16px var(--spacing-lg);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.ranking-table tr:hover td { background: var(--gray-50); }
.ranking-table .rank-cell {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
  width: 60px;
}
.ranking-table .rank-cell.top3 { color: var(--gold); }
.person-cell { display: flex; align-items: center; gap: 12px; }
.person-cell-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}
.person-cell-name { font-weight: 600; color: var(--primary-dark); }
.person-cell-sector { font-size: 0.75rem; color: var(--gray-500); }
.wealth-cell { font-family: var(--font-serif); font-weight: 900; font-size: 1.1rem; color: var(--primary-dark); }
.change-cell { font-weight: 600; font-size: 0.85rem; }
.change-cell.up { color: #16A34A; }
.change-cell.down { color: #DC2626; }
.change-cell.stable { color: #D97706; }

/* ========== STICKY FOOTER MARKETING ========== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-top: 3px solid var(--gold);
  padding: 14px var(--spacing-lg);
  transform: translateY(0);
  transition: transform var(--transition);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.sticky-bar.hidden { transform: translateY(100%); }
.sticky-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.sticky-bar-text {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.sticky-bar-text .pulse {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.sticky-bar-text p { font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.sticky-bar-text strong { color: var(--gold); }
.sticky-bar-cta { display: flex; align-items: center; gap: var(--spacing-md); }
.sticky-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.sticky-close:hover { color: rgba(255,255,255,0.9); }
.sticky-close svg { width: 20px; height: 20px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ========== EXIT POPUP ========== */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.exit-popup {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s ease;
}
.exit-popup-overlay.active .exit-popup {
  transform: scale(1) translateY(0);
}
.exit-popup-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-lg);
  position: relative;
  text-align: center;
}
.exit-popup-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
}
.exit-popup-close:hover { background: rgba(255,255,255,0.25); }
.exit-popup-close svg { width: 18px; height: 18px; }
.exit-popup-icon {
  width: 64px;
  height: 64px;
  background: rgba(212,175,55,0.2);
  border: 2px solid var(--gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}
.exit-popup-icon svg { width: 32px; height: 32px; color: var(--gold); }
.exit-popup-header h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.exit-popup-header p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.exit-popup-body {
  padding: var(--spacing-xl);
}
.exit-popup-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--spacing-xl);
}
.exit-popup-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.exit-popup-benefit .check {
  width: 24px;
  height: 24px;
  background: rgba(34,197,94,0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.exit-popup-benefit .check svg { width: 14px; height: 14px; color: #16A34A; }
.exit-popup-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.exit-popup-skip {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
}
.exit-popup-skip:hover { color: var(--gray-600); }

/* ========== REVEAL ON SCROLL ========== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FAQ ========== */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}
.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--white);
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question.active { background: rgba(26,58,92,0.05); color: var(--primary); }
.faq-question svg { width: 20px; height: 20px; transition: transform var(--transition); flex-shrink: 0; }
.faq-question.active svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
}

/* ========== SECTION HEADERS ========== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--spacing-2xl); }
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
}
.section-header p { font-size: 1rem; color: var(--gray-500); margin-top: var(--spacing-sm); }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: rgba(255,255,255,0.9); }

/* ========== FOOTER ========== */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding-bottom: 80px;
}
.footer-top {
  padding: var(--spacing-4xl) 0 var(--spacing-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
}
.footer-brand .nav-logo { margin-bottom: var(--spacing-lg); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: var(--gold); }

/* ========== RELATED CARDS ========== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--spacing-lg);
}
.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: var(--spacing-lg);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); transform: translateY(-3px); }
.related-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.related-card-name { font-weight: 700; font-size: 0.9rem; color: var(--primary-dark); }
.related-card-wealth { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; }

/* ========== SCHEMA COLORS ========== */
.trend-up { color: #16A34A; }
.trend-down { color: #DC2626; }
.trend-stable { color: #D97706; }
.text-gold { color: var(--gold-dark); }
.text-primary { color: var(--primary); }
.bg-primary { background: var(--primary); }
.bg-gold { background: var(--gold); }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-2xl);
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .profile-content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  
  .hero-stats { gap: var(--spacing-lg); }
  .hero-stat-value { font-size: 1.5rem; }
  
  .fortunes-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .filter-select { width: 100%; }
  
  .profile-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .profile-avatar-lg { margin: 0 auto; }
  .breadcrumb { justify-content: center; }
  
  .profile-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  
  .sticky-bar-text p { font-size: 0.8rem; }
  
  .ranking-table th:nth-child(n+4),
  .ranking-table td:nth-child(n+4) { display: none; }
  
  .simulators-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--spacing-md); }
  .hero { padding-bottom: var(--spacing-xl); }
  .profile-stats-bar { grid-template-columns: 1fr 1fr; }
  .exit-popup-body { padding: var(--spacing-md); }
}