/* =========================================================
   RARA MARKET v8 — Halaman akun pelanggan (memakai variabel tema di style.css)
   Mobile-first; layout melebar di desktop.
   ========================================================= */
.acc-wrap { padding: 26px 0 60px; min-height: 70vh; }
.acc-container { max-width: 760px; }
.acc-card { padding: 22px; margin-bottom: 16px; }
.acc-loading { text-align: center; color: var(--plum-soft); font-weight: 700; }
.acc-title { font-family: var(--font-head); font-size: 1.45rem; margin-bottom: 6px; }
.acc-sub { color: var(--plum-soft); font-size: .92rem; margin-bottom: 18px; }
.acc-block { width: 100%; justify-content: center; margin-top: 4px; }
.acc-resend { margin-top: 10px; }
.acc-otp { text-align: center; letter-spacing: .5em; font-size: 1.5rem !important; font-weight: 800; font-family: var(--font-head); }
.acc-sent { font-size: .9rem; color: var(--plum-soft); margin-bottom: 14px; word-break: break-word; }
.acc-link { background: none; border: 0; color: var(--lavender-deep); font-weight: 800; cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.acc-note { color: var(--plum-soft); font-size: .86rem; margin-bottom: 12px; }
[hidden] { display: none !important; }

/* Profil */
.acc-profile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acc-avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--sakura-pink); color: var(--dark-plum); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }
.acc-profile-main { flex: 1; min-width: 0; }
.acc-hello { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.acc-wa { color: var(--plum-soft); font-size: .86rem; }
.acc-badge-login { display: inline-block; margin-top: 4px; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 8px; background: var(--st-done-bg); color: var(--st-done-fg); }
.acc-nameform { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.acc-nameform .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }

/* Tab */
.acc-tabs { display: flex; gap: 8px; margin: 18px 0 12px; }
.acc-tab { flex: 1; padding: 11px 12px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--soft-white); color: var(--dark-plum); font-weight: 800; font-size: .9rem; cursor: pointer; min-height: 44px; }
.acc-tab.active { background: var(--dark-plum); color: #fff; border-color: var(--dark-plum); }
.acc-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--sakura-pink); color: var(--dark-plum); font-size: .72rem; }
.acc-tab.active .acc-count { background: #fff; }

/* Daftar pesanan & wishlist */
.acc-item { padding: 16px; margin-bottom: 12px; }
.acc-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.acc-item-no { font-weight: 800; font-size: .86rem; color: var(--plum-soft); }
.acc-item-name { font-weight: 700; font-size: 1.02rem; margin: 4px 0; overflow-wrap: anywhere; }
.acc-item-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .84rem; color: var(--plum-soft); }
.acc-item-total { font-weight: 800; color: var(--dark-plum); }
.acc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.acc-pill { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 8px; }
.acc-pill.s-pending { background: var(--st-pending-bg); color: var(--st-pending-fg); }
.acc-pill.s-paid { background: var(--st-paid-bg); color: var(--st-paid-fg); }
.acc-pill.s-processing { background: var(--st-proc-bg); color: var(--st-proc-fg); }
.acc-pill.s-delivered { background: var(--st-deliv-bg); color: var(--st-deliv-fg); }
.acc-pill.s-completed, .acc-pill.s-confirmed { background: var(--st-done-bg); color: var(--st-done-fg); }
.acc-pill.s-cancelled, .acc-pill.s-refunded, .acc-pill.s-rejected { background: var(--st-cancel-bg); color: var(--st-cancel-fg); }
.acc-pill.s-unpaid, .acc-pill.s-awaiting_verification { background: var(--st-pending-bg); color: var(--st-pending-fg); }
.acc-item-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.acc-item-actions .btn { padding: 9px 14px; font-size: .84rem; min-height: 40px; }
.acc-empty { text-align: center; padding: 30px 16px; color: var(--plum-muted); font-weight: 700; }
.acc-wish { display: flex; gap: 12px; align-items: center; }
.acc-wish-img { width: 64px; height: 64px; border-radius: 14px; background: var(--sakura-pink); overflow: hidden; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.acc-wish-img img { width: 100%; height: 100%; object-fit: cover; }
.acc-wish-main { flex: 1; min-width: 0; }

/* Bintang & ulasan */
.stars { color: #E8A317; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #D9D0E3; }
.star-input { display: flex; gap: 4px; margin: 6px 0 10px; }
.star-input button { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: #D9D0E3; padding: 2px 4px; min-width: 40px; min-height: 44px; }
.star-input button.on { color: #E8A317; }
.acc-modal { max-width: 520px; }
.acc-hist { margin-top: 12px; font-size: .84rem; }
.acc-hist li { list-style: none; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--plum-soft); }
.acc-hist li strong { color: var(--dark-plum); }
.acc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; }
.acc-kv span:last-child { text-align: right; font-weight: 700; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .acc-wrap { padding-top: 40px; }
  .acc-card { padding: 28px; }
  .acc-item { padding: 18px 20px; }
}
@media (max-width: 380px) {
  .acc-otp { letter-spacing: .3em; }
  .acc-profile { gap: 10px; }
  .acc-logout { width: 100%; justify-content: center; }
}

/* v9: tab Masuk/Daftar, form 2 kolom, ubah password */
.acc-authtabs { margin-top: 0; }
.acc-alt { text-align: center; margin-top: 12px; font-size: .88rem; }
.acc-two { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.acc-details { margin-top: 14px; }
.acc-details summary { cursor: pointer; font-weight: 800; font-size: .9rem; color: var(--lavender-deep); min-height: 40px; display: flex; align-items: center; }
.acc-details form { margin-top: 10px; }
@media (min-width: 560px) { .acc-two { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   V12 — Notifikasi dan Refund (hanya menambah; gaya lama tidak diubah)
   ========================================================= */
.acc-tabs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.acc-tabs-scroll::-webkit-scrollbar { display: none; }
.acc-tabs-scroll .acc-tab { flex: 0 0 auto; white-space: nowrap; }
.acc-count-alert { background: var(--danger); color: #fff; }
.acc-tab.active .acc-count-alert { background: #fff; color: var(--danger); }

.v12-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.v12-toolbar select { flex: 1; min-width: 150px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--soft-white); font: inherit; color: var(--dark-plum); }
.v12-toolbar .btn { padding: 9px 14px; font-size: .84rem; min-height: 40px; }

.v12-notif { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; border: 0; cursor: pointer; font: inherit; color: inherit; position: relative; }
.v12-notif.unread { box-shadow: inset 4px 0 0 var(--lavender-deep); background: #fff; }
.v12-notif-ico { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.v12-notif-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.v12-notif-main strong { font-size: .95rem; }
.v12-notif-main span { font-size: .86rem; color: var(--plum-soft); overflow-wrap: anywhere; }
.v12-notif-main small { font-size: .74rem; color: var(--plum-muted); }
.v12-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex-shrink: 0; margin-top: 6px; }

/* V12c — foto profil */
.acc-avatar { background-size: cover; background-position: center; }
.acc-avatar.has-photo { color: transparent; }
.acc-avatar-lg { width: 84px; height: 84px; border-radius: 26px; font-size: 2rem; }
.acc-photo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 10px 0 6px; }
.acc-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-photo-actions .btn { min-height: 40px; padding: 8px 14px; font-size: .86rem; cursor: pointer; }
