/* ============================================================
   SHOPSHOPRI — Bridgerton / Regency Theme
   Powder Blue #B0C4DE • Soft Gold #D4AF37 • Broken White #FDFBF7
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@1,500;1,600;1,700&family=Poppins:wght@300;400;500;600&display=swap');
:root {
    --bg: #FDFBF7;
    --white: #FFFFFF;
    --blue: #B0C4DE;
    --blue-deep: #7E9BC0;
    --gold: #D4AF37;
    --gold-soft: #E8D9A0;
    --ink: #2E2A26;
    --muted: #8A857E;
    --line: #ECE6DC;
    --color-error: #E63946;
    --shadow: 0 8px 30px rgba(126, 155, 192, 0.15);
    --shadow-gold: 0 0 18px rgba(212, 175, 55, 0.35);
    --radius: 14px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 300;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .3px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

.btn {
    font-family: var(--font-body);
    font-weight: 500;
    border: 1px solid var(--gold);
    background: var(--white);
    color: var(--ink);
    padding: 11px 22px;
    border-radius: 40px;
    cursor: pointer;
    transition: all .3s ease;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.btn-blue {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
}

.btn:disabled,
.btn.disabled {
    background: #d9d5cf;
    border-color: #d9d5cf;
    color: #a29d95;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 73px;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    padding: 0;
}

.header-left {
    justify-self: start;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-right {
    justify-self: end;
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand {
    justify-self: center;
    font-family: var(--font-head);
    font-size: 1.7rem;
    letter-spacing: 2px;
    color: var(--ink);
}

.brand span {
    color: var(--gold);
}

.icon-btn {
    border: 1.5px solid var(--gold);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s ease;
    color: var(--ink);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.icon-btn:hover {
    box-shadow: var(--shadow-gold);
}

.icon-btn:active {
    transform: scale(0.92);
    background: var(--gold-soft);
}

.hero {
    position: relative;
    height: calc(100vh - 73px);
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(46, 42, 38, .72) 0%, rgba(46, 42, 38, .5) 38%, rgba(46, 42, 38, .15) 62%, rgba(46, 42, 38, 0) 78%), url('../img/hero-poster.jpg') right center/cover;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 48%;
    margin-left: clamp(24px, 6vw, 90px);
    text-align: left;
}

.hero .eyebrow {
    font-family: var(--font-body);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: .75rem;
    color: var(--gold-soft);
    margin-bottom: 18px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.7rem, 3.3vw, 2.6rem);
    line-height: 1.35;
    margin-bottom: 32px;
    text-align: left;
    font-weight: 500;
    letter-spacing: .2px;
}

.hero h1 .gold-text {
    color: var(--gold);
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
}

.hero p {
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 34px;
    opacity: .95;
    text-align: left;
}

@media (max-width: 700px) {
    .hero-content {
        max-width: none;
        margin-left: 20px;
        margin-right: 20px;
    }
    .hero::before {
        background: linear-gradient(180deg, rgba(46, 42, 38, .35) 0%, rgba(46, 42, 38, .75) 55%, rgba(46, 42, 38, .85) 100%), url('../img/hero-poster.jpg') center/cover;
    }
}

.section {
    padding: 72px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 44px;
}

.section-head .eyebrow {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: .72rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    transition: all .3s;
    box-shadow: 0 4px 14px rgba(212, 175, 55, .12);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold), var(--shadow);
}

.step .num {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--gold);
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: .9rem;
}

.filter-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.filter-bar .btn.active {
    background: var(--blue);
    border-color: var(--blue-deep);
}

.csel-wrap {
    position: relative;
    display: inline-block;
    min-width: 220px;
}

.csel-wrap.lang-select-wrap {
    min-width: 90px;
}

.csel-native {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.csel-btn {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .92rem;
    border: 1.5px solid var(--gold);
    background: var(--white);
    color: var(--ink);
    padding: 11px 40px 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all .18s ease;
}

.csel-btn::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .25s ease;
}

.csel-btn.open::after {
    transform: translateY(-35%) rotate(-135deg);
}

.csel-btn:hover,
.csel-btn.open {
    box-shadow: var(--shadow-gold);
}

.csel-btn:active {
    transform: scale(0.97);
    background: var(--gold-soft);
}

.csel-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--white);
    border: 1.5px solid var(--gold-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-gold), var(--shadow);
    padding: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
}

.csel-list.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.csel-list.open::-webkit-scrollbar {
    display: none;
}

.csel-item {
    padding: 11px 16px;
    border-radius: 12px;
    margin-bottom: 2px;
    font-size: .9rem;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
    text-align: left;
}

.csel-item:hover {
    background: #EEF1F5;
}

.csel-item:active {
    transform: scale(0.97);
    background: var(--gold-soft);
}

.csel-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, .15), rgba(176, 196, 222, .2));
    color: var(--ink);
    font-weight: 600;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.filter-group>label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding-left: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-soft);
    box-shadow: var(--shadow-gold), var(--shadow);
}

.card.sold {
    opacity: .55;
}

.card-media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f3efe8;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(46, 42, 38, .8);
    color: #fff;
    font-size: .68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 20px;
}

.badge.sold {
    background: var(--muted);
}

.wishlist-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--muted);
    transition: all .25s;
}

.wishlist-heart:hover {
    color: #E63946;
    transform: scale(1.12);
}

.wishlist-heart.active {
    color: #E63946;
}

.wishlist-heart:disabled {
    cursor: not-allowed;
    opacity: .45;
    pointer-events: auto;
}

.wishlist-heart:disabled:hover {
    color: var(--muted);
    transform: none;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2px;
    min-height: 22px;
}

.card-cat-chip {
    background: rgba(212, 175, 55, .12);
    color: var(--gold);
    font-size: .64rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.stock-chip {
    font-size: .64rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 14px;
    white-space: nowrap;
    font-weight: 600;
}

.stock-chip.available {
    background: rgba(122, 143, 92, .14);
    color: #3d6b28;
    font-weight: 700;
}

.stock-chip.sold {
    background: rgba(138, 133, 126, .16);
    color: var(--muted);
}

.card-body h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--muted);
    font-size: .82rem;
    min-height: 1.3em;
}

.card-price {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.15rem;
}

.card-price-discount-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.card-price-old {
    font-size: .82rem;
    color: var(--muted);
    text-decoration: line-through;
}

.card-price-off {
    font-size: .74rem;
    font-weight: 700;
    color: #c0562f;
    background: #f9e6dc;
    padding: 1px 6px;
    border-radius: 6px;
}

.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.card-body .btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

.carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: scroll 34s linear infinite;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.review-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    width: 320px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color .3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-soft);
    box-shadow: var(--shadow-gold);
}

.stars {
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-card p {
    font-size: .92rem;
    color: var(--ink);
    margin-bottom: 14px;
    font-style: italic;
}

.review-card .who {
    font-weight: 500;
    font-size: .85rem;
}

.site-footer {
    background: var(--ink);
    color: #d8d3cb;
    padding: 54px 0 30px;
    margin-top: 40px;
}

.footer-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
}

.footer-inner>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-inner>div:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.site-footer .brand {
    color: #fff;
    font-size: 1.5rem;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    color: #b8b3ab;
    margin-bottom: 8px;
    font-size: .9rem;
    transition: color .2s;
}

.site-footer a:hover {
    color: var(--gold);
}

.ship-from {
    color: var(--gold-soft);
    font-size: .9rem;
    margin-top: 14px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #443f39;
    margin-top: 34px;
    padding-top: 20px;
    font-size: .8rem;
    color: #837e77;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(46, 42, 38, .6);
    display: none;
    place-items: center;
    z-index: 500;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.show {
    display: grid;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: min(400px, 100%);
    max-height: 94vh;
    overflow: hidden;
    padding: 2.5vh 30px;
    box-shadow: var(--shadow);
}

.modal h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.modal .sub {
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 10px;
}

.field {
    margin-bottom: 16px;
}

.field-error {
    color: var(--color-error);
    font-size: .76rem;
    margin-top: 4px;
    min-height: 0;
}

.modal .field {
    margin-bottom: 8px;
}

.modal .field label {
    margin-bottom: 3px;
    font-size: .78rem;
}

.modal .field input {
    padding: 7px 14px;
    font-size: .85rem;
}

.field label {
    display: block;
    font-size: .82rem;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 500;
}


/* .field label di atas (dipakai buat caption field biasa) tanpa sengaja
   ikut kena ke label pil kategori (.cat-checkbox) karena sama-sama <label>
   di dalam .field — itu yang bikin checkbox & tulisannya numpuk vertikal,
   bukan sejajar. Override ini balikin ke tata letak sejajar semula. */

.field .cat-checkbox {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: .9rem;
    background: var(--bg);
}

.field textarea {
    resize: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.field input:disabled {
    color: var(--muted);
    cursor: default;
}

.modal .btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.modal-switch {
    text-align: center;
    font-size: .82rem;
    margin-top: 10px;
    color: var(--muted);
}

.modal-switch a,
.custom-link-global {
    position: relative;
    color: var(--gold);
    font-weight: 300;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: none;
    padding: 2px 0;
    transition: color .18s ease;
}

.modal-switch a::after,
.custom-link-global::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    transition: right .18s ease;
}

.modal-switch a:hover,
.custom-link-global:hover {
    color: #b8942e;
}

.modal-switch a:hover::after,
.custom-link-global:hover::after {
    right: 0;
}

.mail-icon-link {
    display: inline-flex;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    opacity: .9;
}

.mail-icon-link:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 1;
}

.modal-close {
    float: right;
    cursor: pointer;
    color: var(--muted);
    font-size: 1.3rem;
    margin: -18px -12px 0 0;
}

.form-msg {
    text-align: center;
    font-size: .85rem;
    margin-top: 12px;
    min-height: 18px;
}

.modal .form-msg {
    margin-top: 4px;
    min-height: 0;
}

.form-msg.error {
    color: var(--color-error);
}

.form-msg.ok {
    color: #2e7d32;
}


/* Checkbox konfirmasi di modal Hapus Akun — accent warna merah bata
   senada dengan tombol "Ya, Hapus", bukan biru default browser. */

#deleteGoogleConfirm input[type="checkbox"] {
    accent-color: #c0562f;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 44px !important;
}

.pw-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    color: var(--muted);
    opacity: .6;
    line-height: 1;
    border-radius: 50%;
    transition: opacity .2s, background .2s;
}

.pw-toggle:hover {
    opacity: 1;
    background: var(--line);
}

.pw-toggle.is-visible {
    opacity: 1;
    color: var(--blue-deep);
}

.google-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--muted);
    font-size: .8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.payment-group {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 14px;
    margin: 4px 0;
}

.payment-group .pg-label {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.payment-group .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}

.payment-group .btn:last-child {
    margin-bottom: 0;
}

.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
    background: var(--ink);
    color: #fff;
    padding: 13px 24px;
    border-radius: 40px;
    font-size: .88rem;
    z-index: 300;
    transition: transform .35s ease, opacity .35s ease;
    box-shadow: var(--shadow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    grid-column: 1/-1;
}

.empty h3 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.wishlist-mini-empty {
    grid-column: 1 / -1;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: .9rem;
    color: var(--muted);
    padding: 10px 0;
}

.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-top: 40px;
}

.detail-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3/4;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
    flex-wrap: wrap;
}

.detail-price {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.45rem;
}

.detail-price-discount-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-price-old {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.detail-price-off {
    font-size: .85rem;
    font-weight: 700;
    color: #c0562f;
    background: #f9e6dc;
    padding: 3px 9px;
    border-radius: 8px;
}

.attr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.attr-badge {
    background: var(--bg);
    border: 1px solid var(--gold-soft);
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attr-badge .k {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
}

.attr-badge .v {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.tag {
    background: rgba(122, 143, 92, .12);
    border: 1px solid rgba(122, 143, 92, .3);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .78rem;
    color: #3d6b28;
    transition: all .2s ease;
}

.tag:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.buy-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-note {
    font-size: .8rem;
    color: var(--muted);
    margin-top: -4px;
}

.pay-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.pay-group-label {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 4px 2px 2px;
    color: var(--muted);
}

.pay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 12px 15px;
    background: var(--white);
    transition: all .22s cubic-bezier(.2, .8, .3, 1.1);
    text-decoration: none;
    color: inherit;
}

.pay-option.shopee {
    background: transparent;
    border: 1.5px solid #D98A3D;
}

.pay-option.whatsapp {
    background: transparent;
    border: 1.5px solid #6FA968;
}

.pay-option.split {
    border: 1.5px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(90deg, #D98A3D 50%, #6FA968 50%) border-box;
}


/* Shadow lembut seperti pada card produk (bukan glow tajam), tapi warnanya
   mengikuti warna border masing-masing tombol. */

.pay-option:hover,
.pay-option:active {
    transform: translateY(-3px) scale(1.01);
}

.pay-option.shopee:hover,
.pay-option.shopee:active {
    border-color: #D98A3D;
    box-shadow: 0 8px 26px rgba(217, 138, 61, .3);
}

.pay-option.whatsapp:hover,
.pay-option.whatsapp:active {
    border-color: #6FA968;
    box-shadow: 0 8px 26px rgba(111, 169, 104, .28);
}

.pay-option.split:hover,
.pay-option.split:active,
.pay-option.split.open {
    box-shadow: -5px 8px 22px rgba(217, 138, 61, .22), 5px 8px 22px rgba(111, 169, 104, .22);
}

.pay-option-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(46, 42, 38, .12);
}

.pay-icon svg {
    width: 19px;
    height: 19px;
}

.pay-title {
    font-weight: 600;
    font-size: .78rem;
    color: var(--ink);
}

.pay-desc {
    font-size: .66rem;
    color: var(--muted);
    margin-top: 1px;
}

.pay-chevron {
    font-size: 1.3rem;
    color: var(--muted);
    transition: transform .25s ease;
    flex-shrink: 0;
}

.pay-option.open .pay-chevron {
    transform: rotate(90deg);
}

.pay-sub-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px;
}

.pay-sub-reveal.open {
    max-height: 160px;
    margin-top: -2px;
    padding-top: 4px;
}

.pay-sub-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: .74rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transition: all .18s ease;
}

.pay-sub-option.shopee {
    border: 1.5px solid #D98A3D;
}

.pay-sub-option.whatsapp {
    border: 1.5px solid #6FA968;
}

.pay-sub-option svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.pay-sub-option:hover {
    transform: translateY(-2px);
}

.wa-preview-card {
    background: rgba(111, 169, 104, .08);
    border: 1.5px solid rgba(111, 169, 104, .4);
    border-radius: 16px;
    padding: 18px;
}

.wa-preview-modal {
    max-width: 420px;
    max-height: none;
    overflow: visible;
    margin: auto 0;
}

.wa-preview-cta {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 4px;
}

.wa-preview-intro {
    font-size: .88rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 14px;
}

.wa-preview-heading {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    color: #3d6b28;
    margin-bottom: 8px;
}

.wa-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-preview-list li {
    font-size: .86rem;
    color: var(--ink);
    padding-left: 16px;
    position: relative;
}

.wa-preview-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6FA968;
    font-weight: 700;
}

.wa-preview-divider {
    height: 1px;
    background: rgba(111, 169, 104, .3);
    margin: 14px 0;
}

.wa-preview-photo {
    font-size: .86rem;
    color: var(--ink);
    margin-bottom: 12px;
}

.wa-preview-photo a {
    color: var(--blue-deep);
}

.wa-preview-closing {
    font-size: .86rem;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

.wishlist-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.wishlist-toggle-btn.active {
    border-color: #E63946;
    color: #E63946;
}

@media (max-width: 900px) {
    .detail-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .steps {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        gap: 26px;
    }
    .footer-inner>div:nth-child(2) {
        position: static;
        transform: none;
        align-items: flex-start;
        text-align: left;
    }
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }
    .brand {
        font-size: 1.3rem;
    }
    .header-left .lang-select {
        display: none;
    }
}

.profile-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 980px;
    margin: 20px auto 0;
    padding: 0 20px;
    align-items: start;
}

@media (min-width: 761px) {
    .profile-shell {
        height: calc(100vh - 113px);
        max-height: calc(100vh - 113px);
    }
    .profile-main {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        padding-right: 8px;
        scrollbar-width: thin;
    }
    .profile-sidebar {
        max-height: 100%;
        overflow: hidden;
    }
}

.profile-sidebar {
    background: var(--white);
    border: 1.5px solid #ddd3bd;
    border-radius: var(--radius);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 90px;
    box-shadow: 0 6px 20px rgba(46, 42, 38, .08);
}

.profile-sidebar .form-msg {
    font-size: .74rem;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-top: 6px;
    min-height: 0;
}

.ps-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    cursor: pointer;
}

.ps-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold);
    background: var(--bg);
    display: block;
}

.ps-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(46, 42, 38, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.ps-avatar-wrap:hover .ps-avatar-overlay {
    opacity: 1;
}

.ps-username {
    margin-top: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: var(--font-head);
    color: #2C2C2C;
    text-align: center;
    text-transform: capitalize;
}

.ps-nav {
    width: 100%;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ps-nav-item {
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .92rem;
    cursor: pointer;
    transition: all .18s ease;
    text-align: left;
}

.ps-nav-item:hover {
    background: rgba(212, 175, 55, .08);
    color: var(--ink);
}

.ps-nav-item.active {
    background: rgba(212, 175, 55, .14);
    color: var(--ink);
    font-weight: 600;
}

.ps-logout {
    margin-top: 28px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #c0562f;
    border: 1px solid #c0562f;
    border-radius: 40px;
    cursor: pointer;
    color: #fff;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    padding: 11px 0;
    transition: all .3s ease;
}

.ps-logout:hover {
    box-shadow: 0 0 18px rgba(192, 86, 47, .35);
    transform: translateY(-2px);
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lux-card {
    background: var(--white);
    border: 1.5px solid #ddd3bd;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 6px 20px rgba(46, 42, 38, .06);
}

.lux-card h2 {
    font-size: 1.2rem;
    margin-bottom: 22px;
    font-family: var(--font-head);
}

.lux-field {
    margin-bottom: 22px;
}

.lux-field label {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.lux-field input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--line);
    padding: 8px 2px;
    font-size: .95rem;
    background: transparent;
    transition: border-color .2s ease;
    color: var(--ink);
    border-radius: 0;
}

.lux-field input:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.lux-field input:disabled {
    color: var(--muted);
}

.lux-error {
    color: var(--color-error);
    font-size: .78rem;
    margin-top: 6px;
    min-height: 16px;
}

.lux-save-btn {
    font-family: var(--font-body);
    border: 1px solid #B88E2F;
    border-radius: 40px;
    padding: 11px 22px;
    font-weight: 500;
    font-size: .92rem;
    color: #fff;
    background: #B88E2F;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: box-shadow .18s ease, transform .12s ease;
}


/* Warna TETAP sama saat hover/active (tidak menggelap) — hanya efek
   "shadow hidup" yang menekan ke bawah saat benar-benar ditekan. */

.lux-save-btn:hover {
    background: #B88E2F;
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.lux-save-btn:active {
    background: #B88E2F;
    color: #fff;
    box-shadow: 0 2px 6px rgba(184, 142, 47, .5) inset, 0 1px 2px rgba(46, 42, 38, .25);
    transform: translateY(1px);
}

.danger-zone {
    border-color: #e4c9c0;
    background: #fdf7f5;
}

.btn-danger {
    background: #c0562f;
    border-color: #c0562f;
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 0 18px rgba(192, 86, 47, .35);
}

.btn-back {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
    border: 1.5px solid var(--gold);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: box-shadow .25s ease, transform .2s ease;
}

.btn-back .arrow {
    display: inline-block;
    transition: transform .25s ease;
}

.btn-back:hover {
    box-shadow: var(--shadow-gold);
}

.btn-back:hover .arrow {
    transform: translateX(-3px);
}

.btn-back:active,
.btn-back:focus {
    background: var(--gold-soft);
    transform: scale(0.92);
    outline: none;
}

.wishlist-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.wishlist-mini img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
}

.lux-edit-toggle {
    font-family: var(--font-body);
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff;
    padding: 7px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: .82rem;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
}

.lux-edit-toggle:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}


/* Status "Tutup" (field sedang terbuka): kebalikan dari "Ubah" —
   diam = solid emas + putih; hover tetap efek angkat + shadow yang sama. */

.lux-edit-toggle.is-open {
    background: var(--gold);
    color: #fff;
}

.lux-edit-toggle.is-open:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.phone-code-picker {
    position: relative;
}

.phone-code-btn {
    min-width: 108px;
    height: 100%;
    padding: 8px 14px;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    background: var(--white);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .18s ease;
}

.phone-code-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-gold);
}

.phone-code-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
    border-color: var(--line);
}

.phone-code-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    width: 300px;
    max-height: 340px;
    background: var(--white);
    border: 1.5px solid var(--gold-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-gold), var(--shadow);
    overflow: hidden;
    flex-direction: column;
}

.phone-code-list.open {
    display: flex;
}

.phone-code-search {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    font-size: .9rem;
    font-family: var(--font-body);
    outline: none;
    background: var(--bg);
}

.phone-code-search:focus {
    border-bottom-color: var(--gold);
}

.phone-code-items {
    overflow-y: auto;
    max-height: 280px;
    padding: 8px;
}

.phone-code-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: .88rem;
    transition: background .15s ease;
}

.phone-code-item:hover {
    background: rgba(212, 175, 55, .1);
}

.phone-code-item .flag {
    font-size: 1.15rem;
    text-align: center;
}

.phone-code-item .name {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-code-item .code {
    color: var(--muted);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@media (max-width: 760px) {
    .profile-shell {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .profile-sidebar {
        position: static;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-bottom-logout {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: rgba(192, 86, 47, .12);
    color: #d98a6f;
    font-size: .88rem;
    font-family: var(--font-body);
    transition: background .2s ease;
}

.sidebar-bottom-logout:hover {
    background: rgba(192, 86, 47, .22);
}

.pg-label-btn {
    width: 100%;
    text-align: left;
    border: 1.5px solid var(--gold);
    background: var(--white);
    border-radius: 14px;
    padding: 13px 18px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
    cursor: pointer;
    transition: all .18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pg-label-btn:hover {
    box-shadow: var(--shadow-gold);
}

.pg-label-btn:active {
    transform: scale(0.98);
    background: var(--gold-soft);
}

.pg-label-btn .chev {
    transition: transform .2s ease;
}

.pg-label-btn.open .chev {
    transform: rotate(180deg);
}

.pg-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-reveal.open {
    max-height: 200px;
    margin-top: 10px;
}

.field label.with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.field label .link-ic {
    width: 14px;
    height: 14px;
    color: var(--gold);
    flex-shrink: 0;
}

.tanggapan-ai-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.tanggapan-percent-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e3f3e6;
    color: #4a8f5f;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-scroll {
    height: 280px;
    overflow-y: scroll;
    overflow-x: auto;
    border: 1.5px solid #cccccc;
    border-radius: 10px;
}

.table-scroll table {
    border: none;
}

.table-scroll th,
.table-scroll td {
    border-left: none;
    border-right: none;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}


/* --- SEMENTARA: dikembalikan atas permintaan untuk dilihat/dibandingkan
   dengan sistem col-wide/col-fit otomatis. Ini versi lebar kolom persen
   tetap yang dulu pernah dipakai (lihat "revisi web 1"). Selector ID di
   bawah ini sengaja menang atas class .col-wide/.col-fit di tabel yang
   sama karena spesifisitas ID lebih tinggi. */

#rvTable {
    table-layout: fixed;
}

#rvTable th:nth-child(1),
#rvTable td:nth-child(1) {
    width: 15%;
}

#rvTable th:nth-child(2),
#rvTable td:nth-child(2) {
    width: 15%;
}

#rvTable th:nth-child(3),
#rvTable td:nth-child(3) {
    width: 12%;
}

#rvTable th:nth-child(4),
#rvTable td:nth-child(4) {
    width: 48%;
}

#rvTable th:nth-child(5),
#rvTable td:nth-child(5) {
    width: 10%;
}

#prodTable {
    table-layout: fixed;
}

#prodTable th:nth-child(1),
#prodTable td:nth-child(1) {
    width: 8%;
}

#prodTable th:nth-child(2),
#prodTable td:nth-child(2) {
    width: 22%;
}

#prodTable th:nth-child(3),
#prodTable td:nth-child(3) {
    width: 14%;
}

#prodTable th:nth-child(4),
#prodTable td:nth-child(4) {
    width: 14%;
}

#prodTable th:nth-child(5),
#prodTable td:nth-child(5) {
    width: 14%;
}

#prodTable th:nth-child(6),
#prodTable td:nth-child(6) {
    width: 14%;
}

#prodTable th:nth-child(7),
#prodTable td:nth-child(7) {
    width: 14%;
}


/* Bahan Habis Pakai & Perlengkapan Tambahan (7 kolom: Nama, Harga, Terpakai,
   Pemakaian, Biaya/Gaun, Status, Aksi) — lebar tetap supaya kolom Nama Barang
   tidak kebesaran dan tabel tidak perlu digeser ke samping lagi. */

#consumablesTable,
#restockTable {
    table-layout: fixed;
}

#consumablesTable th:nth-child(1),
#consumablesTable td:nth-child(1),
#restockTable th:nth-child(1),
#restockTable td:nth-child(1) {
    width: 20%;
}

#consumablesTable th:nth-child(2),
#consumablesTable td:nth-child(2),
#restockTable th:nth-child(2),
#restockTable td:nth-child(2) {
    width: 12%;
}

#consumablesTable th:nth-child(3),
#consumablesTable td:nth-child(3),
#restockTable th:nth-child(3),
#restockTable td:nth-child(3) {
    width: 11%;
}

#consumablesTable th:nth-child(4),
#consumablesTable td:nth-child(4),
#restockTable th:nth-child(4),
#restockTable td:nth-child(4) {
    width: 10%;
}

#consumablesTable th:nth-child(5),
#consumablesTable td:nth-child(5),
#restockTable th:nth-child(5),
#restockTable td:nth-child(5) {
    width: 13%;
}

#consumablesTable th:nth-child(6),
#consumablesTable td:nth-child(6),
#restockTable th:nth-child(6),
#restockTable td:nth-child(6) {
    width: 15%;
}

#consumablesTable th:nth-child(7),
#consumablesTable td:nth-child(7),
#restockTable th:nth-child(7),
#restockTable td:nth-child(7) {
    width: 19%;
}


/* Dead Stock Alert */

#deadTable {
    table-layout: fixed;
}

#deadTable th:nth-child(1),
#deadTable td:nth-child(1) {
    width: 8%;
}

#deadTable th:nth-child(2),
#deadTable td:nth-child(2) {
    width: 32%;
}

#deadTable th:nth-child(3),
#deadTable td:nth-child(3) {
    width: 20%;
}

#deadTable th:nth-child(4),
#deadTable td:nth-child(4) {
    width: 24%;
}

#deadTable th:nth-child(5),
#deadTable td:nth-child(5) {
    width: 16%;
}


/* Daftar Pengguna */

#usersTable {
    table-layout: fixed;
}

#usersTable th:nth-child(1),
#usersTable td:nth-child(1) {
    width: 14%;
}

#usersTable th:nth-child(2),
#usersTable td:nth-child(2) {
    width: 22%;
}

#usersTable th:nth-child(3),
#usersTable td:nth-child(3) {
    width: 30%;
}

#usersTable th:nth-child(4),
#usersTable td:nth-child(4) {
    width: 12%;
}

#usersTable th:nth-child(5),
#usersTable td:nth-child(5) {
    width: 14%;
}

#usersTable th:nth-child(6),
#usersTable td:nth-child(6) {
    width: 8%;
}


/* Detail transaksi Laporan Keuangan */

#detailTable {
    table-layout: fixed;
}

#detailTable th:nth-child(1),
#detailTable td:nth-child(1) {
    width: 58%;
}

#detailTable th:nth-child(2),
#detailTable td:nth-child(2) {
    width: 20% !important;
    text-align: left !important;
    padding-left: 20px !important;
}

#detailTable th:nth-child(3),
#detailTable td:nth-child(3) {
    width: 22% !important;
    text-align: left !important;
    padding-left: 20px !important;
}


/* Bahan Habis Pakai */

#consumablesTable {
    table-layout: fixed;
}

#consumablesTable th:nth-child(1),
#consumablesTable td:nth-child(1) {
    width: 32%;
}

#consumablesTable th:nth-child(2),
#consumablesTable td:nth-child(2) {
    width: 16%;
}

#consumablesTable th:nth-child(3),
#consumablesTable td:nth-child(3) {
    width: 16%;
}

#consumablesTable th:nth-child(4),
#consumablesTable td:nth-child(4) {
    width: 16%;
}

#consumablesTable th:nth-child(5),
#consumablesTable td:nth-child(5) {
    width: 10%;
}

#consumablesTable th:nth-child(6),
#consumablesTable td:nth-child(6) {
    width: 10%;
}


/* Aset Restock */

#restockTable {
    table-layout: fixed;
}

#restockTable th:nth-child(1),
#restockTable td:nth-child(1) {
    width: 32%;
}

#restockTable th:nth-child(2),
#restockTable td:nth-child(2) {
    width: 16%;
}

#restockTable th:nth-child(3),
#restockTable td:nth-child(3) {
    width: 16%;
}

#restockTable th:nth-child(4),
#restockTable td:nth-child(4) {
    width: 16%;
}

#restockTable th:nth-child(5),
#restockTable td:nth-child(5) {
    width: 10%;
}

#restockTable th:nth-child(6),
#restockTable td:nth-child(6) {
    width: 10%;
}


/* Operasional */

#opTable {
    table-layout: fixed;
}

#opTable th:nth-child(1),
#opTable td:nth-child(1) {
    width: 14%;
}

#opTable th:nth-child(2),
#opTable td:nth-child(2) {
    width: 40%;
}

#opTable th:nth-child(3),
#opTable td:nth-child(3) {
    width: 18%;
}

#opTable th:nth-child(4),
#opTable td:nth-child(4) {
    width: 16%;
}

#opTable th:nth-child(5),
#opTable td:nth-child(5) {
    width: 12%;
}


/* Daftar Aset */

#asTable {
    table-layout: fixed;
}

#asTable th:nth-child(1),
#asTable td:nth-child(1) {
    width: 12%;
}

#asTable th:nth-child(2),
#asTable td:nth-child(2) {
    width: 20%;
}

#asTable th:nth-child(3),
#asTable td:nth-child(3) {
    width: 40%;
}

#asTable th:nth-child(4),
#asTable td:nth-child(4) {
    width: 16%;
}

#asTable th:nth-child(5),
#asTable td:nth-child(5) {
    width: 12%;
}

.date-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.date-filter-bar input {
    padding: 11px 16px;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .88rem;
    min-width: 220px;
    cursor: pointer;
    background: var(--white);
}

.quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-filters button {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: .82rem;
    cursor: pointer;
    transition: all .18s ease;
    font-family: var(--font-body);
}

.quick-filters button:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.quick-filters button.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.fin-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.fin-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--white);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
    position: relative;
}

.fin-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-soft);
    box-shadow: var(--shadow-gold);
}

.fin-card.active {
    border-color: var(--gold);
    background: var(--bg);
    box-shadow: var(--shadow-gold);
}

.fin-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #fbefd1;
    color: var(--gold);
}

.fin-card-icon svg {
    width: 22px;
    height: 22px;
}

.fin-card-label {
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
}

.fin-card-sub {
    font-size: .78rem;
    color: var(--muted);
    margin: 2px 0 6px;
}

.fin-card-value {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--gold);
}

@media (max-width: 760px) {
    .fin-cards {
        grid-template-columns: 1fr;
    }
}

.detail-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.detail-collapse.open {
    max-height: 600px;
    overflow-y: auto;
}

.detail-collapse table {
    margin-top: 14px;
}

.tipe-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
}

.tipe-badge.pemasukan {
    background: #e4f0e8;
    color: #4a8f5f;
}

.tipe-badge.pengeluaran {
    background: #f9e6dc;
    color: #c0562f;
}

.fin-sub {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 20px;
}


/* ============================================================
   Scrollbar kustom — berlaku global di semua halaman (user & admin)
   ============================================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-soft) var(--bg);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--gold-soft);
    border-radius: 20px;
    border: 1px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold);
}

::-webkit-scrollbar-corner {
    background: var(--bg);
}


/* Scrollbar utama halaman (html/body) disembunyikan total secara visual —
   gaya ala Zara — tapi scroll dengan mouse/trackpad tetap berfungsi normal.
   Scrollbar bertema di atas tetap berlaku untuk kontainer internal lain
   (dropdown, tabel admin, kotak Data Diri, dsb). */

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    display: none;
}