/* Force refresh */
* { transition: none !important; }

:root {
    --bg-color: #f5f7fb;
    --card-bg: #ffffff;
    --text-color: #111827;
    --muted-text: #6b7280;
    --border-color: #e5e7eb;
    --primary-color: #2563eb;
    --success-color: #16a34a;
    --danger-color: #dc2626;
}


body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    margin: 0;
    padding: 0;
}

.page-container {
    width: 95%;
    max-width: 1600px;
    margin: 30px auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.buy {
    color: green;
    font-weight: bold;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Add this modifier class specifically for this page */
.snapshot-grid.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.metric-label
{
    font-size: 18px;
    color: #4b5563;
}

.metric-value
{
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 12px;
}

/* =====================================================
   VISTA EQUITY HEADER
===================================================== */

.portal-header {

    background: #ffffff;

    height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 30px;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;

    top: 0;

    z-index: 1000;

}

.header-left {

    display: flex;

    align-items: center;

}

.header-logo {

    height: 52px;

    width: auto;

    display: block;

}

.header-right {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-left: auto;

}

.global-search {

    width: 400px;

    height: 42px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    padding: 0 14px;

    font-size: 14px;

}

.global-search:focus {

    outline: none;

    border-color: #2563eb;

}

.user-menu {

    padding: 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

}

.main-container {

    padding-top: 20px;

}

.search-container {

    display: flex;

    align-items: center;

    gap: 8px;

}

.search-btn {

    height: 42px;

    padding: 0 18px;

    border: 1px solid #2563eb;

    background: #2563eb;

    color: white;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;

}

.search-btn:hover {

    background: #1d4ed8;

}

/* ==========================================
   Recommendation Rationale
========================================== */

.theme-box {
    margin-bottom: 25px;
}

.theme-text {
    font-size: 24px;
    font-weight: 600;
    color: #2563eb;
    margin: 0;
}

.narrative-box {
    background: #ffffff;
    border: 1px solid #d9dce1;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.narrative-box h3 {
    margin-top: 0;
}

.narrative-box p {
    line-height: 1.7;
}

.read-more {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.rationale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.tailwind-box,
.headwind-box {
    background: #ffffff;
    border: 1px solid #d9dce1;
    border-radius: 12px;
    padding: 25px;
}

.tailwind-box ul,
.headwind-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.headwind-box li
{
    color: #dc2626;
}

.headwind-box li
{
    color: #374151;
}

/* ==========================================
   Key Parameters
========================================== */

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.parameter-card {
    background: #ffffff;
    border: 1px solid #d9dce1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.parameter-label {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.parameter-value
{
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

/* ==========================================
   Financial Snapshot
========================================== */

.financial-table {
    width: 100%;
    border-collapse: collapse;
}

.financial-table th,
.financial-table td {
    padding: 22px;
   font-size: 18px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.financial-table th:first-child,
.financial-table td:first-child {
    text-align: left;
}

.group-header th {
    font-size: 18px;
    font-weight: 700;    
}

.actuals-header {
    background: #f3f4f6;
    color: #6b7280;
}

.forecasts-header {
    background: #eaf3ff;
    color: #6b7280;
}

.forecast-value {
    color: #2563eb;
    font-weight: 700;
}

/* ==========================================
   About Section
========================================== */

.about-section {
    width: 100%;
}

.about-section summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    background: #f5f7fa;
    border: 1px solid #d9dce1;
    border-radius: 8px;
}

.about-content {
    padding: 20px;
    line-height: 1.8;
    color: #444;
    font-size: 18px;
}

.about-content p {
    margin-bottom: 15px;
}


/* =====================================
   PAGE 3 TABLES
===================================== */

.ideas-table
{
    width: 100%;
    border-collapse: collapse;
}

.ideas-table th
{
    background: #f5f7fa;
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

.ideas-table td
{
    padding: 14px;
    border-top: 1px solid #e5e7eb;
}

.ideas-table tr:hover
{
    background: #fafafa;
}

/* ==========================================
   INDUSTRY INTELLIGENCE
========================================== */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.sector-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.industry-actions {
    margin-bottom: 20px;
}

.industry-actions a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.industry-actions a:hover {
    text-decoration: underline;
}

.industry-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.industry-summary p {
    line-height: 1.8;
}

.research-point p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.industry-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.industry-table th {
    background: #f5f7fa;
    text-align: left;
    padding: 14px;
    font-weight: 600;
}

.industry-table td {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
}

.industry-table tr:hover {
    background: #fafafa;
}


table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.col-sector {
    width: 40%;
}

.col-industry {
    width: 45%;
}

.col-stocks {
    width: 15%;
}

th{
    text-align:left !important;
    padding:14px;
    border-bottom:2px solid #ddd;
    font-size:14px;
}

/* =========================================================
   MACRO DASHBOARD
========================================================= */

.macro-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:20px;

    margin-top:18px;

}

.macro-tile{

    background:#ffffff;

    border:1px solid #d9e2ef;

    border-radius:12px;

    padding:18px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

    transition:.2s;

}

.macro-tile:hover{

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(0,0,0,.10);

}

.macro-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:4px;

}

.macro-title{

    font-size:16px;
    font-weight:600;
    color:#1f2937;
    line-height:1.35;
    width:80%;

}

.macro-value{

    font-size:20px;

    font-weight:700;
    white-space:nowrap;

    color:#0f172a;

    text-align:right;

}

macro-status-row{

    display:flex;

    justify-content:flex-start;

    align-items:center;

    margin-bottom:12px;

}



.macro-direction{

    font-size:14px;

    font-weight:600;

    display:flex;
    

}

.improving{

    color:#16a34a;
}

.deteriorating{

    color:#dc2626;
}

.macro-chart{

    height:120px;

    margin-top:12px;

}

/* =========================================================
   NARRATIVE SECTION
========================================================= */

.macro-overview-grid{

    display:grid;

    grid-template-columns:300px 1fr;

    gap:24px;

    margin-top:20px;

}

.regime-card,
.summary-card,
.driver-card,
.risk-card{

    background:#fafcff;

    border:1px solid #dbe5f2;

    border-radius:12px;
    

    padding:22px;

}

.section-label{

    font-size:13px;

    font-weight:700;

    color:#475569;

    margin-bottom:14px;

    text-transform:uppercase;

    letter-spacing:.4px;

}

.regime-pill{

    display:inline-block;

    padding:10px 18px;

    border-radius:24px;

    font-size:20px;

    font-weight:700;

    margin-bottom:18px;

}

.regime-strong-positive{

    background:#dcfce7;

    color:#166534;

}

.regime-positive{

    background:#ecfdf5;

    color:#15803d;

}

.regime-neutral{

    background:#dbeafe;

    color:#1d4ed8;

}

.regime-negative{

    background:#fef3c7;

    color:#b45309;

}

.regime-strong-negative{

    background:#fee2e2;

    color:#991b1b;

}

.regime-outlook{

    font-size:15px;

    line-height:1.8;

    color:#374151;

}

.summary-text{
    font-size:15px;
    line-height:1.75;
    color:#334155;
    margin-top:16px;
}

.macro-driver-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:24px;
}

.driver-list,
.risk-list{
    margin:0;
    padding-left:20px;
}

.driver-list li{
    margin-bottom:14px;
    line-height:1.7;
}

.risk-list li{
    margin-bottom:12px;
    line-height:1.7;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px){

.macro-overview-grid{

    grid-template-columns:1fr;

}

.macro-driver-grid{

    grid-template-columns:1fr;

}

}
/* =====================================
   ANALYST CONSENSUS
===================================== */

.page-description
{
    margin-bottom: 25px;
    color: #6b7280;
    font-size: 15px;
}

.consensus-tabs
{
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.tab-button
{
    padding: 12px 20px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.tab-button:hover
{
    background: #f5f7fa;
}

.tab-button.active
{
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.buy-text
{
    color: #16a34a;
    font-weight: 600;
}


.buy-text{
    color:#0f8a3c;
    font-weight:600;
}

.sell-text{
    color:#c0392b;
    font-weight:600;
}

.hold-text{
    color:#c98a00;
    font-weight:600;
}
/* =====================================
   FILTER BUTTONS
===================================== */

.button-group
{
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn
{
    padding: 12px 22px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover
{
    background: #f5f7fa;
}

.filter-btn.active
{
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.page-note
{
    margin-top:16px;
    font-size:14px;
    color:#6b7280;
}

@media (max-width: 768px)
{
    .snapshot-grid,
    .parameters-grid,
    .macro-grid
    {
        grid-template-columns: 1fr;
    }

    .sector-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .rationale-grid
    {
        grid-template-columns: 1fr;
    }
}

.portal-card-hover {
    transition: all 0.2s ease;
}

.portal-card-hover:hover {
    transform: translateY(-1px);
}

/* ==========================================
   HOME PAGE ENHANCEMENTS
========================================== */

.home-container
{
    width: 95%;
    max-width: 1600px;
    margin: 20px auto;
    padding: 10px 20px 30px 20px;
}

.home-header
{
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.user-placeholder
{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
}

.portal-logo
{
    font-size: 48px;
    margin-bottom: 8px;
}

.portal-title
{
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.portal-tagline
{
    font-size: 18px;
    color: #6b7280;
}

.home-search-card
{
    margin-bottom: 30px;
}

.search-title
{
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.home-section-title
{
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-link:hover
{
    color: inherit;
}

@media (max-width: 768px)
{
    .portal-title
    {
        font-size: 28px;
    }

    .portal-tagline
    {
        font-size: 15px;
    }

    .search-title
    {
        font-size: 24px;
    }

    .home-section-title
    {
        font-size: 22px;
    }

    .user-placeholder
    {
        position: static;
        margin-bottom: 15px;
        text-align: center;
    }

    .portal-logo
    {
        font-size: 36px;
    }

    .home-module-card h4
    {
        font-size: 20px;
    }
}

/* ==========================================
   HOME PAGE V2
========================================== */

.home-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.home-module-card
{
    padding: 22px;
    min-height: 90px;
    transition: all 0.2s ease;
}

.home-module-card:hover
{
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.home-module-card h4
{
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 600;
}

.home-module-card p
{
    margin: 0;
    font-size: 18px;
    color: #4b5563;
    line-height: 1.4;
}

.home-search-card
{
    padding: 28px;
    margin-bottom: 20px;
}

.home-search-form
{
    display: flex;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.home-search-input
{
    flex: 1;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 18px;
}

.home-search-button
{
    height: 52px;
    min-width: 120px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.home-search-button:hover
{
    background: #1d4ed8;
}

.search-examples
{
    color: #6b7280;
    font-size: 14px;
}

.home-footer
{
    text-align: center;
    color: #4b5563;
    font-size: 18px;
    line-height: 2;
    margin-top: 20px;
    margin-bottom: 25px;
}

.card-link
{
    text-decoration: none;
    color: inherit;
}

.card-link:hover
{
    color: inherit;
}

@media (max-width: 900px)
{
    .home-grid
    {
        grid-template-columns: 1fr;
    }

    .home-search-form
    {
        flex-direction: column;
    }

    .home-search-button
    {
        width: 100%;
    }

    .home-module-card h4
    {
        font-size: 22px;
    }
}

.breadcrumbs
{
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

.breadcrumbs a
{
    text-decoration: none;
    color: #2563eb;
}

.breadcrumbs span
{
    margin: 0 6px;
}

.page-title
{
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-box
{
    text-align: right;
}


.strong-buy
{
    color: #15803d;
}

.buy
{
    color: #16a34a;
}

.hold
{
    color: #ca8a04;
}

.sell
{
    color: #ea580c;
}

.strong-sell
{
    color: #dc2626;
}

.positive-return
{
    color: #16a34a;
}

.negative-return
{
    color: #b91c1c;
}

.coming-soon
{
    margin-top: 15px;
    font-size: 15px;
    font-style: italic;
    color: #6b7280;
    font-weight: 600;
}

/* ==========================================
   STOCK PAGE UI REFINEMENTS
========================================== */

/* Page Title */

.page-title
{
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.page-subtitle
{
    text-align: center;
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* Header */

.stock-info h1
{
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #2563eb;
}

.stock-info p
{
    margin-top: 10px;
    color: #6b7280;
    font-size: 17px;
}


/* Snapshot */

.metric-label
{
    font-size: 20px;
    font-weight: 600;
    color: #4b5563;
}

.metric-value
{
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

.metric-card
{
    padding: 18px;
}

/* Theme Statement */

.theme-text
{
    font-size: 20px;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.6;
}

/* AI Summary */

.coming-soon
{
    margin-top: 18px;
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    font-style: normal;
}

/* Tailwinds & Headwinds */

.positive-icon
{
    color: #16a34a;
}

.warning-icon
{
    color: #d97706;
}

.tailwind-box li,
.headwind-box li
{
    color: #374151;
    line-height: 1.5;
    margin-bottom: 6px;
}

.tailwind-box h3,
.headwind-box h3
{
    margin-bottom: 18px;
}

/* Key Parameters */

.parameter-card
{
    padding: 14px;
}

.parameter-label
{
    font-size: 18px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 10px;
}

.parameter-value
{
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* Financial Snapshot */

.financial-table th,
.financial-table td
{
    padding: 24px;
    font-size: 20px;
}

.financial-table td:first-child
{
    font-weight: 500;
     color: #374151;
}

.group-header th
{
    font-size: 20px;
    font-weight: 700;
}

/* Recommendation Colors */

.strong-buy
{
    color: #15803d;
}

.buy
{
    color: #16a34a;
}

.hold
{
    color: #ca8a04;
}

.sell
{
    color: #ea580c;
}

.strong-sell
{
    color: #dc2626;
}

/* Breadcrumbs */

.breadcrumbs
{
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

/* Mobile */

@media (max-width: 900px)
{
    .stock-header
    {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    

    .page-title
    {
        font-size: 30px;
    }

    .stock-info h1
    {
        font-size: 30px;
    }

    .recommendation-rating {

        font-size: 24px !important;
        font-weight: 700;
        margin-bottom: 8px;
    }

}

.industry-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.industry-link:hover {
    text-decoration: underline;
}


/* =========================================================
   INVESTMENT IDEAS PAGE
========================================================= */

.ideas-section
{
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ideas-section-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.ideas-section-header h2
{
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.view-all-link
{
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.view-all-link:hover
{
    text-decoration: underline;
}

.ideas-carousel
{
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ideas-carousel::-webkit-scrollbar
{
    height: 8px;
}

.ideas-carousel::-webkit-scrollbar-thumb
{
    background: #d1d5db;
    border-radius: 20px;
}

.idea-card
{
    min-width: 240px;
    max-width: 240px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 16px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    transition: all 0.2s ease;
}

.idea-card:hover
{
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.idea-company
{
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #2563eb;
    margin-bottom: 8px;
}

.idea-sector
{
    font-size: 14px;
    color: #6b7280;
    min-height: 38px;
}

.idea-divider
{
    margin: 10px 0;
    border-top: 1px solid #e5e7eb;
}

/* Tightens the vertical gap between rows */
.idea-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 2px 0 !important; /* Forces the tight spacing */
    margin: 0 !important;
    min-height: 24px !important; /* Prevents rows from collapsing too much */
}

/* Ensure consistent labels and values */
.idea-row .label {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.idea-row .value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.idea-row .value
{
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}


.idea-upside-label
{
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.stock360-btn
{
    display: block;

    text-align: center;

    background: #5b84ea;
    color: white;

    text-decoration: none;

    padding: 10px 0;

    border-radius: 8px;

    font-weight: 600;
}

.stock360-btn:hover
{
    background: #1d4ed8;
}

.analyst-reco
{
    color: #15803d;
    font-size: 18px;
    font-weight: 600;
}

.card-header-row
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stock360-link-wrapper {
    text-align: left;
    margin-top: 10px;
    padding-left: 2px;
}

.stock360-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.stock360-link:hover {
    text-decoration: underline;
}

.idea-upside-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2px 0;
    margin: 0;
    min-height: 24px;
}

.upside-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.idea-upside {
    color: #16a34a;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.idea-company a {
    color: inherit;
    text-decoration: none;
}

.idea-company a:hover {
    text-decoration: underline;
}

/* =========================================================
   INDUSTRY DETAIL PAGE
========================================================= */

.industry-header-card
{
    padding: 30px;
}

.industry-header-top
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.industry-title
{
    margin: 0 0 18px 0;
    font-size: 36px;
    font-weight: 700;
    color: #111827;
}

.industry-characteristics
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.industry-chip
{
    display: inline-flex;
    align-items: center;

    background: #eef4ff;
    color: #2563eb;

    border: 1px solid #cfe0ff;
    border-radius: 999px;

    padding: 8px 14px;

    font-size: 14px;
    font-weight: 600;
}

.industry-coverage
{
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.industry-report-btn
{
    display: inline-block;

    background: #2563eb;
    color: #ffffff;

    text-decoration: none;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;
}

.industry-report-btn:hover
{
    background: #1d4ed8;
}

/* =========================================================
   SNAPSHOT
========================================================= */

.industry-metrics-grid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
}

/* Reuse existing metric-card styling */

/* =========================================================
   NARRATIVE SECTIONS
========================================================= */

.industry-narrative
{
    line-height: 1.9;
    color: #374151;
    font-size: 17px;
}

.industry-narrative p
{
    margin-top: 0;
    margin-bottom: 18px;
}

.industry-narrative p:last-child
{
    margin-bottom: 0;
}

/* =========================================================
   TWO COLUMN SECTIONS
========================================================= */

.industry-two-column
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.industry-content-box
{
    background: #f8fafc;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    padding: 24px;
}

.industry-content-box h3
{
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 22px;
    font-weight: 700;

    color: #111827;
}

.industry-content-box p
{
    margin-bottom: 14px;
    line-height: 1.8;
    color: #374151;
}

.industry-content-box p:last-child
{
    margin-bottom: 0;
}

/* =========================================================
   THEMES
========================================================= */

.dominant-theme
{
    background: #eef4ff;

    border: 1px solid #cfe0ff;
    border-radius: 12px;

    padding: 22px;
    margin-bottom: 22px;
}

.theme-title
{
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.theme-highlight
{
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.themes-grid
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.theme-chip
{
    background: #f3f4f6;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    padding: 10px 16px;

    font-size: 14px;
    font-weight: 600;

    color: #374151;
}

/* =========================================================
   TAILWINDS / HEADWINDS
========================================================= */

.industry-list
{
    margin: 0;
    padding-left: 20px;
}

.industry-list li
{
    margin-bottom: 12px;
    line-height: 1.7;
    color: #374151;
}

.industry-list li:last-child
{
    margin-bottom: 0;
}

/* =========================================================
   LEADING COMPANIES
========================================================= */

.leading-companies-grid
{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.company-chip
{
    display: inline-flex;
    align-items: center;

    background: #ffffff;

    border: 1px solid #dbe3f0;
    border-radius: 10px;

    padding: 12px 18px;

    text-decoration: none;

    color: #2563eb;
    font-weight: 600;

    transition: all 0.2s ease;
}

.company-chip:hover
{
    background: #eef4ff;
    border-color: #2563eb;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px)
{
    .industry-header-top
    {
        flex-direction: column;
    }

    .industry-metrics-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-two-column
    {
        grid-template-columns: 1fr;
    }

    .industry-title
    {
        font-size: 30px;
    }
}

@media (max-width: 600px)
{
    .industry-metrics-grid
    {
        grid-template-columns: 1fr;
    }

    .industry-characteristics
    {
        gap: 8px;
    }
}

/* =========================================================
   HEADER META ROW
========================================================= */

.industry-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    font-size: 20px;
    color: #1f2937;
}

.meta-separator {
    color: #9ca3af;
}

/* =========================================================
   6 COLUMN SNAPSHOT GRID
========================================================= */

.industry-metrics-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* =========================================================
   KEY THEME SUMMARY
========================================================= */

.industry-theme-summary {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 18px;
    max-width: 1200px;
}

/* =========================================================
   LEADING COMPANIES
========================================================= */

.leading-companies-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.leading-company-card {
    width: 220px;
    min-height: 120px;

    background: #f9fafb;
    border: 1px solid #dbe2ea;
    border-radius: 12px;

    padding: 18px;

    text-decoration: none;
    transition: all 0.2s ease;
}

.company-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.leading-company-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.company-name {
    font-size: 18px;
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0px;
    line-height: 1.35;
}

.company-metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 4px;
}

.company-metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}


.company-name a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.company-name a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.recommendation-badge {

    font-size: 15px;
    font-weight: 600;

    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;

    white-space: nowrap;
    flex-shrink: 0;

     margin-top: 2px;
}

.recommendation-badge.strong-buy {
    color: #15803d;
}

.recommendation-badge.buy {
    color: #2563eb;
}

.recommendation-badge.hold {
    color: #ca8a04;
}

.recommendation-badge.sell {
    color: #dc2626;
}

.recommendation-badge.strong-sell {
    color: #991b1b;
}

.company-header {
    display: flex;
    justify-content: space-between;
     align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .leading-company-card {
        width: 100%;
    }

    .industry-meta-row {
        flex-direction: column;
        gap: 4px;
    }

    .meta-separator {
        display: none;
    }
}

.breadcrumb{
    margin-bottom:25px;
    font-size:14px;
}

.breadcrumb a{
    color:#2563eb;
    text-decoration:none;
}

.breadcrumb a:hover{
    text-decoration:underline;
}

.breadcrumb span{
    margin:0 6px;
    color:#666;
}

/* ==========================================
   INDUSTRY INTELLIGENCE CARDS
   ========================================== */

.industry-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 18px;

    margin-top: 24px;
}

.industry-card {

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 18px;

    text-decoration: none;

    transition: all 0.2s ease;
}

.industry-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(0,0,0,0.08);
}

.industry-name {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 15px;

    font-weight: 600;

    color: #111827;

    min-height: 44px;
}

.industry-coverage {

    margin-top: 12px;

    color: #6b7280;

    font-size: 14px;
}

.coverage-count {

    color: #2563eb;

    font-weight: 700;
}

/* Growth State Dots */

.growth-badge {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    display: inline-block;

    flex-shrink: 0;
}

.sunrise {

    background: #16a34a;
}

.expanding {

    background: #2563eb;
}

.mature {

    background: #9ca3af;
}

.slow-growth {

    background: #f59e0b;
}

.declining {

    background: #dc2626;
}

@media (max-width: 1200px) {

    .industry-grid {

        grid-template-columns:
            repeat(4, 1fr);
    }
}

@media (max-width: 992px) {

    .industry-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .industry-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .industry-grid {

        grid-template-columns:
            1fr;
    }
}

.industry-card{
    color:inherit;
}

.industry-name{
    color:#111827;
}

#priceChart {
    max-height: 350px;
}

/* ==========================================
   GLOBAL HEADER
========================================== */

.portal-header {

    background: #ffffff;

    height: 72px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 30px;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;

    top: 0;

    z-index: 1000;

}

.header-left {

    display: flex;

    align-items: center;

}

.logo-link {

    text-decoration: none;

}

.header-logo {

    height: 52px;

    width: auto;

}

.header-right {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-left: auto;

}

.global-search {

    width: 400px;

    height: 42px;

}

.global-search:focus {

    outline: none;

    border-color: #2563eb;

}

.user-icon {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: #f3f4f6;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    font-size: 18px;

}

.main-container {

    padding-top: 20px;

}

.user-menu {

    padding: 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    background: white;

}


/* =====================================================
   VISTA HOME PAGE V3
===================================================== */

.vista-home {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto 40px auto;
}

.snapshot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.snapshot-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.snapshot-number {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

.snapshot-label {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

.module-section {
     margin-top: 10px;
    margin-bottom: 28px;
}

.module-section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: none;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    min-height: 90px;
    transition: all 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.module-header {
    display:flex;
    align-items:center;
    gap:12px;
}

.module-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.module-desc {
    color: #6b7280;
    line-height: 1.5;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .snapshot-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .module-grid,
    .snapshot-row {
        grid-template-columns: 1fr;
    }
}

.research-title {
    color:#2563eb;
}

.technical-title {
    color:#16a34a;
}

.industry-title {
    color: #111827;
}

.coming-soon-badge {

    position: absolute;

    top: 12px;

    right: 12px;

    background: #fef3c7;

    color: #92400e;

    border: 1px solid #fcd34d;

    border-radius: 999px;

    padding: 4px 10px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;
}

.module-card {
    position: relative;
}

/* =====================================================
   STOCK DETAIL HEADER - VISTA EQUITY FINAL
===================================================== */

.stock-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;
}

.stock-header-left {

    flex: 1;
}

.stock-header-left h1 {

    margin: 0;

    font-size: 38px;

    font-weight: 700;

    color: #111827;
}

.stock-industry {

    margin-top: 10px;

    font-size: 18px;

    color: #6b7280;
}

.stock-price-row {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 14px;
}

.header-price {

    font-size: 32px;

    font-weight: 700;

    color: #111827;
}

.daily-change {

    font-size: 20px;

    font-weight: 600;
}

.price-date {

    font-size: 18px;

    color: #6b7280;
}

.stock-header-right {

    min-width: 260px;

    text-align: left;
}

.recommendation-rating {

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 14px;
}

.recommendation-line {

    font-size: 18px;

    color: #374151;

    margin-bottom: 10px;
}

@media (max-width: 900px) {

    .stock-header {

        flex-direction: column;

        align-items: flex-start;
    }

    .stock-header-right {

        width: 100%;
    }
}

.group-header th {
    text-align: center !important;
}

.financial-table thead tr:nth-child(2) th {
    text-align: center !important;
}

.group-header th {
    text-align: center !important;
}

.financial-table thead tr:nth-child(2) th {
    text-align: center !important;
}

.technical-row.selected-row {
    background: #eff6ff;
}

/* =====================================================
   MOBILE HEADER
===================================================== */

@media (max-width:768px){

.portal-header{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:auto;
    padding:12px;
    gap:12px;
}

.header-left{
    width:100%;
    display:flex;
    justify-content:center;
}

.logo-link{
    display:flex;
    justify-content:center;
}

.header-logo{
    height:60px;
    width:auto;
    max-width:220px;
}

.header-right{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-left:0;
}

.search-container{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.global-search{
    width:100%;
    box-sizing:border-box;
}

.search-btn{
    width:100%;
}

.user-menu{
    display:none;
}

}