:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --surface: #fdf2f8;
  --border: #fbcfe8;
  --ink: #3b1d2f;
  --muted: #9d6b86;
  --bs-primary: #ec4899;
  --bs-primary-rgb: 236, 72, 153;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html, body { background: #fff7fb; color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
body { min-height: 100vh; }
.app-shell { max-width: 540px; margin: 0 auto; min-height: 100vh; background: #fff; box-shadow: 0 0 40px rgba(236,72,153,.08); position: relative; padding-bottom: 110px; }
.app-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; line-height: 1.1; }
.brand-icon { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #f472b6, var(--pink)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); }
.wa-badge { font-size: .72rem; font-weight: 700; padding: .4rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.wa-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.page { padding: 16px; }
.page-title { font-weight: 800; font-size: 1.25rem; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }

.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 700; border-radius: 14px; padding: .65rem 1rem; }
.btn-pink:hover, .btn-pink:active, .btn-pink:focus { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.btn-soft { background: var(--surface); border: 1px solid var(--border); color: var(--pink-dark); font-weight: 700; border-radius: 14px; }
.btn-soft:hover { background: var(--border); color: var(--pink-dark); }
.soft-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.form-control, .form-select { border-radius: 12px; border-color: var(--border); padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--pink); box-shadow: 0 0 0 .2rem rgba(236,72,153,.18); }
.form-label { font-weight: 700; font-size: .82rem; color: var(--ink); margin-bottom: 6px; }

/* Choice chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; user-select: none; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: .85rem; color: var(--ink); transition: all .15s; }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(236,72,153,.3); }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 512px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 10px 30px rgba(236,72,153,.25); display: flex; padding: 8px; z-index: 30; }
.bottom-nav a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 18px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; }
.bottom-nav a i { display: block; font-size: 1.3rem; }
.bottom-nav a.active { background: var(--pink); color: #fff; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .month { font-weight: 800; font-size: 1.1rem; }
.cal-nav { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--pink-dark); font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1/1; border-radius: 14px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; cursor: pointer; position: relative; color: var(--ink); }
.cal-day.empty { visibility: hidden; }
.cal-day.today { border-color: var(--pink); }
.cal-day.selected { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(236,72,153,.35); }
.cal-day .dots { display: flex; gap: 3px; position: absolute; bottom: 6px; }
.cal-day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.cal-day .dot.done { background: #22c55e; }
.cal-day.selected .dot { box-shadow: 0 0 0 1.5px #fff; }

.agenda-item { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.agenda-time { background: var(--surface); color: var(--pink-dark); font-weight: 800; border-radius: 12px; padding: 8px 10px; font-size: .85rem; min-width: 62px; text-align: center; }
.agenda-item.done .agenda-time { background: #dcfce7; color: #15803d; }
.agenda-body { flex: 1; min-width: 0; }
.agenda-body .nm { font-weight: 800; }
.agenda-body .pg { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Client card */
.client-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px; margin-bottom: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(135deg, #f9a8d4, var(--pink)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--surface); color: var(--pink-dark); border: 1px solid var(--border); margin: 2px 2px 0 0; }
.stat { text-align: center; background: var(--surface); border-radius: 14px; padding: 8px 4px; }
.stat b { display: block; font-size: 1.05rem; color: var(--pink-dark); }
.stat span { font-size: .68rem; color: var(--muted); font-weight: 600; }

/* Live session */
.live-panel { position: fixed; inset: 0; background: rgba(59,29,47,.45); z-index: 50; display: none; }
.live-panel.show { display: block; }
.live-sheet { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; max-height: 94vh; background: #fff; border-radius: 28px 28px 0 0; overflow-y: auto; padding: 18px 16px 24px; }
.stopwatch { font-size: 2.6rem; font-weight: 800; color: var(--pink-dark); text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.live-badge { background: #fee2e2; color: #dc2626; font-weight: 800; font-size: .7rem; border-radius: 999px; padding: .25rem .7rem; }
.live-badge::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; margin-right: 6px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.ex-row { border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.ex-row .tip { font-size: .75rem; color: var(--muted); }
/* 3 input compact sejajar: Set | Repetisi | Beban (mudah diketuk jempol) */
.live-inputs { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 8px; }
.live-inputs label { display: block; font-size: .68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.live-inputs .form-control { min-height: 46px; padding: .4rem .3rem; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--pink-dark); background: #fff; }
.live-sticky-cta { position: sticky; bottom: -24px; background: #fff; padding: 10px 0 4px; }

.info-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 16px; padding: 12px 14px; font-size: .85rem; line-height: 1.45; }
.protein-box { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.protein-box .big { font-size: 2rem; font-weight: 800; color: var(--pink-dark); line-height: 1; }

/* Wizard */
.wizard-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.wizard-steps i { flex: 1; height: 6px; border-radius: 6px; background: var(--border); }
.wizard-steps i.on { background: var(--pink); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, #fdf2f8, #fbcfe8); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 28px; padding: 28px 22px; box-shadow: 0 20px 50px rgba(236,72,153,.2); }

/* Transisi halus antar menu (Turbo mengganti isi halaman -> elemen baru, animasi fade jalan) */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
main.page { animation: pageFadeIn .15s ease-out; }
.bottom-nav a { transition: background-color .15s ease, color .15s ease; }
.turbo-progress-bar { background: var(--pink); height: 3px; }
@media (prefers-reduced-motion: reduce) { main.page { animation: none; } .bottom-nav a { transition: none; } }

.toast-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 100; width: calc(100% - 32px); max-width: 500px; }
.modal-content { border-radius: 24px; border: none; }
.modal-header, .modal-footer { border-color: var(--border); }
