@charset "UTF-8";
/* MarketMoodz base styles */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666666;
  --accent: #0f62fe; /* blue accent */
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Generic, responsive typography */
h1 { font-weight: 700; font-size: clamp(28px, 4.5vw, 44px); line-height: 1.28; margin: 0 0 12px; padding-bottom: 3px; overflow: visible; }
h2 { font-weight: 700; font-size: clamp(22px, 3.5vw, 32px); line-height: 1.28; margin: 0 0 12px; padding-bottom: 2px; overflow: visible; }
h3 { font-weight: 600; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.32; margin: 0 0 10px; padding-bottom: 2px; overflow: visible; }
p  { margin: 0 0 10px; }
img { max-width: 100%; height: auto; display: block; }

/* Header & Nav */
.platform-preview .section-title {
  display: block;
  text-align: center;
  justify-content: center;
  margin-bottom: 12px;
}

.platform-preview .section-subtitle {
    display: block;
    text-align: center;
    justify-content: center;
    margin-bottom: 12px;
  }

.platform-preview .grid.cols-2 {
  align-items: center;
  justify-items: center; /* center grid children horizontally */
}

.platform-preview .grid.cols-2 > div {
  text-align: center; /* center text in both columns */
}

.platform-preview .grid.cols-2 > div:last-child {
  max-width: 560px;
  margin: 0 auto;
}

.platform-preview .grid.cols-2 > div:last-child ul {
  display: inline-block; /* let list be centered as a block */
  text-align: left;       /* keep list items left-aligned for readability */
}
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, #162435, #299399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Optional gradient logo text helper (not previously defined) */
.logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #162435, #299399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

/* Landing page specific nav styles */
.nav-cta {
  background: linear-gradient(135deg, #299399, #3fb4bb);
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(41, 147, 153, 0.3);
  color: #ffffff !important;
}

/* Hide landing-only elements by default */
.landing-only {
  display: none;
}

/* Show landing elements and hide login on landing page */
body.landing-page .landing-only {
  display: inline-block;
}

body.landing-page .login-link {
  display: none;
}

/* Hide analyst CTA on landing page */
body.landing-page .analyst-cta {
  display: none !important;
}

/* Auth state styles */
.hidden {
  display: none !important;
}

.account-link,
.logout-link {
  color: var(--accent);
  font-weight: 600;
}

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

/* Billing Options Section */
.billing-options-section {
  padding: 2rem 0;
}

/* Current Plan status badge */
.plan-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.plan-status.active {
  background: #e8f5f5;
  color: #166534;
}

.plan-status.canceled {
  background: #fee2e2;
  color: #b91c1c;
}

.tier-info {
  text-align: center;
  margin-bottom: 2rem;
}

.tier-info h2 {
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.tier-info p {
  color: var(--fg-muted);
}

.billing-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.billing-option-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.billing-option-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.billing-option-card.current {
  border-color: var(--accent);
  background: var(--bg-accent);
}

.plan-header {
  margin-bottom: 1rem;
}

.plan-header h3 {
  margin: 0 0 0.5rem 0;
  color: var(--fg);
}

.current-badge {
  background: #299399;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-pricing {
  margin-bottom: 1rem;
}

.monthly-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.monthly-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.total-price {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.plan-savings {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-height: 1.2rem;
}

.billing-btn {
  background: linear-gradient(135deg, #299399, #3fb4bb);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease;
  width: 100%;
}

.billing-btn:hover:not(:disabled) {
  filter: brightness(0.9);
}

.billing-btn:disabled {
  background: var(--bg-muted);
  color: var(--fg-muted);
  cursor: not-allowed;
}

.billing-btn.current {
  background: var(--bg-muted);
  color: var(--fg-muted);
}

.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--fg-muted);
}

/* Loyalty Progress Card */
.loyalty-progress-card {
  background: linear-gradient(135deg, #299399 0%, #3fb4bb 100%);
  color: #162435;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

.loyalty-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.loyalty-progress {
  margin: 1.5rem 0;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.3);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  background: white;
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.loyalty-benefits {
  margin: 1.5rem 0;
  text-align: left;
}

.loyalty-benefits h4 {
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.loyalty-benefits ul {
  list-style: none;
  padding: 0;
}

.loyalty-benefits li {
  padding: 0.25rem 0;
  font-weight: 500;
}

.loyalty-note {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Backup Payment Card */
.backup-payment-card {
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.backup-header h3 {
  margin: 0 0 0.5rem 0;
  color: var(--fg);
}

.backup-header p {
  color: var(--fg-muted);
  margin: 0 0 1rem 0;
}

.backup-benefits {
  margin: 1rem 0;
}

.backup-benefits ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.backup-benefits li {
  padding: 0.25rem 0;
  color: var(--fg);
  font-weight: 500;
}

.backup-btn {
  background: linear-gradient(135deg, #299399, #3fb4bb);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

.backup-btn:hover:not(:disabled) {
  filter: brightness(0.9);
}

.backup-btn:disabled {
  background: var(--bg-success);
  color: white;
  cursor: not-allowed;
}

.backup-btn.active {
  background: var(--bg-success);
  color: white;
}

/* Testing Controls */
.testing-controls {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.testing-controls h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.test-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.test-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.06);
    padding: 10px 14px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

/* Hero section */
.hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
}

.hero h1 { margin: 0 0 8px; }

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* Reusable sections (centered on page; text left-aligned) */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: 0; }
.section .container { max-width: 960px; }
.section p { color: var(--muted); }

/* Simple grid helpers */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.footer-disclaimer a {
  color: var(--accent);
  text-decoration: none;
}

.footer-disclaimer a:hover {
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  margin: 0;
}

/* Performance Page Styles */
.header-section {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.disclaimer {
    background: linear-gradient(135deg, #fff4e6, #ffe8cc);
    border-left: 4px solid #ff9800;
    padding: 15px 20px;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    text-align: left;
}

.disclaimer strong {
    color: #e67e00;
    display: block;
    margin-bottom: 5px;
}

.disclaimer p {
    color: #6b7280;
    font-size: 14px;
    margin: 5px 0;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #299399;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(41, 147, 153, 0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #299399;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 5px;
}

/* Last Updated */
.last-updated {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 20px 0;
    padding: 10px;
    background: #fafbfc;
    border-radius: 8px;
    display: inline-block;
}

/* Table Section */
.table-section {
    margin: 60px 0;
}

.month-header {
    background: linear-gradient(135deg, #162435, #299399);
    color: white;
    padding: 15px 25px;
    border-radius: 15px 15px 0 0;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-stats {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
}

.performance-table {
    width: 100%;
    background: white;
    box-shadow: 0 10px 40px rgba(22, 36, 53, 0.1);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.performance-table table {
    width: 100%;
    border-collapse: collapse;
}

.performance-table th {
    background: #fafbfc;
    color: #162435;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.performance-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}

.performance-table tr:hover {
    background: #fafbfc;
}

.ticker-cell {
    font-weight: bold;
    color: #162435;
}

.positive {
    color: #299399;
    font-weight: 600;
}

.negative {
    color: #ef4444;
    font-weight: 600;
}

.alpha-positive {
    background: linear-gradient(90deg, rgba(41, 147, 153, 0.1) 0%, transparent 100%);
    color: #299399;
    font-weight: bold;
}

.alpha-negative {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
    color: #ef4444;
    font-weight: bold;
}

/* Summary Row */
.summary-row {
    background: linear-gradient(135deg, #fafbfc, #f3f4f6) !important;
    font-weight: bold;
}

.summary-row td {
    padding: 20px 15px;
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
    color: #162435;
}

/* Defensive: ensure summary row stays a real table row/cells even if a global .row rule exists */
.performance-table table { table-layout: auto; }
.performance-table tr.summary-row { display: table-row; }
.performance-table tr.summary-row > td { display: table-cell; }

/* CTA Section */
.cta-section {        
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #162435;
}

.cta-section p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}

.cta-button {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(41, 147, 153, 0.3);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(41, 147, 153, 0.4);
}

/* Performance Page Responsive */
@media (max-width: 768px) {
    .performance-table {
        overflow-x: auto;
    }
    
    .performance-table table {
        min-width: 600px;
    }
    
    .month-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
}

/* Changelog Page Styles */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Roadmap Section */
.roadmap-section {
    background: #fafbfc;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #162435;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Center specific section headers on account page */
.backup-payment-section .section-title,
.email-preferences-section .section-title,
.billing-history .section-title {
  display: block;
  text-align: center;
  justify-content: center;
}

/* Keep billing history table container centered */
.billing-history .billing-table-container {
  margin-left: auto;
  margin-right: auto;
}

.proof-section .section-title,
.trust-section .section-title {
    display: block;
    text-align: center;
    justify-content: center;
    gap: 0;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.roadmap-grid {
    display: grid;
    gap: 20px;
}

.roadmap-item {
    background: white;
    border-left: 4px solid #299399;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(22, 36, 53, 0.08);
    transition: all 0.3s;
    position: relative;
}

.roadmap-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(41, 147, 153, 0.15);
}

.roadmap-item::before {
    content: '→';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #299399;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.roadmap-item h3 {
    color: #162435;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.roadmap-item p {
    color: #6b7280;
    font-size: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.status-planned {
    background: #e8f5f5;
    color: #299399;
}

.status-progress {
    background: #fff4e6;
    color: #ff9800;
}

/* Updates Timeline */
.updates-timeline {
    position: relative;
    padding-left: 40px;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #299399 0%, rgba(41, 147, 153, 0.1) 100%);
}

.update-item {
    position: relative;
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(22, 36, 53, 0.08);
    transition: all 0.3s;
}

.update-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(41, 147, 153, 0.15);
}

.update-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: #299399;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(41, 147, 153, 0.2);
}

.update-date {
    display: inline-block;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.update-content {
    color: #162435;
    font-size: 16px;
    line-height: 1.7;
}

.update-content strong {
    color: #299399;
    font-weight: 600;
}

.update-tag {
    display: inline-block;
    background: #e8f5f5;
    color: #299399;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 10px;
    margin-right: 5px;
}

/* Launch Badge */
.launch-update {
    background: linear-gradient(135deg, rgba(41, 147, 153, 0.05), rgba(41, 147, 153, 0.1));
    border: 2px solid #299399;
}

.launch-update .update-date {
    background: linear-gradient(135deg, #ff9800, #ffb347);
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.footer-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #162435;
}

.footer-cta p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Changelog Page Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    
    .roadmap-section {
        padding: 25px;
    }
    
    .updates-timeline {
        padding-left: 30px;
    }
    
    .update-item {
        padding: 20px;
    }
}

/* Pricing Page Styles */
.urgency-banner {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #ffb347);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

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

/* Pricing Explanation */
.pricing-explanation {
    max-width: 800px;
    margin: -50px auto 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(22, 36, 53, 0.15);
    position: relative;
    z-index: 2;
}

.explanation-title {
    font-size: 24px;
    color: #162435;
    margin-bottom: 20px;
    font-weight: bold;
}

.explanation-text {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f5f5, #d1eded);
    border-left: 4px solid #299399;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.highlight-box strong {
    color: #162435;
    display: block;
    margin-bottom: 5px;
}

/* Pricing Table */
.pricing-section {
    padding: 80px 0;
    background: #fafbfc;
}

.pricing-table-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(22, 36, 53, 0.1);
}

.table-header {
    background: linear-gradient(135deg, #162435, #299399);
    color: white;
    padding: 30px;
    text-align: center;
}

.table-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.table-header p {
    opacity: 0.9;
    font-size: 16px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: #f8f9fa;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #162435;
    border-bottom: 2px solid #e5e7eb;
}

.pricing-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
}

.pricing-table tr:hover {
    background: #fafbfc;
}

.tier-name {
    font-weight: bold;
    color: #162435;
    font-size: 18px;
}

.tier-current {
    background: linear-gradient(90deg, rgba(41, 147, 153, 0.1) 0%, transparent 100%);
}

.tier-current .tier-name::after {
    content: '← YOU ARE HERE';
    color: #299399;
    font-size: 12px;
    margin-left: 15px;
    font-weight: 600;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #299399;
}

.price-month {
    font-size: 16px;
    color: #6b7280;
    font-weight: normal;
}

.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #ffb347);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: 600;
}

.spots-left {
    color: #ef4444;
    font-weight: 600;
    font-size: 14px;
}

.tier-locked {
    opacity: 0.5;
}

.tier-locked .tier-name::after {
    content: '🔒';
    margin-left: 10px;
}

/* Progress Bar */
.progress-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.progress-title {
    text-align: center;
    font-size: 24px;
    color: #162435;
    margin-bottom: 30px;
    font-weight: bold;
}

.progress-bar-wrapper {
    background: #e5e7eb;
    height: 60px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #299399, #3fb4bb);
    height: 100%;
    width: 20%;
    border-radius: 30px;
    position: relative;
    animation: fillProgress 2s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

@keyframes fillProgress {
    from { width: 0; }
    to { width: 20%; }
}

.progress-text {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    position: relative;
}

.milestone {
    text-align: center;
    flex: 1;
}

.milestone-number {
    font-weight: bold;
    color: #162435;
    font-size: 14px;
}

.milestone-label {
    color: #6b7280;
    font-size: 12px;
}

/* Trial Section */
.trial-section {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.trial-box {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(41, 147, 153, 0.05), rgba(41, 147, 153, 0.1));
    border: 2px solid #299399;
    border-radius: 20px;
    padding: 40px;
}

.trial-title {
    font-size: 32px;
    color: #162435;
    margin-bottom: 20px;
}

.trial-price {
    font-size: 64px;
    font-weight: bold;
    color: #299399;
    margin: 20px 0;
}

.trial-description {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 30px;
}

.guarantee {
    margin-top: 20px;
    color: #6b7280;
    font-size: 16px;
}

.guarantee strong {
    color: #299399;
}

/* Pricing Page Responsive */
@media (max-width: 768px) {
    .pricing-table-container {
        overflow-x: auto;
    }
    
    .pricing-table {
        min-width: 600px;
    }
    
    .trial-price {
        font-size: 48px;
    }
    
    .pricing-explanation {
        margin: -30px auto 40px;
        padding: 30px;
    }
}

/* Product Page Styles */
/* Product Hero Section */
.product-hero {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 147, 153, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(22, 36, 53, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

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

.product-hero h1 {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #162435 0%, #299399 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: gradient 4s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-hero .subtitle {
    font-size: 22px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

/* Product Features Section */
.product-features {
    padding: 80px 0;
    background: #ffffff;
}

.product-features .section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: #162435;
    font-weight: 800;
}

/* Product Feature Cards */
.product-feature {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 36, 53, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #299399, #3fb4bb);
}

.product-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(41, 147, 153, 0.15);
}

.product-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.product-feature-screenshot {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.product-feature-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(22, 36, 53, 0.15);
    transition: transform 0.3s;
}

.product-feature:hover .product-feature-screenshot img {
    transform: scale(1.02);
}

.product-feature-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.product-feature-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
}

.product-feature h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #162435;
    font-weight: 700;
}

.product-feature p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-feature-list li {
    padding: 10px 0;
    color: #4b5563;
    display: flex;
    align-items: center;
}

.product-feature-list li::before {
    content: '✓';
    color: #299399;
    font-weight: bold;
    margin-right: 12px;
    font-size: 20px;
}

/* Product Demo Section */
.product-demo {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    padding: 80px 0;
    text-align: center;
}

.product-demo-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(22, 36, 53, 0.15);
}

.product-demo-title {
    font-size: 32px;
    color: #162435;
    margin-bottom: 20px;
    font-weight: 700;
}

.product-demo-description {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.product-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

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

.product-stat-number {
    font-size: 48px;
    color: #299399;
    font-weight: bold;
}

.product-stat-label {
    color: #6b7280;
}

/* Product CTA Section */
.product-cta {
    background: #162435;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 147, 153, 0.2) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-cta h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.product-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.product-cta-button {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(41, 147, 153, 0.3);
}

.product-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(41, 147, 153, 0.4);
}

.product-cta-button-secondary {
    background: transparent;
    border: 2px solid #299399;
    color: #299399;
    box-shadow: none;
}

.product-cta-button-secondary:hover {
    background: #299399;
    color: white;
}

/* Product Page Responsive */
@media (max-width: 768px) {
    .product-hero h1 {
        font-size: 36px;
    }
    
    .product-features .section-title {
        font-size: 32px;
    }
    
    .product-feature {
        flex-direction: column !important;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .product-feature h3 {
        font-size: 24px;
    }
    
    .product-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .product-cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .product-stats {
        flex-direction: column;
        gap: 30px;
    }
}

/* Analyst Page Styles */
/* Enhanced page header */
.analyst-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.analyst-page-title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #162435 0%, #299399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced tabs with better mobile design */
.analyst-tabs-container {
    position: sticky;
    top: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(41, 147, 153, 0.1);
}

.analyst-tabs-index {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.analyst-tabs-index::-webkit-scrollbar {
    display: none;
}

.analyst-tabs-index button {
    flex: none;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    min-width: fit-content;
}

.analyst-tabs-index button:hover {
    background: rgba(41, 147, 153, 0.1);
    color: #299399;
}

/* Enhanced active tab styles */
.analyst-tabs-index button.active {
    color: white;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.analyst-tabs-index button.active[data-category="strong-buy"] {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.analyst-tabs-index button.active[data-category="buy"] {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}
.analyst-tabs-index button.active[data-category="hold"] {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.analyst-tabs-index button.active[data-category="sell"] {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
}
.analyst-tabs-index button.active[data-category="strong-sell"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Enhanced search */
.analyst-search-container {
    position: relative;
    margin-bottom: 24px;
}

.analyst-search {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.analyst-search:focus {
    outline: none;
    border-color: #299399;
    box-shadow: 0 0 0 4px rgba(41, 147, 153, 0.1);
}

.analyst-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

/* Enhanced cards grid */
.analyst-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
}

/* Completely redesigned cards */
.analyst-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
}

.analyst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Category-specific card styling */
.analyst-card[data-category="strong-buy"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.03), rgba(22, 163, 74, 0.06));
    border-color: rgba(34, 197, 94, 0.2);
}
.analyst-card[data-category="buy"] {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.03), rgba(34, 197, 94, 0.06));
    border-color: rgba(74, 222, 128, 0.2);
}
.analyst-card[data-category="hold"] {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.03), rgba(245, 158, 11, 0.06));
    border-color: rgba(251, 191, 36, 0.2);
}
.analyst-card[data-category="sell"] {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.03), rgba(244, 63, 94, 0.06));
    border-color: rgba(251, 113, 133, 0.2);
}
.analyst-card[data-category="strong-sell"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(220, 38, 38, 0.06));
    border-color: rgba(239, 68, 68, 0.2);
}

/* Recent cards get special treatment */
.analyst-card.recent {
    border-color: #299399;
    box-shadow: 0 4px 16px rgba(41, 147, 153, 0.15);
    position: relative;
}

/* Enhanced card header */
.analyst-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 8px;
    cursor: pointer;
    position: relative;
}

.analyst-ticker {
    font-weight: 800;
    font-size: 20px;
    color: #1f2937;
    letter-spacing: -0.025em;
}

/* Enhanced percentage styling */
.analyst-pct {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.analyst-pct.up {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.analyst-pct.down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.analyst-arrow {
    font-size: 12px;
    font-weight: 900;
}

/* Enhanced card body */
.analyst-card-body {
    padding: 0 12px 12px;
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 8px;
    padding-top: 10px;
}

.analyst-card.open .analyst-card-body {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Enhanced details */
.analyst-details {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.analyst-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.analyst-details li:last-child {
    border-bottom: none;
}

.analyst-details strong {
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
}

.analyst-details .value {
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
}

/* Enhanced more info button */
.analyst-more-info {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    border: none;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.analyst-more-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 147, 153, 0.3);
}

/* Loading states */
.analyst-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.analyst-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #299399;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Summary stats */
.analyst-summary-stats {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.analyst-summary-stats h3 {
    margin: 0 0 16px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.analyst-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.analyst-stat-item {
    padding: 12px;
}

.analyst-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #299399;
    margin-bottom: 4px;
}

.analyst-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Disclaimer */
.analyst-disclaimer {
    font-size: 13px;
    color: #6b7280;
    margin-top: 40px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
    line-height: 1.6;
}

/* Analyst Page Responsive */
@media (max-width: 768px) {
    .analyst-page-header {
        margin-bottom: 24px;
        padding: 12px 0;
    }

    .analyst-tabs-container {
        top: 12px;
        padding: 8px;
        margin-bottom: 20px;
    }

    .analyst-tabs-index {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .analyst-tabs-index button {
        padding: 14px 12px;
        font-size: 13px;
        min-width: auto;
        width: 100%;
        text-align: center;
    }

    .analyst-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .analyst-card-header {
        padding: 16px 20px 12px;
    }

    .analyst-ticker {
        font-size: 18px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .analyst-tabs-index button {
        padding: 12px 16px;
        font-size: 13px;
    }

    .analyst-cards {
        gap: 12px;
    }

    .analyst-card-body {
        padding: 0 20px 20px;
        padding-top: 16px;
    }
}

.account-hero {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.account-title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #162435 0%, #299399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.account-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

/* Account Overview */
.account-overview {
    padding: 40px 0;
}

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

.account-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #162435;
}

.plan-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.card-body {
    padding: 24px;
}

.plan-info {
    margin-bottom: 24px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #162435;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: #299399;
    margin-bottom: 8px;
}

.plan-next-billing {
    color: #6b7280;
    font-size: 14px;
}

.plan-features h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #162435;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 4px 0;
    color: #4b5563;
    font-size: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
}

.detail-value {
    color: #162435;
    font-weight: 500;
}

/* Plan Upgrade Section */
.plan-upgrade {
    padding: 60px 0;
    background: #f9fafb;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
    color: #162435;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 40px;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toggle-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    box-shadow: 0 2px 8px rgba(41, 147, 153, 0.3);
}

.upgrade-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.upgrade-plan-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: none;
}

.upgrade-plan-card.active {
    display: block;
}

.upgrade-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.plan-header h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #162435;
}

.plan-price-display {
    margin-bottom: 16px;
}

.plan-price-display .price {
    font-size: 48px;
    font-weight: 800;
    color: #299399;
}

.plan-price-display .period {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
}

.plan-savings {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.15));
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.plan-total {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.upgrade-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
}

.upgrade-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 147, 153, 0.3);
}

.upgrade-btn.current {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Email Preferences */
.email-preferences-section {
    padding: 60px 0;
    background: #f9fafb;
}

.email-preferences-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: -8px 0 24px;
}

.email-preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.preference-group h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #162435;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: help;
    color: #299399;
    transition: all 0.2s ease;
}

.info-icon:hover {
    color: #162435;
    transform: scale(1.1);
}

.info-icon svg {
    width: 18px;
    height: 18px;
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #162435;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: 280px;
    max-width: 90vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #162435;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: #299399;
    background: rgba(41, 147, 153, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #299399;
}

.checkbox-label span {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #162435;
    font-weight: 600;
}

@media (max-width: 768px) {
    .email-preferences-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Billing History */
.billing-history {
    padding: 60px 0;
}

.billing-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table th {
    background: #f9fafb;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.billing-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

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

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.paid {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.download-link {
    color: #299399;
    text-decoration: none;
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}

/* Account Actions */
.account-actions {
    padding: 60px 0;
    background: #f9fafb;
}

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

.action-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.action-card.danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02), rgba(220, 38, 38, 0.04));
}

.action-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #162435;
}

.action-card.danger h3 {
    color: #dc2626;
}

.action-card p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
}

.action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 147, 153, 0.3);
}

.action-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-btn.danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.payment-modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #162435;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.upgrade-summary {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-row.total {
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #162435;
}

#card-element {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 24px;
}

.payment-actions {
    display: flex;
    gap: 12px;
}

.payment-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 147, 153, 0.3);
}

.payment-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Account Page Responsive */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upgrade-plans {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .billing-table-container {
        overflow-x: auto;
    }
    
    .billing-table {
        min-width: 600px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .payment-actions {
        flex-direction: column;
    }
}

/* Stock Analysis Page Styles */
/* Enhanced page header for stock analysis */
.page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    border-radius: 20px;
}

.page-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #162435 0%, #299399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timestamp {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Enhanced navigation tabs for stock analysis */
.nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(41, 147, 153, 0.1);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex: none;
    padding: 12px 24px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-tab:hover {
    background: rgba(41, 147, 153, 0.1);
    color: #299399;
    transform: translateY(-1px);
}

.nav-tab.active {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 147, 153, 0.3);
}

/* Enhanced rating section */
.rating-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
}

.rating-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.rating-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 32px;
    padding: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .rating-container {
        grid-template-columns: 1fr 1fr;
    }
}

.rating-info h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--primary-brand);
}

.rating-details {
    display: grid;
    gap: 16px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 14px;
}

.rating-value {
    font-weight: 700;
    color: var(--primary-brand);
    font-size: 16px;
}

.rating-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.confidence-medium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Rating-specific color schemes */
.rating-section.strong-buy::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.rating-section.buy::before {
    background: linear-gradient(90deg, #84cc16, #65a30d);
}

.rating-section.hold::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.rating-section.sell::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.rating-section.strong-sell::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.rating-section.strong-buy .rating-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.rating-section.buy .rating-badge {
    background: linear-gradient(135deg, #84cc16, #65a30d);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.rating-section.hold .rating-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.rating-section.sell .rating-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.rating-section.strong-sell .rating-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* TradingView widget container */
.tradingview-container {
    min-width: 300px;
    max-width: 400px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tradingview-widget {
    min-width: 300px;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tradingview-widget-container {
    width: 100%;
    height: 300px;
}

/* Enhanced analysis sections */
.analysis-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #299399, #3fb4bb);
}

.analysis-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--primary-brand);
    display: flex;
    align-items: center;
    gap: 12px;
}

.analysis-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(41, 147, 153, 0.2);
}

.analysis-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-section li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #374151;
    line-height: 1.7;
}

.analysis-section li:last-child {
    border-bottom: none;
}

.analysis-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 12px;
    color: #299399;
    font-weight: bold;
    font-size: 16px;
}

/* Key factors styling */
.analysis-section:nth-child(2) li::before {
    content: '✓';
    color: #22c55e;
}

/* Risk factors styling */
.analysis-section:nth-child(3) li::before {
    content: '⚠';
    color: #f59e0b;
}

/* Summary section special styling */
.summary-section {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.02), rgba(41, 147, 153, 0.04));
    border: 2px solid rgba(41, 147, 153, 0.1);
}

.summary-section::before {
    background: linear-gradient(180deg, #162435, #299399);
}

.summary-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin: 0;
}

/* Loading and interaction states */
.nav-tab:active {
    transform: scale(0.98);
}

.analysis-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Animation for content loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-section {
    animation: fadeInUp 0.5s ease;
}

.analysis-section:nth-child(2) { animation-delay: 0.1s; }
.analysis-section:nth-child(3) { animation-delay: 0.2s; }
.analysis-section:nth-child(4) { animation-delay: 0.3s; }

/* Breadcrumb enhancement */
.breadcrumb {
    margin-bottom: 24px;
    padding: 12px 20px;
    background: rgba(41, 147, 153, 0.05);
    border-radius: 12px;
    font-size: 14px;
}

.breadcrumb a {
    color: #299399;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--muted);
    margin: 0 8px;
}

/* Stock Analysis Page Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 16px;
        margin-bottom: 24px;
    }

    .nav-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
        margin-bottom: 24px;
        justify-content: stretch;
    }

    .nav-tab {
        padding: 14px 12px;
        font-size: 13px;
        text-align: center;
        width: 100%;
        flex: none;
    }

    .rating-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }

    .tradingview-widget {
        min-width: unset;
    }

    .tradingview-widget-container {
        height: 250px;
    }

    .rating-info h2 {
        font-size: 24px;
    }

    .tradingview-container {
        max-width: 100%;
        height: 250px;
    }

    .analysis-section {
        padding: 24px 20px;
    }

    .analysis-section h2 {
        font-size: 20px;
    }
}

/* Extra small mobile for stock analysis */
@media (max-width: 480px) {
    .nav-tab {
        padding: 8px 6px;
        font-size: 12px;
    }

    .rating-container {
        padding: 20px 16px;
    }

    .analysis-section {
        padding: 20px 16px;
    }
}

/* Enhanced Content Section Styles */
/* Enhanced main content area */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #299399, #3fb4bb);
}

/* Enhanced typography for content sections */
.content-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--primary-brand);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(41, 147, 153, 0.2);
}

.content-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 16px;
    color: var(--primary-brand);
}

.content-section p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Enhanced lists for content sections */
.content-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.content-section li {
    padding: 12px 0 12px 24px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #374151;
    line-height: 1.7;
    font-size: 16px;
}

.content-section li:last-child {
    border-bottom: none;
}

.content-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 12px;
    color: #299399;
    font-weight: bold;
    font-size: 18px;
}

/* Enhanced emphasis styles */
.content-section strong {
    color: var(--primary-brand);
    font-weight: 700;
}

/* Special styling for key information */
.highlight-box {
    background: linear-gradient(135deg, rgba(41, 147, 153, 0.02), rgba(41, 147, 153, 0.05));
    border: 1px solid rgba(41, 147, 153, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    position: relative;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #299399, #3fb4bb);
    border-radius: 2px;
}

/* Data callouts for financial information */
.data-callout {
    display: inline-block;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin: 0 4px;
    box-shadow: 0 2px 8px rgba(41, 147, 153, 0.3);
}

/* Generic nested content styling */
.nested-section {
    background: rgba(41, 147, 153, 0.02);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border-left: 3px solid #299399;
}

.nested-section h3 {
    margin-top: 0;
    color: var(--primary-brand);
}

/* Enhanced Content Section Responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .highlight-box {
        padding: 20px;
        margin: 20px 0;
    }

    .nested-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 20px 16px;
    }

    .content-section h2 {
        font-size: 20px;
    }
}

/* Enhanced Interactive States */
.content-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Stock Analysis Summary Page Styles */
.stock-analysis-body {
    padding: 20px;
}

/* Enhanced page header */
.stock-page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.03) 0%, rgba(41, 147, 153, 0.05) 100%);
    border-radius: 20px;
}

.stock-page-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #162435 0%, #299399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stock-timestamp {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Enhanced navigation tabs */
.stock-nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(41, 147, 153, 0.1);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stock-nav-tabs::-webkit-scrollbar {
    display: none;
}

.stock-nav-tab {
    flex: none;
    padding: 12px 24px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.stock-nav-tab:hover {
    background: rgba(41, 147, 153, 0.1);
    color: #299399;
    transform: translateY(-1px);
}

.stock-nav-tab.active {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 147, 153, 0.3);
}

/* Enhanced rating section */
.stock-rating-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
}

.stock-rating-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.stock-rating-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 32px;
    align-items: start;
}

.stock-rating-info h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--primary-brand);
}

.stock-rating-details {
    display: grid;
    gap: 16px;
}

.stock-rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stock-rating-item:last-child {
    border-bottom: none;
}

.stock-rating-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 14px;
}

.stock-rating-value {
    font-weight: 700;
    color: var(--primary-brand);
    font-size: 16px;
}

.stock-rating-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.stock-confidence-medium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* TradingView widget container */
.stock-tradingview-container {
    min-width: 300px;
    max-width: 400px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Enhanced analysis sections */
.stock-analysis-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stock-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #299399, #3fb4bb);
}

.stock-analysis-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--primary-brand);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stock-analysis-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #299399, #3fb4bb);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(41, 147, 153, 0.2);
}

.stock-analysis-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stock-analysis-section li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #374151;
    line-height: 1.7;
}

.stock-analysis-section li:last-child {
    border-bottom: none;
}

.stock-analysis-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 12px;
    color: #299399;
    font-weight: bold;
    font-size: 16px;
}

/* Key factors styling */
.stock-analysis-section:nth-child(2) li::before {
    content: '✓';
    color: #22c55e;
}

/* Risk factors styling */
.stock-analysis-section:nth-child(3) li::before {
    content: '⚠';
    color: #f59e0b;
}

/* Summary section special styling */
.stock-summary-section {
    background: linear-gradient(135deg, rgba(22, 36, 53, 0.02), rgba(41, 147, 153, 0.04));
    border: 2px solid rgba(41, 147, 153, 0.1);
}

.stock-summary-section::before {
    background: linear-gradient(180deg, #162435, #299399);
}

.stock-summary-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin: 0;
}

/* Loading and interaction states */
.stock-nav-tab:active {
    transform: scale(0.98);
}

.stock-analysis-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Animation for content loading */
@keyframes stockFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-analysis-section {
    animation: stockFadeInUp 0.5s ease;
}

.stock-analysis-section:nth-child(2) { animation-delay: 0.1s; }
.stock-analysis-section:nth-child(3) { animation-delay: 0.2s; }
.stock-analysis-section:nth-child(4) { animation-delay: 0.3s; }

/* Breadcrumb enhancement */
.stock-breadcrumb {
    margin-bottom: 24px;
    padding: 12px 20px;
    background: rgba(41, 147, 153, 0.05);
    border-radius: 12px;
    font-size: 14px;
}

.stock-breadcrumb a {
    color: #299399;
    text-decoration: none;
    font-weight: 500;
}

.stock-breadcrumb a:hover {
    text-decoration: underline;
}

.stock-breadcrumb span {
    color: var(--muted);
    margin: 0 8px;
}

/* Stock Analysis Mobile Responsiveness */
@media (max-width: 768px) {
    .stock-analysis-body {
        padding: 12px;
    }

    .stock-page-header {
        padding: 20px 16px;
        margin-bottom: 24px;
    }

    .stock-nav-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
        margin-bottom: 24px;
        justify-content: stretch;
    }

    .stock-nav-tab {
        padding: 14px 12px;
        font-size: 13px;
        text-align: center;
        width: 100%;
        flex: none;
    }

    .stock-rating-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }

    .stock-rating-info h2 {
        font-size: 24px;
    }

    .stock-tradingview-container {
        max-width: 100%;
        height: 250px;
    }

    .stock-analysis-section {
        padding: 24px 20px;
    }

    .stock-analysis-section h2 {
        font-size: 20px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .stock-nav-tab {
        padding: 12px 8px;
        font-size: 12px;
    }

    .stock-rating-container {
        padding: 20px 16px;
    }

    .stock-analysis-section {
        padding: 20px 16px;
    }
}

/* Print styles for stock analysis */
@media print {
    .stock-nav-tabs,
    .stock-breadcrumb {
        display: none;
    }
    
    .content-section,
    .stock-analysis-section,
    .stock-rating-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
