/* ==========================================================================
   PRAJA SAPPHIRE — Design System
   Satu stylesheet untuk landing page, panel admin, dan panel penghuni.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
    --navy-950: #080f1c;
    --navy-900: #0f172a;
    --navy-800: #17223b;
    --navy-700: #1e2f4d;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --muted-2: #94a3b8;

    --bg: #f4f7fb;
    --bg-soft: #eef3f9;
    --surface: #ffffff;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #e8f0ff;
    --accent: #0ea5e9;

    --success: #059669;
    --success-soft: #e7f8f1;
    --warning: #d97706;
    --warning-soft: #fef4e6;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --info-soft: #e8f4ff;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    --header-h: 0px;
}

/* --------------------------------------------------------------------------
   2. Reset & dasar
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5rem;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p {
    margin: 0 0 .75rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Elemen yang memakai atribut hidden harus benar-benar tersembunyi,
   meskipun punya class dengan display sendiri (mis. .field). */
[hidden] {
    display: none !important;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86em;
    padding: 1px 5px;
    border-radius: 4px;
    background: #eef2f7;
    color: var(--ink-2);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}

small {
    font-size: .8rem;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: rgba(37, 99, 235, .18);
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 22px 48px;
    flex: 1 0 auto;
}

.container-narrow {
    max-width: 760px;
}

.container-wide {
    max-width: 1320px;
}

.stack > * + * {
    margin-top: 18px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.text-muted { color: var(--muted); }
.text-sm { font-size: .85rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

/* --------------------------------------------------------------------------
   4. Header aplikasi & navigasi
   -------------------------------------------------------------------------- */

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy-900);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(8, 15, 28, .18);
}

.app-header-top {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .04em;
    color: #05203a;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8 55%, #2563eb);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1rem;
    letter-spacing: .01em;
}

.brand-text small {
    color: rgba(226, 232, 240, .72);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .82rem;
    color: #082f49;
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
}

.user-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    max-width: 180px;
}

.user-chip-text strong {
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-chip-text small {
    color: rgba(226, 232, 240, .72);
    font-size: .74rem;
}

.app-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.app-nav::-webkit-scrollbar {
    height: 4px;
}

.app-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

.app-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    color: rgba(226, 232, 240, .82);
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, background .15s ease;
}

.app-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
}

.app-nav-link.is-active {
    color: #fff;
    border-bottom-color: #7dd3fc;
    background: rgba(125, 211, 252, .08);
}

.nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    display: inline-grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: var(--danger);
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    flex-shrink: 0;
    background: var(--navy-950);
    color: rgba(226, 232, 240, .7);
    font-size: .8rem;
}

.site-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer-sep {
    color: rgba(226, 232, 240, .35);
}

/* --------------------------------------------------------------------------
   6. Page head
   -------------------------------------------------------------------------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0;
}

.page-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .92rem;
    max-width: 62ch;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
}

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Card
   -------------------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card + .card {
    margin-top: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.card-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.card-body {
    padding: 20px;
}

.card-body > :last-child {
    margin-bottom: 0;
}

.card-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #fbfcfe;
}

/* --------------------------------------------------------------------------
   8. KPI
   -------------------------------------------------------------------------- */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
    text-decoration: none;
}

.kpi-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1.05rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--ink);
}

.kpi-label {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 600;
}

.kpi-foot {
    font-size: .78rem;
    color: var(--muted);
}

.kpi.is-blue .kpi-icon { background: var(--info-soft); color: var(--primary-dark); }
.kpi.is-amber .kpi-icon { background: var(--warning-soft); color: var(--warning); }
.kpi.is-green .kpi-icon { background: var(--success-soft); color: var(--success); }
.kpi.is-red .kpi-icon { background: var(--danger-soft); color: var(--danger); }
.kpi.is-violet .kpi-icon { background: #f1ebff; color: #6d28d9; }

/* --------------------------------------------------------------------------
   9. Button
   -------------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--primary);
    --btn-fg: #fff;
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    min-height: 42px;
    border: 1px solid var(--btn-border);
    border-radius: 10px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary { --btn-bg: var(--primary); }
.btn-primary:hover { --btn-bg: var(--primary-dark); filter: none; }

.btn-success { --btn-bg: var(--success); }
.btn-danger { --btn-bg: var(--danger); }
.btn-warning { --btn-bg: var(--warning); color: #241503; }

.btn-outline {
    --btn-bg: transparent;
    --btn-fg: var(--primary-dark);
    --btn-border: var(--line-strong);
}

.btn-outline:hover {
    --btn-bg: var(--primary-soft);
    filter: none;
}

.btn-ghost {
    --btn-bg: rgba(255, 255, 255, .1);
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, .18);
}

.btn-ghost:hover {
    --btn-bg: rgba(255, 255, 255, .18);
    filter: none;
}

.btn-soft {
    --btn-bg: var(--primary-soft);
    --btn-fg: var(--primary-dark);
}

.btn-soft:hover {
    --btn-bg: #dbe8ff;
    filter: none;
}

.btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: .8rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 9px;
}

/* --------------------------------------------------------------------------
   10. Badge & status
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    background: #eef2f7;
    color: var(--ink-2);
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
}

.badge-lg {
    padding: 6px 12px;
    font-size: .8rem;
}

.badge-baru { background: var(--info-soft); color: #1d4ed8; }
.badge-diproses { background: var(--warning-soft); color: #b45309; }
.badge-selesai { background: var(--success-soft); color: #047857; }
.badge-reject { background: var(--danger-soft); color: #b91c1c; }
.badge-kosong { background: #eef2f7; color: #475569; }
.badge-terisi { background: var(--success-soft); color: #047857; }
.badge-maintenance { background: var(--warning-soft); color: #b45309; }
.badge-aktif { background: var(--success-soft); color: #047857; }
.badge-nonaktif { background: var(--danger-soft); color: #b91c1c; }

/* --------------------------------------------------------------------------
   11. Table
   -------------------------------------------------------------------------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .885rem;
    background: var(--surface);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #f9fbfe;
}

.data-table .cell-strong {
    font-weight: 600;
    color: var(--ink);
}

.data-table .cell-sub {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: var(--muted);
}

.data-table .cell-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.data-table th.is-right,
.data-table td.is-right {
    text-align: right;
}

.table-nowrap td,
.table-nowrap th {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Form
   -------------------------------------------------------------------------- */

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

.form-grid .span-full {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field > label,
.field-label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-2);
}

.required {
    color: var(--danger);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 36px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: .85rem;
    background: #fbfcfe;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.help {
    font-size: .78rem;
    color: var(--muted);
}

.error-text {
    font-size: .8rem;
    font-weight: 600;
    color: var(--danger);
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* --------------------------------------------------------------------------
   13. Alert
   -------------------------------------------------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .87rem;
    font-weight: 500;
    animation: fade-slide .25s ease;
}

.alert-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    margin-top: 1px;
    background: rgba(255, 255, 255, .55);
}

.alert-success { background: var(--success-soft); border-color: #bfe9d8; color: #065f46; }
.alert-error { background: var(--danger-soft); border-color: #f6cfcf; color: #991b1b; }
.alert-warning { background: var(--warning-soft); border-color: #f6dfb8; color: #92400e; }
.alert-info { background: var(--info-soft); border-color: #cfe6ff; color: #1e40af; }

@keyframes fade-slide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   14. Empty state
   -------------------------------------------------------------------------- */

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

.empty-state-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    background: var(--bg-soft);
    color: var(--muted);
}

.empty-state strong {
    display: block;
    color: var(--ink-2);
    margin-bottom: 4px;
}

.empty-state p {
    margin: 0;
    font-size: .86rem;
}

/* --------------------------------------------------------------------------
   15. Filter bar
   -------------------------------------------------------------------------- */

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-link {
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: .15s ease;
}

.filter-link:hover {
    border-color: var(--line-strong);
    background: #f8fafc;
    text-decoration: none;
}

.filter-link.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.filter-link .count {
    margin-left: 6px;
    opacity: .65;
    font-weight: 700;
}

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    min-width: 220px;
    flex: 1 1 220px;
}

/* --------------------------------------------------------------------------
   16. Detail list
   -------------------------------------------------------------------------- */

.detail-list {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
}

.detail-list dt {
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
    font-size: .9rem;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.detail-list dd.strong {
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. Media (foto laporan)
   -------------------------------------------------------------------------- */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.media-item {
    position: relative;
    display: block;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    cursor: zoom-in;
}

.media-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .25s ease;
}

.media-item:hover img {
    transform: scale(1.04);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 15, 28, .9);
    backdrop-filter: blur(2px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1000px, 92vw);
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .26);
}

/* --------------------------------------------------------------------------
   18. Progress
   -------------------------------------------------------------------------- */

.progress {
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #059669, #34d399);
    transition: width .4s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   19. Kamar grid
   -------------------------------------------------------------------------- */

.floor-block + .floor-block {
    margin-top: 26px;
}

.floor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .95rem;
}

.floor-title .count {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.room-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    text-align: left;
    font-family: inherit;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.room-card-number {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
}

.room-card-name {
    font-size: .8rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-card-foot {
    margin-top: 6px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.room-card.is-kosong { border-left-color: #94a3b8; }
.room-card.is-terisi { border-left-color: var(--success); }
.room-card.is-maintenance { border-left-color: var(--warning); }

.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--muted);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   20. Modal
   -------------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 15, 28, .6);
    backdrop-filter: blur(2px);
}

.modal.is-open {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: modal-in .18s ease;
}

.modal-card.modal-wide {
    max-width: 640px;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--ink-2);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-body {
    padding: 20px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #fbfcfe;
}

/* --------------------------------------------------------------------------
   21. Tabs
   -------------------------------------------------------------------------- */

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-btn {
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink-2);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8fafc;
}

.tab-btn.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

/* --------------------------------------------------------------------------
   22. Halaman login
   -------------------------------------------------------------------------- */

.auth-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, .22), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(37, 99, 235, .28), transparent 55%),
        var(--navy-950);
}

.auth-card {
    width: min(940px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}

.auth-aside {
    position: relative;
    padding: 40px 38px;
    color: #e2e8f0;
    background:
        linear-gradient(160deg, rgba(14, 165, 233, .18), transparent 45%),
        linear-gradient(200deg, #122240, #0b1526 70%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.auth-aside .brand-mark {
    width: 46px;
    height: 46px;
    font-size: .9rem;
}

.auth-aside h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 22px 0 10px;
}

.auth-aside p {
    color: rgba(226, 232, 240, .78);
    font-size: .9rem;
    margin: 0;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 10px;
    font-size: .86rem;
    color: rgba(226, 232, 240, .85);
}

.auth-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.auth-points li::before {
    content: "✓";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .65rem;
    font-weight: 800;
    color: #052e2b;
    background: #6ee7b7;
}

.auth-form {
    padding: 40px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.auth-form .sub {
    color: var(--muted);
    font-size: .88rem;
    margin: 0 0 22px;
}

.auth-form form {
    display: grid;
    gap: 14px;
}

.auth-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: .82rem;
    color: var(--muted);
}

.auth-extra a {
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.input-wrap .toggle-pass {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.input-wrap .toggle-pass:hover {
    background: var(--bg-soft);
    color: var(--ink-2);
}

.input-wrap input {
    padding-right: 62px;
}

/* --------------------------------------------------------------------------
   23. Landing page
   -------------------------------------------------------------------------- */

.public-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 15, 28, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.public-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.public-nav a {
    color: rgba(226, 232, 240, .85);
    font-size: .86rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}

.public-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}

.public-nav a.is-cta {
    background: #fff;
    color: var(--navy-900);
    font-weight: 700;
}

.public-nav a.is-cta:hover {
    background: #e2e8f0;
}

.landing {
    background: var(--navy-950);
    color: #e2e8f0;
    flex: 1 0 auto;
}

.landing h1,
.landing h2,
.landing h3 {
    color: #fff;
}

.landing a {
    color: #7dd3fc;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 22px 56px;
    background:
        radial-gradient(900px 460px at 15% 0%, rgba(56, 189, 248, .16), transparent 60%),
        radial-gradient(700px 400px at 95% 10%, rgba(37, 99, 235, .22), transparent 55%);
}

.hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(125, 211, 252, .35);
    border-radius: var(--radius-pill);
    background: rgba(56, 189, 248, .1);
    color: #bae6fd;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.hero h1 span {
    background: linear-gradient(100deg, #7dd3fc, #38bdf8 40%, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.02rem;
    color: rgba(226, 232, 240, .82);
    max-width: 56ch;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-height: 46px;
    padding: 12px 20px;
}

.btn-light {
    --btn-bg: #fff;
    --btn-fg: var(--navy-900);
}

.btn-light:hover {
    --btn-bg: #e2e8f0;
    filter: none;
}

.btn-outline-light {
    --btn-bg: transparent;
    --btn-fg: #e2e8f0;
    --btn-border: rgba(255, 255, 255, .3);
}

.btn-outline-light:hover {
    --btn-bg: rgba(255, 255, 255, .1);
    filter: none;
}

.hero-stats {
    display: grid;
    gap: 14px;
}

.hero-stat {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
}

.hero-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #fff;
    line-height: 1.2;
}

.hero-stat span {
    font-size: .82rem;
    color: rgba(226, 232, 240, .7);
}

.banner-section {
    padding: 8px 22px 48px;
}

.banner-shell {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1526;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.banner-track {
    position: relative;
}

.banner-slide {
    display: none;
    width: 100%;
}

.banner-slide.is-active {
    display: block;
    animation: banner-fade .5s ease;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes banner-fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 15, 28, .7);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
}

.banner-arrow:hover {
    background: rgba(8, 15, 28, .95);
}

.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }

.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: .2s ease;
}

.banner-dot.is-active {
    width: 24px;
    border-radius: var(--radius-pill);
    background: #fff;
}

.section-landing {
    padding: 56px 22px;
}

.section-landing.alt {
    background: #0b1526;
}

.section-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    margin-bottom: 10px;
}

.section-head p {
    color: rgba(226, 232, 240, .68);
    margin: 0;
    font-size: .94rem;
}

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

.feature-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    transition: transform .18s ease, border-color .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, .4);
}

.feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: rgba(56, 189, 248, .14);
    color: #7dd3fc;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    margin: 0;
    color: rgba(226, 232, 240, .7);
    font-size: .86rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 22px 22px 22px 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 22px;
    left: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 800;
    color: #052e2b;
    background: #6ee7b7;
}

.step h3 {
    font-size: .95rem;
    margin-bottom: 6px;
}

.step p {
    margin: 0;
    font-size: .85rem;
    color: rgba(226, 232, 240, .7);
}

.landing-footer {
    padding: 26px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--navy-950);
    color: rgba(226, 232, 240, .6);
    font-size: .8rem;
}

.landing-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   24. Utility
   -------------------------------------------------------------------------- */

.pill-group {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
}

.pill-group a {
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
}

.pill-group a.is-active {
    background: var(--navy-900);
    color: #fff;
}

.pill-group a:hover {
    text-decoration: none;
}

.hr-soft {
    margin: 20px 0;
    border-top: 1px solid var(--line);
}

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

.list-clean li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.list-clean li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.list-clean li:first-child {
    padding-top: 0;
}

.callout {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fbfcfe;
    font-size: .86rem;
}

.callout-warning {
    background: var(--warning-soft);
    border-color: #f6dfb8;
    color: #92400e;
}

.callout-info {
    background: var(--info-soft);
    border-color: #cfe6ff;
    color: #1e40af;
}

/* --------------------------------------------------------------------------
   25. Responsif
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }

    .container { padding: 20px 15px 40px; }

    .app-header-top { padding: 10px 15px; }
    .user-chip-text { display: none; }
    .app-nav { padding: 0 8px; }
    .app-nav-link { padding: 11px 12px; font-size: .82rem; }

    .page-head { align-items: flex-start; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: minmax(0, 1fr); }

    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .kpi { padding: 14px; }
    .kpi-value { font-size: 1.55rem; }

    .detail-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .detail-list dt { margin-top: 10px; }

    .auth-card { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { padding: 28px 24px; }
    .auth-aside h2 { font-size: 1.25rem; margin-top: 16px; }
    .auth-points { display: none; }
    .auth-form { padding: 28px 24px 32px; }

    .hero { padding: 48px 18px 40px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { grid-template-columns: minmax(0, 1fr); }
    .banner-section { padding: 4px 12px 32px; }
    .banner-arrow { width: 34px; height: 34px; font-size: .9rem; }
    .section-landing { padding: 40px 18px; }

    .card-head, .card-body, .card-foot { padding-left: 16px; padding-right: 16px; }

    .data-table { font-size: .84rem; min-width: 620px; }
    .data-table th, .data-table td { padding: 10px 12px; }

    .modal-card { max-width: none; }
    .modal-foot { flex-direction: column-reverse; }
    .modal-foot .btn { width: 100%; }

    .room-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

    .search-form input[type="search"] { min-width: 0; }
}

@media (max-width: 420px) {
    .app-nav-link { padding: 10px; font-size: .78rem; }
    .brand-text small { display: none; }
    .hero-actions .btn { width: 100%; }
    .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   26. Print
   -------------------------------------------------------------------------- */

@media print {
    .app-header,
    .site-footer,
    .page-actions,
    .filter-bar,
    .search-form,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border-color: #ccc;
    }
}

/* --------------------------------------------------------------------------
   27. Tema terang/gelap — landing page
   -------------------------------------------------------------------------- */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

html[data-theme="light"] body.landing-page .theme-toggle {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--ink-2);
}

html[data-theme="light"] body.landing-page .theme-toggle:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

html[data-theme="light"] body.landing-page .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="light"] body.landing-page .theme-toggle .icon-moon {
    display: block;
}

/* Skema warna dasar khusus landing */
body.landing-page {
    color-scheme: dark;
}

html[data-theme="light"] body.landing-page {
    color-scheme: light;
}

/* Latar & teks utama */
html[data-theme="light"] body.landing-page .landing {
    background: var(--bg);
    color: var(--ink-2);
}

html[data-theme="light"] body.landing-page .landing h1,
html[data-theme="light"] body.landing-page .landing h2,
html[data-theme="light"] body.landing-page .landing h3 {
    color: var(--ink);
}

html[data-theme="light"] body.landing-page .landing a:not(.btn) {
    color: var(--primary);
}

/* Header publik */
html[data-theme="light"] body.landing-page .public-header {
    background: rgba(255, 255, 255, .9);
    border-bottom-color: var(--line);
}

html[data-theme="light"] body.landing-page .brand {
    color: var(--ink);
}

html[data-theme="light"] body.landing-page .brand-text small {
    color: var(--muted);
}

html[data-theme="light"] body.landing-page .public-nav a {
    color: var(--ink-2);
}

html[data-theme="light"] body.landing-page .public-nav a:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

html[data-theme="light"] body.landing-page .public-nav a.is-cta {
    background: var(--primary);
    color: #fff;
}

html[data-theme="light"] body.landing-page .public-nav a.is-cta:hover {
    background: var(--primary-dark);
}

/* Hero */
html[data-theme="light"] body.landing-page .hero {
    background:
        radial-gradient(900px 460px at 15% 0%, rgba(56, 189, 248, .18), transparent 60%),
        radial-gradient(700px 400px at 95% 10%, rgba(37, 99, 235, .12), transparent 55%),
        linear-gradient(180deg, #f8fbff, #eef4fc);
}

html[data-theme="light"] body.landing-page .hero-badge {
    border-color: #bfdbfe;
    background: #e8f0ff;
    color: var(--primary-dark);
}

html[data-theme="light"] body.landing-page .hero-lead {
    color: var(--ink-2);
}

html[data-theme="light"] body.landing-page .hero-stat {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

html[data-theme="light"] body.landing-page .hero-stat strong {
    color: var(--ink);
}

html[data-theme="light"] body.landing-page .hero-stat span {
    color: var(--muted);
}

/* Tombol di hero */
html[data-theme="light"] body.landing-page .btn-light {
    --btn-bg: var(--primary);
    --btn-fg: #fff;
}

html[data-theme="light"] body.landing-page .btn-light:hover {
    --btn-bg: var(--primary-dark);
}

html[data-theme="light"] body.landing-page .btn-outline-light {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-border: var(--line-strong);
}

html[data-theme="light"] body.landing-page .btn-outline-light:hover {
    --btn-bg: var(--bg-soft);
}

/* Banner & section */
html[data-theme="light"] body.landing-page .banner-shell {
    background: #e8eef7;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}

html[data-theme="light"] body.landing-page .section-landing.alt {
    background: var(--bg-soft);
}

html[data-theme="light"] body.landing-page .section-head p {
    color: var(--muted);
}

html[data-theme="light"] body.landing-page .feature-card {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}

html[data-theme="light"] body.landing-page .feature-card:hover {
    border-color: var(--primary);
}

html[data-theme="light"] body.landing-page .feature-icon {
    background: var(--primary-soft);
    color: var(--primary);
}

html[data-theme="light"] body.landing-page .feature-card p {
    color: var(--muted);
}

html[data-theme="light"] body.landing-page .step {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}

html[data-theme="light"] body.landing-page .step p {
    color: var(--muted);
}

html[data-theme="light"] body.landing-page .landing-footer {
    background: #fff;
    border-top-color: var(--line);
    color: var(--muted);
}

/* Tombol di landing tidak boleh ikut warna link (dulu teks jadi biru di atas biru) */
.landing .btn,
.landing .btn:hover {
    color: var(--btn-fg);
}

html[data-theme="light"] body.landing-page .landing .btn,
html[data-theme="light"] body.landing-page .landing .btn:hover {
    color: var(--btn-fg);
}

/* Gradien judul versi terang dibuat lebih pekat agar terbaca */
html[data-theme="light"] body.landing-page .hero h1 span {
    background: linear-gradient(100deg, #0369a1, #2563eb 45%, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
