:root {
  --bg-dark: #080c14;
  --bg-card: #0f172a;
  --bg-card-glass: rgba(15, 23, 42, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: #4f46e5;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.35);
  
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  
  --accent: #a855f7;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --warning: #f59e0b;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography & Links */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.15); }
  50% { box-shadow: 0 0 35px rgba(79, 70, 229, 0.3); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 15px rgba(79, 70, 229, 0.4); }
  50% { text-shadow: 0 0 25px rgba(79, 70, 229, 0.6); }
}
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Grid & Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  background: linear-gradient(to right, #ffffff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  -webkit-text-fill-color: white; /* Overrides gradient logo */
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-sm), 0 4px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
}
.btn-accent:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.hero-content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: #c7d2fe;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.1);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Feature Cards / Services */
.services {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

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

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

.card-icon {
  font-size: 2.25rem;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  border: 1px solid var(--border-glass);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Calculator Section */
.calc-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark), rgba(15, 23, 42, 0.3), var(--bg-dark));
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.calc-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.calc-group {
  margin-bottom: 2.5rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-val {
  color: var(--secondary);
  font-size: 1.1rem;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--text-main);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.result-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.result-value-highlight {
  color: var(--success);
}

/* Visualization inside Calculator */
.calc-visual {
  text-align: center;
}

.chart-bar-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  height: 250px;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
}

.chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: #1e293b;
  transition: height 0.4s ease-out;
  min-height: 20px;
}

.bar-invested {
  background: linear-gradient(180deg, var(--primary), rgba(79, 70, 229, 0.3));
}

.bar-gained {
  background: linear-gradient(180deg, var(--success), rgba(16, 185, 129, 0.3));
}

.chart-bar-label {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Authentication Page / Modal overlay style */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 2.5rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.auth-tab.active {
  color: var(--text-main);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats / Social Proof */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Legal Feed / Pages */
.legal-content {
  padding: 6rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.info-box {
  background: rgba(79, 70, 229, 0.05);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-box p {
  color: #c7d2fe;
  margin: 0;
}

/* ------------------------------------------------------------- */
/* CLIENT PORTAL & DASHBOARD GRID SYSTEM                         */
/* ------------------------------------------------------------- */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: var(--bg-dark);
}

/* Sidebar */
.sidebar {
  background: #0b0f19;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
  background: rgba(79, 70, 229, 0.15);
  color: var(--text-main);
  border-left: 3px solid var(--primary);
}

.menu-item-icon {
  font-size: 1.2rem;
  width: 24px;
  display: inline-block;
}

.sidebar-profile {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
}

.profile-details {
  overflow: hidden;
  flex: 1;
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.profile-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  transition: var(--transition);
}
.btn-logout:hover {
  color: var(--danger);
}

/* Dashboard Workspace */
.workspace {
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workspace-title h1 {
  font-size: 1.85rem;
  font-weight: 800;
}

.workspace-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Live Stock Ticker Bar */
.ticker-bar {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  margin-right: 1.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-glass);
  white-space: nowrap;
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-items {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker-scroll 30s linear infinite;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.ticker-symbol {
  color: var(--text-main);
}

.ticker-price {
  color: var(--text-muted);
}

.ticker-change {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.ticker-up {
  color: var(--success);
  background: var(--success-glow);
}
.ticker-down {
  color: var(--danger);
  background: var(--danger-glow);
}

.flash-up {
  animation: flash-green 0.5s ease-out;
}
.flash-down {
  animation: flash-red 0.5s ease-out;
}

@keyframes flash-green {
  0% { background-color: rgba(16, 185, 129, 0.6); }
  100% { background-color: transparent; }
}
@keyframes flash-red {
  0% { background-color: rgba(239, 68, 68, 0.6); }
  100% { background-color: transparent; }
}

/* Dashboard Content Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.dashboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 1rem;
}

.panel-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
}

.stat-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card-dashboard {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-card-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-card-footer {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Interactive SVG Pie Chart Component */
.chart-container-donut {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-svg {
  transform: rotate(-90deg);
}

.donut-segment {
  fill: none;
  stroke-width: 14;
  transition: stroke-dasharray 0.5s ease;
  cursor: pointer;
}

.donut-center {
  position: absolute;
  text-align: center;
}

.donut-center-val {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.donut-center-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Portfolio Table & Forms */
.portfolio-actions-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

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

.table-dashboard th {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

.table-dashboard td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-dashboard tr:last-child td {
  border-bottom: none;
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-equities { background: rgba(79, 70, 229, 0.15); color: #c7d2fe; }
.badge-debt { background: rgba(6, 182, 212, 0.15); color: #a5f3fc; }
.badge-gold { background: rgba(245, 158, 11, 0.15); color: #fef08a; }
.badge-cash { background: rgba(16, 185, 129, 0.15); color: #a7f3d0; }

.btn-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-action-delete:hover {
  color: var(--danger);
}

/* Custom modal or side drawer for form */
.form-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.form-panel.active {
  display: block;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1rem;
  align-items: flex-end;
}

/* Goals Progress Card */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.goal-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.goal-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.goal-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s ease;
}

.goal-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* AI Wealth Advisor Tab */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 500px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
}

.chat-history {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-message {
  max-width: 75%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-ai {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-user {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
  text-align: right;
}

.message-user .message-time {
  color: rgba(255, 255, 255, 0.6);
}

.chat-input-area {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-card);
  gap: 1rem;
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* Tab display logic */
.dashboard-tab-content {
  display: none;
}
.dashboard-tab-content.active {
  display: block;
}

/* Footer Section (Landing) */
footer {
  background-color: #05070a;
  color: var(--text-muted);
  padding: 4rem 0 2.5rem 0;
  border-top: 1px solid var(--border-glass);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-muted);
}
.footer-links-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* Mobile responsive fixes */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .calc-container { grid-template-columns: 1fr; gap: 2rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; } /* Mobile navbar needed for complete fallback */
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
