:root {
    --layanan-primary: #2563eb;
    --layanan-secondary: #0f172a;
    --layanan-success: #16a34a;
    --layanan-warning: #f59e0b;
    --layanan-danger: #dc2626;
    --layanan-bg: #f5f7fb;
    --text-dark: #1f2933;
    --text-muted: #5f6b7c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--layanan-bg);
    color: var(--text-dark);
}

.layanan-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
}

.layanan-nav .container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--layanan-primary), var(--layanan-secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-layanan {
    background: linear-gradient(120deg, var(--layanan-secondary), var(--layanan-primary));
    color: white;
    padding: 100px 0 70px;
}

.hero-layanan .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.hero-layanan > .container {
    width: min(var(--saphira-content-width), calc(100% - var(--saphira-gutter)));
    margin: 0 auto;
}

.hero-layanan h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.hero-layanan h2,
.hero-layanan p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255,255,255,0.18);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.stat-card .value {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
}

.stat-card .label {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.layanan-content {
    width: min(var(--saphira-content-width), calc(100% - var(--saphira-gutter)));
    margin: -40px auto 60px;
    padding: 0;
}

.layanan-content .section-card {
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 768px) {
    .layanan-content,
    .hero-layanan > .container {
        width: calc(100% - 32px);
    }

    .layanan-content .section-card {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.section-card {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 55px rgba(17, 34, 64, 0.09);
    margin-bottom: 28px;
}

.section-card h2 {
    margin-top: 0;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-chip.active {
    background: var(--layanan-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.service-card {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 20px;
    background: white;
    box-shadow: 0 16px 40px rgba(17, 34, 64, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--layanan-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.request-list {
    display: grid;
    gap: 16px;
}

.request-card {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--layanan-bg);
}

.request-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-menunggu { background: #fff7e6; color: #b45309; }
.status-diproses { background: #e0f2ff; color: #0f6ecd; }
.status-selesai { background: #dcfce7; color: #15803d; }
.status-ditolak { background: #fee2e2; color: #b91c1c; }

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    border-left: 2px solid rgba(0,0,0,0.08);
    margin-left: 10px;
    padding-left: 16px;
    padding-bottom: 12px;
    position: relative;
}

.timeline li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--layanan-primary);
    position: absolute;
    left: -6px;
    top: 4px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 24px 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-card {
        padding: 24px;
    }
}

