:root {
    --bg: #07111f;
    --panel: rgba(15, 28, 47, 0.88);
    --panel-light: rgba(24, 41, 65, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f7fb;
    --muted: #91a0b8;
    --primary: #6c7cff;
    --primary-light: #9fa9ff;
    --cyan: #34d3e4;
    --green: #38d99a;
    --orange: #ff9a62;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(108, 124, 255, 0.15), transparent 32%),
        radial-gradient(circle at top right, rgba(52, 211, 228, 0.1), transparent 25%),
        var(--bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 17, 31, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-subtitle {
    display: inline-block;
    margin-left: 10px;
    color: var(--muted);
    font-size: 14px;
}

.status-pill {
    padding: 8px 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero-panel,
.filter-panel,
.metric-card,
.news-card,
.empty-state {
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-panel {
    padding: 35px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(108, 124, 255, 0.15), transparent 45%),
        var(--panel);
    border-radius: 28px;
}

.eyebrow {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-panel h1 {
    max-width: 760px;
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 850;
    line-height: 1.05;
}

.hero-panel h1 span {
    color: var(--primary-light);
}

.hero-panel p {
    max-width: 670px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.search-box {
    padding: 24px;
    background: rgba(5, 12, 23, 0.5);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.search-box h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-label {
    color: #c4cede;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 46px;
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 124, 255, 0.15);
}

.form-select option {
    color: #111827;
}

.btn-search {
    width: 100%;
    padding: 13px 18px;
    color: white;
    background: linear-gradient(135deg, var(--primary), #805cff);
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(108, 124, 255, 0.35);
}

.metric-card {
    height: 100%;
    padding: 22px;
    background: var(--panel);
    border-radius: 20px;
}

.metric-icon {
    margin-bottom: 12px;
    font-size: 22px;
}

.metric-value {
    font-size: 34px;
    font-weight: 850;
}

.metric-label {
    color: var(--muted);
    font-size: 13px;
}

.filter-panel {
    padding: 20px;
    background: var(--panel);
    border-radius: 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 34px 0 18px;
}

.section-heading h2 {
    margin: 5px 0 0;
}

.result-count {
    color: var(--muted);
}

.news-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    overflow: hidden;
    background: var(--panel);
    border-radius: 24px;
    transition: 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 124, 255, 0.35);
}

.news-main {
    padding: 26px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
}

.scope-badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 800;
}

.scope-badge.nasional {
    color: #dfe3ff;
    background: rgba(108, 124, 255, 0.18);
}

.scope-badge.lokal {
    color: #c6fae7;
    background: rgba(56, 217, 154, 0.16);
}

.news-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.28;
}

.description {
    color: #b7c2d4;
    line-height: 1.7;
}

.viral-reason {
    margin-top: 15px;
    padding: 14px;
    color: #d7deeb;
    background: rgba(255, 154, 98, 0.08);
    border-left: 3px solid var(--orange);
    border-radius: 10px;
    font-size: 14px;
}

.news-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
}

.platform-list,
.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-chip,
.source-list span {
    padding: 7px 10px;
    color: #c7d0df;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
}

.score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background:
        linear-gradient(180deg, rgba(108, 124, 255, 0.14), transparent),
        rgba(5, 12, 23, 0.35);
    border-left: 1px solid var(--border);
    text-align: center;
}

.score-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-circle {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin: 14px 0 12px;
    padding-top: 30px;
    border: 8px solid rgba(108, 124, 255, 0.22);
    border-top-color: var(--primary);
    border-right-color: var(--cyan);
    border-radius: 50%;
}

.score-circle strong {
    font-size: 32px;
}

.score-circle small {
    color: var(--muted);
}

.score-label {
    color: var(--primary-light);
    font-weight: 800;
}

.verify-badge {
    margin-top: 12px;
    padding: 6px 10px;
    color: #c6fae7;
    background: rgba(56, 217, 154, 0.12);
    border-radius: 999px;
    font-size: 11px;
}

.detail-link {
    margin-top: 18px;
    color: white;
    text-decoration: none;
    font-size: 13px;
}

.empty-state {
    padding: 70px 20px;
    background: var(--panel);
    border-radius: 24px;
    text-align: center;
}

.empty-icon {
    color: var(--primary-light);
    font-size: 50px;
}

.empty-state p {
    color: var(--muted);
}

.alert {
    border: 0;
    border-radius: 14px;
}

@media (max-width: 768px) {

    .brand-subtitle,
    .status-pill {
        display: none;
    }

    .hero-panel {
        padding: 24px 18px;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .score-panel {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .news-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}