/* ==========================================================================
   PT. Catur Fatih Logistik — design system
   Tokens -> base -> situs publik -> panel admin
   ========================================================================== */

:root {
    /* Brand */
    --primary: #0b63d6;
    --primary-dark: #084fad;
    --primary-deep: #063f8c;
    --primary-soft: #eef5ff;
    --primary-ring: rgba(11, 99, 214, .14);

    --accent: #1fae67;
    --accent-dark: #158a51;
    --accent-soft: #e9f9f0;

    --navy: #0a172a;
    --navy-2: #102741;

    /* Netral */
    --ink: #16202e;
    --muted: #64707d;
    --muted-2: #8d98a6;
    --bg: #f5f7fa;
    --bg-2: #eef2f7;
    --card: #ffffff;
    --border: #e4e8ee;
    --border-strong: #d5dce5;

    /* Status */
    --danger: #e5484d;
    --danger-dark: #c53d41;
    --danger-soft: #fdecec;
    --warning: #f2a93b;

    /* Bentuk */
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 10px rgba(20, 30, 50, .06);
    --shadow-md: 0 12px 32px rgba(20, 30, 50, .10);
    --shadow-lg: 0 26px 60px rgba(10, 23, 42, .18);
    --shadow-brand: 0 14px 30px rgba(11, 99, 214, .26);

    /* Tata letak */
    --nav-h: 78px;
    --shell: 1200px;

    --font: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
    outline: 3px solid var(--primary-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Utilitas ---------- */
.container,
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell-narrow { max-width: 960px; }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Terbaca pembaca layar, tidak tampil di layar. */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(228, 232, 238, .9);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 24px rgba(10, 23, 42, .08);
}

.navbar-inner {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
}

.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 50px; width: auto; transition: transform .3s var(--ease); }
.navbar-brand:hover img { transform: scale(1.05); }

.navbar-links { display: flex; align-items: center; gap: 6px; }

.navbar-links a {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .93rem;
    color: var(--ink);
    transition: color .2s var(--ease), background .2s var(--ease);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 2px;
    height: 2px; width: 0;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .28s var(--ease);
}

.navbar-links a:hover { color: var(--primary); background: var(--primary-soft); }
.navbar-links a:hover::after,
.navbar-links a.is-active::after { width: 22px; }
.navbar-links a.is-active { color: var(--primary); }

/* Menu Tracking tampil sebagai tombol supaya jelas ia halaman tersendiri. */
.navbar-links a.nav-cta {
    margin-left: 8px;
    padding: 11px 22px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.navbar-links a.nav-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.navbar-links a.nav-cta::after { display: none; }
.navbar-links a.nav-cta.is-active { background: var(--primary-deep); color: #fff; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Tombol
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .94rem;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
                background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(11, 99, 214, .32); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 14px 30px rgba(31, 174, 103, .26); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }

.btn-glass {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.btn-danger { background: var(--danger); color: #fff; border-radius: var(--radius-sm); }
.btn-danger:hover { background: var(--danger-dark); }

.btn-warning { background: var(--warning); color: #3a2c05; border-radius: var(--radius-sm); }
.btn-warning:hover { filter: brightness(.95); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Kerangka section
   ========================================================================== */
main { padding-top: var(--nav-h); }

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 72px 0; }
/* Dipakai saat kartu pertama sengaja menumpuk ke atas hero. */
.section-pull { padding-top: 0; }
.section-alt { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.section-white { background: #fff; }
.section-narrow { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* Sasaran anchor tidak boleh tertutup navbar tetap. */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.is-left { text-align: left; margin-inline: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.eyebrow i { font-size: .8rem; }
.eyebrow-light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .26); }
.eyebrow-accent { background: var(--accent-soft); color: var(--accent-dark); }

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.22;
    color: var(--ink);
}

.section-subtitle { margin-top: 16px; color: var(--muted); font-size: 1.02rem; }

.section-title-underline {
    display: block;
    width: 72px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin: 20px auto 0;
}
.section-head.is-left .section-title-underline { margin-inline: 0; }

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-compact { min-height: 0; padding: 96px 0 104px; }

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    /* Dua arah sekaligus: gelap dari kiri (agar teks terbaca) dan dari atas-bawah
       (agar bagian foto yang terang tidak "membakar" tepi bawah hero). */
    background:
        linear-gradient(105deg, rgba(8, 20, 38, .94) 0%, rgba(8, 20, 38, .80) 42%, rgba(8, 20, 38, .46) 100%),
        linear-gradient(180deg, rgba(8, 20, 38, .55) 0%, rgba(8, 20, 38, .22) 42%, rgba(8, 20, 38, .78) 100%),
        radial-gradient(120% 90% at 85% 15%, rgba(11, 99, 214, .34) 0%, transparent 62%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 40px 24px;
    color: #fff;
}

.hero-copy { max-width: 720px; }

.hero-copy h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.7rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.2px;
    text-wrap: balance;
}

.hero-copy h1 .hero-accent {
    background: linear-gradient(90deg, #7ab8ff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin-top: 22px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: #cfdcea;
    max-width: 620px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    list-style: none;
}

.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #e6eef8;
    font-size: .88rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.hero-chips li i { color: #7ab8ff; }

.hero-scroll {
    position: absolute;
    left: 50%; bottom: 28px;
    z-index: 2;
    width: 28px; height: 46px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    transform: translateX(-50%);
}
.hero-scroll span {
    position: absolute;
    left: 50%; top: 9px;
    width: 4px; height: 8px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
    animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
    0% { opacity: 0; transform: translate(-50%, 0); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* Hero ringkas (halaman Tracking & Komentar) */
.page-hero {
    position: relative;
    overflow: hidden;
    /* Tetap enak dilihat walau bagian ini tidak memakai gambar latar. */
    background:
        radial-gradient(70% 100% at 50% 0%, rgba(31, 174, 103, .22) 0%, transparent 62%),
        linear-gradient(135deg, var(--navy) 0%, var(--primary-deep) 100%);
    padding: 84px 0 96px;
    color: #fff;
    text-align: center;
}
.page-hero .hero-media::after {
    background:
        linear-gradient(180deg, rgba(8, 20, 38, .9) 0%, rgba(8, 20, 38, .82) 100%),
        radial-gradient(90% 120% at 50% 0%, rgba(11, 99, 214, .42) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.18;
}
.page-hero p { margin-top: 16px; color: #cfdcea; font-size: 1.02rem; }

/* Kompatibilitas: markup lama .hero-content masih dipakai halaman lain. */
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 40px 24px; color: #fff; margin: 0 auto; }
.hero-content h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; }
.hero-content p { margin-top: 16px; color: #cfdcea; }

/* ==========================================================================
   Moda transportasi
   ========================================================================== */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.mode-card {
    position: relative;
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-sm);
    transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.mode-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.mode-card img {
    width: 100%;
    height: 268px;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.mode-card:hover img { transform: scale(1.07); }

.mode-card::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 62%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 20, 38, .82) 62%, rgba(8, 20, 38, .95) 100%);
    pointer-events: none;
}

.mode-card figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .3px;
}

.mode-card figcaption i {
    width: 40px; height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .95rem;
}

/* ==========================================================================
   Visi & Misi
   ========================================================================== */
.band-dark { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.band-media::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 23, 42, .93) 0%, rgba(10, 23, 42, .97) 100%),
        radial-gradient(80% 60% at 12% 0%, rgba(11, 99, 214, .34) 0%, transparent 60%),
        radial-gradient(70% 60% at 92% 100%, rgba(31, 174, 103, .24) 0%, transparent 60%);
}
.band-dark .shell { position: relative; z-index: 2; }
.band-dark .section-title { color: #fff; }
.band-dark .section-subtitle { color: #b9c7d8; }

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.vm-panel {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(10px);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.vm-panel:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .26); }

.vm-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.vm-icon {
    width: 54px; height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 1.2rem;
}
.vm-icon-visi { background: linear-gradient(135deg, var(--primary), #5aa2ff); box-shadow: 0 12px 26px rgba(11, 99, 214, .34); }
.vm-icon-misi { background: linear-gradient(135deg, var(--accent), #48d894); box-shadow: 0 12px 26px rgba(31, 174, 103, .3); }

.vm-head h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; }
.vm-head span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8fa5be; }

.vm-list { display: flex; flex-direction: column; gap: 18px; list-style: none; }

.vm-item { display: flex; gap: 16px; align-items: flex-start; }

.vm-num {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .17);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
}
.vm-panel:hover .vm-num { border-color: rgba(255, 255, 255, .3); }
.vm-item p { color: #c4d1e0; font-size: .96rem; line-height: 1.75; }

/* Kompatibilitas kartu poin lama */
.point-card { padding: 26px; }
.point-badge { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.point-badge-primary { background: var(--primary); }
.point-badge-accent { background: var(--accent); }

/* ==========================================================================
   Mitra pelanggan
   ========================================================================== */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.customer-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.customer-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-ring); }

.customer-tile img {
    height: 74px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .68;
    transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.customer-tile:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.customer-tile p { font-size: .84rem; font-weight: 600; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   Kontak
   ========================================================================== */
.contact-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    min-height: 260px;
    display: flex;
    align-items: center;
    margin-bottom: 56px;
    box-shadow: var(--shadow-md);
}
.contact-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8, 20, 38, .92) 0%, rgba(8, 20, 38, .74) 50%, rgba(11, 99, 214, .48) 100%);
}
.contact-banner-body { position: relative; z-index: 2; padding: 44px; color: #fff; max-width: 640px; }
.contact-banner-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.contact-banner-body p { margin-top: 12px; color: #cfdcea; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.contact-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.contact-photo { position: relative; height: 290px; overflow: hidden; background: var(--bg-2); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.contact-card:hover .contact-photo img { transform: scale(1.06); }
.contact-photo::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(180deg, transparent, rgba(8, 20, 38, .6));
}

.contact-card .body { padding: 24px; }
.contact-card h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.2px; }
.contact-role { font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-top: 4px; }

.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.contact-card a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
    transition: all .22s var(--ease);
}
.contact-card a i { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--border); color: var(--primary); font-size: .82rem; }
.contact-card a:hover { background: var(--primary-soft); border-color: var(--primary-ring); color: var(--primary-dark); }
.contact-card a:hover i { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Lokasi kantor */
.location-split {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: stretch;
}

.location-card {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.location-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; }

.location-row { display: flex; gap: 15px; align-items: flex-start; }
.location-row i {
    width: 42px; height: 42px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #7ab8ff;
}
.location-row .label { font-size: .74rem; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: #8fa5be; }
.location-row .value { color: #dbe6f2; font-size: .95rem; line-height: 1.65; }
.location-row a.value:hover { color: #fff; text-decoration: underline; }

.location-card .btn { align-self: flex-start; margin-top: auto; }

.maps-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: #fff;
    min-height: 380px;
}
.maps-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ==========================================================================
   Halaman Tracking
   ========================================================================== */
.track-shell { max-width: 940px; margin: 0 auto; }

.track-panel {
    position: relative;
    margin-top: -68px;
    z-index: 5;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.track-panel-head { margin-bottom: 22px; }
.track-panel-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; }
.track-panel-head p { margin-top: 6px; color: var(--muted); font-size: .93rem; }

.track-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }

.track-input {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}
.track-input > i {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    pointer-events: none;
}
.track-input input {
    width: 100%;
    height: 62px;
    padding: 0 20px 0 52px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .6px;
    outline: none;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.track-input input::placeholder { font-weight: 500; letter-spacing: normal; color: var(--muted-2); }
.track-input input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 5px var(--primary-ring); }
.track-form .btn { height: 62px; padding-inline: 36px; }

.track-hint { margin-top: 16px; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.track-hint i { color: var(--primary); }

/* Hasil pencarian */
.track-result { margin-top: 32px; }

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 30px 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.result-head .label { font-size: .74rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #8fa5be; }
.result-head .awb { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; margin-top: 4px; }
.result-head .meta { margin-top: 6px; font-size: .86rem; color: #b9c7d8; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(31, 174, 103, .16);
    border: 1px solid rgba(31, 174, 103, .42);
    color: #6ee7a8;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .4px;
}
.status-pill i { font-size: .7rem; }

.route-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 26px 34px;
    background: var(--primary-soft);
    border: 1px solid #cfe2ff;
    border-radius: var(--radius-xl);
}
.route-point .label { font-size: .72rem; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--primary); }
.route-point .city { font-size: 1.08rem; font-weight: 800; margin-top: 3px; }
.route-point .sub { font-size: .84rem; color: var(--muted); }
.route-point.is-end { text-align: right; }

.route-line { position: relative; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.route-line::before,
.route-line::after { content: ''; height: 2px; width: 34px; background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 12px); opacity: .55; }
.route-line i { font-size: 1.05rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-block {
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s var(--ease);
}
.detail-block:hover { box-shadow: var(--shadow-md); }

.detail-block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.detail-block h4 i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); font-size: .78rem; }

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: .92rem;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); flex: 0 0 auto; }
.detail-row dd { font-weight: 600; text-align: right; word-break: break-word; }

/* Keadaan kosong / gagal */
.state-card {
    margin-top: 32px;
    padding: 56px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.state-icon {
    width: 78px; height: 78px;
    margin: 0 auto 22px;
    display: grid; place-items: center;
    border-radius: 24px;
    font-size: 1.9rem;
}
.state-icon-idle { background: var(--primary-soft); color: var(--primary); }
.state-icon-error { background: var(--danger-soft); color: var(--danger); }
.state-card h3 { font-size: 1.18rem; font-weight: 800; }
.state-card p { margin-top: 10px; color: var(--muted); max-width: 460px; margin-inline: auto; }

.track-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 40px;
}
.tip-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tip-card i {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    margin-bottom: 14px;
}
.tip-card h4 { font-size: .98rem; font-weight: 800; }
.tip-card p { margin-top: 6px; font-size: .87rem; color: var(--muted); line-height: 1.65; }
.tip-card a { color: var(--primary); font-weight: 700; }
.tip-card a:hover { text-decoration: underline; }

/* Kompatibilitas tabel hasil lama */
.track-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.track-status { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #bfe9d3; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.track-group { margin: 26px 0 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.info-table th { width: 220px; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   Form & notifikasi
   ========================================================================== */
.field { position: relative; margin-bottom: 22px; }

.field input,
.field textarea {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { line-height: 1.7; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-ring); }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .87rem; color: var(--ink); }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: .92rem;
    font-weight: 500;
    margin-bottom: 22px;
}
.alert-error { background: var(--danger-soft); color: var(--danger-dark); border: 1px solid #f6c8c9; }
.alert-success { background: var(--accent-soft); color: #1a7a4c; border: 1px solid #bfe9d3; }

/* ==========================================================================
   Komentar
   ========================================================================== */
.comment {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.comment:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.comment-header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-header strong { color: var(--primary); font-weight: 800; }
.comment-header .company { color: var(--muted); font-size: .85rem; }
.comment small { color: var(--muted-2); font-size: .8rem; }
.comment p { margin-top: 10px; color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background: var(--navy);
    color: #a9b7c8;
    padding: 72px 0 28px;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(70% 80% at 8% 0%, rgba(11, 99, 214, .26) 0%, transparent 60%);
    pointer-events: none;
}
.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 44px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid h3 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid > div > p { font-size: .92rem; line-height: 1.8; }

.footer-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 0;
    font-size: .91rem;
    color: #a9b7c8;
    transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-link:hover { color: #fff; transform: translateX(4px); }
.footer-link img { height: 16px; width: 16px; filter: invert(78%); }
.footer-link i { width: 14px; font-size: .62rem; color: #5b9bf0; }

.footer-address { margin-top: 14px; font-size: .87rem; line-height: 1.7; color: #8fa0b3; }

.footer-bottom {
    position: relative;
    text-align: center;
    color: #7d8b9c;
    font-size: .82rem;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    max-width: var(--shell);
    margin-inline: auto;
}

/* ==========================================================================
   Tombol kembali ke atas
   ========================================================================== */
#to-top {
    position: fixed;
    left: 24px; bottom: 24px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s var(--ease);
    z-index: 1090;
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================================================
   Widget chat
   ========================================================================== */
#chat-hint {
    position: fixed; bottom: 96px; right: 24px;
    background: #fff; color: var(--ink);
    padding: 11px 18px; border-radius: 999px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    z-index: 1100;
    animation: bob 2.6s ease-in-out infinite;
}
#chat-hint i { color: var(--primary); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

#chat-toggle {
    position: fixed; bottom: 24px; right: 24px;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(140deg, var(--primary), #3d8bff);
    color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 14px 34px rgba(11, 99, 214, .42);
    z-index: 1100;
    transition: transform .25s var(--ease);
}
#chat-toggle:hover { transform: scale(1.08) rotate(-6deg); }

#chatbox {
    position: fixed; bottom: 24px; right: 24px;
    width: 370px; max-width: 92vw; height: 500px;
    background: #fff; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: none; flex-direction: column;
    overflow: hidden; z-index: 1200;
    opacity: 0; transform: translateY(16px) scale(.98);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
#chatbox.open { opacity: 1; transform: translateY(0) scale(1); }

.chatbox-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    padding: 17px 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: .95rem;
}
.chatbox-header .close-btn { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; opacity: .85; }
.chatbox-header .close-btn:hover { opacity: 1; }

#chatlog { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; background: var(--bg); }
#chatlog::-webkit-scrollbar { width: 6px; }
#chatlog::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.message { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.6; }
.user-message { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.bot-message { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.bot-message.typing { color: var(--muted); font-style: italic; }
.bot-message a { color: var(--primary); }
.bot-message img { display: inline-block; vertical-align: -2px; }
.bot-message hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

.chat-input-area { display: flex; border-top: 1px solid var(--border); padding: 12px; gap: 8px; background: #fff; }
.chat-input-area input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 11px 18px; font-family: inherit; font-size: .9rem; outline: none; }
.chat-input-area input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.chat-input-area button {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: var(--primary); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    transition: background .2s var(--ease);
}
.chat-input-area button:hover { background: var(--primary-dark); }
.chat-input-area button:disabled,
.chat-input-area input:disabled { opacity: .6; cursor: not-allowed; }

/* ==========================================================================
   Halaman login
   ========================================================================== */
.auth-shell {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(70% 60% at 10% 10%, rgba(31, 174, 103, .28) 0%, transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--primary-deep) 60%, var(--primary) 100%);
    padding: calc(var(--nav-h) + 40px) 20px 48px;
}

.auth-card {
    width: 100%; max-width: 440px;
    background: #fff; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    text-align: center;
}
.auth-card img { width: 92px; margin: 0 auto 24px; }
.auth-card h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.4px; }
.auth-card h3 { font-weight: 500; color: var(--muted); margin-bottom: 30px; font-size: .93rem; }
.login-error { text-align: left; font-size: .85rem; line-height: 1.6; display: block; }

/* ==========================================================================
   Animasi reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Responsif — situs publik
   ========================================================================== */
@media (max-width: 1024px) {
    .location-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --nav-h: 70px; }

    .navbar--site .nav-toggle { display: flex; }

    .navbar--site .navbar-links {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: all .28s var(--ease);
    }
    .navbar--site .navbar-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .navbar--site .navbar-links a { padding: 13px 16px; border-radius: var(--radius-md); }
    .navbar--site .navbar-links a::after { display: none; }
    .navbar--site .navbar-links a.is-active { background: var(--primary-soft); }
    .navbar--site .navbar-links a.nav-cta { margin: 8px 0 0; justify-content: center; display: flex; }

    .hero { min-height: 0; padding: 72px 0 88px; }
    .hero-scroll { display: none; }
    .section { padding: 72px 0; }
    .contact-banner-body { padding: 32px 26px; }
    .track-panel { margin-top: -48px; padding: 26px 22px; }
    .result-head, .route-strip, .detail-block { padding-inline: 24px; }
}

@media (max-width: 620px) {
    .shell, .section-narrow, .navbar-inner, .footer-grid, .hero-inner, .page-hero-inner { padding-inline: 18px; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .vm-panel { padding: 26px 22px; }
    .location-card { padding: 28px 24px; }
    .route-strip { grid-template-columns: 1fr; text-align: left; }
    .route-point.is-end { text-align: left; }
    .route-line { transform: rotate(90deg); justify-self: start; margin-left: 10px; }
    .result-head .awb { font-size: 1.3rem; }
    .detail-row { flex-direction: column; gap: 2px; }
    .detail-row dd { text-align: left; }
    .track-form .btn { width: 100%; }
    #chatbox { width: 92vw; right: 4vw; height: 74vh; }
    #to-top { left: 16px; bottom: 16px; }
    .auth-card { padding: 36px 24px; }
}

/* ==========================================================================
   Panel admin
   ========================================================================== */
.admin-body { background: var(--bg); padding: 32px 24px 60px; }
.admin-shell { max-width: 1240px; margin: 0 auto; }

.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; margin-bottom: 22px;
}
.admin-brand { display: flex; align-items: center; gap: 14px; }
.admin-brand img { height: 48px; width: auto; }
.admin-brand h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.admin-brand p { color: var(--muted); font-size: .88rem; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-tabs a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border);
    font-weight: 600; font-size: .9rem; color: var(--muted);
    transition: all .2s ease;
}
.admin-tabs a:hover { color: var(--primary); border-color: var(--primary); }
.admin-tabs a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.panel {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    padding: 26px; margin-bottom: 26px;
}
.panel-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.panel-head h2 i { color: var(--primary); }
.table-scroll { overflow-x: auto; }
.table-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.cell-reply { max-width: 420px; white-space: pre-line; }
form.inline { display: inline; }
.cms-hidden-form { display: none; }
.cms-count { color: var(--muted); font-size: .85rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: 12px 14px; border: 1px solid var(--border);
    text-align: left; font-size: .92rem;
}
.data-table th { background: var(--primary); color: #fff; }
.data-table tbody tr:nth-child(even) { background: #f6f9fc; }
.data-table tbody tr:hover { background: #eaf3ff; }

/* ---------- Content manager ---------- */
.cms-layout { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; }

.cms-nav {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 16px; position: sticky; top: 24px;
}
.cms-nav-title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--muted); font-weight: 700; margin: 14px 8px 8px;
}
.cms-nav-title:first-child { margin-top: 4px; }
.cms-nav-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; margin-bottom: 4px;
    background: none; border: none; border-radius: var(--radius-sm);
    font-family: inherit; font-size: .89rem; font-weight: 600; color: var(--muted);
    text-align: left; cursor: pointer; transition: all .18s ease;
}
.cms-nav-item i { width: 18px; text-align: center; }
.cms-nav-item:hover { background: var(--bg); color: var(--primary); }
.cms-nav-item.is-active { background: var(--primary); color: #fff; }

.cms-pane { display: none; }
.cms-pane.is-active { display: block; }

.cms-note {
    background: var(--primary-soft); border: 1px solid #cfe2ff; color: #14468f;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: .87rem; margin-bottom: 20px;
}
.cms-note code { background: rgba(11,99,214,.1); padding: 1px 6px; border-radius: 4px; }

.cms-fields { display: flex; flex-direction: column; gap: 22px; }
.cms-field label {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin-bottom: 8px; font-weight: 600; font-size: .9rem; color: var(--ink);
}
.cms-key { font-size: .72rem; color: var(--muted); font-weight: 500; font-family: monospace; }
.cms-field input[type="text"],
.cms-field input[type="number"],
.cms-field input[type="email"],
.cms-field input[type="password"],
.cms-field select,
.cms-field textarea {
    width: 100%; padding: 11px 14px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: .92rem; font-family: inherit; background: var(--bg); color: var(--ink);
    outline: none; transition: border-color .2s ease, background .2s ease;
}
.cms-field textarea { line-height: 1.6; resize: vertical; }
.cms-field input[type="text"]:focus,
.cms-field input[type="number"]:focus,
.cms-field input[type="email"]:focus,
.cms-field input[type="password"]:focus,
.cms-field select:focus,
.cms-field textarea:focus { border-color: var(--primary); background: #fff; }
.cms-field input[type="file"] { font-size: .85rem; }
.cms-field-narrow { max-width: 130px; }
.cms-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.cms-hint code { background: var(--bg); padding: 1px 5px; border-radius: 4px; }

.cms-image { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.cms-image-preview {
    width: 132px; height: 92px; object-fit: contain;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px; flex: 0 0 auto;
}
.cms-image-controls { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }

.cms-icon { display: flex; align-items: center; gap: 12px; }
.cms-icon-preview {
    width: 44px; height: 44px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--primary); font-size: 1.1rem;
}

.cms-check {
    display: inline-flex !important; align-items: center; gap: 8px;
    font-weight: 500 !important; font-size: .85rem !important;
    color: var(--muted) !important; margin-bottom: 0 !important; cursor: pointer;
}
.cms-check input { width: auto; }

.cms-save { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }

.cms-blocks { display: flex; flex-direction: column; gap: 18px; }
.cms-block { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; background: #fcfdff; }
.cms-block > form { display: flex; gap: 20px; flex-wrap: wrap; }
.cms-block-media { flex: 0 0 170px; display: flex; flex-direction: column; gap: 10px; }
.cms-block-media img {
    width: 100%; height: 118px; object-fit: contain;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px;
}
.cms-media-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.cms-block-fields { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.cms-inline-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.cms-block-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cms-add { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--border); }
.cms-add h3 { font-size: 1rem; margin-bottom: 16px; color: var(--muted); }
.cms-add-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 18px;
}

@media (max-width: 980px) {
    .cms-layout { grid-template-columns: 1fr; }
    .cms-nav { position: static; }
}

/* ---------- Identitas & peran admin ---------- */
.admin-whoami {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    padding: 4px 12px 4px 0;
    border-right: 1px solid var(--border); margin-right: 4px;
}
.admin-whoami-name { font-size: .88rem; font-weight: 700; color: var(--ink); }
.admin-whoami:hover .admin-whoami-name { color: var(--primary); }

.admin-role {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}
.admin-role-super_admin { background: #fdf0d5; color: #8a5a00; border: 1px solid #f2d79a; }
.admin-role-admin { background: var(--primary-soft); color: #14468f; border: 1px solid #cfe2ff; }

/* ---------- Pengelola pengguna admin ---------- */
.user-list { display: flex; flex-direction: column; gap: 18px; }
.user-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; background: #fcfdff; }
.user-card.is-inactive { opacity: .72; background: #fafafa; }
.user-card-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.user-name { font-weight: 700; font-size: 1.02rem; margin-right: 8px; }
.user-meta { color: var(--muted); font-size: .8rem; }
.user-badge {
    display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 999px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
}
.user-badge-off { background: var(--danger-soft); border-color: #f6c8c9; color: var(--danger-dark); }

.user-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.user-grid input, .user-grid select {
    width: 100%; padding: 10px 13px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .9rem; background: var(--bg); color: var(--ink); outline: none;
}
.user-grid input:focus, .user-grid select:focus { border-color: var(--primary); background: #fff; }
.user-grid label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .86rem; }

.user-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px; margin-top: 18px;
    padding-top: 14px; border-top: 1px solid var(--border);
}

.profile-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------- Pengelola tarif ---------- */
.rate-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.rate-search { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.rate-search input {
    flex: 1; min-width: 220px; max-width: 380px;
    padding: 10px 14px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: .9rem;
    background: var(--bg); outline: none;
}
.rate-search input:focus { border-color: var(--primary); background: #fff; }

.rate-table th { font-size: .78rem; white-space: nowrap; text-align: center; }
.rate-table td { padding: 8px 6px; vertical-align: middle; }
.rate-table thead tr:first-child th { border-bottom: none; }

.rate-table input[type="text"] {
    width: 100%; padding: 7px 9px;
    border: 1px solid var(--border); border-radius: 6px;
    font-family: inherit; font-size: .85rem;
    background: #fff; color: var(--ink); outline: none;
}
.rate-table input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

.rate-city { min-width: 190px; }
.rate-alias { margin-top: 5px; font-size: .78rem !important; color: var(--muted); }
.rate-num { min-width: 92px; text-align: right; }
.rate-num-sm { min-width: 64px; }
.rate-lead { min-width: 92px; }
.rate-center { text-align: center; }
.rate-center input { width: 18px; height: 18px; }
.rate-buttons { white-space: nowrap; display: flex; gap: 6px; }
.rate-buttons .btn { padding: 8px 11px; }

.rate-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.rate-page {
    padding: 8px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: #fff;
    font-size: .85rem; font-weight: 600; color: var(--ink);
}
.rate-page:hover { border-color: var(--primary); color: var(--primary); }
.rate-page.is-disabled { opacity: .45; pointer-events: none; }
.rate-page-info { font-size: .85rem; color: var(--muted); }

.rate-service-title {
    margin: 22px 0 12px; font-size: .9rem; font-weight: 700;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
