:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2d211b;
  background: #f7f3ed;
  --brown: #6f3512;
  --brown-dark: #4d240c;
  --cream: #fffaf2;
  --green: #176b4d;
  --line: #e3d7c8;
  --muted: #74675e;
  --danger: #a12836;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top right, #f0dfc7 0, transparent 34rem), #f7f3ed; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 7px; color: #925025; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px max(20px, calc((100vw - 1220px) / 2)); background: rgba(77, 36, 12, .96); color: #fff; box-shadow: 0 2px 12px rgba(58, 27, 10, .18); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; padding: 3px; border-radius: 12px; background: #fff; }
.brand span { display: grid; gap: 2px; }
.brand small { color: #e8d6c6; font-size: 11px; }
.brand strong { font-size: 18px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Menu akun: satu tombol + daftar turun. Sebelumnya semua menu berjejer di
   header sehingga penuh dan terpotong di layar HP. */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .15s ease; }
.user-trigger:hover { background: rgba(255,255,255,.18); }
.user-avatar { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: #fff; color: var(--brown-dark); font-size: 14px; font-weight: 800; }
.user-label { display: grid; gap: 1px; text-align: left; }
.user-label small { color: #e8d6c6; font-size: 10px; line-height: 1.1; }
.user-label strong { max-width: 150px; overflow: hidden; font-size: 13px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { font-size: 11px; opacity: .8; }

.user-dropdown { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; display: grid; width: 268px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(45, 22, 8, .28); }
.user-dropdown.hidden { display: none; }
.user-item { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 10px; background: transparent; color: #4a3a30; cursor: pointer; text-align: left; }
.user-item:hover { background: var(--cream); }
.user-item span { display: grid; gap: 1px; min-width: 0; }
.user-item strong { color: var(--brown-dark); font-size: 13px; }
.user-item small { color: var(--muted); font-size: 11px; }
.user-item-ikon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 9px; background: var(--cream); font-size: 14px; }
.user-pisah { height: 1px; margin: 5px 8px; background: var(--line); }
.user-item-keluar strong { color: var(--danger); }
.user-item-keluar .user-item-ikon { background: #f9e7e9; }

/* Di layar sempit tombol akun menyusut jadi lingkaran inisial saja.
   Yang disembunyikan HANYA tulisan pada tombolnya — bukan `.user-menu span`,
   karena daftar turun juga tersusun dari span dan isinya akan ikut hilang
   sehingga tersisa kotak putih kosong. */

/* ---------- Bukti pekerjaan ---------- */
.kegiatan { margin: 54px auto 0; max-width: 1180px; padding: 0 20px; }
.kegiatan-judul { max-width: 640px; margin-bottom: 22px; }
.kegiatan-judul h2 { margin: 6px 0 8px; }
.kegiatan-lead { margin: 0; color: #6f675f; font-size: 13.5px; line-height: 1.6; }
.kegiatan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kegiatan-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: #f3e9dd; }
/* Rasio dipatok supaya baris tetap rata walau foto tegak dan mendatar
   bercampur; tanpa ini galeri terlihat bergerigi. */
.kegiatan-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 420ms ease; }
.kegiatan-grid figure:hover img { transform: scale(1.05); }
.kegiatan-grid figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 12px 10px; background: linear-gradient(to top, rgba(28,13,5,.8), rgba(28,13,5,0)); color: #fff; font-size: 11.5px; }
@media (max-width: 900px) { .kegiatan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kegiatan { padding: 0 14px; } }

@media (max-width: 600px) {
  .user-trigger .user-label, .user-trigger .user-caret { display: none; }
  .user-trigger { padding: 6px; }
  .user-dropdown { width: min(280px, calc(100vw - 32px)); }
}

.button { min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: #10583e; }
.button-danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.button-danger:hover { background: #7f1e2a; }
.button-light { border-color: rgba(255,255,255,.32); background: #fff; color: var(--brown-dark); }
.button-ghost { border-color: rgba(255,255,255,.32); background: transparent; color: #fff; }
.button-block { width: 100%; }

main { max-width: 1220px; margin: 0 auto; padding: 34px 20px 54px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); align-items: end; gap: 28px; padding: 34px; border: 1px solid #dec9ae; border-radius: 24px; background: linear-gradient(125deg, rgba(255,250,242,.97), rgba(243,220,188,.91)); box-shadow: 0 18px 45px rgba(91, 48, 17, .09); }
.hero h1 { max-width: 720px; margin: 0; color: var(--brown-dark); font-size: clamp(31px, 5vw, 54px); line-height: 1.02; letter-spacing: -.035em; }
.hero-copy { max-width: 660px; margin: 17px 0 0; color: #67574d; font-size: 15px; line-height: 1.65; }
.assurance { display: grid; gap: 7px; padding: 18px; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.65); }
.assurance strong { color: var(--green); }
.assurance span { color: #67574d; font-size: 13px; line-height: 1.5; }

.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; margin-top: 36px; }
.section-heading, .cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
h2 { margin: 0; color: var(--brown-dark); font-size: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #5f4e43; font-size: 12px; font-weight: 700; }
.filter.active { border-color: var(--brown); background: var(--brown); color: #fff; }
.status { padding: 32px 10px; color: var(--muted); text-align: center; }
.status.error, .form-message.error { color: var(--danger); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 15px; }
.product { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(66, 38, 20, .055); }
.product-image { display: grid; height: 185px; place-items: center; overflow: hidden; padding: 10px; background: #efe6da; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.product-image img.fallback { width: 84px; height: 84px; object-fit: contain; }
.product-image.has-photo { cursor: zoom-in; }
.product:hover .product-image img { transform: scale(1.08); }

/* Lightbox: klik gambar produk -> tampil penuh (tidak terpotong). */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(20,10,4,.82); }
.lightbox.hidden { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Tombol chat admin mengambang (WhatsApp), kanan bawah. */
.kontak-list { display: grid; gap: 10px; }
.kontak-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 53, 18, .18);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.kontak-item:hover { border-color: #25d366; background: #f6fff9; }
.kontak-item .kontak-ikon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.kontak-item .kontak-nama { font-weight: 600; display: block; }
.kontak-item .kontak-nomor { font-size: 13px; color: #6b5a4c; }

.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s ease, box-shadow .2s ease; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,211,102,.55); }
.chat-fab svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.chat-fab.hidden { display: none; }
@media (max-width: 560px) { .chat-fab span { display: none; } .chat-fab { right: 16px; bottom: 16px; padding: 14px; } }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-kind { align-self: start; margin-bottom: 9px; padding: 4px 8px; border-radius: 999px; background: #efe7dc; color: #735037; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.product h3 { margin: 0; font-size: 17px; }
.product-code { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.description { min-height: 38px; margin: 10px 0; color: #76685f; font-size: 12px; line-height: 1.5; }
.price { margin-top: auto; color: var(--brown); font-size: 17px; font-weight: 800; }
.price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.product .button { margin-top: 13px; }

.cart { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: 0 10px 35px rgba(65, 34, 15, .07); }
.count { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; background: var(--brown); color: #fff; font-size: 12px; font-weight: 800; }
.cart-items { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.cart-item small { color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 6px; }
.quantity button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brown); }
.quantity input { width: 58px; height: 30px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.remove { margin-top: 7px; padding: 0; border: 0; background: none; color: var(--danger); font-size: 11px; }
.cart-summary { display: grid; gap: 12px; padding-top: 16px; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 10px; }
.price-note { margin: 0; color: #8a5b19; font-size: 11px; line-height: 1.4; }

.dialog { width: min(600px, calc(100vw - 26px)); max-height: calc(100vh - 32px); overflow: auto; padding: 27px; border: 0; border-radius: 20px; background: #fffdf9; color: #30231b; box-shadow: 0 28px 90px rgba(41, 22, 10, .3); }
.dialog-wide { width: min(780px, calc(100vw - 26px)); }
.dialog::backdrop { background: rgba(41, 23, 13, .6); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0e9df; color: #5d4637; font-size: 23px; }
.dialog-header { padding-right: 35px; }
.dialog-header p:not(.eyebrow) { margin: 8px 0 19px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0; padding: 4px; border-radius: 12px; background: #eee6db; }
.auth-tab { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: #756359; font-weight: 700; }
.auth-tab.active { background: #fff; color: var(--brown); box-shadow: 0 2px 8px rgba(75,38,15,.09); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid label { display: grid; gap: 6px; color: #57463a; font-size: 12px; font-weight: 700; }
.form-grid label small { color: var(--muted); font-weight: 400; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; padding: 11px 12px; border: 1px solid #d9cbbd; border-radius: 10px; outline: none; background: #fff; color: #30231b; font: inherit; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(111,53,18,.1); }
.form-grid .full { grid-column: 1 / -1; }

/* Checkout: pilih alamat dari buku alamat */
.checkbox-baris { display: flex !important; align-items: center; gap: 9px; margin-top: 11px; font-weight: 600; }
.checkbox-baris input { width: auto !important; }
.alamat-ringkas { padding: 12px 14px; border: 1px solid #e2d5c6; border-left: 3px solid var(--brown); border-radius: 10px; background: #fdfaf6; font-size: 13px; line-height: 1.6; color: #4a3a2e; }
.alamat-ringkas strong { display: block; color: #30231b; }
.alamat-ringkas span { color: var(--muted); font-size: 12px; }
.danger-panel { padding: 14px; border: 1px solid #e8bcc2; border-radius: 12px; background: #fff3f4; color: #6f1e29; }
.danger-panel p { margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.form-message { min-height: 18px; margin: 0; color: var(--green); font-size: 12px; }
.checkout-items { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #faf5ed; font-size: 12px; }
.checkout-row { display: flex; justify-content: space-between; gap: 10px; }
.orders-list { display: grid; gap: 12px; }
.order-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.order-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.order-head strong { color: var(--brown-dark); }
.order-head small { display: block; margin-top: 3px; color: var(--muted); }
.status-pill { padding: 5px 8px; border-radius: 999px; background: #f0e5d8; color: #70472d; font-size: 10px; font-weight: 800; }
.status-pill.DIKONFIRMASI, .status-pill.SELESAI { background: #dcefe5; color: #145e44; }
.status-pill.BATAL { background: #f5dfe2; color: #922738; }
.order-lines { margin: 12px 0 8px; padding: 0; list-style: none; color: #65564d; font-size: 12px; line-height: 1.65; }
.order-total { font-size: 13px; font-weight: 800; text-align: right; }

/* Riwayat pembelian: ringkasan + tabel rincian invoice. */
.history-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.history-summary.hidden { display: none; }
.history-summary div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.history-summary span { display: block; color: var(--muted); font-size: 11px; }
.history-summary strong { display: block; margin-top: 3px; color: var(--brown-dark); font-size: 15px; }
.invoice-table { width: 100%; margin: 12px 0 10px; border-collapse: collapse; font-size: 12px; }
.invoice-table th { padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; text-align: left; text-transform: uppercase; }
.invoice-table td { padding: 7px 8px; border-bottom: 1px solid #f2eade; color: #4d4038; vertical-align: top; }
.invoice-table tr:last-child td { border-bottom: 0; }
.invoice-table .angka { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-table small { color: var(--muted); }
.status-pill.LUNAS { background: #dcefe5; color: #145e44; }
.status-pill.BELUM_LUNAS { background: #faeccd; color: #7a5410; }
.status-pill.KREDIT_PELANGGAN { background: #e3e8f7; color: #2c4079; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: min(390px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 12px; background: #214f3e; color: #fff; box-shadow: 0 12px 30px rgba(23, 54, 43, .25); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px max(20px, calc((100vw - 1220px) / 2)); background: var(--brown-dark); color: #decab9; font-size: 12px; }
footer a { color: #fff; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (max-width: 600px) {
  .topbar { align-items: flex-start; padding: 10px 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand small { display: none; }
  .brand strong { font-size: 14px; }
  .nav-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .nav-actions .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  main { padding: 18px 14px 36px; }
  .hero { padding: 23px 19px; border-radius: 18px; }
  .hero h1 { font-size: 34px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-image { height: 120px; }
  .product-body { padding: 12px; }
  .description { display: none; }
  .price { margin-top: 10px; font-size: 14px; }
  .product .button { min-height: 37px; padding: 7px; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .dialog { padding: 22px 18px; }
  footer { align-items: flex-start; flex-direction: column; }
}

/* ============ HALAMAN PROFIL AKUN ============
   Halaman tersendiri (menggantikan katalog), bukan dialog: isinya banyak dan
   pelanggan sering berpindah antar bagian. Susunan menu samping + isi mengikuti
   pola portal B2B yang sudah dikenal pelanggan korporat. */
.akun-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; gap: 22px; margin: 28px auto; padding: 0 max(20px, calc((100vw - 1220px) / 2)); }
.akun-layout.hidden, #tampilan-katalog.hidden { display: none; }

.akun-menu { position: sticky; top: 96px; display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(66,38,20,.055); }
.akun-kembali { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--brown-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.akun-kembali:hover { border-color: var(--brown); }
/* Kelompok menu bisa dilipat. Menu akun customer lebih panjang daripada
   katalognya, jadi bagian yang jarang dipakai boleh ditutup agar yang sering
   dipakai tetap terlihat tanpa menggulir. */
.akun-grup { display: grid; gap: 0; }
.akun-grup-judul { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 9px 11px; border: 0; border-radius: 10px; background: var(--brown); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.akun-grup-judul::after { content: '−'; display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 13px; font-weight: 700; line-height: 1; }
.akun-grup.tutup .akun-grup-judul::after { content: '+'; }
.akun-grup-judul:hover { background: var(--brown-dark); }
.akun-grup-judul:focus-visible { outline: 2px solid var(--brown-dark); outline-offset: 2px; }
.akun-grup-isi { display: grid; gap: 3px; padding: 5px 0 2px; }
.akun-grup.tutup .akun-grup-isi { display: none; }
.akun-nav { padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; color: #55463c; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.akun-nav:hover { background: var(--cream); }
.akun-nav.aktif { background: var(--brown); color: #fff; }

.akun-isi { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(66,38,20,.055); }
.akun-isi > h2 { margin: 0 0 16px; }

/* Kartu angka ringkasan */
.akun-kartu { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.akun-kartu > div { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--cream); }
.akun-kartu span { display: block; color: var(--muted); font-size: 11px; }
.akun-kartu strong { display: block; margin-top: 4px; color: var(--brown-dark); font-size: 18px; }
.akun-kartu small { color: var(--muted); font-size: 11px; }

/* Batang pemakaian limit kredit */
.kredit-bar { height: 9px; margin: 9px 0 5px; overflow: hidden; border-radius: 999px; background: #eee3d5; }
.kredit-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.kredit-bar.penuh > i { background: var(--danger); }

/* Daftar baris umum (alamat, pengguna, pengiriman) */
.akun-baris { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.akun-baris:last-child { border-bottom: 0; }
.akun-baris h4 { margin: 0 0 3px; color: var(--brown-dark); font-size: 14px; }
.akun-baris p { margin: 0; color: #6b5b50; font-size: 12px; line-height: 1.55; }
.akun-aksi { display: flex; flex-wrap: wrap; gap: 6px; }
.akun-aksi button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.akun-aksi button:hover { border-color: var(--brown); }
.akun-aksi .hapus { color: var(--danger); }

.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #efe7dc; color: #70472d; font-size: 10px; font-weight: 800; }
.pill.hijau { background: #dcefe5; color: #145e44; }
.pill.merah { background: #f7dfe3; color: #922738; }
.pill.kuning { background: #faeccd; color: #7a5410; }

.akun-form { display: grid; gap: 11px; max-width: 520px; }
.akun-form label { display: grid; gap: 4px; color: #5b4c42; font-size: 12px; font-weight: 700; }
.akun-form input, .akun-form textarea { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; }
.akun-kunci { padding: 11px 13px; border-left: 3px solid var(--brown); border-radius: 0 10px 10px 0; background: var(--cream); color: #6b5b50; font-size: 12px; }

@media (max-width: 860px) {
  .akun-layout { grid-template-columns: 1fr; }
  .akun-menu { position: static; }
  /* Di layar kecil menu jadi baris yang bisa digeser ke samping, jadi tidak
     ada yang perlu dilipat — kelompok yang tertutup pun tetap ditampilkan
     supaya menu tidak "hilang" hanya karena pernah ditutup di layar besar. */
  .akun-grup-judul { display: none; }
  .akun-grup-isi, .akun-grup.tutup .akun-grup-isi { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 0; }
}
