* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f7fc;
    --card: #ffffff;
    --text: #14213d;
    --muted: #71809a;
    --border: #e3e8f1;
    --primary: #2857d9;
    --primary-2: #5967ee;
    --sidebar: #09183d;
    --sidebar-2: #102b68;
    --green: #16b979;
    --purple: #7454e8;
    --orange: #f39a25;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

button,
input,
select {
    font: inherit;
}


/* =====================================
   APP
===================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
}


/* =====================================
   SIDEBAR
===================================== */

.sidebar {
    width: 260px;
    flex-shrink: 0;

    background:
        radial-gradient(
            circle at 30% 80%,
            rgba(43, 93, 210, 0.35),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #071432,
            #0c2458
        );

    color: white;

    padding: 42px 20px 24px;

    display: flex;
    flex-direction: column;

    position: sticky;
    top: 0;

    height: 100vh;
}


.sidebar-brand {
    padding: 0 14px;
    margin-bottom: 36px;
}


.brand-logo {
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -1.5px;
}


.brand-logo span {
    color: #4c79ff;
}


.brand-subtitle {
    margin-top: 8px;
    font-size: 11px;
    color: #aebbd6;
    letter-spacing: 0.2px;
}


.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.nav-item {
    width: 100%;
    border: none;
    background: transparent;

    color: #d5ddf0;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 13px 15px;

    border-radius: 11px;

    cursor: pointer;

    text-align: left;

    transition: 0.2s ease;
}


.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}


.nav-item.active {
    background:
        linear-gradient(
            135deg,
            #2258d8,
            #4d5de2
        );

    color: white;

    box-shadow:
        0 8px 20px
        rgba(44, 87, 218, 0.3);
}


.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 19px;
}


.sidebar-bottom {
    margin-top: auto;

    padding: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(35, 74, 155, 0.55),
            rgba(10, 28, 70, 0.8)
        );

    border: 1px solid
        rgba(255, 255, 255, 0.08);
}


.sidebar-visual {
    height: 110px;

    border-radius: 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    background:
        radial-gradient(
            circle,
            rgba(67, 133, 255, 0.35),
            transparent 65%
        );
}


.visual-orb {
    width: 70px;
    height: 70px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #2866e8,
            #8d52ee
        );

    transform: rotate(-8deg);

    opacity: 0.9;
}


.visual-icon {
    position: absolute;

    font-size: 43px;

    color: white;
}


.sidebar-bottom h3 {
    margin-top: 15px;
    font-size: 16px;
}


.sidebar-bottom p {
    margin-top: 8px;

    color: #bac7df;

    font-size: 12px;

    line-height: 1.7;
}


.version {
    display: inline-block;

    margin-top: 16px;

    padding: 6px 10px;

    border: 1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 8px;

    color: #d9e3f7;

    font-size: 11px;
}


/* =====================================
   MAIN
===================================== */

.main-content {
    flex: 1;

    min-width: 0;

    padding: 22px 38px 60px;
}


/* =====================================
   TOPBAR
===================================== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    max-width: 1280px;
    margin: 0 auto;
}


.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.round-button,
.user-pill {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 5px 18px
        rgba(35, 54, 94, 0.06);
}


.round-button {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    cursor: pointer;

    color: var(--text);
}


.user-pill {
    padding: 11px 15px;

    border-radius: 22px;

    color: var(--text);

    font-size: 13px;
}


.user-pill span {
    margin-left: 7px;
    color: #52658c;
}


/* =====================================
   HERO
===================================== */

.hero {
    max-width: 1280px;
    margin: 10px auto 34px;

    text-align: center;
}


.hero-title {
    font-size: 64px;

    font-weight: 850;

    letter-spacing: -3px;

    color: #2659d8;
}


.hero-title span {
    color: #7648df;
}


.hero > p {
    margin-top: 5px;

    color: #687996;

    font-size: 16px;
}


#search-form {
    margin-top: 28px;
}


.search-box {
    display: flex;
    align-items: center;

    background: white;

    border: 1px solid var(--border);

    border-radius: 19px;

    padding: 9px;

    box-shadow:
        0 14px 35px
        rgba(44, 64, 105, 0.09);
}


.search-icon {
    margin-left: 16px;

    color: #72809a;

    font-size: 27px;
}


.search-box input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    padding: 16px 14px;

    color: var(--text);

    font-size: 17px;
}


.search-box input::placeholder {
    color: #8995a8;
}


.clear-button {
    border: none;
    background: transparent;

    color: #8793a8;

    font-size: 22px;

    cursor: pointer;

    padding: 10px;
}


.search-button {
    border: none;

    padding: 16px 28px;

    border-radius: 13px;

    color: white;

    font-weight: 700;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #314dd7,
            #6383ff
        );

    box-shadow:
        0 8px 18px
        rgba(59, 87, 222, 0.25);

    transition: 0.2s ease;
}


.search-button:hover {
    transform: translateY(-1px);
}


.search-controls {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 13px;
}


.search-controls select,
.advanced-button {
    background: white;

    border: 1px solid var(--border);

    border-radius: 9px;

    padding: 9px 14px;

    color: #40516e;

    cursor: pointer;
}


.advanced-button {
    margin-left: auto;
}


/* =====================================
   STATS
===================================== */

.stats-grid {
    max-width: 1280px;

    margin: 0 auto 28px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.stat-card {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        0 7px 20px
        rgba(42, 61, 99, 0.045);
}


.stat-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    border-radius: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    font-weight: 700;
}


.stat-icon.blue {
    background: #eaf1ff;
    color: #2860dc;
}


.stat-icon.green {
    background: #e8faf2;
    color: #17b979;
}


.stat-icon.purple {
    background: #f1edff;
    color: #7652dc;
}


.stat-icon.orange {
    background: #fff3df;
    color: #ee9119;
}


.stat-card strong {
    display: block;

    font-size: 26px;

    letter-spacing: -0.5px;
}


.stat-card span {
    display: block;

    margin-top: 2px;

    font-size: 13px;

    font-weight: 600;
}


.stat-card small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}


/* =====================================
   CONTENT
===================================== */

.content-grid {
    max-width: 1280px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        280px minmax(0, 1fr);

    gap: 18px;

    align-items: start;
}


/* =====================================
   FILTER PANEL
===================================== */

.filter-panel {
    background: white;

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 22px;

    box-shadow:
        0 7px 20px
        rgba(42, 61, 99, 0.045);

    position: sticky;
    top: 20px;
}


.panel-title {
    color: #1d55d0;

    font-weight: 800;

    font-size: 14px;

    margin-bottom: 22px;
}


.filter-section {
    margin-bottom: 20px;
}


.filter-section h4 {
    font-size: 13px;

    margin-bottom: 13px;
}


.check-row {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 7px 0;

    font-size: 13px;

    color: #52617a;

    cursor: pointer;
}


.check-row input {
    accent-color: #3263db;
}


.check-row em {
    margin-left: auto;

    font-style: normal;

    padding: 3px 8px;

    border-radius: 10px;

    background: #edf3ff;

    color: #3561c9;

    font-size: 10px;
}


.filter-divider {
    height: 1px;

    background: #edf0f5;

    margin: 18px 0;
}


.range-row input {
    width: 100%;

    accent-color: #3160d9;
}


.range-values {
    display: flex;

    justify-content: space-between;

    margin-top: 7px;

    color: #8b96a9;

    font-size: 11px;
}


.range-values strong {
    color: #315ed2;
}


.sort-select {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 9px;

    padding: 9px;

    color: #56647a;

    background: white;
}


.reset-button {
    width: 100%;

    padding: 10px;

    border-radius: 9px;

    border: 1px solid var(--border);

    background: white;

    color: #61708a;

    cursor: pointer;
}


/* =====================================
   RESULTS
===================================== */

.results-section {
    min-width: 0;
}


.results-heading {
    display: flex;

    justify-content: space-between;

    align-items: start;

    margin-bottom: 16px;
}


.results-heading h2 {
    color: #2457d0;

    font-size: 16px;

    letter-spacing: 0.2px;
}


.results-heading p {
    margin-top: 6px;

    color: #64738d;

    font-size: 13px;
}


.search-time {
    color: #728099;

    font-size: 12px;
}


.result-card {
    display: grid;

    grid-template-columns:
        54px minmax(0, 1fr) 90px;

    gap: 15px;

    align-items: start;

    background: white;

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 20px;

    margin-bottom: 12px;

    box-shadow:
        0 6px 18px
        rgba(42, 61, 99, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.result-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(42, 61, 99, 0.09);
}


.result-rank {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #edf3ff;

    color: #3160d5;

    font-weight: 800;
}


.result-title {
    font-size: 17px;

    line-height: 1.45;

    color: #142747;
}


.result-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 8px;
}


.source-badge {
    padding: 5px 9px;

    border-radius: 8px;

    background: #edf5ff;

    color: #2860ca;

    font-size: 11px;

    font-weight: 700;
}


.result-url {
    margin-top: 9px;

    font-size: 12px;

    color: #75839a;
}


.result-link {
    display: inline-block;

    margin-top: 11px;

    color: #2058d5;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;
}


.result-link:hover {
    text-decoration: underline;
}


.similarity-box {
    background: #eaf9f1;

    color: #12a76b;

    border-radius: 12px;

    padding: 10px 7px;

    text-align: center;
}


.similarity-box strong {
    display: block;

    font-size: 16px;
}


.similarity-box span {
    font-size: 10px;

    color: #6e8f7f;
}


.empty-state {
    padding: 70px 20px;

    text-align: center;

    color: #71809a;
}


.empty-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 15px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 20px;

    background: #edf3ff;

    color: #3a64d7;

    font-size: 30px;
}


.empty-state h3 {
    color: #30415f;

    margin-bottom: 7px;
}


.empty-state p {
    font-size: 13px;
}


/* =====================================
   DARK MODE
===================================== */

body.dark {
    --bg: #0b1222;
    --card: #121b2e;
    --text: #edf2ff;
    --muted: #9ca9c1;
    --border: #25314a;
}


body.dark .search-box,
body.dark .stat-card,
body.dark .filter-panel,
body.dark .result-card,
body.dark .round-button,
body.dark .user-pill,
body.dark .search-controls select,
body.dark .advanced-button,
body.dark .sort-select,
body.dark .reset-button {
    background: var(--card);

    color: var(--text);

    border-color: var(--border);
}


body.dark .search-box input {
    color: var(--text);
}


body.dark .result-title {
    color: #e8eeff;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1050px) {

    .sidebar {
        width: 220px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }
}


@media (max-width: 700px) {

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 15px;
    }

    .hero-title {
        font-size: 45px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-box input {
        width: calc(100% - 70px);
    }

    .search-button {
        width: 100%;
    }

    .search-controls {
        flex-wrap: wrap;
    }

    .advanced-button {
        margin-left: 0;
    }

    .result-card {
        grid-template-columns: 45px 1fr;
    }

    .similarity-box {
        grid-column: 2;
        width: 90px;
    }
}


/* =====================================
   ABOUT PAGE
===================================== */

.about-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0 50px;
}


/* =====================================
   ABOUT HEADER
===================================== */

.about-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-header h1 {
    margin: 0;

    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;

    color: #101d3d;
}

.about-header h1 span {
    background: linear-gradient(
        90deg,
        #315bea,
        #7047e8
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-header p {
    margin-top: 10px;

    font-size: 18px;

    color: #687898;
}


/* =====================================
   ADVISOR
===================================== */

.advisor-card {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    gap: 10px;

    padding: 20px 42px;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,0.98),
            rgba(247,245,255,0.98)
        );

    border: 1px solid #e4e7f2;

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(
            40,
            57,
            100,
            0.08
        );

    margin-bottom: 28px;
}

.advisor-icon {
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eeeaff;

    font-size: 38px;

    flex-shrink: 0;
}

.advisor-label {
    font-size: 16px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #5544e8;

    margin-bottom: 8px;
}

.advisor-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advisor-info h2 {
    margin: 0;

    font-size: 28px;

    color: #101d3d;
}

.advisor-line {
    width: 105px;
    height: 4px;

    margin-top: 10px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #405bea,
        #7648e8
    );
}


/* =====================================
   MEMBERS HEADING
===================================== */

.members-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 18px;
}

.members-heading span {
    flex: 1;

    height: 1px;

    background: #d9def0;
}

.members-heading h2 {
    margin: 0;

    font-size: 24px;

    color: #433ee2;

    white-space: nowrap;
}


/* =====================================
   MEMBERS GRID
===================================== */

.members-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}


/* =====================================
   MEMBER CARD
===================================== */

.member-card {
    text-align: center;

    padding: 24px 18px 26px;

    background: #ffffff;

    border: 1px solid #e4e7f0;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(
            45,
            61,
            110,
            0.07
        );

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.member-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 35px rgba(
            45,
            61,
            110,
            0.13
        );
}


/* =====================================
   MEMBER AVATAR
===================================== */

.member-avatar {
    width: 170px;
    height: 170px;

    margin: 0 auto 18px;

    border-radius: 50%;
    overflow: hidden;

    background: #eeeef3;
    border: 5px solid #f0effa;

    box-sizing: border-box;
}

.member-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.member-photo-1 {
    object-position: center 50%;
}

.member-photo-2 {
    object-position: center 50%;
}

.member-photo-3 {
    object-position: center 100%;
}

.member-photo-4 {
    object-position: center 50%;
}


/* =====================================
   MEMBER TEXT
===================================== */

.member-card h3 {
    margin: 0;

    font-size: 19px;

    color: #101d3d;
}

.member-line {
    width: 48px;
    height: 4px;

    margin: 12px auto 15px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #405bea,
        #7748e8
    );
}

.member-info {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 9px;

    text-align: center;

    padding: 0;
    
    color: #506080;

    font-size: 14px;
}

.member-info div {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}

.member-info span {
    color: #4d4be8;

    font-weight: 700;
}


/* =====================================
   THANK YOU
===================================== */

.thank-you-card {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    margin-top: 35px;

    padding: 28px 35px;

    background:
        linear-gradient(
            120deg,
            #ffffff,
            #f8f5ff
        );

    border: 1px solid #e3e5f2;

    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(
            45,
            61,
            110,
            0.07
        );
}

.thank-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eeeaff;

    color: #5745e8;

    font-size: 34px;
}

.thank-you-card p {
    margin: 0;

    font-size: 28px;
    font-style: italic;
    font-weight: 500;

    color: #17264b;
}

.thank-sparkle {
    font-size: 30px;

    color: #6749e8;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1100px) {

    .members-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .about-section {
        padding: 20px;
    }

    .about-header h1 {
        font-size: 36px;
    }

    .advisor-card {
        flex-direction: column;

        text-align: center;

        padding: 28px;
    }

    .advisor-line {
        margin-left: auto;
        margin-right: auto;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .thank-you-card {
        flex-direction: column;

        text-align: center;
    }

    .thank-you-card p {
        font-size: 21px;
    }

}


/* =====================================
   ABOUT - CENTER IN CONTENT AREA
===================================== */

.about-section {
    width: min(
        1200px,
        calc(100% - 48px)
    );

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}


/* =====================================
   ABOUT - FIT INTO VIEWPORT
===================================== */

@media (min-width: 1101px) {

    /* Thu nhỏ phần header */

    .about-header {
        margin-bottom: 20px;
    }

    .about-header h1 {
        font-size: 44px;
    }

    .about-header p {
        margin-top: 6px;
        font-size: 16px;
    }


    /* Card giảng viên */

    .advisor-card {
        gap: 7px;

        padding: 14px 35px;

        margin-bottom: 22px;
    }

    .advisor-icon {
        width: 72px;
        height: 72px;

        font-size: 32px;
    }

    .advisor-label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .advisor-info h2 {
        font-size: 26px;
    }

    .advisor-line {
        width: 90px;
        height: 3px;

        margin-top: 7px;
    }


    /* Tiêu đề thành viên */

    .members-heading {
        margin-bottom: 14px;
    }


    /* Card cảm ơn */

    .thank-you-card {
        margin-top: 20px;

        padding: 16px 25px;

        min-height: 55px;
    }

    .thank-icon {
        width: 52px;
        height: 52px;

        font-size: 26px;
    }

    .thank-you-card p {
        font-size: 23px;
    }

    .thank-sparkle {
        font-size: 25px;
    }

}


/* =====================================
   ADVISOR - FINAL BALANCE
===================================== */

@media (min-width: 1101px) {

    .advisor-card {
        gap: 9px;
        padding: 18px 35px;
        margin-bottom: 24px;
    }

    .advisor-icon {
        width: 82px;
        height: 82px;

        font-size: 36px;
    }

    .advisor-label {
        font-size: 15px;
        letter-spacing: 1.5px;

        margin-bottom: 5px;
    }

    .advisor-info h2 {
        font-size: 29px;
        line-height: 1.2;
    }

    .advisor-line {
        width: 95px;
        height: 3px;

        margin-top: 9px;
    }

}


/* =====================================
   ABOUT - DARK MODE
===================================== */

body.dark .about-header h1,
body.dark .about-header p {
    color: #e8edff;
}

body.dark .about-header h1 span {
    background: linear-gradient(
        90deg,
        #5f7cff,
        #8b5cf6
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Advisor */

body.dark .advisor-card {
    background:
        linear-gradient(
            120deg,
            #111b35,
            #17152f
        );

    border-color: #29365b;

    box-shadow:
        0 12px 35px rgba(
            0,
            0,
            0,
            0.25
        );
}

body.dark .advisor-icon {
    background: #25204d;
}

body.dark .advisor-label {
    color: #7c6cff;
}

body.dark .advisor-info h2 {
    color: #f1f4ff;
}


/* Members heading */

body.dark .members-heading span {
    background: #34415f;
}

body.dark .members-heading h2 {
    color: #665cff;
}


/* Member cards */

body.dark .member-card {
    background: #ffffff;
    border-color: #dfe3ef;

    box-shadow:
        0 10px 30px rgba(
            0,
            0,
            0,
            0.18
        );
}

/*
   Giữ card thành viên trắng giống
   screenshot hiện tại để ảnh + chữ
   vẫn nổi bật trên nền tối.
*/

body.dark .member-card h3 {
    color: #101d3d;
}

body.dark .member-info {
    color: #506080;
}

body.dark .member-info span {
    color: #5148e8;
}


/* Avatar */

body.dark .member-avatar {
    background: #eeeef5;
    border-color: #e8e8f5;
}


/* Thank you */

body.dark .thank-you-card {
    background:
        linear-gradient(
            120deg,
            #111b35,
            #17152f
        );

    border-color: #29365b;

    box-shadow:
        0 10px 30px rgba(
            0,
            0,
            0,
            0.25
        );
}

body.dark .thank-icon {
    background: #25204d;
}

body.dark .thank-you-card p {
    color: #eef1ff;
}

body.dark .thank-sparkle {
    color: #7567ff;
}


/* =====================================================
   DATA SOURCES PAGE
===================================================== */

.data-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0 50px;
}


/* =========================
   HEADER
========================= */

.data-header {
    margin-bottom: 28px;
}

.data-header h1 {
    margin: 0;

    font-size: 38px;
    font-weight: 800;

    color: #101d3d;
}

.data-header h1 span {
    background: linear-gradient(
        90deg,
        #405bea,
        #7648e8
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.data-header p {
    margin-top: 8px;

    color: #70809d;
    font-size: 15px;
}


/* =========================
   TOP GRID
========================= */

.data-top-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(360px, 1fr);

    gap: 18px;

    margin-bottom: 18px;
}


/* =========================
   RSS CARD
========================= */

.rss-card,
.sources-card,
.process-card,
.index-card,
.data-info {
    background: #ffffff;

    border: 1px solid #e3e7f1;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(
            45,
            60,
            100,
            0.07
        );
}

.rss-card {
    padding: 24px;
}

.rss-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rss-icon {
    width: 56px;
    height: 56px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #5147e9,
            #754ce8
        );

    color: white;

    font-size: 24px;
}

.rss-heading h2 {
    margin: 2px 0 8px;

    font-size: 20px;
    color: #101d3d;
}

.rss-heading p {
    margin: 0;

    line-height: 1.55;

    color: #64738f;

    font-size: 14px;
}

.rss-body {
    display: grid;

    grid-template-columns: 1fr 1.15fr;

    gap: 18px;

    margin-top: 22px;
}

.rss-features {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.rss-features div {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

    color: #435271;
}

.rss-features i {
    color: #4161e9;
}

.rss-code {
    padding: 15px;

    border-radius: 13px;

    background: #f5f7fc;

    border: 1px solid #e1e5f0;

    overflow: hidden;
}

.rss-code pre {
    margin: 0;

    white-space: pre-wrap;

    font-family:
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 11px;

    line-height: 1.6;

    color: #46557a;
}


/* =========================
   STAT CARDS
========================= */

.data-stat-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.data-stat-card {
    min-height: 120px;

    padding: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    background: #ffffff;

    border: 1px solid #e3e7f1;

    border-radius: 17px;

    box-shadow:
        0 8px 25px rgba(
            45,
            60,
            100,
            0.06
        );
}

.data-stat-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 20px;
}

.data-stat-icon.blue {
    background: #eaf0ff;
    color: #4161e9;
}

.data-stat-icon.green {
    background: #e6f9f0;
    color: #16a36a;
}

.data-stat-icon.purple {
    background: #f0eaff;
    color: #7048e8;
}

.data-stat-icon.orange {
    background: #fff2dd;
    color: #e99a1a;
}

.data-stat-card span {
    display: block;

    color: #64738f;

    font-size: 12px;
}

.data-stat-card strong {
    display: block;

    margin-top: 4px;

    color: #101d3d;

    font-size: 23px;
}

.data-stat-card small {
    display: block;

    margin-top: 2px;

    color: #8a96ac;

    font-size: 10px;
}


/* =========================
   INFO
========================= */

.data-info {
    padding: 14px 18px;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    color: #586985;

    font-size: 13px;
}

.data-info i {
    color: #4161e9;

    font-size: 18px;
}


/* =========================
   LOWER GRID
========================= */

.data-bottom-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(380px, 0.9fr);

    gap: 18px;

    margin-bottom: 18px;
}


/* =========================
   SECTION TITLE
========================= */

.section-title h2 {
    margin: 0;

    font-size: 17px;

    color: #101d3d;
}

.section-title h2 span {
    color: #4c58e9;
}


/* =========================
   SOURCES
========================= */

.sources-card {
    padding: 22px;
}

.source-table {
    margin-top: 20px;
}

.source-table-header,
.source-row {
    display: grid;

    grid-template-columns:
        45px
        1fr
        110px
        125px;

    align-items: center;

    column-gap: 12px;
}

.source-table-header {
    padding: 10px 8px;

    color: #8995aa;

    font-size: 11px;

    border-bottom: 1px solid #e4e8f0;
}

.source-row {
    min-height: 78px;

    padding: 10px 8px;

    border-bottom: 1px solid #edf0f5;
}

.source-row > span:first-child {
    color: #6c7890;

    font-size: 12px;
}

.source-name strong {
    display: block;

    color: #162444;

    font-size: 14px;
}

.source-name small {
    display: block;

    margin-top: 3px;

    color: #71809b;

    font-size: 11px;
}

.source-count {
    color: #15264a;

    font-size: 17px;
}

.source-status {
    display: inline-flex;

    width: fit-content;

    align-items: center;

    gap: 5px;

    padding: 6px 9px;

    border-radius: 8px;

    background: #e6f8ee;

    color: #168c59;

    font-size: 10px;

    font-weight: 600;
}

.source-total {
    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-top: 16px;

    padding: 14px;

    border-radius: 12px;

    background: #f6f8fc;
}

.source-total span {
    color: #4e5d78;

    font-size: 13px;
}

.source-total strong {
    margin-left: auto;

    color: #17284c;

    font-size: 20px;
}

.source-total small {
    color: #7c899f;
}


/* =========================
   PROCESS
========================= */

.process-card {
    padding: 22px;
}

.process-list {
    margin-top: 18px;
}

.process-item {
    display: flex;

    gap: 13px;

    align-items: flex-start;
}

.process-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 15px;
}

.process-icon.orange {
    background: #fff0d9;
    color: #e99a1a;
}

.process-icon.blue {
    background: #e8efff;
    color: #4161e9;
}

.process-icon.purple {
    background: #f0eaff;
    color: #7048e8;
}

.process-icon.green {
    background: #e5f8ee;
    color: #16a36a;
}

.process-item strong {
    display: block;

    margin-top: 2px;

    color: #172548;

    font-size: 13px;
}

.process-item p {
    margin: 5px 0 0;

    color: #72809a;

    font-size: 11px;

    line-height: 1.45;
}

.process-line {
    width: 1px;

    height: 15px;

    margin-left: 19px;

    background: #dce2ee;
}


/* =========================
   INDEX
========================= */

.index-card {
    padding: 22px;
}

.index-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin-top: 17px;
}

.index-item {
    padding: 17px;

    border-radius: 13px;

    background: #f7f8fc;

    border: 1px solid #e6e9f1;
}

.index-item > i {
    display: flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 10px;

    background: #eceaff;

    color: #5c4de8;
}

.index-item strong {
    display: block;

    color: #162548;

    font-size: 20px;
}

.index-item span {
    display: block;

    margin-top: 2px;

    color: #4e5e7c;

    font-size: 12px;

    font-weight: 600;
}

.index-item small {
    display: block;

    margin-top: 8px;

    color: #7b879c;

    font-size: 10px;

    line-height: 1.4;
}


/* =====================================================
   DARK MODE
===================================================== */

body.dark .data-header h1 {
    color: #f0f3ff;
}

body.dark .data-header p {
    color: #8492b1;
}

body.dark .rss-card,
body.dark .sources-card,
body.dark .process-card,
body.dark .index-card,
body.dark .data-info,
body.dark .data-stat-card {
    background:
        linear-gradient(
            120deg,
            #111b35,
            #17152f
        );

    border-color: #29365b;

    box-shadow:
        0 12px 35px rgba(
            0,
            0,
            0,
            0.22
        );
}

body.dark .rss-heading h2,
body.dark .section-title h2,
body.dark .data-stat-card strong,
body.dark .source-name strong,
body.dark .source-count,
body.dark .process-item strong,
body.dark .index-item strong {
    color: #eef2ff;
}

body.dark .rss-heading p,
body.dark .rss-features div,
body.dark .data-stat-card span,
body.dark .data-stat-card small,
body.dark .source-name small,
body.dark .process-item p,
body.dark .data-info,
body.dark .index-item small,
body.dark .source-total span {
    color: #8e9bb8;
}

body.dark .rss-code,
body.dark .index-item,
body.dark .source-total {
    background: #0d162c;
    border-color: #29365b;
}

body.dark .rss-code pre {
    color: #9da9c5;
}

body.dark .source-table-header {
    color: #7d8aa8;

    border-color: #29365b;
}

body.dark .source-row {
    border-color: #202c49;
}

body.dark .source-row > span:first-child {
    color: #7886a4;
}

body.dark .process-line {
    background: #34415f;
}