/* GoodHands Sneaker Care — styles.css (vanilla, mobile-first, dark).
   Pola warna mengikuti PWA yang dievaluasi: latar gelap, aksen biru,
   kartu gelap. Tanpa framework, tanpa bottom navigation. */
:root {
  --bg: #0b0f14;
  --card: #151b23;
  --card-soft: #1b232e;
  --text: #eef2f7;
  --muted: #93a1b3;
  --border: #26313f;
  --blue: #2f7bff;
  --blue-dark: #1d5fd6;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--blue); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: #fca5a5; background: #3f1d1d; border: 1px solid #7f2d2d; padding: 10px 12px; border-radius: 10px; margin: 10px 0; white-space: pre-line; }
.ok-msg { color: #86efac; background: #14532d; border: 1px solid #166534; padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.check-row input { width: auto; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #2f7bff; color: #fff; }
.topbar h1 { font-size: 17px; line-height: 1.15; margin: 0; }
.topbar .date { font-size: 13px; opacity: .85; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-logo { background: #fff; color: #111; font-weight: 800; border-radius: 999px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.hero .brand-logo { background: #111; color: #fff; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.hamburger { background: rgba(255,255,255,.18); color: #fff; border: 0; font-size: 22px; width: 42px; height: 42px; border-radius: 50%; }
.mode-tim-btn { background: rgba(255,255,255,.25); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 700; }
.session-chip { background: rgba(0,0,0,.25); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* Drawer kiri */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; max-width: 85vw; background: #10161e; border-right: 1px solid var(--border); z-index: 51; padding: 14px; transform: translateX(-105%); transition: transform .2s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.drawer-head b { font-size: 15px; line-height: 1.2; }
.drawer-close { margin-left: auto; background: none; border: 0; color: var(--text); font-size: 18px; }
.spacer { flex: 1; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav button { text-align: left; background: none; border: 0; color: var(--text); padding: 12px 10px; border-radius: 10px; font-size: 16px; }
.drawer-nav button.active { background: var(--card-soft); font-weight: 700; }
.drawer-nav button.danger { color: #f87171; font-weight: 700; }
.drawer-foot { margin-top: auto; font-size: 12px; padding-top: 12px; }

/* Layout umum */
main { max-width: 720px; margin: 0 auto; padding: 14px 14px 110px; }
.view h2, .team-tab h2 { margin: 6px 0 10px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card.soft { background: var(--card-soft); }
.hero h2 { font-size: 26px; margin: 12px 0 8px; }
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
label input, label select { display: block; width: 100%; margin-top: 6px; background: #0f141b; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; }
label input:disabled { opacity: .55; }
.row2 { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.row3 { display: flex; gap: 14px; flex-wrap: wrap; }
.row3 label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin-bottom: 6px; }
.row-between { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }

/* Tombol */
.btn { background: var(--card-soft); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:disabled { opacity: .55; cursor: wait; }
.btn.big { width: 100%; padding: 13px; font-size: 16px; margin-top: 4px; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.danger { background: #7f1d1d; border-color: #991b1b; color: #fecaca; }
.link { background: none; border: 0; color: var(--blue); font-size: 14px; padding: 0; }
.fab-wrap { position: fixed; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; z-index: 45; pointer-events: none; }
.fab-pill { pointer-events: auto; padding: 14px 26px; font-size: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }

/* Tabs & daftar */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { background: var(--card-soft); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; }
.tabs button.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-week .day { padding: 10px 4px; border-radius: 10px; cursor: pointer; }
.cal-week .day.today { background: var(--blue); color: #fff; font-weight: 700; }
.cal-week .day.sel { outline: 2px solid var(--blue); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.counter { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 8px; text-align: center; }
.counter b { display: block; font-size: 26px; }
.counter span { font-size: 12px; color: var(--muted); }
.order-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.order-card h3 { margin: 0 0 4px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.masuk { background: #7c2d12; color: #fdba74; }
.badge.diproses { background: #1e3a8a; color: #93c5fd; }
.badge.selesai { background: #14532d; color: #86efac; }
.badge.keluar { background: #134e4a; color: #5eead4; }
.badge.batal { background: #3f1d1d; color: #fca5a5; }
.badge.belum { background: #7c2d12; color: #fdba74; }
.badge.dp { background: #713f12; color: #fde68a; }
.badge.lunas { background: #14532d; color: #86efac; }
.badge.late { background: #7f1d1d; color: #fecaca; }
/* Loyalty member */
.badge.member { background: #1f2937; color: #d1d5db; }
.badge.silver { background: #334155; color: #e2e8f0; }
.badge.gold { background: #713f12; color: #fde68a; }
.stamp-bar { height: 10px; background: var(--card-soft); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.stamp-bar div { height: 100%; background: var(--blue); }
.picked { background: var(--card-soft); border-radius: 10px; padding: 12px; margin-bottom: 12px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-left: 0; }
.timeline .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 2px; }
.timeline .dot.empty { background: transparent; border: 2px solid var(--muted); }
.timeline .dot.done { background: var(--blue); }
.timeline b { display: block; }
.timeline .muted { font-size: 13px; }
.progress-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.progress-btns button { border-radius: 999px; padding: 10px 14px; background: var(--card-soft); color: var(--text); border: 1px solid var(--border); }
.progress-btns button.next { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.progress-btns button:disabled { opacity: .45; cursor: not-allowed; }
.progress-btns button.done { border-color: var(--green); }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-grid img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
table.report { width: 100%; border-collapse: collapse; font-size: 14px; }
table.report td, table.report th { padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: left; }
table.report td:last-child, table.report th:last-child { text-align: right; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; background: #1f2937; color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 60; box-shadow: 0 6px 24px rgba(0,0,0,.5); max-width: 90vw; text-align: center; }
@media (min-width: 720px) { main { padding-bottom: 120px; } }

/* Landing page */
.landing-nav { display: flex; gap: 4px; align-items: center; }
.landing-nav .nav-link { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; padding: 9px 12px; font-size: 14px; font-weight: 700; }
.landing-hero { text-align: left; }
.landing-hero h2 { font-size: 30px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.cta-row .btn.big { text-align: center; text-decoration: none; }
.wa-btn { background: #128c4b; border-color: #128c4b; color: #fff; text-decoration: none; display: inline-block; text-align: center; }
/* Baris layanan bisa diketuk (bukan tombol): seluruh baris adalah link
   WhatsApp ke nomor toko. Petunjuk visualnya panah "›" + efek tap,
   bukan tombol hijau per layanan. */
.service-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 8px; margin: 0 -8px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; cursor: pointer; border-radius: 10px; }
.service-row:first-of-type { border-top: 0; }
.service-row:hover, .service-row:active { background: var(--card-soft); }
.service-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.service-main { flex: 1; min-width: 0; }
.service-price { color: var(--blue); }
.service-chev { color: var(--muted); font-size: 26px; line-height: 1; flex: none; }
/* Sheet "Pesan Layanan" (form mini sebelum WhatsApp): panel bawah di HP,
   kartu tengah di layar lebar. */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--card); border: 1px solid var(--border); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 16px 16px 24px; max-width: 720px; margin: 0 auto; max-height: 88vh; overflow-y: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h3 { margin: 0; }
.sheet-close { background: none; border: 0; color: var(--text); font-size: 18px; padding: 6px 10px; }
.sheet .btn.big { margin-top: 6px; }
.sheet .btn.ghost { display: block; width: 100%; margin-top: 8px; }
@media (min-width: 720px) { .sheet { bottom: 50%; transform: translateY(50%); border-radius: 18px; border-bottom: 1px solid var(--border); } }

.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 12px; }
.triple-lock { margin: 8px 0 0; padding-left: 20px; }
.triple-lock li { margin-bottom: 8px; }
