:root {
    --bg: #0f1115;
    --surface: #181b22;
    --surface-2: #222733;
    --border: #303747;
    --text: #f2f4f8;
    --muted: #a4adbd;
    --muted-2: #737d8f;
    --accent: #f5a623;
    --blue: #4fc3f7;
    --green: #4caf84;
    --red: #e05c5c;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 8px;
    --font: "Plus Jakarta Sans", Arial, sans-serif;
    --mono: "DM Mono", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(79, 195, 247, 0.08), transparent 34%),
        linear-gradient(215deg, rgba(245, 166, 35, 0.09), transparent 32%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 0 22px;
    background: rgba(15, 17, 21, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.logo {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.logo span {
    color: var(--text);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav a {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}

.top-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 70px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: stretch;
}

.hero-copy,
.status-card,
.tool-card,
.info-card,
.auth-panel,
.dashboard-header,
.form-panel,
.upload-card,
.empty-state {
    background: rgba(24, 27, 34, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 28px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.04;
    margin-bottom: 14px;
}

.hero-copy p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.form-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius);
    font: 800 13px var(--font);
    text-decoration: none;
    cursor: pointer;
}

.primary-btn {
    color: #15110a;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.secondary-btn {
    color: var(--accent);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.status-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-card strong {
    display: block;
    margin: 12px 0 8px;
    color: var(--blue);
    font-size: 34px;
}

.status-card small {
    color: var(--muted);
    line-height: 1.6;
}

.tool-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}

.tool-card,
.info-card,
.auth-panel,
.form-panel,
.dashboard-header,
.upload-card,
.empty-state {
    padding: 18px;
}

.tool-card h2,
.info-card h2,
.form-panel h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tool-card p,
.info-card p,
.dashboard-header p,
.auth-panel p,
.upload-card p {
    color: var(--muted);
    line-height: 1.65;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 11px 12px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: 500 14px var(--font);
    outline: none;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

label {
    display: block;
    margin: 8px 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.09);
}

.result-box {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.info-card {
    min-height: 230px;
    display: block;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.info-card:hover {
    border-color: var(--accent);
    background: rgba(34, 39, 51, 0.96);
    transform: translateY(-2px);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 22px;
}

.info-card strong,
.section-heading a,
.form-links a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.detail-page {
    max-width: 620px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.detail-panel {
    padding: 18px;
    margin-bottom: 16px;
    background: rgba(24, 27, 34, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-panel h1 {
    font-size: 28px;
    line-height: 1.15;
}

.toll-calculator {
    margin-top: 14px;
}

.toll-calculator .primary-btn {
    width: 100%;
    text-transform: uppercase;
}

.detail-list {
    display: grid;
    gap: 10px;
}

.section-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.route-card,
.emergency-card,
.place-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: rgba(24, 27, 34, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.route-card {
    justify-content: space-between;
}

.route-card h2,
.emergency-card h2,
.place-row h2 {
    margin-bottom: 8px;
    font-size: 15px;
}

.route-card > strong {
    color: var(--accent);
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 13px;
}

.mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.mini-meta a,
.place-body a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.status-pill {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.status-pill.lancar {
    color: var(--green);
    background: rgba(76, 175, 132, 0.14);
}

.status-pill.padat {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.14);
}

.danger-list {
    max-width: 560px;
    margin: 0 auto;
}

.emergency-card {
    border-color: rgba(224, 92, 92, 0.45);
    background: rgba(35, 18, 23, 0.92);
}

.emergency-icon,
.place-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 22px;
}

.emergency-body {
    flex: 1;
}

.emergency-body strong {
    color: var(--accent);
    font-size: 13px;
}

.emergency-body p,
.place-body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.call-btn {
    padding: 10px 16px;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.filter-chip {
    flex: 0 0 auto;
    padding: 8px 16px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font: 800 12px var(--font);
}

.filter-chip.active {
    color: #15110a;
    background: var(--accent);
    border-color: var(--accent);
}

.place-row {
    align-items: flex-start;
}

.place-body {
    min-width: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.small-tag {
    padding: 3px 8px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.small-tag.warning {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.12);
}

.latest-section {
    margin-top: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
}

.upload-card,
.empty-state {
    margin-bottom: 12px;
}

.upload-meta {
    color: var(--muted-2);
    font: 500 12px var(--mono);
    margin-bottom: 8px;
}

.upload-card h3 {
    margin-bottom: 8px;
}

.upload-card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 10px;
}

.auth-page {
    max-width: 520px;
}

.dashboard-page {
    max-width: 860px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.alert {
    padding: 12px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 700;
}

.alert.error {
    color: var(--red);
    background: rgba(224, 92, 92, 0.12);
    border-color: rgba(224, 92, 92, 0.38);
}

.alert.success {
    color: var(--green);
    background: rgba(76, 175, 132, 0.12);
    border-color: rgba(76, 175, 132, 0.38);
}

.hidden {
    display: none;
}

@media (max-width: 860px) {
    .hero,
    .tool-panel,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .site-header,
    .dashboard-header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    .route-card,
    .emergency-card {
        align-items: flex-start;
    }

    .route-card {
        flex-direction: column;
    }

    .call-btn {
        align-self: center;
    }
}

.road-update-panel {
    margin: 16px 0;
}

.road-update-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.road-update-card {
    padding: 16px;
    background: rgba(24, 27, 34, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.road-update-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.road-update-card h3 {
    margin: 0;
    font-size: 15px;
}

.road-update-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.road-update-card a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
}

.update-time {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 860px) {
    .road-update-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    padding: 10px;
    min-height: 100px;
    margin-bottom: 10;
}

