/* MarketMoodz Unified Stylesheet */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --primary-dark: #0a1628;
    --primary-blue: #1a365d;
    --accent-teal: #38b2ac;
    --accent-green: #48bb78;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --bg-subtle: #f7fafc;
    --gold: #d69e2e;
}

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

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background: var(--primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

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

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

/* Desktop Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown a:hover {
    background: var(--bg-subtle);
    color: var(--primary-blue);
    border-left-color: var(--accent-teal);
}

/* Header CTA Button */
.nav .cta-button {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(41, 147, 153, 0.3);
}

.nav .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 147, 153, 0.45);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   Masthead (Home Page)
   ========================================================================== */
.masthead {
    background: var(--primary-dark);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-teal);
}

.masthead-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.masthead-title {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
}

.masthead-tagline {
    color: var(--accent-teal);
    font-size: 1rem;
    margin-top: 0.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Date Section */
.date-section {
    background: var(--bg-subtle);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================================================
   Home Page - Hero Section
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-image {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 1.5rem;
}

.hero-title {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--primary-blue);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(41, 147, 153, 0.3);
}

/* ==========================================================================
   Home Page - Platform CTA Card
   ========================================================================== */
.platform-cta-card {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.platform-badge {
    background: rgba(56, 178, 172, 0.2);
    color: var(--accent-teal);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.platform-title {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.platform-features {
    list-style: none;
    margin: 1rem 0;
}

.platform-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.platform-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.platform-cta-button {
    display: block;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    color: white;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(41, 147, 153, 0.3);
}

.platform-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 147, 153, 0.45);
}

.platform-price {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.platform-price .strike {
    text-decoration: line-through;
    opacity: 0.6;
}

.platform-price .price {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ==========================================================================
   Home Page - Articles Section
   ========================================================================== */
.articles-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-dark);
}

.section-title {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.view-all {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-image {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 12px 12px 0 0;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-body {
    padding: 1rem;
}

/* Shared Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.category-tag {
    background: var(--accent-teal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Home page article card title */
.article-card .article-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-card .article-title a {
    color: inherit;
    text-decoration: none;
}

.article-card .article-title a:hover {
    color: var(--accent-teal);
}

a.article-image {
    text-decoration: none;
}

.article-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Article Page - Layout
   ========================================================================== */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--accent-teal);
    text-decoration: none;
}

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

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-header .category-tag {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Article page title (larger than card title) */
.article-header .article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

/* Key Takeaways Box */
.takeaways-box {
    background: var(--bg-subtle);
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.takeaways-box h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--primary-dark);
}

.takeaways-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.takeaways-box li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
}

.info-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card .entity-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Analysis Section */
.analysis-section {
    background: white;
    border-left: 4px solid var(--primary-dark);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.analysis-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--primary-dark);
}

.analysis-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-primary);
}

.analysis-section p:last-child {
    margin-bottom: 0;
}

/* Article CTA Banner */
.article-cta {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: white;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.article-cta .cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-teal);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.footer-bottom p a {
    color: inherit;
    text-decoration: underline;
}

/* ==========================================================================
   Mobile Styles
   ========================================================================== */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .nav.active {
        display: flex;
    }

    .nav > .nav-item {
        display: none;
    }

    .mobile-dropdown {
        display: block;
        width: 100%;
        border: none;
    }

    .mobile-dropdown summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        color: rgba(255,255,255,0.85);
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        list-style: none;
    }

    .mobile-dropdown summary::-webkit-details-marker {
        display: none;
    }

    .mobile-dropdown summary::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

    .mobile-dropdown[open] summary::after {
        transform: rotate(180deg);
    }

    .mobile-dropdown[open] summary {
        color: var(--accent-teal);
    }

    .mobile-dropdown .dropdown-content {
        background: rgba(255,255,255,0.05);
    }

    .mobile-dropdown .dropdown-content a {
        display: block;
        padding: 0.75rem 2rem 0.75rem 3rem;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        font-size: 0.95rem;
    }

    .mobile-dropdown .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    .nav > .nav-link {
        padding: 1rem 2rem;
        width: 100%;
    }

    .nav > .cta-button {
        margin: 1rem 2rem;
        text-align: center;
    }

    /* Home Page Mobile */
    .hero-section {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

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

    .date-section {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    /* Article Page Mobile */
    .article-header .article-title {
        font-size: 1.75rem;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
    }
}

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

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide mobile dropdowns on desktop */
@media (min-width: 769px) {
    .mobile-dropdown {
        display: none;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hidden {
    display: none !important;
}

/* ==========================================================================
   Legacy Page Styles (from style.css)
   ========================================================================== */

/* CSS Variables for legacy pages */
:root {
    --primary-brand: #162435;
    --bg-secondary: #f9fafb;
    --bg-muted: #e5e7eb;
    --bg-success: #22c55e;
    --bg-accent: rgba(41, 147, 153, 0.05);
    --fg-muted: #6b7280;
}

/* Generic Typography */
img { max-width: 100%; height: auto; display: block; }

/* Landing page specific nav styles */
.nav-cta {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: #162435 !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: #162435 !important;
}

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

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

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

body.landing-page .analyst-cta {
    display: none !important;
}

/* Auth state styles */
.account-link,
.logout-link {
    color: var(--accent-teal);
    font-weight: 600;
}

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

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

.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(--text-primary);
}

.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-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

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

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

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

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

.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(--text-primary);
    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-teal);
    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);
}

/* ==========================================================================
   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 {
    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 {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 20px 0;
    padding: 10px;
    background: #fafbfc;
    border-radius: 8px;
    display: inline-block;
}

.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 {
    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;
}

.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 {        
    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;
}

/* Performance page CTA button (larger style) */
.performance-cta .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);
}

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

@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 {
    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;
}

.backup-payment-section .section-title,
.email-preferences-section .section-title,
.billing-history .section-title {
    display: block;
    text-align: center;
    justify-content: center;
}

.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 {
    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-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 {
    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;
}

@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
   ========================================================================== */
.pricing-table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(22, 36, 53, 0.1);
    margin: 40px auto;
    max-width: 1000px;
}

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

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

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

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

.pricing-table th {
    background: #fafbfc;
    padding: 20px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.pricing-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

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

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

.tier-current .tier-name::after {
    content: 'Current';
    background: #299399;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 10px;
    font-weight: 600;
}

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

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

.savings-badge {
    background: linear-gradient(135deg, rgba(41, 147, 153, 0.1), rgba(41, 147, 153, 0.2));
    color: #299399;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.select-btn {
    background: linear-gradient(135deg, #299399, #3fb4bb);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(41, 147, 153, 0.3);
}

.select-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(41, 147, 153, 0.4);
}

.select-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

.pricing-explanation {
    max-width: 800px;
    margin: 0 auto 40px;
    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-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;
}

@media (max-width: 768px) {
    .pricing-table-container {
        border-radius: 12px;
    }
    
    .table-header h2 {
        font-size: 24px;
    }
    
    .table-header p {
        font-size: 14px;
    }
    
    .pricing-table thead {
        display: none;
    }
    
    .tier-hide-mobile {
        display: none !important;
    }
    
    .pricing-table,
    .pricing-table tbody,
    .pricing-table td {
        display: block;
        width: 100%;
    }
    
    .pricing-table tr:not(.tier-hide-mobile) {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        background: white;
    }
    
    .pricing-table tr:hover {
        background: white;
    }
    
    .pricing-table td {
        padding: 15px 20px;
        border-bottom: 1px solid #f3f4f6;
        position: relative;
        text-align: left;
    }
    
    .pricing-table td:last-child {
        border-bottom: none;
    }
    
    .pricing-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 5px;
    }
    
    .tier-name {
        font-size: 20px;
    }
    
    .tier-current .tier-name::after {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 11px;
    }
    
    .price {
        font-size: 32px;
    }
    
    .savings-badge {
        margin-left: 0;
        margin-top: 5px;
        display: inline-block;
    }
    
    .trial-price {
        font-size: 48px;
    }
    
    .pricing-explanation {
        margin: -30px auto 40px;
        padding: 30px;
    }
}

/* ==========================================================================
   Product Page Styles
   ========================================================================== */
.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 {
    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 {
    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 {
    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 {
    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;
}

@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
   ========================================================================== */
.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;
}

.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;
}

.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);
}
.analyst-tabs-index button.active[data-category="watchlist"] {
    background: linear-gradient(135deg, #1e3a5f, #0f2744);
}

.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;
}

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

.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);
}

.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);
}

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

.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;
}

.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;
}

.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); }
}

.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;
}

.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);
}

.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); }
}

.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;
}

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

@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;
    }
}

@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 Page Styles
   ========================================================================== */
.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 {
    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;
}

.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 {
    padding: 60px 0;
    background: #f9fafb;
}

.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-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-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.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.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;
}

@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
   ========================================================================== */
.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(--fg-muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

.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;
}

/* Summary page dashboard card layout */
.summary-rating-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    border-top: 4px solid #6b7280;
    overflow: hidden;
}

.summary-rating-layout.strong-buy {
    border-top-color: #22c55e;
}

.summary-rating-layout.buy {
    border-top-color: #84cc16;
}

.summary-rating-layout.hold {
    border-top-color: #fbbf24;
}

.summary-rating-layout.sell {
    border-top-color: #f97316;
}

.summary-rating-layout.strong-sell {
    border-top-color: #ef4444;
}

.summary-dashboard-wrapper {
    flex: 0 0 auto;
    width: 420px;
}

.summary-dashboard {
    background: #ffffff;
    overflow: hidden;
}

.summary-dashboard .dashboard {
    padding: 0;
}

.summary-dashboard .gauge-card {
    border-radius: 12px 12px 0 0;
}

.summary-dashboard .metrics-grid {
    margin-top: 12px;
    padding: 0 12px;
}

.summary-dashboard .technical-entry {
    margin-top: 8px;
    padding-bottom: 12px;
}

.summary-rating-info {
    flex: 1;
    min-width: 0;
    padding: 24px 32px;
}

.summary-rating-info h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--primary-brand);
    font-size: 24px;
    font-weight: 700;
}

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

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

.rating-row-label {
    font-size: 15px;
    color: #666;
}

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

.summary-rating-info .rating-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.summary-rating-info .rating-badge.strong-buy {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.summary-rating-info .rating-badge.buy {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.summary-rating-info .rating-badge.hold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.summary-rating-info .rating-badge.sell {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.summary-rating-info .rating-badge.strong-sell {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 900px) {
    .summary-rating-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-dashboard-wrapper {
        width: 100%;
        max-width: 420px;
    }
    
    .summary-rating-info {
        width: 100%;
        text-align: center;
    }
}

.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);
}

.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-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-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 32px;
    padding: 32px;
    align-items: start;
}

.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(--fg-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);
}

.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);
}

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

.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;
}

.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;
}

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

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

.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;
}

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

@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 {
    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(--fg-muted);
    margin: 0 8px;
}

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

@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;
    }
}

@media (max-width: 480px) {
    .nav-tab {
        padding: 8px 6px;
        font-size: 12px;
    }

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

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

/* Content Section Styles */
.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);
}

.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;
}

.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;
}

.content-section strong {
    color: var(--primary-brand);
    font-weight: 700;
}

.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-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);
}

.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);
}

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

@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;
    }
}

/* ==========================================================================
   Dashboard / Gauge Widget Styles
   ========================================================================== */
.dashboard-stock-link {
    display: inline-block;
    vertical-align: top;
    width: 33%;
    padding: 8px;
    text-decoration: none;
    color: inherit;
}

.dashboard-stock-link:last-of-type {
    margin-bottom: 0;
}

.sr-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.sr-cards-grid .dashboard-stock-link {
    display: block;
    width: 100%;
    padding: 0;
}

.sr-cards-grid .dashboard {
    max-width: 100%;
}

.dashboard-stock {
    width: 100%;
    margin: 0;
    position: relative;
}

.dashboard {
    background: #ffffff;
    border-radius: 30px;
    padding: 12px 11px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 325px;
    width: 100%;
}

.ticker-symbol {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a1a2e;
}

.gauge-card {
    position: relative;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px 18px 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 4px auto;
    aspect-ratio: 2 / 1.2;
    overflow: hidden;
}

.gauge-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gauge-needle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateY(-4%);
}

.gauge-needle-hand {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 4px;
    height: 78%;
    background: linear-gradient(to bottom, #1e3a5f, #0f2744);
    border-radius: 999px;
    transform-origin: 50% 100%;
    box-shadow: 0 0 10px rgba(30, 58, 95, 0.4), 0 8px 18px rgba(0, 0, 0, 0.5);
}

.gauge-needle-hub {
    position: absolute;
    bottom: -6%;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffffff, #cfd3dc 45%, #161822 80%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(0, 0, 0, 0.7);
}

.signal-text {
    margin-top: 0px;
    text-align: center;
    color: #1a1a2e;
}

.signal-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.signal-value {
    font-size: 39px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1a1a2e;
}

.signal-arrow {
    font-size: 20px;
    color: #0d9488;
    margin-bottom: 2px;
}

.dashboard-card-toggle-row {
    display: none;
    text-align: center;
    padding: 4px 0 0 0;
}

.dashboard-card-toggle {
    display: inline-block;
    font-size: 1rem;
    color: #666666;
    cursor: pointer;
    padding: 4px 16px;
    transition: color 0.2s ease;
}

.dashboard-card-toggle:hover {
    color: #1a1a2e;
}

.dashboard-card-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.dashboard.collapsed .dashboard-card-content {
    max-height: 0;
    opacity: 0;
}

.technical-entry {
    margin-top: 10px;
}

.technical-entry .metric-card {
    text-align: center;
    background: #f0fdf9;
    border-color: #ccfbf1;
}

.technical-entry .metric-sub {
    font-size: 10px;
    text-transform: capitalize;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px 5px 6px;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.metric-card.price-target {
    text-align: center;
    color: #1a1a2e;
}

.metric-card.confidence .metric-value,
.metric-card.confidence .metric-sub {
    text-align: right;
}

.metric-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 8px;
    white-space: nowrap;
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.metric-sub {
    font-size: 11px;
    color: #666666;
    margin-top: 2px;
}

.risk-bar {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, #22c55e, #eab308, #ef4444);
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.risk-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #1a1a2e;
    border-radius: 999px;
    right: 22%;
    opacity: 1;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.confidence-bar-track {
    height: 8px;
    border-radius: 999px;
    background: #e0e0e0;
    margin-bottom: 6px;
    overflow: hidden;
}

.confidence-bar-fill {
    height: 100%;
    width: 78%;
    border-radius: inherit;
    background: linear-gradient(to right, #14b8a6, #0d9488);
}

@keyframes sweepIn {
    from { transform: translateX(-50%) rotate(-60deg); }
    to { transform: translateX(-50%) rotate(45deg); }
}

.gauge-needle-hand.animate {
    animation: sweepIn 700ms cubic-bezier(.23, 1, .32, 1);
}

.gauge-center-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(4%);
    pointer-events: none;
}

.gauge-center-label-heading {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.gauge-center-label-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1a2e;
    text-shadow: none;
}

@media (max-width: 960px) {
    .dashboard-stock-link {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .sr-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dashboard-card-toggle-row {
        display: block;
    }
}

@media (max-width: 640px) {
    .dashboard-stock-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 18px 14px 16px;
        border-radius: 24px;
    }
}

/* ==========================================================================
   Market Moodz Section Styles
   ========================================================================== */
.market-moodz-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.market-moodz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.market-moodz-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-moodz-summary .sentiment-emoji {
    font-size: 1.5rem;
}

.market-moodz-summary .summary-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.market-moodz-toggle {
    font-size: 0.75rem;
    color: #666666;
    transition: transform 0.2s ease;
    display: none;
}

.market-moodz-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.market-moodz-section.collapsed .market-moodz-content {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.market-moodz-timestamp {
    font-size: 0.85rem;
    color: #666666;
}

.market-moodz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e !important;
    margin: 0 0 1rem 0;
    text-align: center;
}

.sentiment-key {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.sentiment-key .key-item {
    font-size: 0.85rem;
    color: #333333;
    white-space: nowrap;
}

.sentiment-key .emoji {
    margin-right: 0.25rem;
}

.market-moodz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}

.sector-mood-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.125rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
    position: relative;
    cursor: pointer;
}

.sector-mood-item:hover {
    background: #eef0f2;
}

.sector-mood-item .sentiment-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sector-mood-item .sector-name {
    font-size: 0.9rem;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sector-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 90vw;
    padding: 12px 14px;
    background: #1a1a2e;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: left;
    white-space: normal;
}

.sector-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1a1a2e;
}

.sector-tooltip.visible {
    display: block;
}

@media (max-width: 768px) {
    .market-moodz-section {
        width: 100%;
    }
    
    .market-moodz-toggle {
        display: inline;
    }
    
    .market-moodz-header {
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0.5rem;
    }
    
    .market-moodz-section.collapsed .market-moodz-header {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .market-moodz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sector-tooltip {
        bottom: auto;
        top: calc(100% + 8px);
        left: 0;
        transform: none;
        width: calc(100vw - 40px);
        max-width: 320px;
    }
    
    .sector-tooltip::after {
        top: auto;
        bottom: 100%;
        border-top-color: transparent;
        border-bottom-color: #1a1a2e;
        left: 20px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .market-moodz-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Watchlist Styles
   ========================================================================== */
.watchlist-input-container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 0;
}

.watchlist-input-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-align: center;
}

.watchlist-input-wrapper {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.watchlist-ticker-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    text-transform: uppercase;
}

.watchlist-ticker-input:focus {
    border-color: var(--primary-brand);
}

.watchlist-ticker-input::placeholder {
    text-transform: none;
}

.watchlist-add-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.watchlist-add-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.watchlist-add-btn:active {
    transform: scale(0.98);
}

.watchlist-message {
    margin-top: 8px;
    padding: 0 4px;
    font-size: 14px;
    min-height: 20px;
}

.watchlist-message.success {
    color: #22c55e;
}

.watchlist-message.error {
    color: #ef4444;
}

.watchlist-remove-btn {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.watchlist-remove-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: white;
}

body.watchlist-mode .watchlist-remove-btn {
    display: block;
}

.watchlist-queued-container {
    display: none;
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 12px 16px;
    background: rgba(30, 58, 95, 0.15);
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 8px;
}

body.watchlist-mode .watchlist-queued-container.has-queued {
    display: block;
}

.watchlist-queued-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.watchlist-queued-header .clock-icon {
    font-size: 14px;
}

.watchlist-queued-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.watchlist-queued-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.watchlist-queued-pill:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
}

.watchlist-queued-pill .ticker-name {
    letter-spacing: 0.5px;
}

.watchlist-queued-pill .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.watchlist-queued-pill .remove-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #000;
}

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