:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #222;
    --text-light: #ffffff;
    --blue-accent: #4fc3f7;
    --green: #00c853;
    --red: #d10303;
    --nav-height: 40px;
    --footer-bg: #0b0f14;
    --footer-text: #dfe6ea;
    --footer-muted: #9aa6ad;
    --footer-accent: #ffffff;
    --footer-padding: 1rem;
    --table-bg: #181d24;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--footer-bg);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

table.display th,
table.display td {
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.custom-modal {
    width: 90%;
    max-width: 900px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pnl-overview-container {
    display: none;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pnl-card {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid var(--blue-accent);
    border-radius: 8px;
    background-color: var(--footer-bg);
    color: var(--text-light);
    box-shadow: 2px 0 5px #77bedf;
    padding: 2px 8px;
}

.pnl-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.pnl-label {
    margin-bottom: 0;
    flex-shrink: 0;
    color: #90caf9;
    font-size: 0.8rem;
    font-weight: 500;
}

.pnl-value {
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 1rem;
    font-weight: bold;
}

.pnl-total,
.buy-investment,
.sell-investment {
    font-size: 0.9rem;
    font-weight: 500;
}

.pnl-total {
    margin: 0 16px;
}

table.dataTable thead th {
    vertical-align: middle;
    padding-right: 23px !important;
}

.modal-body {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ol {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-left: 25px;
    list-style-type: decimal;
    color: #b0b0b0;
}

.modal-body ol li {
    margin-bottom: 10px;
}

.modal-body strong {
    color: #ffffff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tableHead {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    overflow-x: hidden;
    border-bottom: 2px solid #4fc3f7bf;
    background-color: var(--table-bg);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.35);
    padding: 2px 8px 10px;
}

#stockTable {
    width: 100%;
    border-collapse: collapse;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 10;
    cursor: pointer;
    color: #ccc;
    font-size: 26px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
}

.modal-text {
    flex: 2;
}

.modal-text h2 {
    margin-top: 0;
    color: #4fc3f7;
}

.modal-text p {
    line-height: 1.6;
    color: #ccc;
}

.news-block {
    margin-bottom: 16px;
}

.news-box {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.news-box p {
    flex: 1;
    margin: 0;
    max-width: 600px;
}

.container {
    margin: 0 auto;
    min-height: calc(100vh - 168px);
    padding: 0 20px 20px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px 0;
    background-color: transparent;
    color: white;
    font-family: Arial, sans-serif;
}

.public-page-nav {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 20px 8px;
}

.public-page-nav a {
    color: #a9dfff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.public-page-nav a:hover,
.public-page-nav a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.seo-page-intro {
    max-width: 980px;
    margin: 8px auto 18px;
    border: 1px solid rgba(79, 195, 247, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(0, 200, 83, 0.04));
    padding: 22px 24px;
}

.seo-page-intro__eyebrow {
    margin: 0 0 5px;
    color: #7fd9ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seo-page-intro h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.2;
}

.seo-page-intro p {
    max-width: 850px;
    margin: 0;
    color: #c7d2da;
}

.seo-page-intro .seo-page-intro__note {
    margin-top: 9px;
    color: #96a5af;
    font-size: 0.86rem;
}

.seo-page-intro .seo-page-intro__snapshot {
    margin-top: 9px;
    color: #b9e8ff;
    font-size: 0.86rem;
    font-weight: 600;
}

.table-section-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.news-layout {
    display: flex;
    gap: 12px;
}

.news-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-images img {
    width: 850px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.news-image-fallback {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.news-content {
    width: 100%;
    border-radius: 10px;
    background-color: var(--footer-bg);
    color: #fff;
}

#stockTable tbody tr {
    background-color: var(--table-bg);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.35);
}

#stockTable a {
    color: #66b2ff;
    text-decoration: none;
}

#stockTable a:hover {
    color: #2b66a1;
    text-decoration: underline;
}

.tableHead_heading {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.dataTables_filter input {
    border: 0.5px solid #444;
    border-radius: 6px;
    background-color: #222;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 10px;
}

#stockModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
}

#stockTable th,
#stockTable td {
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}

#stockTable th:first-child,
#stockTable td:first-child {
    text-align: left;
    border-right: 1px solid #131212;
}

@media (max-width: 992px) {
    .news-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .tableHead {
        flex-direction: column;
        border-bottom: none;
        padding: 0 0 8px;
    }

    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px 0;
    }

    .container {
        padding: 0;
    }

    .public-page-nav {
        justify-content: center;
        padding-right: 12px;
        padding-left: 12px;
    }

    .seo-page-intro {
        margin-right: 10px;
        margin-left: 10px;
        padding: 18px 16px;
    }

    .news-layout {
        flex-direction: column;
    }

    .modal-body {
        flex-direction: column;
        padding: 20px;
    }

    .modal-image {
        justify-content: center;
        margin-top: 15px;
    }

    .modal-image img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .news-content {
        width: 96%;
        min-width: 380px;
        padding: 15px 8px;
    }

    .tableHead_heading {
        display: none;
    }

    .news-box {
        flex-direction: column-reverse;
    }
}
