/* =========================================================
   The Girl House — Design System
   Tema: coklat mocha + dusty rose + krem (light & dark)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --primary: #9b6a4f;        /* mocha coklat */
  --primary-strong: #7c5038; /* coklat tua */
  --primary-soft: #f3e6dd;   /* mocha muda */
  --primary-contrast: #ffffff;

  --rose: #c98b85;           /* dusty rose (aksen logo) */
  --rose-soft: #f4e5e2;

  --bg: #f7efe9;             /* krem */
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #f0ddd0 0%, transparent 60%),
             radial-gradient(900px 500px at -10% 10%, #f4e6de 0%, transparent 55%);
  --surface: #fffaf6;        /* putih hangat */
  --surface-2: #f5e9e1;
  --surface-3: #eedcd1;
  --border: #ecdccf;
  --border-strong: #ddc6b6;

  --text: #3f2c22;           /* coklat gelap */
  --text-muted: #8a6f61;
  --text-soft: #ab9284;

  --success: #4b9b6e;  --success-soft: #dcefe3;
  --danger: #c0544f;   --danger-soft: #f6e0dd;
  --warning: #bf8a3a;  --warning-soft: #f6e9d3;
  --info: #9b6a4f;     --info-soft: #f3e6dd;
  --purple: #b07d8f;   --purple-soft: #f2e5ea;   /* rose-ungu */

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(80,50,35,.04), 0 10px 30px rgba(90,60,40,.07);
  --shadow-lg: 0 18px 48px rgba(90,60,40,.16);
  --ring: 0 0 0 4px rgba(155,106,79,.18);

  --sidebar-w: 256px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Fraunces", Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  --primary: #d7a488;        /* mocha terang */
  --primary-strong: #c08a6a;
  --primary-soft: rgba(215,164,136,.16);
  --primary-contrast: #241812;

  --rose: #d9a6a0;
  --rose-soft: rgba(217,166,160,.16);

  --bg: #211611;             /* espresso */
  --bg-grad: radial-gradient(1100px 600px at 100% -10%, rgba(215,164,136,.14) 0%, transparent 60%),
             radial-gradient(800px 500px at -10% 5%, rgba(201,139,133,.10) 0%, transparent 55%);
  --surface: #2c1f18;
  --surface-2: #34251d;
  --surface-3: #3f2e25;
  --border: #45332a;
  --border-strong: #56412f;

  --text: #f3e7df;
  --text-muted: #c5ab9c;
  --text-soft: #9a8171;

  --success: #5cc08e;  --success-soft: rgba(92,192,142,.15);
  --danger: #e08a84;   --danger-soft: rgba(224,138,132,.16);
  --warning: #e0b463;  --warning-soft: rgba(224,180,99,.15);
  --info: #d7a488;     --info-soft: rgba(215,164,136,.14);
  --purple: #d9a6b6;   --purple-soft: rgba(217,166,182,.16);

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.55);
  --ring: 0 0 0 3px rgba(215,164,136,.3);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { margin: 0 0 .3em; font-weight: 700; letter-spacing: -.01em; }
img { max-width: 100%; }

/* ---------- App shell ---------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-tag { font-size: .72rem; color: var(--text-soft); }

.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-soft); font-weight: 700; padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; color: var(--text-muted);
  font-weight: 600; font-size: .92rem; transition: .15s; position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--primary-soft); color: var(--primary-strong); }
.nav-item.active svg { color: var(--primary-strong); }
.nav-item svg { width: 20px; height: 20px; flex: none; color: var(--text-soft); }
.nav-badge { margin-left: auto; background: var(--danger); color:#fff; font-size: .68rem;
  font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- Main / topbar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-title h1 { font-size: 1.25rem; margin: 0; }
.topbar-title p { margin: 0; font-size: .82rem; color: var(--text-muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center; position: relative; transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 2px solid var(--surface); }
.icon-btn .count { position: absolute; top: -5px; right: -5px; background: var(--danger);
  color:#fff; font-size: .64rem; font-weight: 800; min-width: 17px; height: 17px;
  border-radius: 9px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--surface); }

.content { padding: 22px 24px 60px; max-width: 1240px; width: 100%; margin: 0 auto; }

/* ---------- Avatar & user menu ---------- */
.avatar { width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--rose)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.avatar.sm { width: 30px; height: 30px; font-size: .7rem; border-radius: 9px; }

/* dropdown */
.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: none;
}
.menu.open { display: block; animation: pop .12s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; } }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 10px; color: var(--text); font-size: .9rem;
  background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu svg { width: 18px; height: 18px; color: var(--text-soft); }
.menu-head { padding: 8px 11px 6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head strong { display: block; font-size: .9rem; }
.menu-head span { font-size: .78rem; color: var(--text-muted); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* notif dropdown list */
.notif-menu { width: 340px; max-width: calc(100vw - 32px); }
.notif-item { display: flex; gap: 10px; padding: 10px 11px; border-radius: 10px; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--primary-soft); }
.notif-dot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.notif-item small { color: var(--text-soft); font-size: .72rem; }
.notif-item p { margin: 2px 0 0; font-size: .82rem; color: var(--text-muted); }
.notif-item strong { font-size: .86rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; font-weight: 650; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s; font-family: inherit;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-strong); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-soft { background: var(--primary-soft); color: var(--primary-strong); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 12%); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover { background: color-mix(in srgb, var(--danger-soft) 60%, var(--danger) 15%); text-decoration:none; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 11px; font-size: .82rem; border-radius: 9px; }
.btn-xs { padding: 5px 9px; font-size: .76rem; border-radius: 8px; gap: 5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 1rem; }
.card-head .sub { font-size: .8rem; color: var(--text-muted); }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 16px 18px; }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.cols-main { grid-template-columns: 2fr 1fr; }
@media (max-width: 1000px){ .g-4 { grid-template-columns: repeat(2,1fr);} .cols-main{grid-template-columns:1fr;} }
@media (max-width: 720px){ .g-2,.g-3,.g-4 { grid-template-columns: 1fr; } }

/* KPI */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.kpi .top { display: flex; align-items: center; gap: 10px; }
.kpi-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-ico svg { width: 21px; height: 21px; }
.kpi .label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.kpi .value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .value.sm { font-size: 1.25rem; }
.kpi .foot { font-size: .78rem; color: var(--text-soft); }

.ico-blue { background: var(--info-soft); color: var(--info); }
.ico-green { background: var(--success-soft); color: var(--success); }
.ico-red { background: var(--danger-soft); color: var(--danger); }
.ico-amber { background: var(--warning-soft); color: var(--warning); }
.ico-purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- Badges & pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.5; }
.badge.b-green { background: var(--success-soft); color: var(--success); }
.badge.b-red { background: var(--danger-soft); color: var(--danger); }
.badge.b-amber { background: var(--warning-soft); color: var(--warning); }
.badge.b-blue { background: var(--info-soft); color: var(--info); }
.badge.b-purple { background: var(--purple-soft); color: var(--purple); }
.badge.b-muted { background: var(--surface-2); color: var(--text-muted); }
.dot-mini { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pill-tabs { display: inline-flex; gap: 4px; background: var(--surface-2);
  padding: 4px; border-radius: 12px; border: 1px solid var(--border); flex-wrap: wrap; }
.pill-tabs a { padding: 7px 13px; border-radius: 9px; font-size: .84rem; font-weight: 600;
  color: var(--text-muted); }
.pill-tabs a:hover { color: var(--text); text-decoration: none; }
.pill-tabs a.active { background: var(--surface); color: var(--primary-strong); box-shadow: var(--shadow); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-soft); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-green { color: var(--success); } .text-red { color: var(--danger); }
.text-muted { color: var(--text-muted); } .text-soft { color: var(--text-soft); }
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-size: .82rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .74rem; color: var(--text-soft); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .92rem; transition: .15s;
}
textarea { resize: vertical; min-height: 74px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--text-soft); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px){ .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--text-muted); cursor: pointer; }
.check input { width: auto; }
.input-money { position: relative; }
.input-money::before { content: "Rp"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-soft); font-size: .88rem; font-weight: 600; pointer-events: none; }
.input-money input { padding-left: 38px; }

/* segmented radio for income/expense */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 11px; border: 1.5px solid var(--border-strong);
  cursor: pointer; font-weight: 650; font-size: .88rem; color: var(--text-muted); }
.seg input { display: none; }
.seg input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.seg label.income.on, .seg input.income:checked + label { border-color: var(--success); background: var(--success-soft); color: var(--success); }

/* ---------- Dialog / modal ---------- */
dialog { border: none; border-radius: var(--radius-lg); padding: 0; max-width: 520px; width: calc(100% - 32px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(15,23,42,.45); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.dialog-head h3 { margin: 0; font-size: 1.05rem; }
.dialog-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.dialog-foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); justify-content: flex-end; }
.close-x { margin-left: auto; }

/* ---------- Progress / bars ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--rose)); }

/* bar chart (income vs expense) */
.barchart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 160px; width: 100%; justify-content: center; }
.bar { width: 26px; max-width: 40%; border-radius: 6px 6px 0 0; min-height: 3px; position: relative; transition: .3s; }
.bar.inc { background: linear-gradient(180deg, var(--rose), var(--primary)); }
.bar.exp { background: linear-gradient(180deg, #fb7185, var(--danger)); opacity: .9; }
.bar-group .lbl2 { font-size: .74rem; color: var(--text-muted); text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--text-muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* category bars */
.catbar { margin-bottom: 12px; }
.catbar .row { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: 5px; }
.catbar .track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.catbar .fill { height: 100%; border-radius: 999px; }

/* ---------- Misc ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.mt-0{margin-top:0}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}
.muted-box { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.divide > * + * { border-top: 1px solid var(--border); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.list-row .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.list-row .grow { min-width: 0; flex: 1; }
.list-row .grow .t { font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .grow .s { font-size: .78rem; color: var(--text-muted); }

.empty { text-align: center; padding: 44px 20px; color: var(--text-muted); }
.empty svg { width: 46px; height: 46px; color: var(--text-soft); margin-bottom: 12px; }
.empty h4 { margin: 0 0 4px; color: var(--text); }
.empty p { margin: 0 0 16px; font-size: .88rem; }

.section-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.section-title h2 { font-size: 1.1rem; margin: 0; }
.section-title .spacer { margin-left: auto; }

/* ---------- Flash / toast ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px;
  max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  min-width: 260px; animation: slideIn .25s ease; }
.toast .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast .msg { font-size: .88rem; font-weight: 550; }
.toast.success .ic { background: var(--success-soft); color: var(--success); }
.toast.danger .ic { background: var(--danger-soft); color: var(--danger); }
.toast.warning .ic { background: var(--warning-soft); color: var(--warning); }
.toast.info .ic, .toast .ic { background: var(--info-soft); color: var(--info); }
.toast .x { margin-left: auto; background: none; border: none; color: var(--text-soft); cursor: pointer; padding: 2px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }

/* PWA install banner */
.install-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 14px; padding: 12px 14px; display: none; align-items: center; gap: 12px; z-index: 150;
  max-width: calc(100vw - 24px); }
.install-banner.show { display: flex; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: linear-gradient(150deg, #6e4634 0%, #9b6a4f 48%, #c98b85 100%);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero::after { content:""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 10%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(500px 300px at 10% 90%, rgba(255,255,255,.12), transparent 55%); }
.auth-hero .brand-name { color: #fff; }
.auth-hero h2 { font-size: 2rem; line-height: 1.15; max-width: 420px; position: relative; }
.auth-hero p { color: rgba(255,255,255,.85); max-width: 380px; position: relative; }
.auth-feats { display: flex; flex-direction: column; gap: 14px; position: relative; }
.auth-feat { display: flex; gap: 12px; align-items: flex-start; }
.auth-feat .fi { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; flex: none; }
.auth-feat strong { display: block; }
.auth-feat span { color: rgba(255,255,255,.82); font-size: .86rem; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-logo-sm { display: none; }
@media (max-width: 860px){
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-logo-sm { display: flex; }
}

/* ---------- Responsive shell ---------- */
.backdrop { display: none; }
@media (max-width: 900px){
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%);
    transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 39; }
  .hamburger { display: grid; }
  .content { padding: 18px 16px 80px; }
  .topbar { padding: 12px 16px; }
}

/* =========================================================
   Penghalus tampilan (biar tidak kaku)
   ========================================================= */
/* Heading & brand pakai serif elegan sesuai logo */
h1, h2, h3, h4, .brand-name, .store-brand-name,
.hero-text h1, .section-head h2, .card-head h3, .topbar-title h1,
.auth-card h1, .pdetail-info h1, .empty h4, .dialog-head h3 {
  font-family: var(--font-display);
  letter-spacing: -.005em;
  font-weight: 700;
}
.brand-name, .store-brand-name { letter-spacing: 0; }

/* Tombol primary sedikit bergradasi + lebih luwes */
.btn { border-radius: 13px; padding: 11px 18px; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, #fff 8%), var(--primary-strong));
}
.btn-primary:hover { background: linear-gradient(180deg, var(--primary), var(--primary-strong)); }
.btn-lg { border-radius: 15px; }

/* Kartu: transisi & animasi masuk yang halus */
.card { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  animation: tf-rise .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes tf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card, .pcard { animation: none; } }

/* Input lebih lembut */
input, select, textarea { border-radius: 13px; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }

/* Sidebar item aktif: aksen lembut di kiri */
.nav-item { border-radius: 13px; }
.nav-item.active { box-shadow: inset 3px 0 0 var(--primary); }

/* Badge & pill sedikit lebih lega */
.badge { padding: 4px 10px; }

/* Scrollbar hangat */
* { scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }

/* utility hidden */
[hidden] { display: none !important; }
.only-desktop { }
@media (max-width: 640px){ .hide-sm { display: none !important; } .kpi .value { font-size: 1.3rem; } }
