/* =====================================================================
   BERSIH.CO.ID - Stylesheet Aplikasi (Pelanggan & Mitra)
   Mobile first. Semua komponen dibuat reusable.
   ===================================================================== */

:root {
    --primary: #17BEBB;
    --primary-dark: #109A98;
    --primary-light: #EAF9F8;
    --bg: #F7FAFA;
    --white: #FFFFFF;
    --text: #1F2937;
    --text-2: #6B7280;
    --text-3: #9CA3AF;
    --accent: #FFC857;
    --success: #22A06B;
    --success-light: #E7F6EF;
    --danger: #D92D20;
    --danger-light: #FEECEB;
    --warning: #F79009;
    --warning-light: #FFF6E8;
    --info: #2E90FA;
    --info-light: #EAF3FF;
    --line: #E9EEF0;
    --line-2: #D7E0E3;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 48, .06);
    --shadow: 0 4px 16px rgba(16, 40, 48, .07);
    --shadow-lg: 0 12px 32px rgba(16, 40, 48, .12);
    --app-max: 480px;
    --nav-h: 66px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: #EDF2F3;
    overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
svg.ico { width: 22px; height: 22px; flex: none; }
svg.ico-sm { width: 18px; height: 18px; flex: none; }
svg.ico-xs { width: 14px; height: 14px; flex: none; }
svg.ico-lg { width: 28px; height: 28px; flex: none; }

/* ---------------------------------------------------------------------
   APP SHELL - di desktop tetap terasa seperti aplikasi
   --------------------------------------------------------------------- */
.app {
    max-width: var(--app-max);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 40px rgba(16, 40, 48, .08);
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.app.no-nav { padding-bottom: 24px; }
/* Beri ruang di bawah bila keranjang melayang, supaya tidak menutupi isi halaman */
body:has(.keranjang-float) .app.no-nav { padding-bottom: 96px; }

.container { padding: 0 16px; }
.section { margin-top: 22px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 16px;
}
.section-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.section-link { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */
.appbar {
    position: sticky; top: 0; z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
}
.appbar.transparent { background: transparent; border: 0; }
.appbar-title { font-size: 16px; font-weight: 700; flex: 1; letter-spacing: -.2px; }
.appbar-btn {
    width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--bg);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--text); flex: none;
}
.appbar-btn:active { background: var(--line); }

.hero-head {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 18px 16px 58px;
    border-radius: 0 0 26px 26px;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .5px; font-size: 17px; }
.loc {
    display: flex; align-items: center; gap: 6px; margin-top: 16px;
    font-size: 13px; color: rgba(255, 255, 255, .92);
}
.loc b { font-weight: 700; color: #fff; }
.loc svg { width: 17px; height: 17px; }

.icon-btn {
    position: relative; width: 40px; height: 40px; border-radius: 13px;
    background: rgba(255, 255, 255, .18); border: 0; color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:active { background: rgba(255, 255, 255, .3); }
.dot-badge {
    position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--primary);
}

.hero-title { font-size: 23px; font-weight: 800; line-height: 1.25; margin-top: 18px; letter-spacing: -.5px; }
.hero-sub { font-size: 13.5px; color: rgba(255, 255, 255, .9); margin-top: 6px; }

/* ---------------------------------------------------------------------
   CARD
   --------------------------------------------------------------------- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}
.card + .card { margin-top: 12px; }
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.card-pull { margin-top: -44px; position: relative; z-index: 5; }

.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }
.dashed { border-top: 1px dashed var(--line-2); margin: 12px 0; height: 0; }

.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.primary-text { color: var(--primary); }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .hide { display: none !important; }

/* ---------------------------------------------------------------------
   BUTTON
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; border-radius: 14px; border: 0; cursor: pointer;
    font-size: 15px; font-weight: 700; line-height: 1.2;
    background: var(--primary); color: #fff;
    transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); background: var(--primary-dark); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 11px; }
.btn-outline { background: var(--white); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-outline:active { background: var(--primary-light); }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-ghost:active { background: var(--line); }
.btn-light { background: var(--primary-light); color: var(--primary-dark); }
/* Tombol berbentuk kapsul (sudut membulat penuh) */
.btn-bulat { border-radius: 999px; }

/* Tombol yang tampil seperti tautan biasa */
.btn-teks {
    background: none; border: 0; padding: 4px 8px; cursor: pointer;
    font-family: inherit; font-weight: 600; color: var(--text-2); text-decoration: underline;
}
.btn-teks:active { color: var(--primary); }
.btn-danger { background: var(--danger); }
.btn-danger:active { background: #b42318; }
.btn-outline-danger { background: var(--white); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn-success { background: var(--success); }
.btn-white { background: #fff; color: var(--primary-dark); }
/* Tombol di atas latar hero berwarna */
.btn-hero { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-hero:active { background: rgba(255, 255, 255, .32); }
.btn-warning { background: var(--accent); color: #6b4b00; }

/* Tombol sticky bawah */
.sticky-cta {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--app-max); z-index: 45;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(16, 40, 48, .07);
}
.sticky-cta .btn { width: 100%; }
.has-cta { padding-bottom: 100px !important; }

/* Bila menu bawah ikut tampil, tombol utama naik supaya tidak tertutup */
.app:not(.no-nav) .sticky-cta {
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: 12px;
}
.app:not(.no-nav) .has-cta { padding-bottom: calc(100px + var(--nav-h)) !important; }
/* Keranjang melayang ikut naik supaya tidak menimpa tombol utama */
.app:not(.no-nav):has(.sticky-cta) .keranjang-float.atas-nav {
    bottom: calc(var(--nav-h) + 90px + env(safe-area-inset-bottom));
}
.cta-price { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* ---------------------------------------------------------------------
   BADGE / CHIP
   --------------------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .1px; white-space: nowrap;
}
.badge-grey   { background: #F1F4F5; color: #5A6870; }
.badge-teal   { background: var(--primary-light); color: var(--primary-dark); }
.badge-blue   { background: var(--info-light); color: #1849A9; }
.badge-green  { background: var(--success-light); color: #12734F; }
.badge-orange { background: var(--warning-light); color: #B54708; }
.badge-red    { background: var(--danger-light); color: #B42318; }
.badge-yellow { background: #FFF7E0; color: #8A6100; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; background: var(--white);
    border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.chip-scroll {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { display: none; }
.chip.is-invalid { border-color: var(--danger); }

/* ---------------------------------------------------------------------
   SERVICE CARD
   --------------------------------------------------------------------- */
.service-card {
    display: flex; gap: 14px; align-items: center;
    background: var(--white); border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.service-ico {
    width: 54px; height: 54px; border-radius: 16px; flex: none;
    background: var(--primary-light); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
}
.service-ico svg { width: 28px; height: 28px; }
.service-name { font-size: 15.5px; font-weight: 700; }
.service-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.service-price { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-top: 6px; }
.service-price span { font-weight: 500; color: var(--text-2); }

/* Grid pintasan */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.quick-ico {
    width: 52px; height: 52px; border-radius: 17px; background: var(--white);
    display: flex; align-items: center; justify-content: center; color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}
.quick-label { font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; }

/* ---------------------------------------------------------------------
   ORDER CARD
   --------------------------------------------------------------------- */
.order-card {
    background: var(--white); border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow-sm); margin-bottom: 12px; display: block;
}
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-code { font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .4px; }
.order-body { display: flex; gap: 12px; align-items: center; }
.order-name { font-size: 14.5px; font-weight: 700; }
.order-meta { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.order-foot {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px dashed var(--line-2); margin-top: 12px; padding-top: 11px;
}
.order-total { font-size: 15px; font-weight: 800; color: var(--text); }

/* Progress status */
.timeline { position: relative; padding-left: 26px; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -20px; top: 3px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--line);
}
.timeline-item.done::before { background: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.timeline-item:not(:last-child)::after {
    content: ''; position: absolute; left: -15px; top: 17px; bottom: -2px; width: 2px; background: var(--line);
}
.timeline-item.done:not(:last-child)::after { background: var(--primary-light); }
.timeline-title { font-size: 13.5px; font-weight: 600; }
.timeline-time { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------------------------------------------------------------------
   FORM
   --------------------------------------------------------------------- */
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-label .req { color: var(--danger); }
.form-control {
    width: 100%; padding: 13px 14px; border-radius: 13px;
    border: 1.5px solid var(--line-2); background: var(--white);
    font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 190, 187, .13); }
.form-control::placeholder { color: var(--text-3); }
.form-control:disabled { background: #F4F7F8; color: var(--text-3); }
textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.5; }
select.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.form-hint { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.45; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.form-control.is-invalid { border-color: var(--danger); }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); pointer-events: none;
}
.input-suffix {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 4px;
}
.input-group:has(.input-suffix) .form-control { padding-right: 44px; }
.input-group.suffix-only .form-control { padding-left: 14px; }
.input-suffix .pass-hide { display: none; }
.input-suffix.on .pass-show { display: none; }
.input-suffix.on .pass-hide { display: block; }
.input-suffix.on { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Pilihan radio berbentuk kartu */
.option {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white);
    cursor: pointer; margin-bottom: 10px; transition: border-color .15s, background .15s;
}
.option:last-child { margin-bottom: 0; }
.option.active { border-color: var(--primary); background: var(--primary-light); }
.option input { display: none; }
.option-radio {
    width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--line-2);
    flex: none; display: flex; align-items: center; justify-content: center; background: #fff;
}
.option.active .option-radio { border-color: var(--primary); }
.option.active .option-radio::after {
    content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--primary);
}
.option-title { display: block; font-size: 14.5px; font-weight: 700; }
.option-desc { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; }
.check input { display: none; }
.check-box {
    width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2);
    flex: none; display: flex; align-items: center; justify-content: center; background: #fff; margin-top: 1px;
}
.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-box::after {
    content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------------------------------------------------------------------
   COUNTER (jumlah ruangan)
   --------------------------------------------------------------------- */
.counter-row {
    display: flex; align-items: center; gap: 12px; padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.counter-row:last-child { border-bottom: 0; }
.counter-ico {
    width: 42px; height: 42px; border-radius: 13px; background: var(--primary-light);
    color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex: none;
}
.counter-ico svg { width: 21px; height: 21px; }
.counter-name { font-size: 14px; font-weight: 600; }
.counter-note { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.counter {
    display: flex; align-items: center; gap: 4px; flex: none;
    background: var(--bg); border-radius: 12px; padding: 4px;
}
.counter button {
    width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--white);
    color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-sm);
}
.counter button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.counter button svg { width: 16px; height: 16px; }
.counter .val { min-width: 26px; text-align: center; font-weight: 700; font-size: 14.5px; }

/* ---------------------------------------------------------------------
   PILIHAN DURASI / TANGGAL / JAM
   --------------------------------------------------------------------- */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick {
    position: relative; border: 1.5px solid var(--line-2); border-radius: var(--radius);
    background: var(--white); padding: 14px 12px; text-align: center; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pick.active { border-color: var(--primary); background: var(--primary-light); }
.pick-main { font-size: 15px; font-weight: 700; }
.pick-sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.pick.active .pick-sub { color: var(--primary-dark); }
.pick-tag {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #6b4b00; font-size: 9.5px; font-weight: 800;
    padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; white-space: nowrap;
}

.date-scroll { display: flex; gap: 9px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.date-scroll::-webkit-scrollbar { display: none; }
.date-item {
    flex: none; width: 66px; padding: 11px 4px; border-radius: 15px; text-align: center;
    border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer;
}
.date-item.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.date-day { font-size: 11.5px; font-weight: 600; opacity: .85; }
.date-num { font-size: 18px; font-weight: 800; margin-top: 2px; line-height: 1.1; }

.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.time-item {
    padding: 11px 4px; border-radius: 13px; text-align: center; font-size: 13.5px; font-weight: 600;
    border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer;
}
.time-item.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.time-item:disabled, .time-item.disabled {
    background: #F4F7F8; color: var(--text-3); border-color: var(--line); cursor: not-allowed;
    text-decoration: line-through;
}

/* ---------------------------------------------------------------------
   STEPPER
   --------------------------------------------------------------------- */
.stepper { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--white); }
.step-dot { flex: 1; height: 4px; border-radius: 3px; background: var(--line); }
.step-dot.on { background: var(--primary); }
.step-info { padding: 14px 16px 4px; }
.step-count { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .4px; }
.step-title { font-size: 19px; font-weight: 800; margin-top: 3px; letter-spacing: -.4px; }
.step-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ---------------------------------------------------------------------
   RINGKASAN HARGA
   --------------------------------------------------------------------- */
.sukses-ico {
    width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--success-light); color: var(--success);
}
.sukses-ico svg { width: 32px; height: 32px; stroke-width: 2.4; }
.reg-box {
    border: 1.5px dashed var(--primary); border-radius: 14px;
    background: var(--primary-light); padding: 16px 14px;
}
.reg-no {
    font-size: 26px; font-weight: 800; letter-spacing: .12em;
    color: var(--primary-dark); margin-top: 4px; user-select: all;
}
/* Peta pemilih titik lokasi */
.peta-pilih {
    height: 260px; border-radius: 14px; overflow: hidden;
    border: 1.5px solid var(--line-2); background: var(--bg);
}
.peta-pilih > div { height: 100%; width: 100%; }
/* ---------------------------------------------------------------------
   KALENDER PEMILIH TANGGAL
   --------------------------------------------------------------------- */
.kal { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kal-bulan { font-size: 14.5px; font-weight: 700; }
.kal-nav {
    width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--bg);
    color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.kal-nav:disabled { opacity: .3; cursor: default; }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal-nama span {
    text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3);
    padding-bottom: 6px; letter-spacing: .03em;
}
.kal-sel {
    aspect-ratio: 1 / 1; border: 0; border-radius: 10px; background: transparent;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.kal-sel:active { background: var(--bg); }
.kal-sel.mati { color: var(--text-3); opacity: .45; cursor: default; text-decoration: line-through; }
.kal-sel.minggu { color: var(--danger); }
.kal-sel.pilih { background: var(--primary); color: #fff; font-weight: 700; }
.kal-nama span.minggu { color: var(--danger); }

/* Pilihan jam */
.jam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.jam-chip { justify-content: center; padding: 10px 0; }
.jam-chip.mati { opacity: .4; cursor: default; text-decoration: line-through; background: var(--bg); }

/* ---------------------------------------------------------------------
   DAFTAR NOTIFIKASI
   --------------------------------------------------------------------- */
.notif-tanggal {
    padding: 16px 16px 8px; font-size: 12px; font-weight: 700;
    color: var(--text-3); letter-spacing: .04em; text-transform: uppercase;
}
.notif-list { background: var(--white); }
.notif-item {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
    color: var(--text); position: relative;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:active { background: var(--bg); }
.notif-item.baru { background: var(--primary-light); }
.notif-ico {
    width: 40px; height: 40px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); color: var(--text-2);
}
.notif-ico svg { width: 20px; height: 20px; }
.notif-ico.tosca  { background: var(--primary-light); color: var(--primary-dark); }
.notif-ico.hijau  { background: var(--success-light); color: var(--success); }
.notif-ico.kuning { background: #FFF3D6; color: #8A6100; }
.notif-ico.merah  { background: var(--danger-light); color: var(--danger); }
.notif-ico.biru   { background: var(--info-light); color: #1849A9; }
.notif-judul { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.15px; }
.notif-pesan { display: block; font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.notif-jam   { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.notif-titik {
    width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
    flex: none; margin-top: 6px;
}

/* ---------------------------------------------------------------------
   DAFTAR PERCAKAPAN (gaya aplikasi pesan)
   --------------------------------------------------------------------- */
.chat-list { background: var(--white); }
.chat-item {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    color: var(--text); text-decoration: none;
}
.chat-item:last-child { border-bottom: 0; }
.chat-item:active { background: var(--bg); }
.chat-foto {
    width: 50px; height: 50px; border-radius: 50%; flex: none; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
}
.chat-foto-admin { background: var(--primary-light); }
.chat-foto-huruf {
    background: var(--primary); color: #fff; font-weight: 700; font-size: 19px;
}
.chat-nama { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.chat-pesan {
    font-size: 13px; color: var(--text-2); margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-kanan { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.chat-jam { font-size: 11.5px; color: var(--text-3); }

/* Kotak pencarian alamat Google agar seragam dengan input lain */
.cari-alamat gmp-place-autocomplete { width: 100%; display: block; }
.cari-alamat { --gmp-mat-color-surface: var(--white); }
.alamat-terpilih {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 12px 14px; border-radius: 12px;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 13px; line-height: 1.5;
}
.alamat-terpilih svg { flex: none; margin-top: 1px; }
/* Daftar saran alamat Google harus tampil di atas bottom sheet */
.pac-container { z-index: 200; border-radius: 12px; margin-top: 4px; font-family: var(--font); }
.peta-gagal {
    height: 100%; display: flex; align-items: center; justify-content: center;
    padding: 20px; text-align: center; font-size: 13px; color: var(--text-2);
}

/* Baris catatan pada kartu keranjang */
.catatan-baris { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.catatan-baris svg { flex: none; margin-top: 1px; color: var(--text-3); }

/* Kolom kanan pada baris keranjang */
.keranjang-kanan { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.keranjang-kanan .order-total { font-size: 15px; }

/* Tombol keranjang melayang */
.keranjang-float {
    position: fixed; right: 40px; z-index: 44;
    /* Diangkat supaya tidak menutupi tautan di baris paling bawah halaman */
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    box-shadow: 0 8px 22px rgba(23, 190, 187, .4);
    transition: transform .2s ease, bottom .2s ease;
}
.keranjang-float.atas-nav { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
.keranjang-float:active { transform: scale(.94); }
.keranjang-float svg { width: 25px; height: 25px; }
.keranjang-float .dot-badge {
    top: -3px; right: -3px; background: var(--danger); color: #fff;
    box-shadow: 0 0 0 2px var(--white);
}
/* Bila ada tombol utama di bawah, keranjang naik supaya tidak bertumpuk */
.has-cta ~ .keranjang-float { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Animasi paket terbang ke ikon keranjang */
.terbang {
    position: fixed; z-index: 120; width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 6px 18px rgba(23, 190, 187, .5);
    pointer-events: none; opacity: .95;
    transition: transform .6s cubic-bezier(.35, .6, .3, 1), opacity .6s ease;
}
@keyframes goyang-tas {
    0%, 100% { transform: scale(1); }
    35%      { transform: scale(1.22) rotate(-8deg); }
    70%      { transform: scale(.94) rotate(5deg); }
}
.icon-btn.goyang { animation: goyang-tas .5s ease; }
.service-card[data-paket] { cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.service-card[data-paket]:active { transform: scale(.985); }

/* Foto profil yang bisa diketuk */
.avatar-btn {
    position: relative; padding: 0; border: 0; background: none; cursor: pointer;
    flex: none; line-height: 0; border-radius: 50%;
}
.avatar-btn:active { transform: scale(.96); }
.avatar-edit {
    position: absolute; right: -2px; bottom: -2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--white); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 40, 48, .22);
}

/* Pratinjau foto pada popup */
.foto-besar {
    border-radius: 16px; overflow: hidden; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; max-height: 320px;
}
.foto-besar img { width: 100%; height: 100%; object-fit: cover; }
.foto-kosong {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-3); font-size: 13px;
}
.foto-kosong svg { width: 44px; height: 44px; }

/* ---------------------------------------------------------------------
   KARTU LIPAT (accordion)
   --------------------------------------------------------------------- */
.acc { padding: 0; overflow: hidden; }
.acc-head {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 16px; cursor: pointer; list-style: none;
    font-size: 15px; font-weight: 700; color: var(--text);
    -webkit-tap-highlight-color: transparent;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head:active { background: var(--bg); }
.acc-ico {
    width: 34px; height: 34px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary-dark);
}
.acc-ico svg { width: 19px; height: 19px; }
.acc-judul { flex: 1; min-width: 0; letter-spacing: -.2px; }
.acc-info {
    font-size: 11.5px; font-weight: 700; color: var(--text-2);
    background: var(--bg); border-radius: 999px; padding: 3px 9px;
}
.acc-chev { color: var(--text-3); transition: transform .22s ease; }
.acc[open] > .acc-head .acc-chev { transform: rotate(180deg); }
.acc[open] > .acc-head { border-bottom: 1px solid var(--line); }
.acc-body { padding: 14px 16px 16px; }

.dok-item { padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.dok-item:first-of-type { padding-top: 0; }
.dok-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.dok-item input[type=file] { min-width: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13.5px; }
.sum-row .lbl { color: var(--text-2); }
.sum-total {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px;
}
.sum-total .lbl { font-size: 14px; font-weight: 700; }
.sum-total .val { font-size: 19px; font-weight: 800; color: var(--primary-dark); }

/* ---------------------------------------------------------------------
   ALAMAT
   --------------------------------------------------------------------- */
.addr-card {
    display: flex; gap: 12px; padding: 14px; border-radius: var(--radius);
    border: 1.5px solid var(--line-2); background: var(--white); margin-bottom: 10px; cursor: pointer;
}
.addr-card.active { border-color: var(--primary); background: var(--primary-light); }
.addr-label { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.addr-text { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

/* ---------------------------------------------------------------------
   FOTO
   --------------------------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.photo-box {
    aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative;
    background: var(--bg); border: 1px solid var(--line);
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-add {
    aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line-2);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: var(--text-3); font-size: 11.5px; cursor: pointer; background: var(--white);
}
.photo-del {
    position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; border: 0; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
}
.photo-del svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------
   BOTTOM NAVIGATION
   --------------------------------------------------------------------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--app-max); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white); border-top: 1px solid var(--line);
    display: flex; align-items: stretch; z-index: 50;
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--text-3); font-size: 10.5px; font-weight: 600; position: relative; padding-top: 4px;
}
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { color: var(--primary); }
.nav-item .dot-badge { border-color: var(--white); top: 4px; right: 50%; margin-right: -20px; }

/* ---------------------------------------------------------------------
   MODAL & BOTTOM SHEET
   --------------------------------------------------------------------- */
.overlay {
    position: fixed; inset: 0; background: rgba(15, 32, 38, .48); z-index: 90;
    opacity: 0; visibility: hidden; transition: opacity .2s;
}
.overlay.show { opacity: 1; visibility: visible; }

.modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.97);
    width: calc(100% - 40px); max-width: 400px; background: var(--white);
    border-radius: 22px; padding: 22px; z-index: 100;
    opacity: 0; visibility: hidden; transition: all .2s ease;
}
.modal.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.modal-text { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

.sheet {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
    width: 100%; max-width: var(--app-max); background: var(--white);
    border-radius: 24px 24px 0 0; z-index: 100; transition: transform .26s cubic-bezier(.3, .8, .4, 1);
    max-height: 88vh; display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}
.sheet.show { transform: translateX(-50%) translateY(0); }
.sheet-handle { width: 42px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 10px auto 4px; }
.sheet-head {
    padding: 8px 18px 12px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.sheet-title { font-size: 16px; font-weight: 800; }
.sheet-body { padding: 16px 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Sheet berisi peta perlu ruang lebih tinggi */
.sheet-tinggi { max-height: 94vh; }

/* Daftar notifikasi di dalam sheet: lebar penuh seperti halaman pelanggan */
.notif-sheet { padding: 0 0 12px; }
.notif-sheet .notif-tanggal { padding: 14px 18px 8px; }
.notif-sheet .notif-tanggal:first-child { padding-top: 10px; }
.notif-sheet .notif-item { padding-left: 18px; padding-right: 18px; }
.notif-sheet .empty { padding: 28px 18px; }
.sheet-head .badge { margin-left: auto; margin-right: 10px; }

/* ---------------------------------------------------------------------
   TOAST
   --------------------------------------------------------------------- */
.toast-wrap {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 100%; max-width: var(--app-max); padding: 0 16px; z-index: 200;
    display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none;
}
/* Naik bila ada menu bawah atau tombol utama supaya tidak tertutup */
body:has(.bottom-nav) .toast-wrap { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
body:has(.sticky-cta) .toast-wrap { bottom: calc(84px + env(safe-area-inset-bottom)); }
/* Beri ruang untuk tombol keranjang melayang di kanan */
body:has(.keranjang-float) .toast-wrap { padding-right: 106px; }
.toast {
    display: flex; align-items: center; gap: 10px;
    background: #10262C; color: #fff; padding: 12px 15px; border-radius: 14px;
    font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
    animation: toast-in .25s ease; pointer-events: auto;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary-dark); }
.toast.warning { background: #B54708; }
.toast svg { width: 19px; height: 19px; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   LOADING
   --------------------------------------------------------------------- */
.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    animation: spin .7s linear infinite; display: inline-block;
}
.spinner-dark { border-color: var(--line-2); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-box { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px; color: var(--text-2); font-size: 13.5px; }

.skeleton {
    background: linear-gradient(90deg, #EFF3F4 25%, #F7FAFA 37%, #EFF3F4 63%);
    background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.loading-overlay {
    position: fixed; inset: 0; background: rgba(255, 255, 255, .72); z-index: 300;
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.loading-overlay.show { display: flex; }

/* ---------------------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------------------- */
.empty { text-align: center; padding: 46px 26px; }
.empty-ico {
    width: 84px; height: 84px; border-radius: 28px; background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.empty-ico svg { width: 38px; height: 38px; }
.empty-title { font-size: 16px; font-weight: 700; }
.empty-text { font-size: 13.5px; color: var(--text-2); margin-top: 6px; line-height: 1.55; }
.empty .btn { margin-top: 18px; }

/* ---------------------------------------------------------------------
   LIST MENU (profil)
   --------------------------------------------------------------------- */
.menu-list { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu-item {
    display: flex; align-items: center; gap: 13px; padding: 14px 16px;
    border-bottom: 1px solid var(--line); cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: var(--bg); }
.menu-ico {
    width: 36px; height: 36px; border-radius: 11px; background: var(--primary-light);
    color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex: none;
}
.menu-ico svg { width: 19px; height: 19px; }
.menu-label { flex: 1; font-size: 14px; font-weight: 600; }
.menu-item .chev { color: var(--text-3); }

/* Profil */
.profile-head { display: flex; align-items: center; gap: 14px; }

/* Kartu yang baru disimpan disorot sebentar */
.acc-sorot { box-shadow: 0 0 0 2px var(--primary); transition: box-shadow .3s ease; }

/* Badge kecamatan dengan tombol hapus */
.badge-hapus { display: inline-flex; align-items: center; gap: 5px; padding-right: 5px; }
.badge-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border: 0; padding: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .10); color: inherit; cursor: pointer; flex: none;
}
.badge-x:hover, .badge-x:focus-visible { background: var(--danger); color: #fff; }
.badge-x svg { width: 11px; height: 11px; }

/* Tanda merek pada pilihan metode pembayaran */
.merek-logo {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 26px; padding: 0 6px; border-radius: 6px;
    background: var(--merek); color: #fff;
    font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
}
.merek-logo svg { width: 15px; height: 15px; }

/* Daftar mitra yang dibutuhkan pada kartu pesanan */
.mitra-daftar {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--bg); border-radius: 12px; padding: 10px 12px;
}
.mitra-baris { display: flex; align-items: center; gap: 10px; }
.mitra-no {
    width: 20px; height: 20px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 10.5px; font-weight: 800;
}
.mitra-paket { display: block; font-size: 12.5px; font-weight: 700; }
.mitra-nama  { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
.mitra-jam   { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Pilihan alamat tersimpan pada checkout */
.alamat-pilih { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.alamat-opsi .option-desc { line-height: 1.5; }

/* Kalimat jadwal pengerjaan di halaman checkout */
.jadwal-kalimat { font-size: 14.5px; line-height: 1.75; color: var(--text); }

/* Ajakan gabung grup WhatsApp setelah pendaftaran mitra */
.grup-wa { border: 1.5px solid #25D366; }
.grup-wa-ico {
    width: 40px; height: 40px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: #E7F9EE; color: #128C4A;
}

/* Daftar cara bayar yang tersedia di halaman Xendit */
.bayar-grid { display: flex; flex-direction: column; gap: 2px; }
.bayar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--line);
}
.bayar-item:last-child { border-bottom: 0; }
.bayar-ico {
    width: 36px; height: 36px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary-dark);
}

/* Jadwal kerja mitra: satu baris per hari */
.jadwal-list { display: flex; flex-direction: column; gap: 2px; }
.jadwal-baris {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.jadwal-baris:last-child { border-bottom: 0; }
.jadwal-hari { width: 62px; flex: none; font-size: 13px; font-weight: 700; padding-top: 3px; }
.jadwal-atur { padding: 12px 0; border-bottom: 1px solid var(--line); }
.jadwal-atur:last-of-type { border-bottom: 0; }
.jadwal-atur-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jadwal-aksi { display: flex; align-items: center; gap: 2px; flex: none; }
.jadwal-aksi .jadwal-libur { color: var(--danger); }
.jadwal-atur.libur .jadwal-hari { color: var(--text-3); }
.jadwal-atur.libur .chip-group { opacity: .55; }
.jadwal-atur-head .jadwal-hari { width: auto; padding-top: 0; font-size: 14px; }

/* Area kerja mitra: kecamatan dikelompokkan per kabupaten */
.area-kab { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.area-kab:last-of-type { border-bottom: 0; padding-bottom: 2px; }
.area-kab-nama {
    display: flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 700; color: var(--text);
}
.area-kab-nama form { flex: none; margin-left: auto; }
.btn-hapus-kab { padding: 6px 13px; font-size: 12px; border-radius: 9px; }
.area-kab-nama svg { color: var(--primary); }

/* Kepala profil mitra: tanpa judul, jadi foto & nama naik ke atas */
.hero-profil { padding: 16px 16px 22px; }
.hero-profil .profile-head { align-items: flex-start; }
.profil-baris {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; min-height: 24px;
}
.profil-baris .badge { flex: none; margin-top: 1px; }
.profil-notif { flex: none; align-self: flex-start; margin-top: -2px; }

/* Statistik mitra di dalam kartu Akun */
.mitra-statistik { padding: 2px 0 14px; }
.stat-garis { width: 1px; height: 34px; background: var(--line); flex: none; }
.avatar {
    width: 60px; height: 60px; border-radius: 50%; flex: none; object-fit: cover;
    background: var(--primary-light); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800;
    border: 2px solid rgba(255, 255, 255, .6);
}
.avatar-sm { width: 42px; height: 42px; font-size: 15px; }
.avatar-lg { width: 82px; height: 82px; font-size: 28px; }

/* Rating bintang */
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: 0; cursor: pointer; color: var(--line-2); padding: 0; }
.stars button svg { width: 34px; height: 34px; }
.stars button.on { color: var(--accent); fill: var(--accent); }
.stars button.on svg { fill: var(--accent); }
.star-inline { color: var(--accent); fill: var(--accent); width: 14px; height: 14px; }

/* Statistik */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.stat-value { font-size: 19px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }

/* Banner promo */
.promo-banner {
    display: flex; align-items: center; gap: 13px; padding: 14px;
    background: linear-gradient(120deg, #FFF3D6, #FFE7AE); border-radius: var(--radius); color: #6B4B00;
}
.promo-banner .promo-ico {
    width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .65);
    display: flex; align-items: center; justify-content: center; flex: none;
}
.promo-code {
    font-weight: 800; letter-spacing: 1px; background: rgba(255, 255, 255, .7);
    padding: 4px 10px; border-radius: 8px; font-size: 12px; border: 1px dashed #C79A2E;
}

/* Toggle online */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.switch input { display: none; }
.switch-slider {
    position: absolute; inset: 0; background: var(--line-2); border-radius: 999px;
    transition: background .2s; cursor: pointer;
}
.switch-slider::before {
    content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch-slider { background: var(--success); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); }

/* Timer mitra */
.timer-box {
    background: linear-gradient(160deg, var(--primary), var(--primary-dark));
    color: #fff; border-radius: var(--radius-lg); padding: 22px; text-align: center;
}
.timer-value { font-size: 38px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.timer-label { font-size: 12.5px; opacity: .9; margin-top: 4px; }

/* Tab */
.tabs { display: flex; gap: 4px; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 8px; position: sticky; top: 0; z-index: 30; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 13px 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
    border-bottom: 2.5px solid transparent; white-space: nowrap; cursor: pointer;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Auth page */
.auth-wrap { padding: 30px 22px 40px; min-height: 100vh; background: var(--white); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-logo-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.auth-sub { font-size: 14px; color: var(--text-2); margin-top: 6px; margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 24px; font-size: 13.5px; color: var(--text-2); }
.auth-foot a { color: var(--primary); font-weight: 700; }

/* Info box */
.info-box {
    display: flex; gap: 10px; padding: 12px 14px; border-radius: 13px;
    background: var(--info-light); color: #1849A9; font-size: 12.5px; line-height: 1.55;
}
.info-box.warn { background: var(--warning-light); color: #B54708; }
.info-box.ok { background: var(--success-light); color: #12734F; }
.info-box.err { background: var(--danger-light); color: #B42318; }
.info-box svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Daftar cakupan layanan */
.include-list { list-style: none; }
.include-list li {
    display: flex; align-items: flex-start; gap: 9px; font-size: 13px;
    color: var(--text-2); padding: 4px 0;
}
.include-list li svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 2px; }

/* Aksesibilitas */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 600px) {
    body { background: #E4EBEC; }
    .app { min-height: 100vh; }
}

/* =====================================================================
   PEMBAYARAN - pilihan metode di checkout
   ===================================================================== */
.bayar-grup {
    display: flex; align-items: center; gap: 7px;
    margin: 18px 0 9px;
}
.bayar-grup:first-of-type { margin-top: 2px; }
.bayar-grup svg { width: 15px; height: 15px; color: var(--text-3); }
.bayar-grup-judul {
    font-size: 11px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: var(--text-3);
}

/* Satu metode satu baris, menurun ke bawah */
.bayar-pilihan { display: flex; flex-direction: column; gap: 8px; }

.metode {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 13px; background: var(--white);
    border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
    cursor: pointer; transition: border-color .15s, background .15s;
    min-width: 0;
}
.metode:hover { border-color: var(--primary); }
.metode.active { border-color: var(--primary); background: var(--primary-light); }
.metode input { display: none; }

/* Semua metode kini selebar baris; kelas ini dipertahankan agar markup lama tetap aman */
.metode-lebar { width: 100%; }

.metode-radio {
    width: 19px; height: 19px; flex: none; border-radius: 50%;
    border: 2px solid var(--line-2); position: relative; transition: border-color .15s;
}
.metode.active .metode-radio { border-color: var(--primary); }
.metode.active .metode-radio::after {
    content: ""; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--primary);
}
.metode-nama {
    display: block; font-size: 14px; font-weight: 600; color: var(--text);
    line-height: 1.3;
}
.metode-catatan {
    display: block; font-size: 12px; color: var(--text-2);
    margin-top: 2px; line-height: 1.4; white-space: normal;
}

/* =====================================================================
   PEMBAYARAN - instruksi di halaman tagihan
   ===================================================================== */
.bayar-nominal {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 14px 0 16px;
}
.bayar-nominal-label { font-size: 12px; color: var(--text-2); }
.bayar-nominal-angka {
    font-size: 28px; font-weight: 800; letter-spacing: -.6px; color: var(--text);
    font-variant-numeric: tabular-nums;
}

.qr-wrap { display: flex; justify-content: center; padding-bottom: 4px; }
.qr-img {
    width: 240px; height: 240px; max-width: 100%;
    padding: 10px; background: var(--white);
    border: 1.5px solid var(--line-2); border-radius: var(--radius);
}

.bayar-kode-box {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 18px 14px 14px;
    background: var(--primary-light);
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius);
}
.bayar-kode-label {
    font-size: 11px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: var(--primary-dark);
}
.bayar-kode {
    font-size: 25px; font-weight: 800; letter-spacing: 2px; line-height: 1.2;
    font-variant-numeric: tabular-nums; color: var(--text);
    text-align: center; word-break: break-all;
}
.bayar-salin {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--primary-dark); background: var(--white);
    border: 1.5px solid var(--primary); border-radius: 100px; cursor: pointer;
}
.bayar-salin:active { transform: scale(.98); }
.bayar-salin svg { width: 15px; height: 15px; }

.bayar-langkah {
    list-style: none; counter-reset: langkah;
    display: grid; gap: 10px; margin: 16px 0 0; padding: 0;
}
/* Nomor langkah diposisikan absolut, bukan sebagai grid item, supaya tag
   inline seperti <b> di dalam teks tidak ikut terpecah jadi kolom sendiri. */
.bayar-langkah li {
    counter-increment: langkah;
    position: relative; padding-left: 32px; min-height: 22px;
    font-size: 13.5px; line-height: 1.55; color: var(--text-2);
}
.bayar-langkah li::before {
    content: counter(langkah);
    position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 11.5px; font-weight: 700; line-height: 22px; text-align: center;
}
.bayar-langkah b { color: var(--text); font-weight: 600; }

.bayar-status {
    display: flex; align-items: center; gap: 9px;
    margin-top: 14px; padding: 11px 13px;
    background: var(--warning-light); color: #B54708;
    border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.45;
}
.bayar-titik {
    width: 8px; height: 8px; flex: none; border-radius: 50%;
    background: var(--warning); animation: bayar-denyut 1.5s ease-in-out infinite;
}
@keyframes bayar-denyut { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bayar-titik { animation: none; } }
