/* ==========================================================================
   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;
}

/* --------------------------------------------------------------------------
   28. Tema gelap â€” panel admin
   -------------------------------------------------------------------------- */

.app-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ikon toggle admin: mode terang -> bulan, mode gelap -> matahari */
body.app-page .theme-toggle .icon-sun {
    display: none;
}

body.app-page .theme-toggle .icon-moon {
    display: block;
}

html[data-theme="dark"] body.app-page .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="dark"] body.app-page .theme-toggle .icon-moon {
    display: none;
}

html[data-theme="dark"] body.app-page {
    color-scheme: dark;

    --ink: #e6edf7;
    --ink-2: #c3d0e2;
    --muted: #93a4bb;
    --muted-2: #6b7f99;

    --bg: #0b1526;
    --bg-soft: #101c2e;
    --surface: #131f33;
    --line: #22304a;
    --line-strong: #31435f;

    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --primary-soft: #16294a;
    --accent: #38bdf8;

    --success: #34d399;
    --success-soft: #0f2e26;
    --warning: #fbbf24;
    --warning-soft: #33260f;
    --danger: #f87171;
    --danger-soft: #331518;
    --info-soft: #12283f;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] body.app-page .card-foot,
html[data-theme="dark"] body.app-page .modal-foot {
    background: #0f1a2b;
}

html[data-theme="dark"] body.app-page .data-table th {
    background: #0f1a2b;
}

html[data-theme="dark"] body.app-page .data-table tbody tr:hover {
    background: #16243a;
}

html[data-theme="dark"] body.app-page input[type="text"],
html[data-theme="dark"] body.app-page input[type="email"],
html[data-theme="dark"] body.app-page input[type="password"],
html[data-theme="dark"] body.app-page input[type="tel"],
html[data-theme="dark"] body.app-page input[type="number"],
html[data-theme="dark"] body.app-page input[type="date"],
html[data-theme="dark"] body.app-page input[type="search"],
html[data-theme="dark"] body.app-page input[type="url"],
html[data-theme="dark"] body.app-page select,
html[data-theme="dark"] body.app-page textarea {
    background: #0f1a2b;
    color: var(--ink);
}

html[data-theme="dark"] body.app-page input[type="file"] {
    background: #0f1a2b;
}

html[data-theme="dark"] body.app-page .badge {
    background: #1a2940;
    color: var(--ink-2);
}

html[data-theme="dark"] body.app-page .badge-baru {
    color: #93c5fd;
}

html[data-theme="dark"] body.app-page .badge-diproses,
html[data-theme="dark"] body.app-page .badge-maintenance {
    color: #fbbf24;
}

html[data-theme="dark"] body.app-page .badge-selesai,
html[data-theme="dark"] body.app-page .badge-terisi,
html[data-theme="dark"] body.app-page .badge-aktif {
    color: #6ee7b7;
}

html[data-theme="dark"] body.app-page .badge-reject,
html[data-theme="dark"] body.app-page .badge-nonaktif {
    color: #fca5a5;
}

html[data-theme="dark"] body.app-page .badge-kosong {
    background: #1a2940;
    color: #cbd5e1;
}

html[data-theme="dark"] body.app-page .alert-icon {
    background: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] body.app-page .alert-success {
    border-color: #1d4d3f;
    color: #6ee7b7;
}

html[data-theme="dark"] body.app-page .alert-error {
    border-color: #5a2020;
    color: #fca5a5;
}

html[data-theme="dark"] body.app-page .alert-warning {
    border-color: #5a4315;
    color: #fbbf24;
}

html[data-theme="dark"] body.app-page .alert-info {
    border-color: #1e3a5f;
    color: #93c5fd;
}

html[data-theme="dark"] body.app-page .filter-link {
    background: var(--surface);
}

html[data-theme="dark"] body.app-page .filter-link:hover {
    background: var(--bg-soft);
}

html[data-theme="dark"] body.app-page .filter-link.is-active,
html[data-theme="dark"] body.app-page .tab-btn.is-active,
html[data-theme="dark"] body.app-page .pill-group a.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

html[data-theme="dark"] body.app-page .room-card,
html[data-theme="dark"] body.app-page .modal-card,
html[data-theme="dark"] body.app-page .tab-btn,
html[data-theme="dark"] body.app-page .pill-group {
    background: var(--surface);
}

html[data-theme="dark"] body.app-page .modal-close:hover,
html[data-theme="dark"] body.app-page .tab-btn:hover {
    background: var(--bg-soft);
}

html[data-theme="dark"] body.app-page .callout {
    background: var(--bg-soft);
}

html[data-theme="dark"] body.app-page .callout-warning {
    border-color: #5a4315;
    color: #fbbf24;
}

html[data-theme="dark"] body.app-page .callout-info {
    border-color: #1e3a5f;
    color: #93c5fd;
}

html[data-theme="dark"] body.app-page .btn-soft:hover {
    background: #1a2f52;
}

html[data-theme="dark"] body.app-page .kpi.is-violet .kpi-icon {
    background: #2a1f4d;
    color: #c4b5fd;
}

/* --------------------------------------------------------------------------
   29. Layout sidebar panel admin
   -------------------------------------------------------------------------- */

body.app-page {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: 100vh;
}

body.app-page .app-header {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 8px 0 30px rgba(8, 15, 28, .22);
}

.app-sidebar-brand {
    padding: 14px 12px 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-sidebar-brand .brand {
    flex: 1 1 auto;
    min-width: 0;
}

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

.sidebar-toggle {
    flex: 0 0 auto;
}

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

.sidebar-toggle svg,
.sidebar-reopen svg {
    width: 17px;
    height: 17px;
    display: block;
}

.sidebar-reopen {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 60;
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}

.sidebar-reopen:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

body.app-page .app-nav {
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px 16px;
    border-top: 0;
    overflow: visible;
}

body.app-page .app-nav-link {
    width: 100%;
    padding: 10px 12px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 8px;
}

body.app-page .app-nav-link:hover {
    background: rgba(255, 255, 255, .06);
}

body.app-page .app-nav-link.is-active {
    border-left-color: #7dd3fc;
    border-bottom-color: transparent;
    background: rgba(125, 211, 252, .1);
}

.app-sidebar-foot {
    margin-top: auto;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-sidebar-foot .user-chip {
    width: 100%;
}

.app-sidebar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-sidebar-actions .btn {
    flex: 1;
}

body.app-page main.container {
    grid-column: 2;
    grid-row: 1;
    padding: 26px 28px 40px;
}

body.app-page .site-footer {
    grid-column: 2;
    grid-row: 2;
}

html[data-sidebar="collapsed"] body.app-page {
    grid-template-columns: 0 minmax(0, 1fr);
}

html[data-sidebar="collapsed"] body.app-page .app-header {
    display: none;
}

html[data-sidebar="collapsed"] body.app-page main.container {
    padding-top: 64px;
}

html[data-sidebar="collapsed"] .sidebar-reopen {
    display: inline-flex;
}

@media (max-width: 960px) {
    body.app-page {
        display: block;
    }

    body.app-page .app-header {
        position: sticky;
        top: 0;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 10px 24px rgba(8, 15, 28, .2);
    }

    .app-sidebar-brand {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
    }

    .app-sidebar-brand .brand-text small {
        display: none;
    }

    body.app-page .app-nav {
        order: 3;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, .07);
        overflow-x: auto;
    }

    body.app-page .app-nav-link {
        width: auto;
        padding: 11px 12px;
        border-left: 0;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        font-size: .82rem;
    }

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

    .app-sidebar-foot {
        order: 2;
        margin-top: 0;
        padding: 0;
        border-top: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .app-sidebar-foot .user-chip {
        width: auto;
    }

    .app-sidebar-foot .user-chip-text {
        display: none;
    }

    .app-sidebar-actions {
        flex: 0 0 auto;
    }

    .app-sidebar-actions .btn {
        flex: 0 0 auto;
    }

    body.app-page main.container {
        padding: 20px 15px 40px;
    }

    .sidebar-toggle,
    .sidebar-reopen {
        display: none !important;
    }

    html[data-sidebar="collapsed"] body.app-page {
        display: block;
    }

    html[data-sidebar="collapsed"] body.app-page .app-header {
        display: flex;
    }

    html[data-sidebar="collapsed"] body.app-page main.container {
        padding-top: 20px;
    }
}

@media (max-width: 420px) {
    .app-sidebar-brand .brand-text strong {
        font-size: .9rem;
    }
}

@media print {
    body.app-page {
        display: block;
    }

    body.app-page .app-header {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   30. Grafik tren laporan
   -------------------------------------------------------------------------- */

.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 180px;
    padding: 6px 2px 0;
}

.trend-col {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.trend-value {
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

.trend-bar {
    width: 100%;
    max-width: 46px;
    min-height: 4px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    transition: height .3s ease;
}

.trend-label {
    font-size: .72rem;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   31. Foto laporan
   -------------------------------------------------------------------------- */

.photo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 6px;
}

.photo-actions .btn {
    cursor: pointer;
}

.photo-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.photo-preview:empty {
    display: none;
}

.photo-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.photo-preview .photo-count {
    font-size: .78rem;
    color: var(--muted);
}

/* =========================================================
   APLIKASI ANDROID (landing)
========================================================= */

.app-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    gap: 28px;
    align-items: center;

    padding: 30px;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;

    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 700;
}

.app-card h2 {
    margin: 14px 0 10px;
    font-size: 26px;
    line-height: 1.25;
    color: var(--ink);
}

.app-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.app-points {
    display: grid;
    gap: 8px;

    margin: 16px 0 0;
    padding: 0;

    list-style: none;
}

.app-points li {
    position: relative;
    padding-left: 26px;

    font-size: 14px;
    color: var(--ink);
}

.app-points li::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    top: 1px;

    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);

    font-size: 11px;
    font-weight: 700;
}

.app-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

    margin-top: 22px;
}

.app-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-meta {
    font-size: 13px;
    color: var(--muted);
}

.app-meta a {
    color: var(--primary);
    font-weight: 600;
}

.app-visual {
    display: grid;
    place-items: center;
}

.phone {
    position: relative;
    overflow: hidden;

    width: 150px;
    height: 290px;

    border: 8px solid #111827;
    border-radius: 26px;
    background: linear-gradient(160deg, #0b1b2b, #1f6feb);
    box-shadow: var(--shadow);
}

.phone::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);

    width: 46px;
    height: 5px;

    border-radius: 3px;
    background: rgba(255, 255, 255, .55);
}

.phone-screen {
    position: absolute;
    inset: 0;

    display: grid;
    place-content: center;
    gap: 8px;

    text-align: center;
}

.phone-brand {
    width: 46px;
    height: 46px;
    margin: 0 auto;

    display: grid;
    place-items: center;

    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    color: #fff;

    font-weight: 800;
}

.phone-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.install-steps {
    margin-top: 26px;
    padding: 24px 26px;

    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.install-steps h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--ink);
}

.install-steps ol {
    display: grid;
    gap: 8px;

    margin: 0;
    padding-left: 20px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.install-steps code {
    padding: 2px 6px;

    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface);

    font-size: 13px;
    color: var(--ink);
}

.install-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .app-card {
        grid-template-columns: 1fr;

        padding: 22px;
    }

    .app-visual { order: -1; }

    .phone {
        width: 120px;
        height: 232px;
    }
}

@media (max-width: 520px) {
    .app-card h2 { font-size: 22px; }
}

/* =========================================================
   HEADER LANDING â€” RAPI DI LAYAR KECIL
========================================================= */

/* Desktop: beranda | menu | aksi (tema + tombol menu) */
.public-nav {
    margin-left: auto;
}

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

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    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;
}

.nav-toggle:hover { background: rgba(255, 255, 255, .12); }

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

.nav-toggle .nav-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.nav-toggle .nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }

@media (max-width: 760px) {
    .public-header-inner {
        position: relative;

        padding: 10px 16px;
        gap: 10px;
    }

    .brand-text small { display: none; }

    .nav-toggle { display: inline-flex; }

    .public-actions { margin-left: auto; }

    .public-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 45;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        margin: 0;
        padding: 10px 14px 16px;

        background: #0b1526;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 22px 44px rgba(4, 9, 18, .5);
    }

    .public-nav.is-open { display: flex; }

    .public-nav a {
        padding: 12px 14px;

        font-size: .95rem;
        border-radius: 10px;
    }

    .public-nav a.is-cta {
        margin-top: 6px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .public-header-inner { padding: 9px 12px; }
    .brand-mark { width: 34px; height: 34px; }
}

/* Tema terang */
html[data-theme="light"] body.landing-page .public-nav.is-open {
    background: #fff;
    border-bottom-color: var(--line);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .14);
}

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

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


/* =========================================================
   RUNNING TEXT — INFO APLIKASI
========================================================= */

.app-ticker {
    display: flex;
    align-items: center;
    gap: 12px;

    height: 40px;
    padding: 0 14px 0 0;

    background: linear-gradient(90deg, rgba(37, 99, 235, .22), rgba(14, 165, 233, .10));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.app-ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.app-ticker-track {
    display: flex;
    width: max-content;

    animation: appTickerScroll 34s linear infinite;
    will-change: transform;
}

.app-ticker-group {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;

    white-space: nowrap;
}

.app-ticker-item {
    color: #c7d7f0;
    font-size: .8rem;
    letter-spacing: .1px;
}

.app-ticker-item strong {
    color: #fff;
    font-weight: 700;
}

.app-ticker-dot {
    color: rgba(199, 215, 240, .45);
    font-size: .7rem;
}

.app-ticker-cta {
    flex: 0 0 auto;

    padding: 6px 13px;

    border-radius: var(--radius-pill);
    background: #fff;
    color: #0b1b2b;

    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-ticker-cta:hover {
    background: #e2e8f0;
    text-decoration: none;
}

.app-ticker:hover .app-ticker-track,
.app-ticker:focus-within .app-ticker-track {
    animation-play-state: paused;
}

@keyframes appTickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
    .app-ticker {
        height: 36px;
        gap: 8px;
        padding-right: 10px;
    }

    .app-ticker-item { font-size: .74rem; }
    .app-ticker-group { gap: 18px; padding-right: 18px; }
    .app-ticker-cta { padding: 5px 11px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .app-ticker-track { animation: none; }
    .app-ticker-viewport { overflow-x: auto; }
}

/* Tema terang */
html[data-theme="light"] body.landing-page .app-ticker {
    background: linear-gradient(90deg, #e8f0ff, #eef7ff);
    border-bottom-color: var(--line);
}

html[data-theme="light"] body.landing-page .app-ticker-item { color: #334155; }
html[data-theme="light"] body.landing-page .app-ticker-item strong { color: #0f172a; }
html[data-theme="light"] body.landing-page .app-ticker-dot { color: #94a3b8; }

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

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

/* Tombol unduh di ticker: kontras terjaga di kedua tema.
   Selector ini sengaja lebih spesifik dari aturan `.landing a` yang sudah ada. */
.landing .app-ticker a.app-ticker-cta {
    background: #ffffff;
    color: #0b1b2b;
}

.landing .app-ticker a.app-ticker-cta:hover {
    background: #e2e8f0;
    color: #0b1b2b;
}

html[data-theme="light"] body.landing-page .landing .app-ticker a.app-ticker-cta {
    background: var(--primary);
    color: #ffffff;
}

html[data-theme="light"] body.landing-page .landing .app-ticker a.app-ticker-cta:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

/* Running text hanya tampil di layar kecil (HP / aplikasi Android). */
@media (min-width: 761px) {
    .app-ticker {
        display: none;
    }
}

/* =========================================================
   JADWAL CUCI AC — DASHBOARD PENGHUNI
========================================================= */

.ac-card {
    margin-top: 18px;
    margin-bottom: 18px;
}

.ac-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 18px;
}

.ac-box {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 14px 16px;

    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.ac-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.ac-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.ac-sub {
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .ac-grid {
        grid-template-columns: 1fr;
    }
}

/* Aksi di kepala kartu AC (badge + tombol Semua) */
.ac-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   LUMINARESIDENCE — jembatan komponen lama ke design system Praja
   ========================================================================== */

.page-title { margin: 0 0 22px; }
.page-title h1 { margin: 0; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; max-width: 62ch; }
.page-title::after { display: none !important; }

.section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.section > h2, .section > h3 { margin-top: 0; }

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

table { width: 100%; border-collapse: collapse; font-size: .885rem; background: var(--surface); }
th {
    padding: 12px 16px; text-align: left; font-size: .75rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
    background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbfe; }
td.cell-actions { white-space: nowrap; }

.field-hint { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.inline-form { display: inline; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.action-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-cancel { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 10px 4px; }
.btn-cancel:hover { text-decoration: underline; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter a {
    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;
}
.filter a:hover { border-color: var(--line-strong); text-decoration: none; }
.filter a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.alert-ok, .alert-success {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; margin-bottom: 16px;
    border: 1px solid #bbf7d0; border-radius: 10px; font-size: .87rem; font-weight: 500;
    background: var(--success-soft); color: #065f46;
}
.alert-error {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; margin-bottom: 16px;
    border: 1px solid #fecaca; border-radius: 10px; font-size: .87rem; font-weight: 500;
    background: var(--danger-soft); color: #7f1d1d;
}
.notice {
    padding: 12px 15px; margin-bottom: 16px; border-radius: 10px; font-size: .87rem;
    background: var(--warning-soft); border: 1px solid #fde68a; color: #78350f;
}
.empty {
    padding: 38px 20px; text-align: center; color: var(--muted);
    background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}
.info-box {
    padding: 13px 15px; margin-bottom: 16px; font-size: .88rem;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
}
.summary {
    margin: 12px 0; padding: 12px 15px; border-radius: 10px;
    background: var(--bg-soft); font-size: .88rem; font-weight: 600; line-height: 1.7;
}
.notif-box {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding: 13px 15px; margin-bottom: 16px; border-radius: 12px;
    background: var(--warning-soft); border: 1px solid #fde68a; color: #78350f; font-weight: 600;
}
.notif-box a { color: #92400e; text-decoration: underline; }
.reject-box {
    padding: 13px 15px; margin: 12px 0; border-radius: 10px; font-size: .87rem;
    background: var(--danger-soft); border: 1px solid #fecaca; color: #7f1d1d;
}

.status-baru { color: var(--danger); font-weight: 700; }
.status-diproses { color: var(--warning); font-weight: 700; }
.status-selesai { color: var(--success); font-weight: 700; }
.status-reject { color: #7f1d1d; font-weight: 700; }
.aktif { color: var(--success); font-weight: 700; }
.nonaktif { color: var(--danger); font-weight: 700; }

.status {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 700; color: #fff; white-space: nowrap;
}
.status.safe { background: var(--success); }
.status.soon { background: var(--warning); }
.status.overdue { background: var(--danger); }

.btn .badge {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: var(--radius-pill);
}
.btn .badge::before { display: none; }

.progress-container { height: 10px; border-radius: var(--radius-pill); background: var(--bg-soft); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--success), #34d399); color: transparent; font-size: 0; }
.progress-green { background: linear-gradient(90deg, var(--success), #34d399); }
.progress-yellow { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.progress-red { background: linear-gradient(90deg, var(--danger), #f87171); }

.info { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info:last-of-type { border-bottom: 0; }
.info .label { flex: 0 0 150px; color: var(--muted); font-weight: 600; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.thumbnail {
    width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius);
    border: 1px solid var(--line); cursor: zoom-in; background: var(--bg-soft);
}
.thumbnail:hover { opacity: .92; }

.modal-box {
    background: var(--surface); padding: 22px; width: 360px; max-width: 100%;
    margin: 8vh auto 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin-top: 0; }
.modal-buttons { display: flex; gap: 8px; }
.modal-buttons .btn { flex: 1; }
.modal-content { display: block; max-width: 92vw; max-height: 86vh; margin: auto; border-radius: var(--radius); background: #fff; }
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .16); color: #fff; border: 0; border-radius: var(--radius-pill);
    font-size: 24px; line-height: 1; cursor: pointer;
}

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.card-link { text-decoration: none; color: inherit; display: block; }
.stat-card {
    display: flex; flex-direction: column; gap: 4px; padding: 18px; height: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); color: var(--ink); border-left: 4px solid var(--line-strong);
}
.stat-card .stat-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stat-card .stat-hint { font-size: .76rem; color: var(--muted); }
.stat--baru { border-left-color: var(--danger); }
.stat--diproses { border-left-color: var(--warning); }
.stat--selesai { border-left-color: var(--success); }
.stat--overdue { border-left-color: #7c3aed; }
.stat--soon { border-left-color: var(--accent); }
.stat--month { border-left-color: #4f46e5; }
.card-link:hover .stat-card { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin-bottom: 20px; }
.stat-tile {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.stat-tile__dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.stat-tile__num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-tile__label { margin-top: 4px; font-size: .75rem; color: var(--muted); }
.stat-tile--total .stat-tile__dot { background: var(--navy-900); }
.stat-tile--terisi .stat-tile__dot { background: var(--success); }
.stat-tile--kosong .stat-tile__dot { background: var(--primary); }
.stat-tile--maintenance .stat-tile__dot { background: var(--danger); }
.stat-tile--okupansi .stat-tile__dot { background: var(--warning); }

.floor { margin-bottom: 28px; }
.floor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.floor-head h3 { margin: 0; font-size: 1.05rem; }
.floor-count { font-size: .8rem; color: var(--muted); }

.room-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.room-form { margin: 0; }
.room-card {
    width: 100%; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 13px 14px; background: var(--surface); border: 1px solid var(--line-strong);
    border-left: 4px solid var(--line-strong); border-radius: 14px; font-family: inherit;
    text-align: left; cursor: pointer; box-shadow: var(--shadow-xs);
}
.room-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.room-card--kosong { border-left-color: var(--primary); }
.room-card--terisi { border-left-color: var(--success); }
.room-card--maintenance { border-left-color: var(--danger); }
.room-card__top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.room-card__num { font-size: 1.15rem; font-weight: 800; }
.room-card__dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.room-card--kosong .room-card__dot { background: var(--primary); }
.room-card--terisi .room-card__dot { background: var(--success); }
.room-card--maintenance .room-card__dot { background: var(--danger); }
.room-card__chip { padding: 3px 9px; border-radius: var(--radius-pill); font-size: .68rem; font-weight: 700; background: var(--bg-soft); color: var(--ink-2); }
.room-card--kosong .room-card__chip { background: var(--primary-soft); color: var(--primary-dark); }
.room-card--terisi .room-card__chip { background: var(--success-soft); color: #065f46; }
.room-card--maintenance .room-card__chip { background: var(--danger-soft); color: #7f1d1d; }
.room-card__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--muted); }
.room-card__hint { margin-top: auto; font-size: .7rem; color: var(--muted-2); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; font-size: .85rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.box { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }

.card-list { display: block; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.card-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.card-row:last-of-type { border-bottom: 0; }

.btn-edit, .btn-reset, .btn-keluar, .btn-detail, .btn-input, .btn-histori {
    display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px;
    border: 1px solid transparent; border-radius: 9px; font-family: inherit; font-size: .8rem; font-weight: 600;
    color: #fff; text-decoration: none; cursor: pointer;
}
.btn-edit, .btn-detail { background: var(--primary); }
.btn-reset { background: var(--warning); color: #241503; }
.btn-keluar { background: var(--danger); }
.btn-input, .btn-histori { background: var(--success); }

/* -------------------------------------------------------------------------
   14. Halaman beranda publik (index.html root)
   ------------------------------------------------------------------------- */
.marketing {
    min-height: 100vh;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    text-align: center;
}

.marketing nav {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.marketing nav h1 {
    font-size: 22px;
    margin: 0;
    color: #fff;
}

.marketing nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

.marketing .hero {
    padding: 80px 20px 60px;
}

.marketing .hero h2 {
    font-size: 36px;
    margin: 0 0 20px;
    color: #fff;
}

.marketing .hero p {
    font-size: 17px;
    opacity: .85;
    max-width: 620px;
    margin: 0 auto 30px;
}

.marketing .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.marketing .btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.marketing .btn-outline:hover {
    background: #fff;
    color: #0f172a;
}

.marketing .features {
    background: rgba(255, 255, 255, .06);
    padding: 56px 20px;
}

.marketing .features h3 {
    font-size: 24px;
    margin: 0 0 32px;
    color: #fff;
}

.marketing .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.marketing .feature {
    background: rgba(255, 255, 255, .08);
    padding: 22px;
    border-radius: var(--radius);
    text-align: left;
}

.marketing footer {
    padding: 20px;
    font-size: 14px;
    opacity: .6;
}

/* --------------------------------------------------------------------------
   Toko mitra: kartu auth lebar, langkah, dan seksi formulir
   -------------------------------------------------------------------------- */

.auth-card.auth-card-wide {
    width: min(1080px, 100%);
    grid-template-columns: 400px minmax(0, 1fr);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: rgba(110, 231, 183, .14);
    border: 1px solid rgba(110, 231, 183, .3);
    color: #6ee7b7;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-note {
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: .8rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, .8);
}

.auth-note strong {
    color: #fff;
}

.auth-steps {
    counter-reset: langkah;
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
    font-size: .84rem;
    color: rgba(226, 232, 240, .85);
}

.auth-steps li {
    position: relative;
    padding-left: 34px;
}

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

.auth-section + .auth-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.auth-section > h2 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .95rem;
    color: var(--ink);
}

.auth-section > h2 span {
    font-size: .76rem;
    font-weight: 600;
    color: var(--muted);
}

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

.auth-form .form-grid + .form-grid {
    margin-top: 14px;
}

/* Kolom terkunci (mis. jenis layanan mitra) tetap terlihat seperti data, bukan isian. */
input[readonly] {
    background: var(--bg-soft);
    color: var(--muted);
    cursor: default;
}

input[readonly]:focus {
    border-color: var(--line-strong);
    box-shadow: none;
}

.auth-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .auth-card.auth-card-wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-card.auth-card-wide .auth-steps,
    .auth-card.auth-card-wide .auth-note {
        display: none;
    }
}

@media (max-width: 620px) {
    .auth-page {
        padding: 14px;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-form .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tombol masuk mitra di landing: aksen mint supaya beda dari admin. */
.btn-mitra-light {
    --btn-bg: rgba(110, 231, 183, .16);
    --btn-fg: #6ee7b7;
    --btn-border: rgba(110, 231, 183, .4);
}

.btn-mitra-light:hover {
    --btn-bg: rgba(110, 231, 183, .28);
    filter: none;
}

/* --------------------------------------------------------------------------
   Ulasan & rating Pasar Kost
   -------------------------------------------------------------------------- */

.bintang {
    color: #f59e0b;
    letter-spacing: .06em;
    font-size: .95rem;
    line-height: 1;
}

/* Input bintang: radio tersembunyi + label, urutan dibalik agar
   bintang terpilih "mengisi" dari kiri ke kanan. */
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rating-input label {
    font-size: 1.9rem;
    line-height: 1;
    color: var(--line-strong);
    cursor: pointer;
    padding: 0 2px;
    transition: color .15s ease, transform .15s ease;
}

.rating-input label:hover {
    transform: translateY(-2px);
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #f59e0b;
}

.rating-input input:focus-visible + label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

