:root {
    --primary-blue: #007bff;
    --text-dark: #0a0b0b;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --down-color: #f15a67;
    --up-color: #15c27b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); }
a { text-decoration: none; color: var(--text-dark); }

/* Header & Navbar */
.site-header { background-color: var(--bg-white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1320px; margin: 0 auto; position: relative; }
.logo-main { font-weight: bold; font-size: 1.75rem; color: var(--text-dark); text-decoration: none; }
.logo-main img { height: 29px; width: auto;}
.footer-logo img { height: 20px; width: auto; margin-bottom: 10px; }

/* Desktop Nav */
.nav-menu-container { display: flex; justify-content: center; flex-grow: 1; }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 1rem; transition: color 0.3s, background-color 0.3s, padding 0.3s; cursor: pointer; display: flex; align-items: center; padding: 0.5rem 1rem; border-radius: 20px;}
.nav-link:hover { color: var(--primary-blue); }
.nav-link i { font-size: 0.8em; margin-left: 4px; transition: transform 0.3s ease; }
.logo-partner { font-weight: bold; color: var(--text-light); text-decoration: none; }
.mobile-menu-header, .mobile-submenu, .close-icon, .hamburger { display: none; }

/* Special Product Link Style */
.product-link.active, .product-link:hover {
    background-color: #e9f5ff;
    color: var(--primary-blue);
}

/* --- Mega Menu (Desktop) --- */
.mega-menu {
    background: linear-gradient(180deg, #FFFFFF 0%, #f0f6ff 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
    padding: 0 2rem;
    border-bottom: 1px solid transparent;
}

.mega-menu.active {
    max-height: 500px; /* Or enough height to show content */
    padding-top: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.mega-menu-content { display: flex; justify-content: center; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.product-card { background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; width: 200px; text-align: left; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.card-icon { font-size: 1.5rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 1rem; }
.stock-icon { background-color: #e6f7ff; color: #1890ff; }
.mutual-fund-icon { background-color: #e6fffb; color: #13c2c2; }
.bond-icon { background-color: #f9f0ff; color: #722ed1; }
.sharia-icon { background-color: #f6ffed; color: #52c41a; }
.margin-icon { background-color: #fffbe6; color: #faad14; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.4; }

/* Simple Dropdown for Desktop */
.dropdown { position: relative; }
.simple-dropdown-menu {
    display: none; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    background: var(--bg-white);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.dropdown.active .simple-dropdown-menu { display: block; opacity: 1; visibility: visible; }
.simple-dropdown-menu a { display: block; padding: 0.75rem 1.5rem; color: var(--text-dark); text-decoration: none; }
.simple-dropdown-menu a:hover { background-color: #f1f3f4; }

/* Rotate Arrow on Active */
.nav-link.active i { transform: rotate(180deg); }
.main-content-placeholder { text-align: center; padding: 5rem 2rem; transition: margin-top 0.5s ease-in-out; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); transition: all 0.3s ease-in-out; }


@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    .hero-section { padding: 2rem 1rem; }
    .footer-links-group { flex-direction: column; }
}

@media (max-width: 1024px) {
    .mega-menu { display: none !important; } /* Hide the new mega menu block on mobile */
    .nav-right { display: none; }
    .hamburger { display: block; cursor: pointer; z-index: 999; }
    .nav-menu-container { position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100%; background-color: var(--bg-white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s ease-in-out; flex-direction: column; justify-content: flex-start; z-index: 2000; }
    .nav-menu-container.active { right: 0; }
    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
    .close-icon { display: block; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }
    .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding-top: 1rem; }
    .nav-item { width: 100%; border-bottom: 1px solid #f1f1f1; }
    .nav-link { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; width: 100%; font-size: 1.1rem; }
    .product-link, .product-link:hover, .product-link.active { background-color: transparent !important; color: var(--text-dark); padding: 1.25rem 1.5rem; border-radius: 0; }
    .mobile-submenu, .simple-dropdown-menu { display: none; list-style: none; background-color: var(--bg-light); padding-left: 0; }
    .dropdown.active > .mobile-submenu, .dropdown.active > .simple-dropdown-menu { display: block; }
    .mobile-submenu li a, .simple-dropdown-menu li a { padding: 1rem 2.5rem; display: block; text-decoration: none; color: var(--text-dark); }
    .mobile-submenu li a:hover, .simple-dropdown-menu li a:hover { background-color: #e9ecef; }
    .nav-link.active i {transform: rotate(180deg);}
    .ticker-container { justify-content: flex-start; padding: 1rem; }
    .content-area { flex-direction: column; padding: 1rem; gap: 0; }
    .sidebar { width: 100%; margin-top: 2rem; }

    .mover-item { flex-wrap: wrap; }
    .site-footer-main { flex-direction: column; }
    .footer-links-group { flex-direction: column; gap: 1rem; }
    .site-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom-right { flex-direction: column; gap: 1rem; }
}

/* --- Hero Section --- */
.hero-section {
    background-color: #f9fafb;
    padding: 2.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.5" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,138.7C672,117,768,107,864,122.7C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.market-nav, .ticker-container, .hero-search-container { position: relative; z-index: 2; }

.market-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.market-link { text-decoration: none; color: var(--text-light); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 500; transition: background-color 0.3s, color 0.3s; }
.market-link:hover { color: var(--text-dark); }
.market-link.active { background-color: var(--bg-white); color: var(--primary-blue); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.market-link i { margin-right: 0.5rem; }

/* Ticker / Crypto Cards */
.ticker-container { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 0; justify-content: center;  scrollbar-width: none;  }
.ticker-item { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; display: flex; align-items: center; gap: 0.75rem; min-width: 280px; text-align: left; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.ticker-arrow { font-size: 1.25rem; width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.ticker-item.down .ticker-arrow { background-color: #fff1f0; color: var(--down-color); }
.ticker-item.up .ticker-arrow { background-color: #f6ffed; color: var(--up-color); }
.ticker-info { display: flex; flex-direction: column; flex-grow: 1; }
.ticker-name { font-weight: bold; font-size: 0.6rem; }
.ticker-price { font-size: 0.8rem; }
.ticker-change { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.7rem; }
.ticker-item.down .percent { color: var(--down-color); }
.ticker-item.up .percent { color: var(--up-color); }


/* Hero Search */
.hero-search-container { max-width: 600px; margin: 2rem auto 0; position: relative; }
.hero-search-container input { width: 100%; padding: 1rem 1rem 1rem 3.5rem; border-radius: 28px; border: 1px solid var(--border-color); font-size: 1.1rem; box-shadow: 0 8px 25px rgba(0,0,0,0.08); transition: box-shadow 0.3s; }
.hero-search-container input:focus { outline: none; box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15); }
.search-icon-input { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--text-light); }


/* --- Main Content Area --- */
.content-area {
    display: flex;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.9rem 0.5rem 0; /* dari 1rem jadi 0.5rem */
    gap: 1rem;             /* dari 2rem jadi 1rem */
}

.main-content { flex: 1; min-width: 0; }


@media (min-width: 768px) {
    .sidebar {
        width: 350px;
        flex-shrink: 0;
    }
}

section h2 {font-size: 1.5rem;margin-bottom: 1.5rem;text-align: left;}

/* Top Movers */
.top-movers { margin-bottom: 2rem; }
.mover-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-white); border-radius: 8px; border: 1px solid var(--border-color); }
.mover-tag { background-color: #0d6efd; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: bold; font-size: 0.9rem; }
.mover-name { flex-grow: 1; font-weight: 500; }
.mover-price { font-weight: 500; }
.mover-change-value { color: var(--up-color); }
.mover-change-percent { background-color: #e6f7f0; color: var(--up-color); padding: 0.25rem 0.5rem; border-radius: 4px; display: flex; align-items: center; gap: 0.25rem; font-weight: 500; }
.mover-action { color: #20c997; font-size: 1.25rem; }

/* Financial News */
.news-filters { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-btn { background: #e9ecef; border: 1px solid var(--border-color); color: var(--text-dark); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.filter-btn.active { background: #e7f1ff; color: #0d6efd; border-color: #b8d6ff; }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.news-content { flex: 1; }
.news-source {color: var(--text-light);font-size: 0.8rem;margin-bottom: 0.25rem;text-align: left;}
.news-item h3 {font-size: 1.1rem;font-weight: 600;text-align: left;margin-bottom: 0.5rem;}
.news-ticker {font-size: 0.9rem;font-weight: 500;text-align: left;}
.news-image { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }

/* Sidebar */
.sidebar-card { background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h4 {font-size: 1.1rem;margin-bottom: 0.25rem;text-align: left;}
.sidebar-card .card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.sidebar-card .card-header p { font-size: 0.8rem; color: var(--text-light); }
.sidebar-card .card-description { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 1rem; text-align: left; }
.card-icon-blue { color: #0d6efd; background: #e7f1ff; padding: 0.5rem; font-size: 1rem; border-radius: 8px; }
.portfolio-value { font-size: 2rem; font-weight: bold; margin-bottom: 1rem; }
.portfolio-item { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 1.5rem; }
.btn-new-portfolio { width: 100%; background: none; border: 1px dashed var(--primary-blue); color: var(--primary-blue); padding: 0.75rem; border-radius: 8px; font-weight: 500; cursor: pointer; transition: background-color 0.2s; }
.btn-new-portfolio:hover { background: #e7f1ff; }
.btn-new-portfolio i { margin-right: 0.5rem; }

/* Market Trends */
.trend-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip { background: none; border: 1px solid var(--border-color); color: var(--text-dark); padding: 0.5rem 0.75rem; border-radius: 16px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.filter-chip:hover { background-color: #f1f3f4; }
.filter-chip i { color: var(--text-light); }


.followed-stock-list { display: flex; flex-direction: column; gap: 0.5rem; }
.followed-stock-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
.followed-stock-item:last-child { border-bottom: none; padding-bottom: 0; }
.followed-stock-info { display: flex; align-items: center; gap: 1rem; }
.stock-ticker-tag { font-weight: bold; color: rgb(0, 0, 0); padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.9rem; }
.stock-ticker-tag.aapl { background-color: #5a6268; }
.stock-ticker-tag.gogl { background-color: #d9534f; }
.stock-ticker-tag.msft { background-color: #5a6268; }
.stock-ticker-tag.amzn { background-color: #f0ad4e; }
.stock-ticker-tag.meta { background-color: #0275d8; }
.stock-ticker-tag.tsla { background-color: #d9534f; }
.stock-details h5 { font-size: 1rem; margin: 0; font-weight: 500; text-align: left; }
.stock-details p { font-size: 0.85rem; color: var(--text-light); margin: 0;  text-align: left; }
.followed-stock-action { display: flex; align-items: center; gap: 1rem; }
.stock-change-tag { padding: 0.3rem 0.6rem; border-radius: 6px; font-weight: 500; font-size: 0.6rem; display: flex; align-items: center; gap: 0.25rem; }
.stock-change-tag.down { background-color: #fceded; color: var(--down-color); }
.stock-change-tag.up { background-color: #e6f7f0; color: var(--up-color); }
.add-stock-btn { background: none; border: 1px solid var(--border-color); color: var(--text-light); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, color 0.2s; }
.add-stock-btn:hover { background-color: #f1f3f4; color: var(--text-dark); }


/* --- Site Footer --- */
.site-footer-container {background-color: var(--bg-white);color: var(--text-dark);padding: 4rem 2rem 0;border-top: 1px solid var(--border-color);}
.site-footer-main { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; padding-bottom: 3rem; }
.footer-about { flex: 2; max-width: 350px; }
.footer-about p {font-size: 0.9rem;line-height: 1.6;color: #4e5154;margin-bottom: 1.5rem;}
.footer-social-icons { display: flex; gap: 1.5rem; }
.footer-social-icons a { color: #313131; font-size: 1.2rem; transition: color 0.2s; }
.footer-social-icons a:hover { color: var(--bg-white); }
.footer-links-group { flex: 3; display: flex; justify-content: space-between; gap: 2rem; }
.footer-links h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1rem; } 
.footer-links a {text-decoration: none;color: #4e5154;transition: color 0.2s;}
.footer-links a:hover { color: var(--text-light); text-decoration: underline; }
.site-footer-bottom { border-top: 1px solid var(--border-color); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #adb5bd; }
.footer-bottom-right { display: flex; align-items: center; gap: 1.5rem; }
.footer-bottom-right a { color: #adb5bd; text-decoration: none; transition: color 0.2s; }
.footer-bottom-right a:hover { color: var(--bg-white); }
.language-selector { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* --- Article Page --- */
.article-full {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: left;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-source {
    font-weight: 500;
}

.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    color: #343a40;
}

.article-body p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85rem;
    font-weight: 400;
    margin-bottom: 1.4rem;
    color: #2c2c2c;
}


.recently-searched {
    margin-top: 40px;
}

.recently-searched h2{
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: left;
}

.discover-grid-container {
    position: relative;
}



.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-button.right {
    right: -20px;
}
.scroll-button.left {
    left: -20px;
}

.material-icons {
    margin-right: 20px;
}

.material-icons {
    margin-left: 20px;
}


.discover-grid-container {
    position: relative;
}

.discover-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.discover-grid::-webkit-scrollbar {
    display: none;
}

.stock-card {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    min-width: 220px;
    margin-right: 16px;
    position: relative;
}

.stock-card-ticker {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.index { background-color: #e8eaed; color: #202124; }
.asri { background-color: #4285f4; color: #fff; }
.asii { background-color: #4285f4; color: #fff; }
.elsa { background-color: #d93025; color: #fff; }
.bmri { background-color: #fbbc04; color: #000; }


.stock-card-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}


.stock-card-price {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 7px;
}

.stock-card-change-positive,
.stock-card-change-negative,
.stock-card-change-neutral {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.12rem 0.1rem;
    border-radius: 20px;
    font-weight: 500;
    /* gap: 0.25rem; */
    justify-content: space-between;
}

.stock-card-change-positive {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.stock-card-change-negative {
    background-color: #fce8e6;
    color: #d93025;
}

.stock-card-change-neutral {
    background-color: #f1f3f4;
    color: #202124;
}

.add-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: #f1f3f4;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-button.right {
    right: -20px;
}
.scroll-button.left {
    left: -20px;
}

.positive {
    color: #1dbf4f; 
}

.negative {
    color: #ff4d4d; 
}


.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.info-label {
    display: flex;
    align-items: center;
    color: #555;
    font-weight: 200;
    font-size: 12px;
}

.info-label i {
    margin-right: 10px;
}

.info-value {
    color: #555;
    font-weight: 200;
    font-size: 12px;
}

.info-value a:hover {
    text-decoration: underline;
}


/* detail saham */


.stock-card {
    background-color: #ffffff;
    border: 1px solid #dfe1e6;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header {
    border-bottom: 1px solid #dfe1e6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.long-name {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #091e42;
}

.symbol {
    font-size: 16px;
    color: #6b778c;
    margin: 4px 0 0;
    text-align: left;
}

.price-section {
    margin-bottom: 20px;
}

.current-price {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    color: #091e42;
}

.change {
    font-size: 20px;
    font-weight: 500;
    margin: 4px 0 0;
}

.change.up {
    color: #00875a; /* Green for price up */
}

.change.down {
    color: #de350b; /* Red for price down */
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metric {
    background-color: #fafbfd;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dfe1e6;
    text-align: left;
}

.metric .label {
    font-size: 14px;
    color: #6b778c;
    margin: 0 0 4px;
}

.metric .value {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #172b4d;
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .stock-card {
        padding: 16px;
        border-radius: 12px;
        border: none;
        box-shadow: none;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }


    .long-name {
        font-size: 24px;
    }

    .current-price {
        font-size: 40px;
    }

    .change {
        font-size: 18px;
    }
}


/* detail saham */

  .stock-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .stock-title h1 {
            color: #2d3748;
            font-size: 2.5em;
            margin-bottom: 5px;
        }

        .stock-title p {
            color: #718096;
            font-size: 1.1em;
        }

        .stock-price {
            text-align: right;
        }

        .price {
            font-size: 3em;
            font-weight: bold;
            color: #48bb78;
        }

        .change {
            font-size: 1.2em;
            color: #48bb78;
        }

        .change.negative {
            color: #f56565;
        }

        .collapse-section {
            background: white;
            border-radius: 5px;
            margin-bottom: 15px;
            overflow: hidden;
   
            transition: all 0.3s ease;
        }

        .collapse-section:hover {
    
            transform: translateY(-2px);
        }

        .collapse-header {
            padding: 15px 25px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* background: linear-gradient(135deg, #fafbfd 0%, #fafbfd 100%); */
            background-color: var(--bg-white);
            color: #000000;
            border: 1px solid var(--border-color);
            /* transition: all 0.3s ease; */
        }

        .collapse-header:hover {
            background: linear-gradient(135deg, #fafbfd 0%, #fafbfd 100%);
        }

        .collapse-title {
            font-size: 1.3em;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .icon {
            font-size: 1.5em;
        }

        .arrow {
            font-size: 1.2em;
            transition: transform 0.3s ease;
        }

        .collapse-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }

        .collapse-content.active {
            max-height: 5000px;
        }

        .content-inner {
            padding: 25px;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .metric-card {
            background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid #667eea;
        }

        .metric-card:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .metric-label {
            color: #718096;
            font-size: 0.9em;
            margin-bottom: 8px;
        }

        .metric-value {
            color: #2d3748;
            font-size: 1.8em;
            font-weight: bold;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            padding: 15px 0;
            border-bottom: 1px solid #e2e8f0;
        }

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

        .info-label {
            color: #718096;
            font-weight: 500;
        }

        .info-value {
            color: #2d3748;
            font-weight: 600;
        }

        .highlight {
            color: #667eea;
        }

        .positive {
            color: #48bb78;
        }

        .negative {
            color: #f56565;
        }

        .timeline-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .timeline-item {
            display: grid;
            grid-template-columns: 60px 1fr 80px;
            align-items: center;
            gap: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
        }

        .timeline-item:hover {
            background: #e9ecef;
        }

        .timeline-year {
            font-weight: bold;
            color: #667eea;
            font-size: 1.1em;
        }

        .timeline-bar-container {
            background: #e2e8f0;
            height: 35px;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
        }

        .timeline-bar {
            background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
            height: 100%;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 15px;
        }

        .timeline-value {
            color: white;
            font-weight: 600;
            font-size: 0.9em;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        }

        .timeline-growth {
            font-weight: 600;
            text-align: right;
            font-size: 1em;
        }

        .table-wrapper {
            overflow-x: auto;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
        }

        .data-table thead {
            background: linear-gradient(135deg, #e2e8f0 0%, #e2e8f0 100%);
            color: #000000;
        }

        .data-table th {
            padding: 15px;
            text-align: left;
            font-weight: 600;
            font-size: 1em;
        }

        .data-table td {
            padding: 15px;
            border-bottom: 1px solid #e2e8f0;
        }

        .data-table tbody tr {
            transition: background 0.2s ease;
        }

        .data-table tbody tr:hover {
            background: #f8f9fa;
        }

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

        .year-cell {
            font-weight: 600;
            color: #667eea;
        }

        .value-cell {
            font-weight: 600;
            color: #2d3748;
        }

        .growth-cell {
            font-weight: 600;
        }

        .margin-cell {
            color: #718096;
        }

          .eps-year-container {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .eps-year-block {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 20px;
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .eps-year-block:hover {
            border-color: #667eea;
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
            transform: translateY(-2px);
        }

        .eps-year-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #cbd5e0;
        }

        .eps-year-title {
            font-size: 1.8em;
            font-weight: bold;
            color: #667eea;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
        }

        .eps-annual {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 10px 20px;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
        }

        .eps-annual-label {
            font-size: 0.85em;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        .eps-annual-value {
            font-size: 1.6em;
            font-weight: bold;
            color: white;
            margin-top: 3px;
        }

        .eps-quarters {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
        }

        .eps-quarter-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .eps-quarter-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .eps-quarter-card:hover {
            border-color: #667eea;
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
        }

        .eps-quarter-card:hover::before {
            transform: scaleX(1);
        }

        .quarter-badge {
            background: linear-gradient(135deg, #b6b6b6 0%, #00b618 100%);
            color: white;
            font-weight: bold;
            font-size: 0.9em;
            padding: 5px 15px;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .quarter-value {
            font-size: 1.5em;
            font-weight: bold;
            color: #2d3748;
            margin: 10px 0;
        }

        .quarter-growth {
            font-size: 0.95em;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 15px;
            display: inline-block;
        }

        .quarter-growth.positive {
            background: rgba(72, 187, 120, 0.15);
            color: #48bb78;
        }

        .quarter-growth.negative {
            background: rgba(245, 101, 101, 0.15);
            color: #f56565;
        }

        @media (max-width: 768px) {
            .stock-info {
                flex-direction: column;
                text-align: center;
            }

            .stock-title h1 {
                font-size: 2em;
            }

            .stock-price {
                text-align: center;
            }

            .price {
                font-size: 2.5em;
            }

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

            .collapse-title {
                font-size: 1.1em;
            }

            .metric-value {
                font-size: 1.5em;
            }

            .table-wrapper {
                overflow-x: auto;
            }

            .data-table {
                font-size: 0.85em;
            }

            .timeline-item {
                grid-template-columns: 50px 1fr 60px;
            }

            .timeline-year {
                font-size: 0.9em;
            }

            .timeline-value {
                font-size: 0.85em;
            }

            .timeline-growth {
                font-size: 0.85em;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .header {
                padding: 20px;
            }

            .content-inner {
                padding: 15px;
            }

            .collapse-header {
                padding: 15px 20px;
            }
        }


   .stock-item {
            padding: 20px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

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

        .stock-left {
            flex: 1;
        }

        .stock-ticker {
            display: inline-block;
            padding: 3px 6px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 13px;
            margin-bottom: 8px;
            color: white;
        }

        .ticker-aapl {
            background-color: #6b7280;
        }

        .ticker-googl {
            background-color: #dc2626;
        }

        .ticker-msft {
            background-color: #6b7280;
        }

        .ticker-amzn {
            background-color: #d97706;
        }

        .ticker-meta {
            background-color: #2563eb;
        }

        .ticker-tsla {
            background-color: #dc2626;
        }

        .company-name {
            font-size: 10px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 4px;
        }

        .followers {
            font-size: 14px;
            color: #6b7280;
        }

        .stock-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .percentage {
            padding: 3px 5px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 10px;
            color: #059669;
        }

        .percentage.positive {
            color: #0abf53; /* green */
            background-color: #d1fae5;
        }

        .percentage.negative {
            color: #e63946; /* red */
            background-color: #fad1d1;
        }

        .percentage.neutral {
            color: #666; /* grey */
        }

        .add-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid #d1d5db;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .add-btn:hover {
            border-color: #9ca3af;
            background-color: #f9fafb;
        }

        .add-btn::before {
            content: '+';
            font-size: 24px;
            color: #6b7280;
            font-weight: 300;
        }