/* Garasi Rental Mobil — gaya "glass" 3D: gradasi ungu → biru → cyan, kartu kaca melayang */
:root {
  --ungu: #7C5CFF; --ungu2: #B57BFF; --pink: #F07BFF; --biru: #4F8CFF; --cyan: #33E1F5;
  --navy: #1A1050;
  --teks: #FFFFFF; --redup: rgba(235, 238, 255, .72);
  --kaca: rgba(255, 255, 255, .12); --kaca2: rgba(255, 255, 255, .2); --garis: rgba(255, 255, 255, .22);
  --latar: rgba(255, 255, 255, .08);
  --hijau: #5EF2B8; --hijau-muda: rgba(94, 242, 184, .16);
  --merah: #FF8FA3; --merah-muda: rgba(255, 92, 122, .18);
  --oranye: #FFC56B; --oranye-muda: rgba(255, 197, 107, .16);
  --biru-muda: rgba(79, 140, 255, .2); --krem: rgba(255, 255, 255, .14); --emas: #FFD66B; --emas-tua: #FFD66B;
  --bayang: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -1px 0 rgba(0, 0, 0, .12) inset, 0 10px 24px rgba(20, 8, 70, .28), 0 30px 60px -20px rgba(20, 8, 70, .45);
  --g-ungu: linear-gradient(135deg, #C77DFF 0%, #8B5CF6 55%, #6D4AFF 100%);
  --g-cyan: linear-gradient(135deg, #5CF2FF 0%, #3BB8F5 50%, #4F7BFF 100%);
  --g-pink: linear-gradient(135deg, #FF9BE9 0%, #C77DFF 60%, #8B7BFF 100%);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #2A1670; }
body {
  margin: 0; min-height: 100vh; color: var(--teks); font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(240, 123, 255, .55), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(51, 225, 245, .45), transparent 60%),
    radial-gradient(900px 700px at 60% 100%, rgba(79, 140, 255, .55), transparent 60%),
    linear-gradient(150deg, #3B1C8C 0%, #5B3FD1 45%, #2F6FE0 100%);
  background-attachment: fixed;
}
/* Bola cahaya melayang di latar */
body::before, body::after { content: ''; position: fixed; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
body::before { width: 340px; height: 340px; left: -80px; top: 35%; background: #F07BFF; animation: melayang 14s ease-in-out infinite; }
body::after { width: 420px; height: 420px; right: -120px; bottom: -60px; background: #33E1F5; animation: melayang 18s ease-in-out infinite reverse; }
@keyframes melayang { 50% { transform: translate(40px, -50px) scale(1.1); } }

button { font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }

/* Efek kaca dasar */
.kaca, .kartu, .stat, .mobil, .atas, .tab-bawah, .lembar, .masuk .kotak {
  background: var(--kaca);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--garis);
  box-shadow: var(--bayang);
}

/* Kerangka */
.atas { position: sticky; top: 0; z-index: 10; margin: 10px 12px 0; border-radius: 22px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--redup); }
.logo svg { filter: drop-shadow(0 6px 10px rgba(20, 8, 70, .45)); }
.atas .kanan { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ikon-btn { background: var(--kaca2); border: 1px solid var(--garis); color: #fff; border-radius: 14px; height: 42px; min-width: 42px; padding: 0 10px; font-weight: 700; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 14px rgba(20,8,70,.25); transition: transform .15s; }
.ikon-btn:hover { transform: translateY(-2px); }
.demo-pita { margin: 10px 12px 0; border-radius: 16px; background: var(--g-pink); color: #2A0F5C; font-size: 13px; font-weight: 700; padding: 9px 16px; text-align: center; box-shadow: 0 10px 24px rgba(199, 125, 255, .35); }
.demo-pita button { background: rgba(42, 15, 92, .85); color: #fff; border: 0; border-radius: 10px; padding: 4px 12px; margin-left: 8px; font-weight: 700; }

main { max-width: 1120px; margin: 0 auto; padding: 18px 14px 120px; }
.tab-bawah { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 10; border-radius: 24px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; }
.tab-bawah button { background: none; border: 0; border-radius: 18px; padding: 6px 2px 8px; font-size: 11px; font-weight: 700; color: var(--redup); display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; transition: transform .15s, background .2s; }
.tab-bawah button .i { font-size: 20px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(20, 8, 70, .35)); }
.tab-bawah button.aktif { color: #fff; background: var(--g-cyan); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 8px 18px rgba(51, 184, 245, .45); transform: translateY(-3px); }
@media (min-width: 900px) {
  .tab-bawah { top: 92px; bottom: auto; left: 14px; right: auto; width: 210px; grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 12px; }
  .tab-bawah button { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 14px; padding: 10px 14px; min-height: 46px; }
  .tab-bawah button.aktif { transform: translateX(4px); }
  main { margin-left: 236px; padding: 24px 28px 40px; }
}

.judul { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.judul h1 { font-size: 26px; font-weight: 800; text-shadow: 0 4px 18px rgba(20, 8, 70, .35); }
.judul .kanan { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sub { color: var(--redup); font-size: 13px; }

/* Kartu kaca 3D */
.kartu { border-radius: 24px; padding: 16px; }
.kartu + .kartu { margin-top: 14px; }
.kartu h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
.stat { border-radius: 22px; padding: 16px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; width: 90px; height: 90px; right: -30px; top: -30px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.stat .l { font-size: 12px; font-weight: 700; color: var(--redup); position: relative; }
.stat .n { font-size: 28px; font-weight: 800; margin-top: 4px; position: relative; text-shadow: 0 3px 10px rgba(20, 8, 70, .25); }
.stat .n.kecil { font-size: 19px; }
.g4 .stat:nth-child(1) { background: var(--g-cyan); border-color: rgba(255,255,255,.4); }
.g4 .stat:nth-child(2) { background: var(--g-ungu); border-color: rgba(255,255,255,.4); }
.g4 .stat:nth-child(3) { background: var(--g-pink); border-color: rgba(255,255,255,.4); }
.g4 .stat .l { color: rgba(255, 255, 255, .85); }
.stat.navy, .g4 .stat.navy { background: linear-gradient(145deg, rgba(26, 16, 80, .75), rgba(43, 28, 120, .6)); }
.stat.navy .n { color: var(--cyan); }

/* Bisa dimiringkan (3D) */
.miring { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
@media (hover: hover) {
  .stat.miring:hover, .mobil.miring:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 34px rgba(20, 8, 70, .35), 0 40px 70px -24px rgba(20, 8, 70, .55); }
}

.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 16px; font-weight: 700; font-size: 14px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; color: #fff; transition: transform .15s, box-shadow .2s, filter .2s; box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 8px 18px rgba(20, 8, 70, .3); }
.tombol:hover { transform: translateY(-2px); filter: brightness(1.06); }
.tombol:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 3px 8px rgba(20, 8, 70, .3); }
.t-utama { background: var(--g-ungu); }
.t-emas { background: var(--g-cyan); color: #0B1A4A; }
.t-hijau { background: linear-gradient(135deg, #6BFFD0, #22C08F); color: #05301F; }
.t-garis { background: var(--kaca2); border-color: var(--garis); color: #fff; }
.t-merah { background: linear-gradient(135deg, rgba(255, 120, 150, .35), rgba(255, 80, 120, .25)); border-color: rgba(255, 143, 163, .5); color: #FFE3E9; }
.t-kecil { height: 38px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.penuh { width: 100%; }

.lencana { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(255,255,255,.2); }
.l-hijau { background: var(--hijau-muda); color: var(--hijau); }
.l-merah { background: var(--merah-muda); color: var(--merah); }
.l-oranye { background: var(--oranye-muda); color: var(--oranye); }
.l-biru { background: rgba(51, 225, 245, .18); color: var(--cyan); }
.l-abu { background: rgba(255, 255, 255, .12); color: var(--redup); }
.l-emas { background: rgba(240, 123, 255, .2); color: #FFC2FF; }

.daftar > * + * { border-top: 1px solid rgba(255, 255, 255, .14); }
.baris { display: flex; gap: 10px; align-items: center; padding: 11px 6px; border-radius: 14px; transition: background .15s; }
.baris[data-act]:hover { background: rgba(255, 255, 255, .08); }
.baris .isi { flex: 1; min-width: 0; }
.baris .t { font-weight: 700; font-size: 14px; }
.baris .s { font-size: 12.5px; color: var(--redup); margin-top: 2px; }
.baris .uang { font-weight: 800; white-space: nowrap; }
.kosong { text-align: center; color: var(--redup); padding: 24px 8px; font-size: 14px; }

/* Kartu mobil */
.mobil { border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mobil .atasm { display: flex; gap: 10px; align-items: flex-start; }
.mobil .plat { display: inline-block; background: linear-gradient(180deg, #fff, #E6E9F5); color: #1A1050; font-weight: 800; letter-spacing: .05em; border-radius: 8px; padding: 2px 9px; font-size: 13px; box-shadow: 0 2px 0 #B9BFD8, 0 6px 12px rgba(20, 8, 70, .3); }
.mobil .nama { font-weight: 800; font-size: 17px; }
.mobil .posisi { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 11px; font-size: 13px; }
.mobil .posisi b { display: block; font-size: 14px; }
.bar { height: 10px; background: rgba(255, 255, 255, .14); border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(20, 8, 70, .3); }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #5CF2FF, #5EF2B8); border-radius: 99px; box-shadow: 0 0 12px rgba(94, 242, 184, .7); }
.bar.segera > span { background: linear-gradient(90deg, #FFE08A, #FFB547); box-shadow: 0 0 12px rgba(255, 181, 71, .7); }
.bar.lewat > span { background: linear-gradient(90deg, #FF9BB0, #FF5C7A); box-shadow: 0 0 12px rgba(255, 92, 122, .7); }
.mobil .aksi { display: flex; gap: 8px; flex-wrap: wrap; }
.mobil .aksi .tombol { flex: 1; }

/* Filter */
.saring { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 10px; }
.saring button { border: 1px solid var(--garis); background: var(--kaca); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 13px; white-space: nowrap; color: #fff; }
.saring button.aktif { background: var(--g-pink); border-color: rgba(255,255,255,.45); box-shadow: 0 6px 16px rgba(199, 125, 255, .45); }

/* Formulir & modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 8, 70, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.lembar { background: linear-gradient(160deg, rgba(92, 63, 209, .78), rgba(47, 111, 224, .72)); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 20px 18px; padding-bottom: max(20px, env(safe-area-inset-bottom)); animation: muncul .25s ease; }
@keyframes muncul { from { transform: translateY(30px) scale(.98); opacity: 0; } }
@media (min-width: 640px) { .modal { align-items: center; } .lembar { border-radius: 28px; } }
.lembar h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.lembar .tutup { float: right; background: var(--kaca2); border: 1px solid var(--garis); color: #fff; border-radius: 12px; width: 38px; height: 38px; font-size: 16px; }
form .f { margin-top: 12px; }
form .dua { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
input, select, textarea { min-width: 0; }
html, body { overflow-x: hidden; }
label { display: block; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .9); margin-bottom: 5px; }
input, select, textarea { width: 100%; height: 46px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px; padding: 0 12px; font: inherit; font-size: 15px; background: rgba(255, 255, 255, .14); color: #fff; outline: none; box-shadow: inset 0 2px 6px rgba(20, 8, 70, .2); }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .5); }
select option { color: #1A1050; }
input[type=date], input[type=month] { color-scheme: dark; }
textarea { height: 78px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(51, 225, 245, .25), inset 0 2px 6px rgba(20, 8, 70, .2); }
.bantu { font-size: 12px; color: var(--redup); margin-top: 4px; }
.ringkas { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 12px; margin-top: 14px; font-size: 14px; }
.ringkas .r { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.ringkas .r.tot { font-weight: 800; font-size: 16px; border-top: 1px dashed rgba(255, 255, 255, .3); margin-top: 6px; padding-top: 8px; }
.galat { background: rgba(255, 92, 122, .22); border: 1px solid rgba(255, 143, 163, .5); color: #FFE3E9; border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-top: 12px; }
.aksi-form { display: flex; gap: 10px; margin-top: 18px; }
.aksi-form .tombol { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 60; background: var(--g-ungu); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14px; box-shadow: 0 14px 30px rgba(20, 8, 70, .45); max-width: 90vw; }

/* Layar masuk */
.masuk { min-height: 100vh; display: grid; place-items: center; padding: 20px; perspective: 1200px; }
.masuk .kotak { border-radius: 30px; padding: 26px 22px; width: 100%; max-width: 420px; transform: rotateX(4deg); }
.masuk .logo { font-size: 20px; margin-bottom: 8px; }
.pemisah { text-align: center; color: var(--redup); font-size: 12px; margin: 16px 0; }

table.tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabel th, .tabel td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.tabel th { font-size: 12px; color: var(--redup); font-weight: 700; }
.tabel td.k, .tabel th.k { text-align: right; }
.gulir { overflow-x: auto; }

/* Alert keluar wilayah */
.pita-alert { display: block; width: calc(100% - 24px); margin: 10px 12px 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 16px; background: linear-gradient(135deg, #FF5C7A, #C2185B); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; text-align: center; box-shadow: 0 10px 24px rgba(255, 92, 122, .45); animation: kedip 1.6s ease-in-out infinite; }
@keyframes kedip { 50% { filter: brightness(1.2); box-shadow: 0 10px 34px rgba(255, 92, 122, .75); } }
.gps-pos { font-size: 13px; background: rgba(51, 225, 245, .14); border: 1px solid rgba(51, 225, 245, .3); border-radius: 16px; padding: 11px; }
.gps-pos a { font-weight: 700; }
.gps-pos.keluar { background: var(--merah-muda); color: #FFE3E9; border-color: rgba(255, 143, 163, .55); }
.gps-pos .tombol { width: 100%; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───── Sub-tab Sewa ───── */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; margin-bottom: 14px; border-radius: 18px; background: var(--kaca); border: 1px solid var(--garis); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.seg button { border: 0; background: none; color: var(--redup); font-weight: 700; font-size: 14px; padding: 10px 6px; border-radius: 14px; }
.seg button.aktif { background: var(--g-ungu); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 6px 14px rgba(124, 92, 255, .45); }

/* ───── Penyewa ───── */
.avatar { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: var(--g-cyan); color: #0B1A4A; box-shadow: 0 6px 12px rgba(20, 8, 70, .3); }
.avatar.hitam { background: linear-gradient(135deg, #FF8FA3, #C2185B); color: #fff; }
.info-penyewa { margin-top: 8px; background: var(--hijau-muda); border: 1px solid rgba(94, 242, 184, .35); color: #DFFFF2; border-radius: 12px; padding: 8px 12px; font-size: 13px; }
input[type=search] { -webkit-appearance: none; appearance: none; }

/* ───── Foto ───── */
.galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.galeri.kecil { grid-template-columns: repeat(3, 1fr); margin: 8px 0; gap: 5px; }
.foto { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .1); border: 1px solid var(--garis); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.foto figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(20, 8, 70, .7); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.kosong-foto { display: grid; place-items: center; font-size: 12px; color: var(--redup); text-align: center; padding: 6px; }
.hapus-foto { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20, 8, 70, .75); color: #fff; font-size: 12px; }
.unggah { display: flex; gap: 10px; align-items: center; }
.pratinjau { width: 120px; aspect-ratio: 85.6 / 54; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .1); border: 1px dashed var(--garis); display: grid; place-items: center; font-size: 11px; color: var(--redup); flex: none; }
.pratinjau img { width: 100%; height: 100%; object-fit: cover; }
.lampu { position: fixed; inset: 0; z-index: 80; background: rgba(10, 4, 40, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lampu img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lampu button { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--garis); background: var(--kaca2); color: #fff; }

/* ───── Cek kondisi ───── */
.centang { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; margin: 0; }
.centang input { width: 20px; height: 20px; flex: none; accent-color: #33E1F5; box-shadow: none; }
.centang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px; }
.bbm { display: inline-flex; gap: 3px; vertical-align: middle; }
.bbm i { width: 12px; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.bbm i.isi { background: linear-gradient(180deg, #6BFFD0, #22C08F); box-shadow: 0 0 6px rgba(94, 242, 184, .6); }
.cek-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cek-kolom { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.cek-kolom .t { font-weight: 800; font-size: 14px; }
.cek-kolom .s { font-size: 12px; color: var(--redup); }
.cek-kolom .tombol { margin-top: auto; }

/* ───── Kalender ───── */
table.kal { border-collapse: separate; border-spacing: 0 6px; min-width: 760px; width: 100%; table-layout: fixed; }
.kal th, .kal td { padding: 0 2px; text-align: center; }
.kal thead th { font-size: 11px; font-weight: 700; color: var(--redup); padding-bottom: 4px; }
.kal thead th b { display: block; font-size: 15px; color: #fff; }
.kal thead th.hari-ini b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--g-cyan); color: #0B1A4A; box-shadow: 0 4px 10px rgba(51, 184, 245, .5); }
.kal thead th.minggu { color: #FFB3C4; }
.kal .kal-mobil { width: 128px; text-align: left; position: sticky; left: 0; z-index: 1; background: rgba(60, 35, 160, .92); border-radius: 12px; padding: 6px 10px; }
.kal td + td, .kal th + th { border-left: 0; }
.kal .kal-mobil b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal .kal-mobil span { font-size: 11px; color: var(--redup); }
.kal .blok { width: 100%; height: 38px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; font-weight: 700; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 12px rgba(20, 8, 70, .3); }
.k-jalan { background: var(--g-cyan) !important; color: #0B1A4A !important; }
.k-pesan { background: var(--g-pink) !important; color: #2A0F5C !important; }
.k-telat { background: linear-gradient(135deg, #FF8FA3, #E0245E) !important; }
.k-selesai { background: rgba(255, 255, 255, .18) !important; color: var(--redup) !important; }
.kal .kos { width: 100%; height: 38px; border: 1px dashed rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); border-radius: 12px; color: rgba(255, 255, 255, .45); font-size: 14px; display: grid; place-items: center; }
button.kos:hover { background: rgba(51, 225, 245, .2); color: #fff; border-style: solid; }
.kal .kos.lalu { border: 0; background: rgba(255, 255, 255, .03); }
.kal .kos.bengkel { border-style: solid; background: var(--oranye-muda); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--redup); }
.legenda i { display: inline-block; width: 14px; height: 10px; border-radius: 4px; margin-right: 5px; vertical-align: middle; }

/* ───── Nota (kertas putih, siap cetak) ───── */
.lembar.lebar { max-width: 760px; }
.nota { background: #fff; color: #111827; border-radius: 16px; padding: 22px; margin-top: 14px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 14px 30px rgba(20, 8, 70, .35); }
.nota-kepala { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #4C1D95; padding-bottom: 10px; margin-bottom: 12px; }
.nota-usaha { font-size: 18px; font-weight: 800; color: #4C1D95; }
.nota-judul { font-weight: 800; font-size: 13px; letter-spacing: .03em; }
.nota-kecil { font-size: 11px; color: #4B5563; }
.nota-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .nota-dua { grid-template-columns: 1fr; } .nota { padding: 14px; } }
.nota-t { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.nota-t th { text-align: left; background: #EDE9FE; color: #4C1D95; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; }
.nota-t td { padding: 4px 8px; border-bottom: 1px solid #E5E7EB; vertical-align: top; }
.nota-t td:first-child { color: #4B5563; width: 38%; }
.nota-t.uang td:first-child { width: auto; color: #111827; }
.nota-t td.k { text-align: right; white-space: nowrap; }
.nota-t tr.kuat td { font-weight: 800; border-top: 1.5px solid #111827; }
.nota-syarat ol { margin: 6px 0 8px; padding-left: 18px; }
.nota-ttd { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: center; margin-top: 18px; font-size: 12px; }
.garis-ttd { height: 60px; border-bottom: 1px solid #111827; margin-bottom: 4px; }

@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  body::before, body::after, #app, #toast, .lampu { display: none !important; }
  .modal { position: static; background: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; display: block; }
  .lembar { background: none !important; box-shadow: none !important; border: 0 !important; max-height: none; overflow: visible; padding: 0; max-width: none; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .lembar > *:not(#nota-cetak) { display: none !important; }
  .nota { box-shadow: none; margin: 0; padding: 0; font-size: 11.5px; }
  .nota-dua { grid-template-columns: 1fr 1fr; }
}

/* ───── Tahap 2: deposit, mitra, hak akses ───── */
.tab-bawah.empat { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 900px) { .tab-bawah.empat { grid-template-columns: 1fr; } }
body.peran-admin [data-act$="-hapus"], body.peran-admin [data-act="unduh-csv"] { display: none !important; }
.deposit-tahan { background: rgba(255, 214, 107, .14) !important; border-color: rgba(255, 214, 107, .45) !important; }
.mitra-blok { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 12px; margin-top: 10px; }
.mitra-blok .tabel { margin-top: 8px; }
select:disabled, input:disabled { opacity: .55; }

/* ───── Peta armada ───── */
.peta-kartu { padding: 8px; }
#peta { height: min(62vh, 560px); border-radius: 18px; overflow: hidden; background: #1f2a5a; }
#peta-mini { height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--garis); }
.peta-info { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--redup); padding: 8px 6px 2px; }
.titik-live { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); flex: none; }
.titik-live.hidup { background: #5EF2B8; box-shadow: 0 0 0 0 rgba(94, 242, 184, .7); animation: denyut 1.8s infinite; }
@keyframes denyut { 70% { box-shadow: 0 0 0 9px rgba(94, 242, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 242, 184, 0); } }
.leaflet-container { font-family: inherit; }
.pin-wadah { background: none; border: 0; }
.pin { width: 40px; height: 40px; margin: 0 auto; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(20, 8, 70, .45); background: var(--g-cyan); }
.pin span { transform: rotate(45deg); font-size: 19px; line-height: 1; }
.pin.st-garasi { background: linear-gradient(135deg, #6BFFD0, #22C08F); }
.pin.st-disewa { background: var(--g-cyan); }
.pin.st-bengkel { background: linear-gradient(135deg, #FFE08A, #FFB547); }
.pin.st-nonaktif { background: #9AA3B5; }
.pin.keluar { background: linear-gradient(135deg, #FF8FA3, #E0245E); animation: kedip-pin 1.2s infinite; }
@keyframes kedip-pin { 50% { box-shadow: 0 0 0 10px rgba(255, 92, 122, .35), 0 6px 14px rgba(20, 8, 70, .45); } }
.pin.dipilih { outline: 3px solid #FFD66B; outline-offset: 2px; }
.pin.kecil { width: 34px; height: 34px; flex: none; border-width: 1.5px; }
.pin.kecil span { font-size: 15px; }
.pin-label { margin-top: 2px; text-align: center; font-size: 10px; font-weight: 800; color: #1A1050; background: #fff; border-radius: 6px; padding: 1px 4px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); width: max-content; position: relative; left: 50%; transform: translateX(-50%); }
.leaflet-popup-content-wrapper { background: rgba(40, 24, 120, .92); color: #fff; border-radius: 16px; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 14px 30px rgba(20, 8, 70, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.leaflet-popup-tip { background: rgba(40, 24, 120, .92); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; }
.pop { font-size: 13px; line-height: 1.45; }
.pop-s { color: var(--redup); font-size: 12px; margin-top: 4px; }
.pop-alert { margin-top: 6px; background: rgba(255, 92, 122, .3); border-radius: 8px; padding: 4px 8px; font-weight: 700; }
.pop-aksi { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pop-aksi button, .pop-aksi a { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.15); color: #fff !important; border-radius: 10px; padding: 5px 9px; font-size: 12px; font-weight: 700; text-decoration: none; }
.cek-hasil { border-radius: 14px; padding: 12px; margin-top: 12px; font-size: 14px; }
.cek-hasil.ok { background: var(--hijau-muda); color: #DFFFF2; border: 1px solid rgba(94, 242, 184, .4); }
.cek-hasil.keluar { background: var(--merah-muda); color: #FFE3E9; border: 1px solid rgba(255, 143, 163, .5); }
.cek-hasil.netral { background: rgba(255, 255, 255, .1); }

/* ───── Sponsor ───── */
.spn-wadah { margin: 14px 0; }
.spn-geser { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; border-radius: 22px; }
.spn-geser::-webkit-scrollbar { display: none; }
.spn { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 132px; border-radius: 22px; overflow: hidden; display: flex; align-items: stretch;
  background: linear-gradient(135deg, var(--spn), color-mix(in srgb, var(--spn) 55%, #1A1050));
  border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 26px rgba(20, 8, 70, .35); }
.spn::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .14); pointer-events: none; }
.spn-gbr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spn-gbr + .spn-isi { background: linear-gradient(90deg, rgba(10, 4, 40, .78) 0%, rgba(10, 4, 40, .45) 60%, rgba(10, 4, 40, .1) 100%); }
.spn-isi { position: relative; z-index: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; width: 100%; }
.spn-lencana { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 2px 8px; }
.spn-nama { font-size: 12px; font-weight: 700; opacity: .9; margin-top: 4px; }
.spn-judul { font-size: 17px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.spn-teks { font-size: 12.5px; opacity: .9; }
.spn-tombol { align-self: flex-start; margin-top: 8px; background: #fff; color: #1A1050 !important; font-weight: 800; font-size: 13px; text-decoration: none; border-radius: 12px; padding: 8px 14px; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.spn-titik { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.spn-titik i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.35); transition: width .2s; }
.spn-titik i.aktif { width: 20px; background: #fff; }
.spn-mini { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--spn); border: 1px solid rgba(255,255,255,.4); }
.nota-sponsor { border-top: 1px dashed #9CA3AF; margin-top: 12px; padding-top: 8px; font-size: 11px; color: #374151; }
.nota-spn + .nota-spn { margin-top: 2px; }

/* ───── Jenis kendaraan ───── */
.ikon-jenis { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 12px rgba(20, 8, 70, .25); }

/* ───────── Cuaca ───────── */
.kartu.cuaca { margin-top: 12px; }
.cuaca-atas { display: flex; align-items: center; gap: 12px; }
.cuaca-ikon { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.cuaca-suhu { font-size: 30px; font-weight: 800; line-height: 1.1; }
.cuaca-hari { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cuaca-hari .ch { text-align: center; padding: 8px 4px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.cuaca-hari .ch.bahaya { background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.5); }
.cuaca-hari .l { font-size: 12px; font-weight: 700; opacity: .85; }
.cuaca-hari .i { font-size: 24px; margin: 2px 0; }
.cuaca-hari .t { font-weight: 800; font-size: 14px; }
.cuaca-hari .t span { opacity: .65; font-weight: 600; }
.cuaca-hari .p { font-size: 11px; opacity: .8; }
.cuaca-saran { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.4); font-size: 13px; font-weight: 600; }
.cuaca-kend .ck { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.1); flex-wrap: wrap; }
.cuaca-kend .ck + .ck { margin-top: 6px; }
.cuaca-kend .ck.bahaya { background: rgba(239,68,68,.2); }
.cuaca-kend .ci { font-size: 22px; }
.cuaca-kend .isi { flex: 1; min-width: 0; }
.cuaca-kend .t { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuaca-kend .s { font-size: 12px; opacity: .75; }
.cuaca-kend .cw { text-align: right; font-weight: 800; white-space: nowrap; }
.cuaca-kend .ck .tombol { flex-basis: 100%; justify-content: center; text-align: center; }
.cuaca-galat { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; }
.cuaca-kaki { margin-top: 10px; font-size: 11px; opacity: .6; text-align: right; }
