*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

.card{
    scroll-margin-top:20px;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f3f6fb;
    color:#222;
}

.container{
    width:95%;
    max-width:1200px;
    margin:30px auto;
}

h1{
    text-align:center;
    color:#2563eb;
    font-size:54px;
    margin-bottom:10px;
}

.subtitle{
    text-align:center;
    color:#666;
    font-size:18px;
    margin-bottom:35px;
}

.search-box{
    display:flex;
    gap:15px;
    margin-bottom:25px;
}

.search-box input{
    flex:1;
    padding:18px;
    font-size:22px;
    border:1px solid #d0d7e2;
    border-radius:10px;
    outline:none;
}

.search-box input:focus{
    border-color:#2563eb;
}

.search-box button{
    width:160px;
    border:none;
    border-radius:10px;
    background:linear-gradient(180deg,#E4BB6E 0%,#D4A857 100%);
    color:#1A1200;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(212,168,87,.35);
    transition:transform .12s ease, box-shadow .12s ease;
}

.search-box button:hover{
    background:linear-gradient(180deg,#EFC77E 0%,#DEB268 100%);
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(212,168,87,.45);
}

.loading{
    display:none;
    text-align:center;
    font-size:20px;
    color:#2563eb;
    margin:20px;
}

.card{
    background:#fff;
    border-radius:15px;
    padding:30px;
    margin-bottom:25px;
    box-shadow:0 4px 20px rgba(0,0,0,.06);
}

.card h2{
    margin-bottom:25px;
    font-size:40px;
}

.card h3{
    margin-bottom:20px;
}

.top-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:25px;
}

.info-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px;
    text-align:center;
}

.label{
    color:#666;
    font-size:15px;
    margin-bottom:10px;
}

.value{
    font-size:28px;
    font-weight:bold;
    color:#111827;
}

.recommendation{
    display:inline-block;
    padding:12px 28px;
    border-radius:30px;
    color:white;
    font-size:18px;
    font-weight:700;
    letter-spacing:0.5px;
    margin:20px 0;
}

.strong-buy{
    background:#15803d;
}

.buy{
    background:#22c55e;
}

.hold{
    background:#eab308;
    color:#222;
}

.avoid{
    background:#f97316;
}

.strong-avoid{
    background:#dc2626;
}

.progress{
    width:100%;
    height:20px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin-top:15px;
}

.progress-fill{
    height:100%;
    background:#2563eb;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#f8fafc;
    text-align:left;
    padding:15px;
    border-bottom:2px solid #e5e7eb;
}

td{
    padding:15px;
    border-bottom:1px solid #eee;
}

td:last-child,
th:last-child{
    text-align:center;
}

.error{
    background:#fee2e2;
    color:#b91c1c;
    padding:20px;
    border-radius:10px;
    font-weight:bold;
}

@media(max-width:900px){

    .top-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:700px){

    h1{
        font-size:36px;
    }

    .search-box{
        flex-direction:column;
    }

    .search-box button{
        width:100%;
        height:60px;
    }

    .top-grid{
        grid-template-columns:1fr;
    }

    .card h2{
        font-size:28px;
    }

    .value{
        font-size:22px;
    }

}

/* ==========================================================
   Recommendation Hero
========================================================== */

.recommendation-hero{

text-align:center;

padding:25px 20px;

margin-bottom:20px;

border-radius:12px;

background:#f7f9fc;

}

.recommendation-title{

font-size:36px;

font-weight:700;

letter-spacing:1px;

margin-bottom:10px;

color:#0d47a1;

}

.recommendation-score{

font-size:48px;

font-weight:700;

line-height:1;

margin-bottom:10px;

}

.recommendation-score span{

font-size:22px;

color:#777;

}

.recommendation-confidence{

font-size:18px;

font-weight:600;

color:#2e7d32;

}

/* ==========================================================
   AI Signal Summary
========================================================== */

.card ul{

margin:10px 0 20px 22px;

padding:0;

}

.card li{

margin-bottom:8px;

line-height:1.6;

}

.card h4{

margin-top:20px;

margin-bottom:10px;

font-size:18px;

font-weight:700;

}

/* ==========================================================
   Investment Thesis
========================================================== */

.section-gap{

height:26px;

}

.card h3{

margin-bottom:18px;

font-size:30px;

font-weight:700;

color:#0d47a1;

}

.card h4{

margin-bottom:12px;

font-size:21px;

font-weight:700;

color:#222;

}

.card p{

line-height:1.8;

}

/*
|--------------------------------------------------------------------------
| Smart Search
|--------------------------------------------------------------------------
*/

.search-wrapper{
    position:relative;
    width:100%;
    max-width:700px;
    margin:auto;
}

.search-results{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#fff;
    border:1px solid #ddd;
    border-top:none;
    border-radius:0 0 10px 10px;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
    max-height:350px;
    overflow-y:auto;
    z-index:999;
}

.search-item{
    padding:12px 16px;
    cursor:pointer;
    border-bottom:1px solid #eee;
    transition:.2s;
}

.search-item:last-child{
    border-bottom:none;
}

.search-item:hover{
    background:#f5f7fb;
}

.search-item strong{
    color:#2563eb;
    font-size:15px;
}

.search-item small{
    color:#666;
    font-size:13px;
}

/*
|--------------------------------------------------------------------------
| Quick Links
|--------------------------------------------------------------------------
*/

.quick-links{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

.action-btn{

    display:inline-block;

    padding:12px 20px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    border-radius:8px;

    font-weight:600;

    transition:.2s;

}

.action-btn:hover{

    background:#1d4ed8;

}

.ai-summary {

    margin: 18px 0;

    padding: 16px;

    background: #f5f9ff;

    border-left: 5px solid #1e63d6;

    border-radius: 8px;

    font-size: 16px;

    line-height: 1.7;

}

.ai-badge{

display:inline-block;

padding:5px 12px;

border-radius:20px;

font-size:13px;

font-weight:700;

color:#fff;

text-transform:uppercase;

letter-spacing:.5px;

}

.ai-badge.green{

background:#16a34a;

}

.ai-badge.yellow{

background:#d97706;

}

.ai-badge.red{

background:#dc2626;

}

.executive-summary{

background:#eef7ff;

border-left:5px solid #0b6efd;

padding:18px;

margin-bottom:18px;

border-radius:8px;

line-height:1.7;

}

.executive-summary h3{

margin-top:0;

margin-bottom:10px;

font-size:20px;

font-weight:700;

}

/* ============================================================
   StockZile Homepage Hero
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;600&family=Inter:wght@400;500&display=swap');

.site-hero{
    background:linear-gradient(180deg,#0B1120 0%,#131B2E 100%);
    border-radius:20px;
    padding:56px 32px 40px;
    margin-bottom:30px;
    box-shadow:0 12px 40px rgba(11,17,32,.35);
    overflow:hidden;
    position:relative;
}

.hero-eyebrow{
    display:block;
    text-align:center;
    font-family:'JetBrains Mono',monospace;
    font-size:12px;
    letter-spacing:2.5px;
    text-transform:uppercase;
    color:#D4A857;
    margin-bottom:18px;
}

.hero-wordmark{
    display:block;
    text-align:center;
    font-family:'Space Grotesk',sans-serif;
    font-weight:700;
    font-size:56px;
    letter-spacing:-1px;
    color:#F5F7FA;
    text-decoration:none;
}

.hero-wordmark span{
    color:#D4A857;
}

.hero-wordmark:hover{
    opacity:.9;
}

.hero-tagline{
    text-align:center;
    color:#B8C4DA;
    font-family:'Inter',sans-serif;
    font-size:16px;
    margin-top:12px;
    margin-bottom:32px;
}

.hero-ticker{
    overflow:hidden;
    white-space:nowrap;
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:14px 0;
}

.hero-ticker-track{
    display:inline-block;
    font-family:'JetBrains Mono',monospace;
    font-size:13px;
    color:#B8C4DA;
    letter-spacing:.5px;
    animation:ticker-scroll 32s linear infinite;
}

.hero-ticker-track span{
    margin:0 28px;
}

.hero-ticker-track .feature{ color:#34D399; }
.hero-ticker-track .dot{ color:#D4A857; }

@keyframes ticker-scroll{
    0%{ transform:translateX(0); }
    100%{ transform:translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
    .hero-ticker-track{ animation:none; }
}

@media (max-width:600px){
    .hero-wordmark{ font-size:36px; }
    .site-hero{ padding:40px 18px 28px; }
}

/* ============================================================
   StockZile Buttons & Navigation Links
   ============================================================ */

.nav-links{
    text-align:center;
    margin-bottom:20px;
    font-family:'Inter',sans-serif;
    font-size:14px;
}

.nav-links a{
    color:#8A6D2F;
    text-decoration:none;
    font-weight:600;
    padding-bottom:2px;
    border-bottom:2px solid transparent;
    transition:border-color .15s ease, color .15s ease;
}

.nav-links a:hover{
    color:#B8860B;
    border-bottom-color:#D4A857;
}

.nav-links .sep{
    color:#c7cdd6;
    margin:0 10px;
}

.page-header-link{
    text-align:center;
    margin-bottom:18px;
}

.page-header-link a{
    color:#8A6D2F;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    padding-bottom:2px;
    border-bottom:2px solid transparent;
    transition:border-color .15s ease, color .15s ease;
}

.page-header-link a:hover{
    color:#B8860B;
    border-bottom-color:#D4A857;
}

.page-header-link .sep{
    color:#c7cdd6;
    margin:0 10px;
}

/*
|--------------------------------------------------------------------------
| Sidebar Navigation
|--------------------------------------------------------------------------
*/

.app-shell{
    display:flex;
    align-items:flex-start;
    min-height:100vh;
}

.sidebar{
    width:240px;
    flex-shrink:0;
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
    background:#fafafa;
    border-right:1px solid #e5e7eb;
    padding:24px 18px;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

.sidebar-logo{
    font-weight:800;
    font-size:20px;
    color:#2563eb;
    text-decoration:none;
    display:block;
    margin-bottom:24px;
}

.sidebar-nav a{
    display:block;
    padding:10px 12px;
    margin-bottom:4px;
    border-radius:8px;
    color:#374151;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    transition:background .15s ease, color .15s ease;
}

.sidebar-nav a:hover{
    background:#eef2ff;
    color:#2563eb;
}

.sidebar-divider{
    border:none;
    border-top:1px solid #e5e7eb;
    margin:16px 0;
}

.sidebar-account{
    font-size:13px;
    color:#666;
}

.sidebar-account strong{
    color:#222;
}

.sidebar-account a{
    display:block;
    padding:6px 0;
    color:#8A6D2F;
    text-decoration:none;
    font-weight:600;
    font-size:13px;
}

.sidebar-account a:hover{
    color:#B8860B;
}

.main-content{
    flex:1;
    min-width:0;
}

.mobile-topbar{
    display:none;
    position:fixed;
    top:0;
    left:0;
    right:0;
    width:100%;
    box-sizing:border-box;
    z-index:1001;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    padding:12px 16px;
    align-items:center;
    gap:10px;
}

.mobile-menu-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:8px 14px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.mobile-topbar-logo{
    font-weight:800;
    font-size:16px;
    color:#2563eb;
    text-decoration:none;
}

.sidebar-overlay{
    display:none;
}

.back-to-top-btn{
    display:none;
    position:fixed;
    bottom:24px;
    right:24px;
    z-index:998;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:50%;
    width:46px;
    height:46px;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 2px 10px rgba(0,0,0,0.25);
    align-items:center;
    justify-content:center;
}

.back-to-top-btn.visible{
    display:flex;
}

@media (max-width:900px){

    .mobile-topbar{
        display:flex;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:-260px;
        z-index:1000;
        box-shadow:2px 0 12px rgba(0,0,0,0.15);
        transition:left .25s ease;
    }

    .sidebar.sidebar-open{
        left:0;
    }

    .sidebar-overlay{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.35);
        z-index:999;
    }

    .sidebar-overlay.sidebar-open{
        display:block;
    }

    .main-content{
        padding-top:64px;
    }

}

.btn-primary{
    background:linear-gradient(180deg,#E4BB6E 0%,#D4A857 100%);
    color:#1A1200;
    border:none;
    border-radius:8px;
    padding:8px 22px;
    font-weight:700;
    letter-spacing:.3px;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(212,168,87,.35);
    transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn-primary:hover{
    background:linear-gradient(180deg,#EFC77E 0%,#DEB268 100%);
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(212,168,87,.45);
}

.btn-primary:active{
    transform:translateY(0);
}

.btn-primary:disabled{
    opacity:.6;
    cursor:not-allowed;
    transform:none;
}

.table-link{
    color:#1d4ed8;
    text-decoration:none;
    font-weight:700;
}

.table-link:hover{
    text-decoration:underline;
}