/* =====================================================================
   DD AUTO MOBILINDO - Tema Navy + Merah Glowing
   ===================================================================== */
:root {
    --navy-950: #040a18;
    --navy-900: #071027;
    --navy-850: #0a1633;
    --navy-800: #0d1c40;
    --navy-700: #13275a;
    --navy-600: #1b3576;
    --red: #ff2436;
    --red-600: #e0182a;
    --red-700: #b80f1f;
    --red-soft: rgba(255, 36, 54, .14);
    --glow: 0 0 8px rgba(255, 36, 54, .75), 0 0 22px rgba(255, 36, 54, .45), 0 0 46px rgba(255, 36, 54, .2);
    --glow-sm: 0 0 6px rgba(255, 36, 54, .6), 0 0 16px rgba(255, 36, 54, .3);
    --silver: #e3e8f2;
    --text: #dfe6f5;
    --muted: #8d9ab8;
    --line: rgba(160, 185, 235, .12);
    --line-strong: rgba(160, 185, 235, .22);
    --card: linear-gradient(160deg, rgba(27, 53, 118, .35), rgba(10, 22, 51, .8));
    --card-solid: #0c1a3c;
    --green: #2fd68a;
    --amber: #ffb547;
    --radius: 14px;
    --radius-sm: 9px;
    --font-head: 'Exo 2', system-ui, sans-serif;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --sidebar-w: 256px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text);
    background: var(--navy-900);
    background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255, 36, 54, .10), transparent 60%),
                      radial-gradient(900px 600px at -10% 20%, rgba(27, 53, 118, .55), transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff5a68; text-decoration: none; transition: color .2s; }
a:hover { color: #ff8a94; }
h1, h2, h3, h4 { font-family: var(--font-head); color: #fff; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 800; font-style: italic; letter-spacing: -.5px; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }
code { font-size: .82em; color: var(--silver); background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.glow-text { text-shadow: var(--glow); }
.hidden { display: none !important; }
.mt { margin-top: 1.2rem; } .mt-lg { margin-top: 3rem; } .mb { margin-bottom: 1rem; } .pt-0 { padding-top: 0 !important; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.25em; border-radius: var(--radius-sm); border: 1px solid transparent;
    font: 600 .95rem/1.2 var(--font); cursor: pointer; transition: all .2s; white-space: nowrap;
    color: #fff; background: transparent; text-decoration: none;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red-700)); box-shadow: var(--glow-sm); }
.btn-red:hover { box-shadow: var(--glow); }
.btn-outline { border-color: rgba(255, 36, 54, .6); color: #ffd5d9; }
.btn-outline:hover { background: var(--red-soft); box-shadow: var(--glow-sm); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.btn-danger-outline { border-color: rgba(255, 36, 54, .5); color: #ff7a85; background: transparent; }
.btn-danger-outline:hover { background: var(--red-soft); color: #fff; }
.btn-sm { padding: .45em .85em; font-size: .85rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.icon-btn {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font-size: 1.05rem;
    transition: all .2s;
}
.icon-btn:hover { border-color: var(--red); color: #fff; box-shadow: var(--glow-sm); }
.icon-btn.danger:hover { background: var(--red-soft); }

/* ------------------------------ Alerts / badges ------------------------------ */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid; font-size: .93rem; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert-success { background: rgba(47, 214, 138, .1); border-color: rgba(47, 214, 138, .4); color: #b7f5d6; }
.alert-danger { background: rgba(255, 36, 54, .1); border-color: rgba(255, 36, 54, .45); color: #ffc2c7; }
.alert-warning { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .4); color: #ffe0b0; }
.alert-info { background: rgba(80, 140, 255, .08); border-color: rgba(80, 140, 255, .35); color: #c9dbff; }
.badge { display: inline-block; padding: .2em .65em; border-radius: 99px; font-size: .75rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.badge-available, .badge-paid, .badge-valid { color: var(--green); border-color: rgba(47, 214, 138, .4); background: rgba(47, 214, 138, .08); }
.badge-booked, .badge-open { color: var(--amber); border-color: rgba(255, 181, 71, .4); background: rgba(255, 181, 71, .08); }
.badge-sold, .badge-void { color: #ff7a85; border-color: rgba(255, 36, 54, .45); background: var(--red-soft); }
.badge-hidden { color: var(--muted); border-color: var(--line-strong); }
.role-badge { display: inline-block; padding: .15em .7em; border-radius: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.role-owner { background: linear-gradient(135deg, var(--red), var(--red-700)); color: #fff; box-shadow: var(--glow-sm); }
.role-admin { background: var(--navy-600); color: #cfe0ff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot-in { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-out { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ------------------------------ Forms ------------------------------ */
label { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: .9rem; }
input, select, textarea {
    display: block; width: 100%; margin-top: .35rem; padding: .68rem .85rem;
    background: rgba(4, 10, 24, .6); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    color: #fff; font: 400 .95rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 36, 54, .18), var(--glow-sm); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
select option { background: var(--navy-850); }
input[type="date"] { color-scheme: dark; }
input[type="checkbox"], input[type="radio"] { width: auto; display: inline-block; margin: 0 .45rem 0 0; accent-color: var(--red); }
input.big { font-size: 1.25rem; font-weight: 700; font-family: var(--font-head); }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; color: var(--text); cursor: pointer; }
label.tax-check { align-items: flex-start; gap: .55rem; padding: .7rem .8rem; border: 1px dashed rgba(255, 181, 71, .45); border-radius: var(--radius-sm); background: rgba(255, 181, 71, .06); }
label.tax-check input { margin-top: .2rem; }
label.tax-check span { display: flex; flex-direction: column; gap: .15rem; }
.tax-status { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.tax-status form { margin-left: auto; }
.hint { font-size: .82rem; color: var(--muted); }
.hint-list { font-size: .85rem; color: var(--muted); padding-left: 1.1rem; }
.form.narrow { max-width: 760px; }
.row-2, .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 1.25rem; }
.grid-2:has(> .card), .grid-3:has(> .card) { gap: 0 1.25rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.sticky { position: sticky; top: 80px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.2rem; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; color: var(--text); font-weight: 600; text-align: center; transition: all .2s; }
.segmented input:checked + span { border-color: var(--red); background: var(--red-soft); box-shadow: var(--glow-sm); color: #fff; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 1.6rem; text-align: center; cursor: pointer; transition: all .2s; color: var(--muted); position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: var(--red-soft); color: #fff; }
.dropzone i { font-size: 2rem; display: block; color: var(--red); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.photo-grid.preview:empty { display: none; }
.photo-grid.preview { margin-top: 1rem; }
.photo-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--navy-950); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item.primary { border-color: var(--red); box-shadow: var(--glow-sm); }
.photo-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; padding: .4rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.photo-actions .icon-btn { width: 30px; height: 30px; font-size: .9rem; background: rgba(0, 0, 0, .5); }
.danger-zone { margin-top: 1.5rem; text-align: right; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------ Card / table ------------------------------ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; backdrop-filter: blur(6px); }
.card.p-0 { padding: 0; overflow: hidden; }
.card-title { font-size: 1.05rem; font-style: normal; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-title i { color: var(--red); }
.card-title.pad { padding: 1.1rem 1.25rem 0; }
.sub-title { font-size: .95rem; color: var(--silver); margin: 1.2rem 0 .7rem; display: flex; align-items: center; gap: .4rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; background: rgba(4, 10, 24, .35); white-space: nowrap; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; color: #fff; background: rgba(255, 36, 54, .07); border-top: 1px solid var(--red); }
.table.compact th, .table.compact td { padding: .55rem .9rem; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.table .actions > * + * { margin-left: .3rem; }
.table small { font-size: .78rem; }
.empty-row { text-align: center !important; color: var(--muted); padding: 2rem !important; }
.row-void td { opacity: .5; text-decoration: line-through; }
.row-warn td { background: rgba(255, 36, 54, .05); }
.table.statement td { padding: .55rem .4rem; }
.table.statement tr.head td { color: var(--red); font-weight: 700; font-family: var(--font-head); padding-top: 1rem; border-bottom-color: var(--line-strong); }
.table.statement td.indent { padding-left: 1.3rem; color: var(--text); }
.table.statement tr.subtotal td { font-weight: 700; color: #fff; border-top: 1px solid var(--line-strong); }
.table.statement tr.total td { font-weight: 800; font-size: 1.05rem; color: #fff; border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); background: var(--red-soft); }
.unit-cell { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.unit-cell img { width: 64px; height: 46px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex-shrink: 0; }
.unit-cell strong { display: block; color: #fff; }
.unit-cell small { color: var(--muted); }
.spec-table { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.spec-table.single { grid-template-columns: 1fr; }
.spec-table > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.spec-table dt { color: var(--muted); font-size: .88rem; }
.spec-table dt i { color: var(--red); margin-right: .3rem; }
.spec-table dd { margin: 0; text-align: right; color: #fff; font-weight: 500; }

/* ------------------------------ Pagination ------------------------------ */
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 1.5rem 0; flex-wrap: wrap; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 .6rem; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--text); }
.pagination a.active, .pagination a:hover { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--glow-sm); }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 10, 24, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: var(--glow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 56px; width: auto; border-radius: 6px; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a:not(.btn) { color: var(--text); font-weight: 500; position: relative; padding: .4rem 0; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); box-shadow: var(--glow-sm); transition: width .25s; }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { width: 100%; }
.main-nav > a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: #fff; font-size: 1.5rem; border-radius: 9px; width: 44px; height: 44px; cursor: pointer; }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; }
.eyebrow.center { display: flex; justify-content: center; }
.section { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(13, 28, 64, .5), rgba(4, 10, 24, .3)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-style: italic; font-weight: 800; }
.section-title.center { text-align: center; margin-bottom: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 3rem; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.speed-arc { position: absolute; right: -180px; top: -120px; width: 760px; height: 760px; opacity: .55; animation: spin 60s linear infinite; }
.arc { fill: none; stroke-linecap: round; }
.arc-silver { stroke: rgba(227, 232, 242, .25); stroke-width: 3; stroke-dasharray: 900 800; }
.arc-red { stroke: var(--red); stroke-width: 14; stroke-dasharray: 60 22; filter: drop-shadow(0 0 10px var(--red)); opacity: .6; }
.glow-line { position: absolute; left: -10%; right: -10%; bottom: 18%; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: var(--glow); transform: rotate(-4deg); opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 .text-red { display: inline-block; }
.lead { font-size: 1.08rem; color: #b8c4de; max-width: 560px; }
.hero-search { display: flex; align-items: center; gap: .5rem; background: rgba(4, 10, 24, .7); border: 1px solid var(--line-strong); border-radius: 14px; padding: .4rem .4rem .4rem 1rem; max-width: 560px; margin: 1.5rem 0; transition: all .2s; }
.hero-search:focus-within { border-color: var(--red); box-shadow: var(--glow-sm); }
.hero-search i { color: var(--muted); }
.hero-search input { border: 0; background: transparent; margin: 0; padding: .6rem .3rem; box-shadow: none !important; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.logo-glow { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 36, 54, .35); box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px rgba(0, 0, 0, .5), var(--glow-sm); animation: float 6s ease-in-out infinite; }
.logo-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%); animation: shine 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-align: center; }
.stat strong { display: block; font: 800 italic 2.3rem/1 var(--font-head); color: #fff; text-shadow: var(--glow); }
.stat span { color: var(--muted); font-size: .85rem; }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
.vm-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; margin-top: 1.5rem; }
.vm-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.vm-card h3 { font-size: 1.05rem; } .vm-card h3 i { color: var(--red); }
.vm-card p { margin: 0; color: #b8c4de; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; color: #c3cee6; }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--red); text-shadow: var(--glow-sm); }
.check-list.cols-2 { columns: 2; column-gap: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: all .3s; }
.feature:hover { border-color: rgba(255, 36, 54, .5); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35), var(--glow-sm); }
.feature i { font-size: 1.9rem; color: var(--red); text-shadow: var(--glow); }
.feature h3 { font-size: 1.05rem; margin: .7rem 0 .4rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Car cards */
.car-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.car-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.car-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.car-card:hover { transform: translateY(-6px); border-color: rgba(255, 36, 54, .55); box-shadow: 0 24px 48px rgba(0, 0, 0, .45), var(--glow-sm); }
.car-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-950); display: block; }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car-card:hover .car-card-img img { transform: scale(1.06); }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px; box-shadow: var(--glow-sm); }
.ribbon-amber { background: var(--amber); color: #2b1a00; box-shadow: 0 0 12px rgba(255, 181, 71, .6); }
.year-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(4, 10, 24, .85); color: #fff; font: 700 italic .85rem var(--font-head); padding: .2rem .6rem; border-radius: 6px; border: 1px solid var(--line-strong); }
.car-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.car-card-body h3 { font-size: 1.08rem; margin: 0; }
.car-card-body h3 a { color: #fff; }
.variant { color: var(--muted); font-size: .85rem; margin: .15rem 0 .7rem; }
.variant.big { font-size: 1.05rem; }
.spec-chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.spec-chips li { font-size: .75rem; padding: .25rem .55rem; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #c3cee6; }
.spec-chips i { color: var(--red); }
.car-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font: 800 italic 1.15rem var(--font-head); color: #fff; }
.brand-strip { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2.5rem; }
.brand-chip { padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: .9rem; }
.brand-chip small { color: var(--red); margin-left: .25rem; }
.brand-chip:hover { border-color: var(--red); color: #fff; box-shadow: var(--glow-sm); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; }
.step span { font: 800 italic 2.6rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--red); text-shadow: var(--glow-sm); }
.step h3 { margin: .8rem 0 .4rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { display: flex; gap: .7rem; margin-bottom: .6rem; color: #c3cee6; }
.contact-list i { color: var(--red); }
.contact-list.big li { font-size: 1.05rem; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16/10; background: var(--card); }
.map-box iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.map-placeholder { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 1rem; }
.map-placeholder i { font-size: 3rem; color: var(--red); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty i { font-size: 2.5rem; color: var(--red); }

.site-footer { border-top: 1px solid var(--line); background: var(--navy-950); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 2rem; }
.footer-logo { width: 190px; border-radius: 10px; margin-bottom: .8rem; }
.site-footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.link-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.link-list li { margin-bottom: .45rem; }
.link-list a { color: #c3cee6; } .link-list a:hover { color: var(--red); }
.social { color: #c3cee6; }
.copyright { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); font-size: .85rem; text-align: center; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(0, 0, 0, .4), 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.2s infinite; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
@keyframes pulse { 70% { box-shadow: 0 10px 25px rgba(0, 0, 0, .4), 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 10px 25px rgba(0, 0, 0, .4), 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Catalog */
.page-hero { padding: 3.5rem 0 2rem; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 16px; bottom: 1rem; width: 90px; height: 3px; background: var(--red); box-shadow: var(--glow); }
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.filter-box { position: sticky; top: 90px; }
.filter-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.filter-form .btn { margin-top: .4rem; }
.filter-toggle { display: none; margin-bottom: 1rem; }

/* Detail */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: .7rem; }
.detail-section { padding-top: 2rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4/3; background: var(--navy-950); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery-thumbs button { flex: 0 0 96px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .6; transition: all .2s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--red); opacity: 1; box-shadow: var(--glow-sm); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: .2rem; }
.price-box { margin: 1.2rem 0; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 36, 54, .16), rgba(255, 36, 54, .04)); border: 1px solid rgba(255, 36, 54, .4); }
.price-box span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; display: block; }
.price-box strong { font: 800 italic clamp(1.7rem, 4vw, 2.3rem)/1.2 var(--font-head); color: #fff; display: block; }
.price-box small { color: #ffb3ba; }
.quick-specs { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.quick-specs li { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-weight: 500; }
.quick-specs i { color: var(--red); font-size: 1.1rem; }
.detail-info .btn-block { margin-bottom: .6rem; }
.credit-sim { margin-top: 1.2rem; }
.credit-sim h3 { font-size: 1.05rem; } .credit-sim h3 i { color: var(--red); }
.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.sim-result div { background: rgba(4, 10, 24, .5); border-radius: 9px; padding: .7rem .8rem; border: 1px solid var(--line); }
.sim-result span { display: block; font-size: .75rem; color: var(--muted); }
.sim-result strong { font: 700 1.05rem var(--font-head); color: #fff; }
.detail-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.prose { color: #c3cee6; }

/* Login & error */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-wrap { width: 100%; max-width: 420px; }
.login-card { background: var(--card); border: 1px solid rgba(255, 36, 54, .3); border-radius: 20px; padding: 2rem 1.8rem; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), var(--glow-sm); text-align: center; }
.login-logo img { width: 230px; margin: 0 auto 1rem; border-radius: 12px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.login-card form { text-align: left; margin-top: 1.4rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; margin-top: .18rem; }
.input-icon input { padding-left: 2.6rem; padding-top: .85rem; padding-bottom: .85rem; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: .18rem; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; padding: .4rem; }
.back-link { display: inline-block; margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; text-align: center; }
.error-code { font: 800 italic clamp(5rem, 18vw, 9rem)/1 var(--font-head); color: var(--red); }

/* =====================================================================
   PANEL
   ===================================================================== */
.panel { background-attachment: fixed; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); background: linear-gradient(180deg, var(--navy-950), var(--navy-850)); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; z-index: 80; transition: transform .3s; padding-bottom: 1.5rem; }
.sidebar::after { content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--red), transparent); box-shadow: var(--glow-sm); opacity: .7; }
.sidebar-brand { display: block; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.sidebar-brand img { width: 100%; max-width: 190px; border-radius: 8px; }
.sidebar nav { padding: .5rem .7rem; }
.nav-group { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding: 1.1rem .7rem .4rem; font-weight: 700; }
.sidebar nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 9px; color: #b8c4de; font-size: .92rem; font-weight: 500; margin-bottom: 2px; transition: all .2s; position: relative; }
.sidebar nav a i { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(255, 36, 54, .22), rgba(255, 36, 54, .03)); color: #fff; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -.7rem; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); box-shadow: var(--glow); }
.sidebar nav a.active i { color: var(--red); text-shadow: var(--glow-sm); }
.sidebar-backdrop { display: none; }
.panel-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; background: rgba(4, 10, 24, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar [data-sidebar-toggle] { display: none; }
.topbar-title { font-size: 1.15rem; font-style: italic; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-user { display: flex; align-items: center; gap: .7rem; }
.topbar-user form { margin: 0; }
.user-name { font-weight: 600; color: #fff; font-size: .9rem; }
.panel-content { padding: 1.5rem; flex: 1; }
.greeting { color: var(--muted); margin-bottom: 1.2rem; }
.greeting strong { color: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: all .25s; }
.kpi:hover { border-color: rgba(255, 36, 54, .45); transform: translateY(-2px); }
.kpi.glow { border-color: rgba(255, 36, 54, .45); box-shadow: inset 0 0 40px rgba(255, 36, 54, .07), var(--glow-sm); }
.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: .8; }
.kpi-icon { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 1.2rem; text-shadow: var(--glow-sm); }
.kpi > span { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; padding-right: 48px; }
.kpi > strong { display: block; font: 800 italic clamp(1.15rem, 1.8vw, 1.5rem)/1.3 var(--font-head); color: #fff; margin: .35rem 0 .2rem; word-break: break-word; }
.kpi > small { color: var(--muted); font-size: .78rem; display: block; }
.delta { display: inline-flex !important; align-items: center; font-weight: 600; margin-left: .3rem; }
.delta.up { color: var(--green) !important; } .delta.down { color: #ff7a85 !important; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.kpi-mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.kpi-mini span { display: block; color: var(--muted); font-size: .76rem; }
.kpi-mini small { display: block; font-size: .72rem; margin-top: .15rem; }
.kpi-mini strong { font: 700 1.1rem/1.4 var(--font-head); color: #fff; word-break: break-word; }
.mini-stats { display: grid; gap: .4rem; margin: .5rem 0 1rem; padding: .8rem; border-radius: var(--radius-sm); background: rgba(4, 10, 24, .5); border: 1px solid var(--line); }
.mini-stats div { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.mini-stats span { color: var(--muted); }
.alert-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text); font-size: .85rem; background: rgba(4, 10, 24, .4); }
.pill i { color: var(--red); }
.pill:hover { color: #fff; border-color: var(--red); }
.pill-warn { border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .08); }
.pill-danger { border-color: var(--red); background: var(--red-soft); box-shadow: var(--glow-sm); animation: blink 2s infinite; }
@keyframes blink { 50% { box-shadow: none; } }
.chart-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 1.25rem; }
.chart-grid > .card { margin-bottom: 1.25rem; min-width: 0; }
.chart-grid.two { grid-template-columns: 1fr 1fr; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 240px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.toolbar-right form { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; background: rgba(4, 10, 24, .5); padding: .3rem; border-radius: 11px; border: 1px solid var(--line); }
.tabs a { padding: .45rem .85rem; border-radius: 8px; color: var(--muted); font-size: .88rem; font-weight: 500; }
.tabs a small { opacity: .7; margin-left: .2rem; }
.tabs a.active { background: var(--red); color: #fff; box-shadow: var(--glow-sm); }
.tabs a:hover:not(.active) { color: #fff; }
.search-inline input { margin: 0; min-width: 220px; }
.date-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.date-filter label { margin: 0; }
.date-filter input, .date-filter select { padding: .55rem .7rem; min-width: 140px; }
.quick-range { display: flex; gap: .3rem; flex-wrap: wrap; }
.quick-range a { font-size: .8rem; padding: .45rem .7rem; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.quick-range a:hover { color: #fff; border-color: var(--red); }
.aging { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.aging > div { padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(4, 10, 24, .5); border: 1px solid var(--line); border-top: 3px solid var(--green); }
.aging > div span { display: block; font-size: .78rem; color: var(--muted); }
.aging > div strong { font-family: var(--font-head); color: #fff; }
.aging-1_30 { border-top-color: var(--amber) !important; }
.aging-31_60 { border-top-color: #ff8c42 !important; }
.aging-61_90, .aging-90_plus { border-top-color: var(--red) !important; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.qa { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.3rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: #fff; font-weight: 600; transition: all .25s; text-align: center; }
.qa i { font-size: 1.8rem; color: var(--red); text-shadow: var(--glow-sm); }
.qa:hover { color: #fff; border-color: var(--red); box-shadow: var(--glow-sm); transform: translateY(-3px); }

/* Invoice */
.invoice-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; border-bottom: 2px solid var(--red); padding-bottom: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.invoice-head img { width: 170px; border-radius: 8px; }
.invoice-meta { text-align: right; }
.invoice .table tr.total td { font-weight: 800; color: #fff; border-top: 1px solid var(--line-strong); }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; text-align: center; }
.signatures span { color: var(--muted); font-size: .85rem; }
.sign-line { margin-top: 4rem; border-top: 1px solid var(--line-strong); padding-top: .4rem; font-weight: 600; }
.print-head { display: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
    .chart-grid { grid-template-columns: 1fr 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .car-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 70; }
    .panel-main { margin-left: 0; }
    .topbar [data-sidebar-toggle] { display: inline-grid; }
    .form-layout { grid-template-columns: 1fr; }
    .sticky { position: static; }
    .hero-grid, .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 520px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filter-box { position: static; }
    .filter-toggle { display: flex; }
    .filter-form { display: none; }
    .filter-form.open { display: block; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav-toggle { display: grid; place-items: center; }
    .main-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem; background: rgba(4, 10, 24, .97); border-bottom: 1px solid var(--line); display: none; }
    .main-nav.open { display: flex; }
    .main-nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
    .main-nav .btn { margin-top: .8rem; }
    .car-grid, .car-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .detail-lower, .grid-2, .grid-3, .chart-grid, .chart-grid.two { grid-template-columns: 1fr; }
    .spec-table { grid-template-columns: 1fr; }
    .vm-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .user-name { display: none; }
    .panel-content { padding: 1rem; }
    .topbar { padding: 0 1rem; }
    .section { padding: 3.5rem 0; }
}
@media (max-width: 560px) {
    body { font-size: 14.5px; }
    .car-grid, .car-grid.grid-3 { grid-template-columns: 1fr; }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .check-list.cols-2 { columns: 1; }
    .segmented { grid-template-columns: 1fr; }
    .hero-cta .btn { flex: 1 1 100%; }
    .search-inline input { min-width: 0; }
    .toolbar-right, .toolbar-right > *, .date-filter, .date-filter label { width: 100%; }
    .date-filter input, .date-filter select { min-width: 0; }
    .signatures { gap: 1rem; }
    .invoice-meta { text-align: left; }
    .brand img { height: 46px; }
}

/* =====================================================================
   PRINT
   ===================================================================== */
/* Kertas: laporan A4 landscape (tabel lebar muat), invoice A4 portrait */
@page { size: A4 landscape; margin: 10mm 9mm 12mm; }
@page invoice { size: A4 portrait; margin: 12mm; }

@media print {
    html, body, body.panel { background: #fff !important; color: #000 !important; font-size: 9pt; line-height: 1.35; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sidebar, .sidebar-backdrop, .topbar, .toolbar, .no-print, .wa-float, .site-header, .site-footer, .alert, .alert-strip, .maint-banner,
    .date-filter, .pagination, .actions, .greeting, dialog, .form-side, form.form, .btn { display: none !important; }
    .panel-main { margin: 0 !important; display: block; min-height: 0; }
    .panel-content { padding: 0 !important; }
    .panel-content *, .panel-content *::before { color: #000 !important; text-shadow: none !important; box-shadow: none !important; }

    /* Tabel tidak boleh terpotong: lepas scroll, izinkan teks membungkus, ukuran huruf kecil */
    .table-wrap { overflow: visible !important; }
    .table { width: 100% !important; font-size: 8pt; table-layout: auto; }
    .table th, .table td { padding: 3pt 4pt !important; border: 1px solid #bbb !important; white-space: normal !important; word-break: normal; overflow-wrap: break-word; }
    .table th { background: #e9edf3 !important; font-size: 7.5pt; letter-spacing: 0; }
    .table .num { white-space: nowrap !important; }
    .table thead { display: table-header-group; }   /* judul kolom diulang di setiap halaman */
    .table tfoot { display: table-row-group; }
    .table tr { break-inside: avoid; page-break-inside: avoid; }
    .table tfoot td, .table.statement tr.total td { background: #f1f1f1 !important; border-top: 2px solid #000 !important; }
    .table.statement tr.head td { padding-top: 6pt !important; }
    .unit-cell { min-width: 0; } .unit-cell img { display: none; }
    .badge, .role-badge { border: 1px solid #777 !important; background: none !important; padding: 0 4pt; }
    .dot { display: none; }

    .card, .kpi-mini, .kpi { background: #fff !important; border: 1px solid #bbb !important; border-radius: 4pt; padding: 6pt 8pt !important; margin-bottom: 8pt !important; backdrop-filter: none; }
    .card.p-0 { padding: 0 !important; }
    .card-title { font-size: 10.5pt; margin-bottom: 5pt; }
    .card-title.pad { padding: 6pt 8pt 0 !important; }
    .kpi-row { grid-template-columns: repeat(auto-fit, minmax(90pt, 1fr)); gap: 5pt; margin-bottom: 8pt; }
    .kpi-mini span { font-size: 7.5pt; }
    .kpi-mini strong, .kpi > strong { font-size: 10pt; }
    .kpi-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 5pt; }
    .kpi-icon { display: none; }
    .grid-2, .chart-grid, .chart-grid.two { grid-template-columns: 1fr 1fr !important; gap: 8pt !important; }
    .grid-3 { grid-template-columns: repeat(3, 1fr) !important; gap: 8pt !important; }
    .form-layout { display: block; }
    .chart-box { height: 170pt !important; overflow: hidden; break-inside: avoid; }
    .chart-box canvas { width: 100% !important; height: 100% !important; }
    .aging { grid-template-columns: repeat(5, 1fr); }

    .print-head { display: block !important; text-align: center; margin-bottom: 8pt; padding-bottom: 6pt; border-bottom: 2px solid #000; }
    .print-head h2 { font-size: 13pt; margin: 0 0 2pt; color: #000 !important; }
    .print-head p { margin: 0; font-size: 9pt; }
    a { color: #000 !important; text-decoration: none; }
    h1, h2, h3 { break-after: avoid; }

    /* Invoice */
    .invoice { page: invoice; border: none !important; font-size: 10pt; }
    .invoice .table { font-size: 10pt; }
}

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

/* ------------------------------ Pilihan watermark ------------------------------ */
.wm-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .6rem; }
.wm-option { margin: 0; cursor: pointer; }
.wm-option input { position: absolute; opacity: 0; pointer-events: none; }
.wm-preview { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line-strong); transition: all .2s; }
.wm-preview img { width: 100%; height: 100%; object-fit: cover; }
.wm-preview .wm-logo { position: absolute; left: 50%; top: 50%; width: 38%; height: auto; transform: translate(-50%, -50%); object-fit: contain; }
.wm-logo.wm-soft { opacity: .22; }
.wm-logo.wm-medium { opacity: .38; }
.wm-label { display: block; text-align: center; margin-top: .4rem; color: var(--text); font-weight: 600; font-size: .85rem; }
.wm-option input:checked + .wm-preview { border-color: var(--red); box-shadow: var(--glow-sm); }
.wm-option input:focus-visible + .wm-preview { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 560px) { .wm-options { gap: .45rem; } .wm-label { font-size: .75rem; } }

/* ------------------------------ Maintenance ------------------------------ */
.text-amber { color: var(--amber) !important; }
.check-icon { width: 36px; font-size: 1.1rem; }
.maint-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-sm); background: rgba(255, 181, 71, .12); border: 1px solid rgba(255, 181, 71, .5); color: #ffe0b0; }
.maint-owner-bar { position: sticky; top: 0; z-index: 200; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; padding: .55rem 1rem; background: #3a2a06; border-bottom: 1px solid var(--amber); color: #ffe0b0; font-size: .88rem; text-align: center; }
.maint-owner-bar a { color: #fff; font-weight: 600; text-decoration: underline; }
.maintenance-page .maint-owner-bar { position: fixed; left: 0; right: 0; }
.maint-banner:hover { color: #fff; border-color: var(--amber); }
.maint-status { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; margin-bottom: 1.1rem; border-radius: var(--radius-sm); background: rgba(4, 10, 24, .5); border: 1px solid var(--line); }
.maint-status strong { display: block; color: #fff; font-family: var(--font-head); letter-spacing: .5px; }
.maint-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: var(--green); box-shadow: 0 0 10px var(--green); }
.maint-dot.on { background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: blink 1.4s infinite; }
.card.maint-on { border-color: rgba(255, 181, 71, .5); }
.maintenance-page { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; text-align: center; }
.maint-box { max-width: 620px; width: 100%; background: var(--card); border: 1px solid rgba(255, 36, 54, .3); border-radius: 22px; padding: 2.2rem 1.6rem; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), var(--glow-sm); }
.maint-logo { width: 220px; margin: 0 auto 1rem; border-radius: 12px; }
.maint-gauge { font-size: 3rem; color: var(--red); text-shadow: var(--glow); margin-bottom: .4rem; }
.maint-gauge i { display: inline-block; animation: spin 6s linear infinite; }
.maint-box h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.maint-box .lead { margin: 0 auto 1.4rem; }
.maint-eta { display: inline-block; padding: .9rem 1.4rem; border-radius: var(--radius); border: 1px solid rgba(255, 36, 54, .4); background: var(--red-soft); margin-bottom: 1.2rem; }
.maint-eta span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.maint-eta strong { font: 800 italic 1.4rem var(--font-head); color: #fff; }
.small-note { font-size: .85rem; }

/* ------------------------------ Backup ------------------------------ */
.steps-list { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--text); }
.steps-list li { margin-bottom: .7rem; }
.copy-box { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; padding: .55rem .6rem .55rem .8rem; border-radius: var(--radius-sm); background: rgba(4, 10, 24, .7); border: 1px solid var(--line-strong); }
.copy-box code { flex: 1; background: none; padding: 0; word-break: break-all; color: #ffd5d9; }

/* ------------------------------ Dialog ------------------------------ */
dialog.modal { width: min(480px, calc(100% - 32px)); border: 1px solid rgba(255, 36, 54, .4); border-radius: var(--radius); padding: 1.4rem; background: var(--card-solid); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), var(--glow-sm); }
dialog.modal::backdrop { background: rgba(2, 6, 16, .75); backdrop-filter: blur(3px); }

/* ------------------------------ Tagihan pajak ------------------------------ */
.tax-bills { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.tax-bill { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tax-bill.primary { border-color: rgba(255, 36, 54, .5); box-shadow: inset 0 0 40px rgba(255, 36, 54, .07), var(--glow-sm); }
.tax-bill.late { border-color: var(--red); }
.tax-bill-title { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tax-bill-title i { color: var(--red); }
.tax-bill-amount { font: 800 italic clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--font-head); color: #fff; }
.tax-bill.primary .tax-bill-amount { text-shadow: var(--glow); }
.tax-bill-status { font-size: .85rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.tax-bill-lines { list-style: none; padding: 0; margin: .2rem 0; font-size: .85rem; }
.tax-bill-lines li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.tax-bill-lines li span:last-child { color: #fff; font-variant-numeric: tabular-nums; }
.tax-bill .btn { align-self: flex-start; margin-top: auto; }
.tax-detail { scroll-margin-top: 80px; }
@media (max-width: 1024px) { .tax-bills { grid-template-columns: 1fr; } }
@media print {
    .tax-bills { grid-template-columns: repeat(3, 1fr); gap: 6pt; margin-bottom: 8pt; }
    .tax-bill { background: #fff !important; border: 1px solid #bbb !important; padding: 6pt !important; }
    .tax-bill * { color: #000 !important; text-shadow: none !important; }
    .tax-bill-amount { font-size: 13pt; }
}
