/* =====================================================
   Amory Kos — style.css (tampilan baru)
   Dipakai bersama oleh halaman calon penghuni, penghuni, dan pemilik.

   Cara mengganti warna: cukup ubah blok ":root" di bawah ini.
   Nama kelas (.card, .btn, .tile, dst.) JANGAN diganti, karena
   dipakai oleh HTML dan JavaScript.
   ===================================================== */

/* ============ WARNA & UKURAN (ubah di sini) ============ */
:root {
  /* Warna utama (biru laut). Ganti 7 baris ini untuk mengubah seluruh nuansa aplikasi. */
  --accent: #0e7490;
  --accent-dark: #0a5a73;
  --accent-2: #06b6d4;                 /* aksen cerah untuk kilau dan indikator */
  --accent-soft: #e0f3f8;              /* latar lembut untuk ikon dan label */
  --accent-ink: #0a5a73;               /* teks di atas latar lembut */
  --accent-rgb: 14, 116, 144;          /* sama dengan --accent, dalam angka RGB */
  --hero-from: #0a4f66;                /* kartu tagihan: warna awal */
  --hero-to: #0e7490;                  /* kartu tagihan: warna akhir */

  /* Latar dan teks */
  --bg: #eef4f5;
  --surface: #ffffff;
  --soft: #f4f8f8;
  --line: #e1eaeb;
  --line-strong: #cddadc;
  --g500: #7b8c90;
  --g600: #546468;                     /* teks sekunder */
  --g700: #37464a;
  --g900: #142226;                     /* teks utama */

  /* Aksen hangat */
  --sun: #f5a524;
  --sun-soft: #fff3d9;

  /* Warna status */
  --ok: #15693f;    --ok-bg: #dcf3e6;
  --warn: #85570a;  --warn-bg: #fdefcf;
  --bad: #a02f2f;   --bad-bg: #fde5e2;

  /* Bentuk, bayangan, dan gerak */
  --r-card: 18px;
  --r-ctl: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 48, 0.05), 0 6px 16px -10px rgba(15, 40, 48, 0.16);
  --shadow-md: 0 2px 4px rgba(15, 40, 48, 0.05), 0 14px 30px -14px rgba(15, 40, 48, 0.28);
  --shadow-accent: 0 8px 20px -8px rgba(var(--accent-rgb), 0.65);
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --ease: cubic-bezier(0.22, 0.9, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: 1.25rem;
  --tab-h: 5.1rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============ DASAR ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #d3e1e4;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--g900);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: rgba(var(--accent-rgb), 0.2); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.muted { color: var(--g600); }
.small { font-size: 0.85rem; }

.ic {
  flex: none; width: 1.25rem; height: 1.25rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Kolom aplikasi seukuran HP, di tengah layar */
.app {
  position: relative;
  max-width: 30rem;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(90% 30% at 100% 0%, rgba(var(--accent-rgb), 0.13), transparent 70%),
    radial-gradient(70% 26% at 0% 6%, rgba(245, 165, 36, 0.09), transparent 70%),
    var(--bg);
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 1.5rem);
}
@media (min-width: 31rem) {
  .app { box-shadow: 0 0 0 1px var(--line), 0 24px 70px rgba(15, 40, 48, 0.18); }
}

/* ============ BAR ATAS ============ */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 0.7rem;
  padding: calc(var(--safe-top) + 0.8rem) var(--pad) 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(205, 218, 220, 0.7);
}
.logo {
  flex: none; display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800;
  box-shadow: var(--shadow-accent);
}
.brand { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }

/* ============ LAYAR ============ */
.screen { padding: 1.25rem var(--pad) 0; animation: screen-in 0.4s var(--ease) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.screen-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.screen-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.screen-head .muted { margin-top: 0.15rem; }
.back {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.back:active { transform: scale(0.92); }
.sec-title {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 1.9rem 0 0.8rem; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em;
}
.sec-title::before {
  content: ""; width: 0.28rem; height: 1.05rem; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

/* ============ KARTU, TOMBOL, LENCANA ============ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0 1.2rem;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: #fff; color: var(--g900);
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease, filter 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-danger { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.btn-block { width: 100%; }
.btn[disabled] {
  background: var(--soft); border-color: var(--line); color: var(--g500);
  box-shadow: none; cursor: not-allowed; filter: none; transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: #b3c6ca; box-shadow: var(--shadow-sm); }
  .btn-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 24px -8px rgba(var(--accent-rgb), 0.75); transform: translateY(-1px); }
  .btn-danger:hover { filter: brightness(0.97); }
  .btn[disabled]:hover { border-color: var(--line); box-shadow: none; transform: none; }
}
.link-btn {
  display: block; margin: 1.25rem auto 0; padding: 0.5rem 0.75rem;
  border: 0; background: transparent; color: var(--g600); font-size: 0.85rem; text-decoration: underline;
  transition: color 0.2s ease;
}
.link-btn:hover { color: var(--accent); }

.badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0.22rem 0.65rem; border-radius: var(--r-pill);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-neutral { background: #e4ebec; color: var(--g700); }
.badge-info { background: var(--accent-soft); color: var(--accent-ink); }

.tag-accent {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700;
}

/* ============ FORMULIR ============ */
.form-card { padding: 1.3rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--g700); }

input[type="text"], input[type="password"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 2.85rem; padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background-color: #fff; font-size: 1rem;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
textarea { min-height: 5.5rem; resize: vertical; }
select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23546468' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}
select:disabled { background-color: var(--soft); color: var(--g600); }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 6rem; }
.pass-toggle {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  min-height: 2.25rem; padding: 0 0.7rem; border: 0; background: transparent;
  color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
.form-error {
  margin: -0.25rem 0 1rem; padding: 0.7rem 0.9rem; border-radius: var(--r-ctl);
  background: var(--bad-bg); color: var(--bad); font-size: 0.875rem; font-weight: 500;
  animation: shake 0.4s ease;
}
@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ============ BARIS INFORMASI ============ */
.kv {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.kv:first-child { padding-top: 0; }
.kv:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list .kv > span:first-child { color: var(--g600); }
.kv strong { font-weight: 700; text-align: right; }
.total-row { margin-bottom: 1rem; padding-top: 0; }
.total-row strong { font-size: 1.2rem; color: var(--accent-dark); }

/* ============ BERANDA ============ */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1rem 0; margin-bottom: 1rem; }
.sum-item { display: grid; justify-items: center; gap: 0.1rem; }
.sum-item + .sum-item { border-left: 1px solid var(--line); }
.sum-item strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.sum-item.ok strong { color: var(--ok); }
.sum-item.warn strong { color: var(--warn); }
.sum-item span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--g600); }
.sum-item span::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--g500); box-shadow: 0 0 0 3px rgba(123, 140, 144, 0.18);
}
.sum-item.ok span::before { background: #34a874; box-shadow: 0 0 0 3px rgba(52, 168, 116, 0.2); }
.sum-item.warn span::before { background: var(--sun); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.24); }

.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.tile {
  display: grid; align-content: space-between; gap: 0.4rem; min-height: 8.4rem; padding: 1rem;
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.tile:has(.badge-ok) { background: linear-gradient(165deg, #fff 38%, #e3f6ec 100%); }
.tile:has(.badge-warn) { background: linear-gradient(165deg, #fff 38%, #fdf0d3 100%); }
.tile:active { transform: scale(0.96); }
.tile.is-full { background: var(--soft); box-shadow: none; }
.tile.is-own { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2), var(--shadow-md); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .tile.is-full:hover { box-shadow: var(--shadow-sm); }
}
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.tile-no { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--g900); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .tile:not(.is-full) .tile-no {
    background: linear-gradient(135deg, var(--g900) 30%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.tile.is-full .tile-no { color: var(--g500); }
.tile-foot { display: grid; gap: 0.35rem; justify-items: start; }

/* ============ DETAIL KAMAR ============ */
.photo {
  display: grid; place-content: center; justify-items: center; gap: 0.4rem;
  height: 11.5rem; margin-bottom: 1.25rem; border-radius: 24px;
  background:
    radial-gradient(circle at 18% 22%, rgba(var(--accent-rgb), 0.28), transparent 52%),
    radial-gradient(circle at 85% 85%, rgba(245, 165, 36, 0.22), transparent 55%),
    linear-gradient(135deg, #d5eef3, #e8f4f1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}
.photo .ic { width: 2.7rem; height: 2.7rem; opacity: 0.8; }
.photo span { color: var(--g600); }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.title-row h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.price { font-size: 1.0625rem; font-weight: 700; }
.price small { margin-left: 0.15rem; font-size: 0.8rem; font-weight: 500; color: var(--g600); }
.price.big { margin-top: 1rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-dark); }

.fas-list { padding: 0.25rem 1.05rem; }
.fas-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.fas-item:last-child { border-bottom: 0; }
.fas-ic {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 14px; background: linear-gradient(135deg, var(--accent-soft), #cdeaf2); color: var(--accent);
}
.fas-item strong { display: block; font-weight: 700; }

.cta-bar {
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-bottom) + 0.75rem); margin-top: 0.4rem;
  padding: 1.3rem 0 0.1rem;
  background: linear-gradient(180deg, rgba(238, 244, 245, 0), rgba(238, 244, 245, 0.94) 45%);
}
.cta-note { margin-bottom: 0.5rem; text-align: center; }

.room-mini { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.room-mini .mini-ic {
  flex: none; display: grid; place-items: center; width: 3.6rem; height: 3.6rem;
  border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), #cdeaf2); color: var(--accent);
}
.room-mini .mini-ic .ic { width: 1.6rem; height: 1.6rem; }

/* ============ STATUS BOOKING ============ */
.big-amount { margin: 0.25rem 0 0.9rem; font-size: 1.95rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.actions { display: grid; gap: 0.6rem; margin-top: 1rem; }

.steps { margin-top: 1.25rem; }
.steps li { position: relative; display: flex; gap: 0.9rem; padding-bottom: 1.25rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; left: calc(0.925rem - 1px); top: 1.95rem; bottom: 0.1rem;
  width: 2px; border-radius: 2px; background: var(--line);
}
.steps li.done::before { background: linear-gradient(180deg, var(--ok), rgba(21, 105, 63, 0.25)); }
.steps li:last-child::before { display: none; }
.dot {
  flex: none; display: grid; place-items: center; width: 1.85rem; height: 1.85rem;
  border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--g500);
}
.dot .ic { width: 0.9rem; height: 0.9rem; stroke-width: 2.4; }
.steps .done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .current .dot { border-color: var(--accent); color: var(--accent); animation: ring 2.2s ease-out infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
}

.empty { display: grid; justify-items: center; gap: 0.5rem; padding: 2.5rem 1rem; text-align: center; color: var(--g600); }
.empty .ic { width: 2rem; height: 2rem; color: var(--accent); }
.empty strong { color: var(--g900); }
.empty .btn { margin-top: 0.75rem; }
.empty > span:only-child { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ============ KWITANSI DIGITAL ============ */
.receipt {
  margin-top: 1rem; padding: 1.3rem; background: #fff;
  border: 1px solid var(--line-strong); border-top: 5px solid var(--accent);
  border-radius: var(--r-card); box-shadow: var(--shadow-md);
}
.receipt-head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; margin-bottom: 0.25rem; border-bottom: 1px dashed var(--line-strong); }
.receipt-head strong { display: block; line-height: 1.2; }
.stamp {
  margin-left: auto; padding: 0.2rem 0.7rem; border: 2px solid var(--ok); border-radius: 8px;
  color: var(--ok); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; transform: rotate(-4deg);
}
.receipt .kv { padding: 0.65rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.receipt .kv > span:first-child { color: var(--g600); }
.receipt-total {
  margin-top: 0.75rem; padding: 1rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #eef9fb);
}
.receipt-total strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; color: var(--accent-dark); }
.receipt-foot { margin-top: 0.9rem; }

/* ============ PROFIL / LOGIN ============ */
.login-card { padding: 1.6rem 1.3rem; }
.login-card h2 { margin-bottom: 0.25rem; font-size: 1.15rem; font-weight: 800; text-align: center; }
.login-card > .muted { margin-bottom: 1.25rem; text-align: center; }
.login-ic {
  display: grid; place-items: center; width: 3.8rem; height: 3.8rem; margin: 0 auto 0.9rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), #cdeaf2); color: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.07);
}
.login-ic .ic { width: 1.7rem; height: 1.7rem; }
.note { display: flex; gap: 0.75rem; margin-top: 1rem; }
.note .ic { margin-top: 0.15rem; color: var(--accent); }

/* ============ NAVIGASI BAWAH (melayang) ============ */
.tabbar {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 0.65rem); z-index: 30;
  display: flex; gap: 0.15rem; width: calc(100% - 1.5rem); max-width: 28.5rem; transform: translateX(-50%);
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(205, 218, 220, 0.8); border-radius: 26px;
  box-shadow: 0 14px 34px -12px rgba(15, 40, 48, 0.32), 0 2px 6px rgba(15, 40, 48, 0.05);
}
.tabbar button {
  position: relative; flex: 1; display: grid; justify-items: center; align-content: center; gap: 0.15rem;
  min-height: 3.35rem; border: 0; border-radius: 20px; background: transparent;
  color: var(--g600); font-size: 0.7rem; font-weight: 700;
  transition: color 0.25s ease, background-color 0.3s ease, transform 0.2s var(--ease);
}
.tabbar button .ic { transition: transform 0.35s var(--spring); }
.tabbar button:active { transform: scale(0.92); }
.tabbar button.is-on { color: var(--accent-dark); background: var(--accent-soft); }
.tabbar button.is-on .ic { stroke-width: 2.1; transform: translateY(-1px) scale(1.12); }
.tab-dot {
  position: absolute; top: 0.45rem; left: calc(50% + 0.55rem); width: 0.62rem; height: 0.62rem;
  border-radius: 50%; background: var(--sun); border: 2px solid #fff;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(245, 165, 36, 0); }
}

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; z-index: 40;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 0.8rem);
  width: max-content; max-width: calc(100% - 2.5rem);
  padding: 0.75rem 1.1rem; border-radius: 16px;
  background: rgba(20, 34, 38, 0.94); color: #fff; font-size: 0.875rem; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -10px rgba(15, 40, 48, 0.5);
  opacity: 0; pointer-events: none; transform: translate(-50%, 1rem) scale(0.96);
  transition: opacity 0.25s ease, transform 0.4s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ============ CETAK KWITANSI ============ */
@media print {
  html, body { background: #fff; }
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 1px solid #999; box-shadow: none; }
  .app { box-shadow: none; }
  * { animation: none !important; }
}

/* =====================================================
   TAMBAHAN UNTUK HALAMAN PENGHUNI
   ===================================================== */
.appbar-action {
  margin-left: auto; min-height: 2.35rem; padding: 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--g700); font-size: 0.85rem; font-weight: 700;
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.appbar-action:active { transform: scale(0.94); }
.stack { display: grid; gap: 0.8rem; }
.card-title { margin-bottom: 1rem; font-size: 1rem; font-weight: 800; }
.label { font-size: 0.85rem; font-weight: 700; color: var(--g700); }

.tag {
  display: inline-block; padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--soft); color: var(--g600); font-size: 0.75rem; font-weight: 600;
}

/* Pengingat */
.notice {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; padding: 0.95rem 1.05rem;
  border-radius: var(--r-card); background: var(--warn-bg); color: var(--warn);
  border: 1px solid rgba(133, 87, 10, 0.12);
}
.notice.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(160, 47, 47, 0.14); }
.notice strong { display: block; }
.notice p { font-size: 0.875rem; }

/* Tagihan (kartu utama berwarna) */
.bill {
  position: relative; overflow: hidden; padding: 1.3rem; border: 0; color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.4) 0%, transparent 55%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  box-shadow: 0 18px 36px -16px rgba(var(--accent-rgb), 0.7);
}
.bill-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bill .muted, .bill .small { color: #dff3f8; }
.bill .big-amount { margin: 0.5rem 0 0.25rem; color: #fff; }
.bill .btn { margin-top: 1rem; }
.bill .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45); }

/* Bilah kemajuan */
.bar { height: 0.55rem; margin: 0.9rem 0 0.6rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.8s var(--ease);
}

/* Baris yang bisa diketuk */
.row {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 0.95rem 1.05rem; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.row:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #bfd8df; }
}
.row-body { flex: 1; min-width: 0; }
.row-ic {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 14px; background: linear-gradient(135deg, var(--accent-soft), #cdeaf2); color: var(--accent);
}
.chev { color: var(--g500); transition: transform 0.25s var(--ease); }

/* Pintasan */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.8rem; }
.quick button {
  position: relative; display: grid; justify-items: center; gap: 0.45rem; padding: 1rem 0.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  font-size: 0.8rem; font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.quick button:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .quick button:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.quick .ic { color: var(--accent); width: 1.4rem; height: 1.4rem; }
.dot-count {
  position: absolute; top: 0.5rem; right: 0.6rem; display: grid; place-items: center;
  min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border-radius: 99px;
  background: var(--accent-dark); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1;
}

/* Unggah berkas */
.upload {
  position: relative; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.05rem; border: 1.5px dashed var(--line-strong); border-radius: 14px;
  background: #fff; color: var(--g600); font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.upload .ic { color: var(--accent); }
.upload:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.upload span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview { width: 100%; max-height: 12rem; margin-top: 0.5rem; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }

/* Keluhan */
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.c-main { display: flex; gap: 0.75rem; margin-top: 0.7rem; }
.c-desc { flex: 1; }
.c-foot { margin-top: 0.7rem; font-size: 0.8rem; color: var(--g600); }
.thumb { flex: none; width: 4.2rem; height: 4.2rem; border-radius: 14px; object-fit: cover; background: var(--soft); }

/* Pengumuman */
.ann h3 { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; }
.a-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.a-body { margin-top: 0.4rem; color: var(--g600); }
.a-foot { margin-top: 0.75rem; font-size: 0.8rem; color: var(--g600); }

.rules { display: grid; gap: 0.5rem; padding-left: 1.1rem; list-style: disc; color: var(--g600); }
.rules li::marker { color: var(--accent); }

/* =====================================================
   TAMBAHAN UNTUK HALAMAN PEMILIK
   ===================================================== */
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn-sm { min-height: 2.4rem; padding: 0 0.9rem; font-size: 0.85rem; border-radius: 12px; }
.actions-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }

/* Filter */
.chips {
  display: flex; gap: 0.5rem; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 1rem; padding: 0.2rem var(--pad) 0.5rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 2.3rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: #fff; color: var(--g600); font-size: 0.85rem; font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s var(--ease);
}
.chip:active { transform: scale(0.94); }
.chip.is-on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-accent); }

/* Dashboard */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.stat {
  display: grid; gap: 0.15rem; padding: 1.05rem; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.stat .ic-wrap {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.5rem;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
}
.stat-grid .stat:nth-child(2) .ic-wrap { background: var(--ok-bg); color: var(--ok); }
.stat-grid .stat:nth-child(3) .ic-wrap { background: var(--sun-soft); color: #9a6400; }
.stat-grid .stat:nth-child(4) .ic-wrap { background: #ede9fe; color: #5b3fd1; }
.stat strong { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { font-size: 0.85rem; font-weight: 500; color: var(--g600); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; }

/* Daftar kamar, penghuni, pembayaran */
.avatar {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #c4e6ef); color: var(--accent-ink);
  font-size: 0.85rem; font-weight: 800;
}
.room-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.room-row .select-sm { width: auto; min-height: 2.5rem; }
.pay-top { display: flex; align-items: center; gap: 0.85rem; }

details.tenant summary { display: flex; align-items: center; gap: 0.85rem; list-style: none; cursor: pointer; }
details.tenant summary::-webkit-details-marker { display: none; }
details.tenant[open] .chev { transform: rotate(90deg); }
.tenant-body { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
details.tenant[open] .tenant-body { animation: fade-down 0.3s var(--ease) both; }
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.search { position: relative; margin-bottom: 1rem; }
.search .ic { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--g500); }
.search input { padding-left: 2.7rem; }

.check { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }

.thumb-ph { display: grid; place-items: center; color: var(--g500); }
.select-sm { margin-top: 0.85rem; }
.room-row .select-sm { margin-top: 0; }

/* Lencana angka di navigasi bawah */
.tab-badge {
  position: absolute; top: 0.2rem; left: calc(50% + 0.4rem); display: grid; place-items: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 99px;
  background: var(--bad); color: #fff; font-size: 0.65rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px #fff;
  animation: pop 0.45s var(--spring) both;
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Kotak dialog akun penghuni */
dialog.sheet {
  width: min(26rem, calc(100% - 2.5rem)); padding: 0; border: 0; border-radius: 24px;
  background: #fff; color: var(--g900); box-shadow: 0 30px 70px -20px rgba(15, 40, 48, 0.55);
}
dialog.sheet[open] { animation: sheet-in 0.4s var(--spring) both; }
dialog.sheet::backdrop {
  background: rgba(15, 34, 38, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade 0.3s ease both;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-body { padding: 1.35rem; }
.sheet-body h2 { margin-bottom: 0.25rem; font-size: 1.15rem; font-weight: 800; }
.cred { margin: 1rem 0; padding: 0.95rem 1.05rem; border-radius: 16px; background: var(--soft); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ PILIHAN PEMBAYARAN (lunas atau DP) ============ */
.opts { display: grid; gap: 0.6rem; }
.opt {
  display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.9rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.opt input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--accent); }
.field .opt { font-size: 0.9375rem; font-weight: 400; color: var(--g900); }
.opt strong { display: block; font-weight: 700; }
.opt small { display: block; color: var(--g600); font-size: 0.82rem; font-weight: 400; line-height: 1.4; }
.sum-box { margin: 0 0 1rem; padding: 0.2rem 1rem; border-radius: 14px; background: var(--soft); }

/* ============ FOTO KAMAR DAN LINGKUNGAN ============ */
.photo.has-img { padding: 0; overflow: hidden; }
.photo.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.room-num span { font-size: 5.5rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.env { margin-bottom: 1.1rem; }
.env-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.env-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--soft); box-shadow: var(--shadow-sm); }
.foto-slot { display: flex; align-items: center; gap: 0.85rem; }
.foto-thumb {
  flex: none; display: grid; place-items: center; width: 5.2rem; height: 4rem; border-radius: 12px;
  background: var(--soft); color: var(--g500); object-fit: cover; overflow: hidden;
}
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ============ KURANGI GERAKAN (pengaturan aksesibilitas pengguna) ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
