:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;

    --text: #172033;
    --muted: #667085;

    --primary: #1268d5;
    --primary-dark: #0b4ea8;
    --primary-soft: #eaf3ff;

    --success: #16835d;
    --danger: #cf3346;

    --border: #e3e8f1;

    --shadow:
        0 18px 55px rgba(28, 46, 78, 0.10);

    --radius: 20px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


.hidden {
    display: none !important;
}



/* =========================================================
   LOADER
========================================================= */

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    background: #ffffff;

    font-weight: 700;
    color: var(--primary);
}


.loader-spinner {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 4px solid #dce8f8;
    border-top-color: var(--primary);

    animation: spin 0.8s linear infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);
}


.header-inner {
    max-width: 1240px;
    min-height: 74px;

    margin: auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 28px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: inherit;
    text-decoration: none;
}


.brand-logo,
.sidebar-logo,
.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #45a1ff
        );

    color: white;
    font-weight: 800;
    letter-spacing: -1px;

    box-shadow:
        0 9px 24px rgba(18, 104, 213, 0.24);
}


.brand-text {
    display: flex;
    flex-direction: column;
}


.brand-text strong {
    font-size: 16px;
}


.brand-text small {
    margin-top: 2px;

    color: var(--muted);
    font-size: 11px;
}


.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 4px;
}


.nav-link {
    border: 0;
    background: transparent;

    padding: 10px 14px;

    border-radius: 10px;

    color: var(--muted);
    font-weight: 650;
}


.nav-link:hover {
    background: var(--surface-soft);
    color: var(--text);
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logged-in-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}


.mini-name {
    max-width: 150px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 700;
}



/* =========================================================
   BUTTONS
========================================================= */

.btn {
    border: 0;

    min-height: 42px;

    padding: 10px 17px;

    border-radius: 12px;

    font-weight: 750;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.btn:hover {
    transform: translateY(-1px);
}


.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #2587eb
        );

    color: #ffffff;

    box-shadow:
        0 8px 22px rgba(18, 104, 213, 0.22);
}


.btn-primary:hover {
    box-shadow:
        0 12px 30px rgba(18, 104, 213, 0.30);
}


.btn-soft {
    background: var(--primary-soft);
    color: var(--primary-dark);
}


.btn-outline {
    background: transparent;

    border: 1px solid #b7c5d8;

    color: var(--text);
}


.btn-large {
    min-height: 50px;

    padding-left: 22px;
    padding-right: 22px;
}


.btn-danger-soft {
    background: #fff0f2;
    color: var(--danger);
}



/* =========================================================
   HERO
========================================================= */

.hero-section {
    max-width: 1240px;

    margin: auto;
    padding: 84px 24px 70px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(320px, .7fr);

    align-items: center;
    gap: 70px;
}


.hero-label,
.section-kicker,
.card-kicker,
.dashboard-eyebrow,
.section-heading > span {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;

    color: var(--primary);
}


.hero-content h1 {
    max-width: 760px;

    margin: 15px 0 20px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;

    letter-spacing: -3px;
}


.hero-content h1 span {
    color: var(--primary);
}


.hero-description {
    max-width: 670px;

    margin: 0;

    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.hero-points {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 42px;
}


.hero-point {
    padding: 16px;

    background: rgba(255, 255, 255, .72);

    border: 1px solid var(--border);
    border-radius: 16px;
}


.hero-point strong,
.hero-point span {
    display: block;
}


.hero-point span {
    margin-top: 6px;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}


.hero-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 28px;

    box-shadow: var(--shadow);
}


.hero-card-top {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 15px 20px;

    background: #f7faff;

    border-bottom: 1px solid var(--border);

    color: var(--muted);
    font-size: 13px;
}


.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #25a575;

    box-shadow:
        0 0 0 5px rgba(37, 165, 117, .12);
}


.hero-card-main {
    padding: 40px 32px 32px;

    text-align: center;
}


.hero-card-icon {
    width: 82px;
    height: 82px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #53abff
        );

    color: white;

    font-size: 25px;
    font-weight: 900;

    box-shadow:
        0 18px 40px rgba(18, 104, 213, .25);
}


.hero-card h2 {
    margin: 22px 0 5px;
}


.hero-card p {
    margin: 0;
    color: var(--muted);
}


.system-status {
    margin-top: 30px;

    display: grid;

    gap: 10px;
}


.system-status > div {
    display: flex;
    justify-content: space-between;

    padding: 13px 15px;

    border-radius: 12px;

    background: var(--surface-soft);
}


.system-status span {
    color: var(--muted);
}


.system-status strong {
    color: var(--success);
}



/* =========================================================
   PUBLIC SECTIONS
========================================================= */

.info-section {
    padding: 80px 24px;

    background: #ffffff;
}


.section-heading {
    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;
}


.section-heading h2 {
    margin: 10px 0 12px;

    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1.5px;
}


.section-heading p {
    margin: 0;

    color: var(--muted);
    line-height: 1.7;
}


.feature-grid {
    max-width: 1160px;

    margin: auto;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


.feature-card {
    padding: 27px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: #ffffff;
}


.feature-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--primary-soft);
    color: var(--primary);

    font-weight: 850;
}


.feature-card h3 {
    margin: 19px 0 8px;
}


.feature-card p {
    margin: 0;

    color: var(--muted);
    line-height: 1.65;
}


.help-section {
    max-width: 1160px;

    margin: 70px auto;

    padding: 35px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    background:
        linear-gradient(
            135deg,
            #0c2d55,
            #1268d5
        );

    color: #ffffff;

    border-radius: 28px;

    box-shadow: var(--shadow);
}


.help-section h2 {
    margin: 9px 0 8px;

    font-size: 30px;
}


.help-section p {
    margin: 0;

    color: rgba(255, 255, 255, .8);
}


.help-section .section-kicker {
    color: #9ed0ff;
}


.help-section .btn-primary {
    background: white;
    color: var(--primary-dark);
}



/* =========================================================
   LOGIN
========================================================= */

.login-dialog {
    width: min(94vw, 520px);

    padding: 0;

    border: 0;
    border-radius: 24px;

    background: transparent;
}


.login-dialog::backdrop {
    background: rgba(10, 22, 40, .62);
    backdrop-filter: blur(4px);
}


.login-panel {
    position: relative;

    padding: 31px;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 25px 90px rgba(0, 0, 0, .22);
}


.dialog-close {
    position: absolute;
    top: 13px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #f0f3f8;

    color: #475467;
    font-size: 24px;
}


.login-heading {
    display: flex;
    gap: 16px;

    margin-bottom: 28px;
}


.login-heading h2 {
    margin: 4px 0 5px;
}


.login-heading p {
    margin: 0;
    color: var(--muted);
}


.form-label {
    display: block;

    margin: 17px 0 7px;

    font-size: 13px;
    font-weight: 750;
}


.form-control {
    width: 100%;
    min-height: 48px;

    padding: 11px 13px;

    border: 1px solid #ccd5e2;
    border-radius: 11px;

    background: #ffffff;

    color: var(--text);

    outline: none;
}


.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(18, 104, 213, .10);
}


.password-wrap {
    position: relative;
}


.password-wrap .form-control {
    padding-right: 72px;
}


.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}


.btn-login {
    width: 100%;

    margin-top: 22px;

    min-height: 49px;
}


.form-message {
    margin-top: 15px;
    padding: 11px 13px;

    border-radius: 10px;

    font-size: 13px;
}


.form-message.error {
    background: #fff0f2;
    color: #b42335;
}


.form-message.success {
    background: #eaf9f2;
    color: #087554;
}



/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-view {
    min-height:
        calc(100vh - 74px);

    display: grid;
    grid-template-columns: 270px 1fr;
}


.dashboard-sidebar {
    position: sticky;
    top: 74px;

    height:
        calc(100vh - 74px);

    padding: 25px 18px;

    display: flex;
    flex-direction: column;

    background: #10233d;

    color: #ffffff;
}


.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 7px 22px;

    border-bottom:
        1px solid rgba(255, 255, 255, .09);
}


.sidebar-brand > div {
    display: flex;
    flex-direction: column;
}


.sidebar-brand small {
    margin-top: 3px;

    color:
        rgba(255, 255, 255, .55);
}


.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 24px 7px;
}


.sidebar-user > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.sidebar-user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.sidebar-user span {
    margin-top: 3px;

    color:
        rgba(255, 255, 255, .55);

    font-size: 12px;
}


.user-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .12);

    font-weight: 850;
}


.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.dashboard-menu button {
    width: 100%;

    padding: 12px 13px;

    text-align: left;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color:
        rgba(255, 255, 255, .72);

    font-weight: 650;
}


.dashboard-menu button:hover,
.dashboard-menu button.active {
    background:
        rgba(255, 255, 255, .10);

    color: #ffffff;
}


.sidebar-logout {
    width: 100%;
    margin-top: auto;
}


.dashboard-main {
    min-width: 0;

    padding: 38px;

    background: var(--bg);
}


.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 24px;
}


.dashboard-topbar h1 {
    margin: 5px 0 5px;

    font-size: 32px;
    letter-spacing: -1px;
}


.dashboard-topbar p {
    margin: 0;
    color: var(--muted);
}


.dashboard-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.role-badge {
    display: inline-flex;
    align-items: center;

    min-height: 29px;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--primary-soft);
    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 850;
}


.dashboard-notice {
    margin-bottom: 20px;

    padding: 14px 17px;

    display: flex;
    flex-direction: column;
    gap: 3px;

    border: 1px solid #bed9f7;
    border-radius: 13px;

    background: #edf6ff;
}


.dashboard-notice span {
    color: #52667d;
    font-size: 13px;
}


.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.dashboard-card {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(27, 45, 78, .04);
}


.dashboard-welcome {
    grid-column: 1 / -1;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #edf6ff
        );
}


.dashboard-welcome h2 {
    margin: 8px 0;
    font-size: 30px;
}


.dashboard-welcome p {
    margin: 0;
    color: var(--muted);
}


.card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}


.card-header h3 {
    margin: 5px 0 0;
}


.profile-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.profile-item {
    padding: 13px;

    border-radius: 12px;

    background: var(--surface-soft);
}


.profile-item span,
.session-info span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 11px;
}


.profile-item strong {
    display: block;

    overflow-wrap: anywhere;

    font-size: 14px;
}


.session-info {
    display: grid;
    gap: 10px;
}


.session-info > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 13px;

    border-radius: 12px;

    background: var(--surface-soft);
}


.status-ok {
    color: var(--success);
}



/* =========================================================
   TOAST / FOOTER
========================================================= */

.toast {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 9999;

    max-width: min(380px, calc(100vw - 44px));

    padding: 13px 16px;

    border-radius: 12px;

    background: #172033;
    color: #ffffff;

    box-shadow: var(--shadow);

    font-size: 13px;
}


.site-footer {
    padding: 32px 24px;

    background: #ffffff;

    border-top: 1px solid var(--border);
}


.site-footer > div {
    max-width: 1160px;

    margin: auto;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: var(--muted);

    font-size: 13px;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .main-nav {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 600px;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-view {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;

        height: auto;
    }

    .dashboard-menu {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .sidebar-logout {
        margin-top: 20px;
    }

}


@media (max-width: 700px) {

    .header-inner {
        min-height: 67px;

        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-text small,
    .logged-in-mini {
        display: none;
    }

    .hero-section {
        padding: 55px 17px 45px;
        gap: 40px;
    }

    .hero-content h1 {
        letter-spacing: -2px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .help-section {
        margin: 35px 15px;

        padding: 27px;

        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-main {
        padding: 20px 14px;
    }

    .dashboard-topbar {
        flex-direction: column;
    }

    .dashboard-topbar-actions {
        flex-wrap: wrap;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .site-footer > div {
        flex-direction: column;
    }

}

/* =========================================================
   DASHBOARD PAGE NAVIGATION
========================================================= */

.dashboard-content {
    display: block;
}

.dashboard-page {
    animation: pageFade .16s ease;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.page-heading h2 {
    margin: 5px 0 6px;
    font-size: 28px;
    letter-spacing: -0.7px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.compact-grid {
    margin-top: 20px;
}

.member-summary-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.summary-card,
.metric-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(27, 45, 78, .04);
}

.summary-card span,
.metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.summary-card strong,
.metric-card strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.6px;
}

.reward-summary-card small,
.metric-card small {
    display: block;
    margin-top: 7px;
    color: var(--primary);
    font-weight: 750;
}

.referral-card {
    grid-column: 1 / -1;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #bdd8f6;
    border-radius: 18px;
    background: #edf6ff;
}

.referral-card > div {
    min-width: 0;
}

.referral-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.referral-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--primary-dark);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.metric-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #bed9f7;
    border-radius: 13px;
    background: #edf6ff;
    color: #52667d;
    font-size: 13px;
    line-height: 1.6;
}

.payment-status-card {
    display: grid;
    grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

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

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475467;
    font-size: 12px;
    font-weight: 850;
}

.status-pill.status-success {
    background: #e8f7ef;
    color: #087554;
}

.status-pill.status-warning {
    background: #fff7e6;
    color: #9a6700;
}

.status-pill.status-danger {
    background: #fff0f2;
    color: #b42335;
}

.payment-copy h3 {
    margin: 0 0 7px;
}

.payment-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.reward-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reward-list {
    display: grid;
    gap: 10px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
}

.reward-item > div {
    min-width: 0;
}

.reward-item strong,
.reward-item span {
    display: block;
}

.reward-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.reward-item b {
    white-space: nowrap;
    color: var(--primary-dark);
}

.empty-state {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: #fafcff;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.module-placeholder {
    margin-bottom: 20px;
}

.module-placeholder h2 {
    margin: 6px 0 8px;
}

.module-placeholder p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .member-summary-panel,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reward-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .member-summary-panel,
    .metric-grid,
    .metric-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .referral-card,
    .payment-status-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .payment-status-card {
        display: grid;
    }

    .page-heading h2 {
        font-size: 24px;
    }

    .reward-item {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   H5B2 - DASHBOARD ANGGOTA LENGKAP
========================================================= */

.dashboard-sidebar {
    overflow: hidden;
}

.dashboard-menu {
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.dashboard-menu::-webkit-scrollbar {
    width: 7px;
}

.dashboard-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.16);
    border-radius: 999px;
}

.module-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.module-empty-state {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafcff;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.profile-warning {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #f1d38c;
    border-radius: 12px;
    background: #fff8df;
    color: #7a5a12;
    font-size: 13px;
    line-height: 1.6;
}

.profile-form {
    max-width: 100%;
}

.profile-section-title {
    margin: 4px 0 4px;
    padding-top: 10px;
    font-weight: 850;
    color: var(--primary-dark);
}

.profile-section-title:not(:first-child) {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px dashed #d7deea;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-grid .field-full {
    grid-column: 1 / -1;
}

.profile-textarea {
    min-height: 100px;
    resize: vertical;
}

.readonly-control {
    background: #f2f4f7;
    color: #667085;
}

.profile-password-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.metric-card small {
    display: block;
    margin-top: 7px;
    color: var(--primary);
    font-weight: 750;
}

@media (max-width: 980px) {
    .dashboard-sidebar {
        overflow: visible;
    }

    .dashboard-menu {
        overflow: visible;
    }

    .profile-password-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .field-full {
        grid-column: auto;
    }

    .profile-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   MEMBER ORDER HISTORY
========================================================= */
.orders-history-container {
    margin-top: 18px;
}

.orders-history-list {
    display: grid;
    gap: 16px;
}

.order-history-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
}

.order-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.order-history-head > div:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-history-code {
    overflow-wrap: anywhere;
    font-size: 17px;
}

.order-history-date,
.order-item-row span,
.order-address span,
.order-meta-grid span {
    color: var(--muted);
    font-size: 12px;
}

.order-history-total {
    white-space: nowrap;
    color: var(--primary-dark);
    font-size: 20px;
}

.order-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.order-meta-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.order-meta-grid > div,
.order-address {
    padding: 12px 13px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.order-meta-grid span,
.order-meta-grid strong,
.order-address span,
.order-address strong {
    display: block;
}

.order-meta-grid strong,
.order-address strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.order-address {
    margin-top: 10px;
}

.order-items-wrap {
    margin-top: 17px;
    border-top: 1px solid var(--border);
}

.order-items-title {
    padding-top: 15px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1px;
    color: var(--primary);
}

.order-item-row {
    padding: 13px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.order-item-row:last-child {
    border-bottom: 0;
}

.order-item-row > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-right {
    align-items: flex-end;
    text-align: right;
}

.order-history-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.order-proof-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 900px) {
    .order-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .order-history-card {
        padding: 16px;
    }

    .order-history-head,
    .order-item-row {
        flex-direction: column;
    }

    .order-history-total {
        white-space: normal;
    }

    .order-meta-grid {
        grid-template-columns: 1fr;
    }

    .order-item-right {
        align-items: flex-start;
        text-align: left;
    }

    .order-history-actions {
        justify-content: stretch;
    }

    .order-proof-link {
        width: 100%;
    }
}

/* =========================================================
   MEMBER AFFILIATOR NETWORK
========================================================= */
.affiliate-card {
    margin-top: 20px;
}

.affiliate-level-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 4px 0 18px;
}

.affiliate-level-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #d7e4f3;
    border-radius: 999px;
    background: #f7fbff;
    color: var(--muted);
    font-size: 12px;
}

.affiliate-level-chip strong {
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
}

.affiliate-table-container {
    min-width: 0;
}

.affiliate-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.affiliate-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #ffffff;
}

.affiliate-table th,
.affiliate-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.affiliate-table th {
    background: #f7f9fc;
    color: #4b5d73;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .35px;
    text-transform: uppercase;
    white-space: nowrap;
}

.affiliate-table tbody tr:last-child td {
    border-bottom: 0;
}

.affiliate-table tbody tr:hover {
    background: #fbfdff;
}

.affiliate-table td:nth-child(2),
.affiliate-table td:nth-child(3) {
    font-weight: 750;
}

.affiliate-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475467;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.affiliate-status-badge.is-success {
    background: #e8f7ef;
    color: #087554;
}

.affiliate-status-badge.is-warning {
    background: #fff7e6;
    color: #9a6700;
}

.affiliate-status-badge.is-danger {
    background: #fff0f2;
    color: #b42335;
}

@media (max-width: 700px) {
    .affiliate-table th,
    .affiliate-table td {
        padding: 11px 12px;
    }
}

/* =========================================================
   H5B5 - OMZET GRUP
========================================================= */

.omzet-secondary-grid {
    margin-top: 15px;
}

.turnover-card {
    margin-top: 18px;
}

.turnover-basis-note {
    margin-top: 0;
    margin-bottom: 18px;
}

.turnover-table-container {
    min-width: 0;
}

.turnover-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.turnover-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
}

.turnover-table th,
.turnover-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.turnover-table th {
    background: #f7f9fc;
    color: #4b5d73;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .35px;
    text-transform: uppercase;
    white-space: nowrap;
}

.turnover-table tbody tr:last-child td {
    border-bottom: 0;
}

.turnover-table tbody tr:hover {
    background: #fbfdff;
}

.turnover-table td:first-child,
.turnover-money {
    font-weight: 800;
}

.turnover-money {
    color: var(--primary-dark);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .turnover-table th,
    .turnover-table td {
        padding: 11px 12px;
    }
}


/* =========================================================
   H5B6 - STATUS HADIAH / REWARD
========================================================= */

.reward-status-row {
    margin-bottom: 18px;
}

.reward-metric-grid {
    margin-bottom: 20px;
}

.reward-catalog-section,
.reward-history-section {
    margin-top: 20px;
}

.reward-rule-note {
    margin-bottom: 18px;
}

.reward-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reward-catalog-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.reward-catalog-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.reward-code {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .7px;
}

.reward-catalog-card h3 {
    margin: 0;
    font-size: 18px;
}

.reward-value-grid,
.reward-requirement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.reward-value-grid > div,
.reward-requirement-grid > div {
    padding: 11px 12px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.reward-value-grid span,
.reward-requirement-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
}

.reward-value-grid strong,
.reward-requirement-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.reward-requirements {
    margin-top: 15px;
}

.reward-requirements > strong {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
}

.reward-description {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 13px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th,
.data-table td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 12px;
}

.data-table th {
    background: var(--surface-soft);
    color: #344054;
    font-size: 11px;
    letter-spacing: .3px;
}

.reward-history-table td:nth-child(6) {
    font-weight: 750;
}

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

@media (max-width: 600px) {
    .reward-value-grid,
    .reward-requirement-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MEMBER FINANCIAL MODULES - CONSOLIDATED
========================================================= */
.payment-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.table-action-link:hover {
    text-decoration: underline;
}

#memberRoyaltyInfo {
    margin-bottom: 16px;
}


/* =========================================================
   MERCHANT REGULER DASHBOARD
========================================================= */
.merchant-status-box {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.merchant-status-box > div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
}

.merchant-status-box span,
.merchant-profile-status span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.merchant-status-box strong,
.merchant-profile-status strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
}

.merchant-profile-status {
    margin-top: 18px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

@media (max-width: 900px) {
    .merchant-status-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .merchant-status-box,
    .merchant-profile-status { grid-template-columns: 1fr; }
}

/* =========================================================
   MERCHANT MANDIRI DASHBOARD
========================================================= */
.mm-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.module-note {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.module-note:empty {
    display: none;
}

@media (max-width: 640px) {
    .mm-search-row {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   ADMIN DASHBOARD V1
============================================================= */
.admin-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-chart-wrap {
    min-height: 240px;
    display: grid;
    grid-template-columns: repeat(14, minmax(38px, 1fr));
    gap: 8px;
    align-items: end;
    padding: 18px 8px 8px;
    overflow-x: auto;
    border-top: 1px solid rgba(31, 62, 47, 0.08);
}

.admin-chart-day {
    height: 210px;
    min-width: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-chart-bars {
    height: 178px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    border-bottom: 1px solid rgba(31, 62, 47, 0.14);
}

.admin-chart-bar {
    display: block;
    width: 12%;
    min-width: 3px;
    max-width: 7px;
    border-radius: 4px 4px 0 0;
    background: #315b4a;
    transition: height .25s ease;
}

.admin-chart-bar.chart-series-2 { background: #b3823c; }
.admin-chart-bar.chart-series-3 { background: #527e9f; }
.admin-chart-bar.chart-series-4 { background: #745a91; }
.admin-chart-bar.chart-series-5 { background: #9d674e; }
.admin-chart-bar.chart-series-6 { background: #6a8b55; }

.admin-chart-day small {
    font-size: 10px;
    white-space: nowrap;
    color: #64756d;
}

.admin-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 10px;
    font-size: 12px;
    color: #586b62;
}

.admin-chart-legend span::before {
    content: "•";
    margin-right: 5px;
    color: #315b4a;
}

.dashboard-sidebar .dashboard-menu {
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 900px) {
    .admin-chart-wrap {
        grid-template-columns: repeat(14, 42px);
    }
}

/* ================================================================
   PARITAS GAS V2
================================================================ */
.dashboard-menu-group {
    margin: 12px 8px 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eef4f1;
    color: #315b4a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-left: 4px solid #b3823c;
}

.gas-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.gas-chart-card {
    overflow: hidden;
    min-height: 340px;
}

.gas-chart-card h3 {
    margin: 0 0 14px;
    color: #213d31;
    font-size: 16px;
}

.gas-chart-canvas {
    display: block;
    width: 100% !important;
    height: 300px;
    min-height: 260px;
}

.gas-chart-wide {
    min-height: 320px;
}

.gas-range-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 10px 0 16px;
    font-size: 13px;
    color: #52675e;
}

.gas-range-toolbar label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gas-range-select {
    width: auto;
    min-width: 150px;
    padding: 7px 10px;
}

.gas-disabled-form {
    opacity: .9;
}

.dashboard-sidebar .dashboard-menu {
    max-height: calc(100vh - 210px);
    padding-right: 4px;
}

@media (max-width: 900px) {
    .gas-chart-grid { grid-template-columns: 1fr; }
    .gas-chart-card { min-height: 320px; }
    .gas-chart-canvas { height: 280px; }
    .dashboard-sidebar .dashboard-menu { max-height: none; }
}


/* ================================================================
   V3 FULL GAS PARITY — PUBLIC MARKETPLACE
   Visual language mirrors the current GAS storefront while keeping
   the PHP/MariaDB dashboard shell and CSP-safe local assets.
   ================================================================ */
:root{--bm-green:#0f5132;--bm-green-2:#16734a;--bm-mint:#eaf7f0;--bm-gold:#d79b35;--bm-ink:#17221c;--bm-muted:#68766e;--bm-line:#dde7e1;--bm-surface:#fff;--bm-bg:#f4f7f5;--bm-shadow:0 14px 38px rgba(20,55,37,.09)}
html,body{background:var(--bm-bg);color:var(--bm-ink);max-width:100%;overflow-x:hidden}
.top-service-bar{background:#0b3d27;color:#e9fff3;font-size:11px;padding:8px 20px;text-align:center;letter-spacing:.2px}
.navbar{position:sticky;top:0;z-index:800;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-bottom:1px solid var(--bm-line);box-shadow:0 8px 24px rgba(23,34,28,.06);padding:12px 20px;display:flex;flex-direction:column;align-items:center;gap:10px}
.logo-area{display:flex;align-items:center;justify-content:center;gap:10px;font-size:22px;font-weight:900;white-space:nowrap;letter-spacing:.3px}.brand-logo-image{height:42px;width:auto;object-fit:contain}.brand-wordmark>span{color:#17221c}.brand-wordmark>b{color:var(--bm-gold)}.brand-wordmark small{display:block;font-size:9px;color:var(--bm-muted);font-weight:700;letter-spacing:1.25px;margin-top:2px}.nav-links{display:flex;gap:3px;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}.nav-links button{border:0;border-radius:10px;background:transparent;color:#304139;padding:9px 11px;font-weight:800;font-size:11px;cursor:pointer;transition:.2s ease}.nav-links button:hover,.nav-links button.active{transform:translateY(-1px);background:var(--bm-mint);color:var(--bm-green)}.nav-links .btn-login{background:var(--bm-green);color:#fff}.nav-links .btn-login:hover{background:#0b3d27;color:#fff}.nav-links .btn-logout-top{background:#fff3f1;color:#a83b31;border:1px solid #efc3bd}.nav-links .btn-cart-top{background:var(--bm-gold);color:#fff}.nav-links #cartCount{background:#fff;color:#9b6816;border-radius:999px;padding:2px 6px;margin-left:3px}.logged-in-mini{position:absolute;right:16px;top:8px;font-size:9px;color:var(--bm-muted);display:flex;gap:5px;align-items:center}.reward-banner{background:linear-gradient(100deg,#a56d11,#e8b453,#0f5132);background-size:200% 200%;animation:bmGradient 4s ease infinite;color:#fff;text-align:center;padding:10px;font-weight:900;font-size:14px;letter-spacing:1px;box-shadow:0 4px 10px rgba(0,0,0,.12);position:relative;z-index:90}@keyframes bmGradient{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}
.gas-public{min-height:60vh}.hero-shell{max-width:1240px;margin:0 auto}.hero-slider-container{position:relative;width:94%;margin:24px auto;aspect-ratio:16/7;border-radius:24px;overflow:hidden;box-shadow:var(--bm-shadow);background:var(--bm-green)}.hero-slide-modern{position:absolute;inset:0;display:flex;opacity:0;transition:opacity .7s ease}.hero-slide-modern.active{opacity:1;z-index:2}.hero-slide-photo{width:60%;position:relative;overflow:hidden;background:#dfe9e3}.hero-slide-photo img{width:100%;height:100%;object-fit:cover}.hero-fallback-photo{display:grid;place-items:center;background:linear-gradient(135deg,#dfeae4,#f0e3c9)}.hero-fallback-mark{width:120px;height:120px;border-radius:30px;background:var(--bm-green);color:#fff;display:grid;place-items:center;font-size:42px;font-weight:900;box-shadow:0 18px 40px rgba(15,81,50,.25)}.hero-slide-overlay{position:absolute;left:0;right:0;bottom:0;padding:18px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff}.hero-slide-overlay h1{margin:0 0 6px;font-size:24px}.hero-slide-overlay p{margin:0;font-size:13px;line-height:1.4}.hero-slide-info{width:40%;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;color:#fff;background:linear-gradient(145deg,var(--bm-green),var(--bm-green-2))}.hero-slide-info h2{margin:0 0 14px;font-size:24px}.hero-slide-info p{margin:0;line-height:1.65;font-size:14px}.hero-slide-info a{display:inline-block;margin-top:20px;align-self:flex-start;background:#fff;color:var(--bm-green);padding:11px 18px;border-radius:999px;text-decoration:none;font-weight:800;font-size:12px}
.marketplace-intro{max-width:1200px;margin:0 auto 20px;padding:0 20px}.marketplace-intro-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.trust-card{background:#fff;border:1px solid var(--bm-line);border-radius:16px;padding:16px;display:flex;gap:12px;align-items:center;box-shadow:0 8px 20px rgba(20,55,37,.05)}.trust-card .ico{width:40px;height:40px;border-radius:12px;background:var(--bm-mint);display:grid;place-items:center;font-size:20px}.trust-card b{display:block;color:var(--bm-green);font-size:12px}.trust-card span{font-size:10px;color:var(--bm-muted)}
.site-information-grid{max-width:1200px;margin:0 auto 18px;padding:0 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.site-info-card{background:#fff;border:1px solid var(--bm-line);border-radius:14px;padding:14px;display:flex;gap:10px;align-items:flex-start}.site-info-number{min-width:32px;height:32px;border-radius:10px;background:var(--bm-green);color:#fff;display:grid;place-items:center;font-weight:900}.site-info-card p{margin:1px 0;font-size:11px;line-height:1.45;color:#45564c}.site-info-card a{font-size:10px;color:var(--bm-green);font-weight:800}
.section-container{padding:20px 20px 40px;max-width:1240px;margin:0 auto;box-sizing:border-box}.marketplace-toolbar{background:#fff;border:1px solid var(--bm-line);border-radius:18px;padding:14px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,320px);gap:12px;margin-bottom:22px;box-shadow:0 8px 24px rgba(20,55,37,.05)}.marketplace-toolbar input,.marketplace-toolbar select{height:44px;border:1px solid var(--bm-line);border-radius:12px;padding:0 14px;background:#fbfdfc;font:inherit;color:var(--bm-ink);outline:none}.marketplace-toolbar input:focus,.marketplace-toolbar select:focus{border-color:var(--bm-green-2);box-shadow:0 0 0 3px rgba(22,115,74,.1)}.section-title{text-align:left;font-size:24px;margin-bottom:20px;font-weight:900;color:var(--bm-ink);letter-spacing:-.5px}.section-title:not(.reward-title):not(.article-title):after{content:'Produk dari anggota dan merchant terpercaya';display:block;font-size:12px;color:var(--bm-muted);font-weight:500;margin-top:5px;letter-spacing:0}.section-subtitle{margin:-12px 0 22px;color:var(--bm-muted);font-size:12px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-card{padding:0;border:1px solid var(--bm-line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(20,55,37,.06);transition:.25s ease;cursor:pointer}.product-card:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(20,55,37,.14)}.product-card .product-image-wrap{height:190px;background:#eef3f0;overflow:hidden}.product-card img{width:100%;height:100%;object-fit:cover}.product-info{padding:14px}.product-info h3{font-size:14px;line-height:1.4;min-height:39px;margin:8px 0 4px}.store-chip{display:inline-flex;align-items:center;gap:5px;background:var(--bm-mint);color:var(--bm-green);padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800}.price-line{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.price-main{font-size:16px;color:var(--bm-green);font-weight:900}.product-cta{width:34px;height:34px;border-radius:10px;background:var(--bm-green);color:#fff;display:grid;place-items:center;font-weight:900}.grid-empty{grid-column:1/-1;text-align:center;color:var(--bm-muted);padding:32px;background:#fff;border:1px dashed var(--bm-line);border-radius:14px}.explanation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.explanation-card{background:linear-gradient(135deg,#fdfbfb,#ebedee);border-left:5px solid var(--bm-green);padding:15px;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.04)}.explanation-card h3{color:#2c3e50;margin:0 0 8px;font-size:15px}.explanation-card p{color:#555;font-size:12px;line-height:1.55;margin:0}.explanation-card a{display:inline-block;margin-top:10px;padding:7px 12px;background:var(--bm-green);color:#fff;text-decoration:none;border-radius:7px;font-weight:800;font-size:10px}.explanation-bottom{margin-top:32px}.public-faq{margin-top:26px}.public-faq h2{font-size:20px}.faq-item{background:#fff;border:1px solid var(--bm-line);border-radius:12px;margin:8px 0;overflow:hidden}.faq-item button{width:100%;border:0;background:#fff;padding:13px 15px;text-align:left;font-weight:800;color:#2c3e50;cursor:pointer}.faq-answer{padding:0 15px 14px;font-size:12px;line-height:1.55;color:#56655d}.faq-answer.hidden{display:none}
.product-detail-view,.form-wrapper,.mm-public-card{background:#fff;border:1px solid var(--bm-line);box-shadow:var(--bm-shadow);border-radius:18px;padding:20px}.btn-kembali{background:var(--bm-gold);color:#fff;border:0;padding:8px 15px;border-radius:8px;cursor:pointer;font-weight:800;margin-bottom:15px;font-size:12px}.pd-desktop-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1.15fr) minmax(240px,.75fr);gap:20px}.pd-slider-container{position:relative;width:100%;aspect-ratio:1/1;background:#eef3f0;border-radius:14px;overflow:hidden}.pd-main-image{width:100%;height:100%;object-fit:contain}.pd-thumbs{display:flex;gap:7px;margin-top:8px;overflow:auto}.pd-thumb{width:56px;height:56px;border:1px solid var(--bm-line);border-radius:8px;object-fit:cover;cursor:pointer}.pd-col-desc h2{color:var(--bm-green);margin:10px 0 6px;font-size:24px}.pd-price{font-weight:900;font-size:22px;color:var(--bm-green);margin-bottom:14px}.pd-meta{font-size:12px;color:#59675f;padding:12px 0;border-bottom:1px dashed var(--bm-line);line-height:1.6}.rich-copy{font-size:13px;line-height:1.7;color:#44524a;white-space:pre-wrap}.action-card{background:#fcfcfc;padding:15px;border-radius:12px;border:1px solid var(--bm-gold)}.share-box{text-align:center;background:#fffaf2;padding:11px;border:1px solid #ebcfaa;border-radius:10px}.share-box span{display:block;font-size:10px;color:#a67731;font-weight:800}.share-box strong{display:block;color:#e74c3c;font-weight:900;font-size:26px}.qty-box{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:800;margin:14px 0}.qty-box input{width:90px;padding:8px;border:1px solid var(--bm-line);border-radius:7px}.pd-total{font-weight:900;color:var(--bm-gold);font-size:18px;margin:8px 0 14px}.variant-box{margin-top:13px;padding:10px;background:#fffdf9;border:1px dashed var(--bm-gold);border-radius:9px}.variant-box label{display:block;font-size:11px;font-weight:800;margin:6px 0}.variant-box select{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid var(--bm-line);border-radius:7px}.wa-seller{background:#25d366!important;margin-top:8px}.product-video-area{margin-top:16px}.product-video-link{display:inline-block;padding:9px 13px;border-radius:7px;background:#c62828;color:#fff;text-decoration:none;font-weight:800;font-size:12px}
.reward-title{color:#8e44ad}.reward-card{border-color:#cdb5db}.reward-card .store-chip{background:#f4ebf8;color:#7b1fa2}.reward-chip{display:inline-block;background:#f4ebf8;color:#7b1fa2;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.reward-detail-grid{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.1fr);gap:24px}.reward-detail-image{width:100%;max-height:420px;object-fit:cover;border-radius:14px;background:#f1f1f1}.reward-value{font-size:26px;font-weight:900;color:#e74c3c;margin:8px 0 15px}.reward-requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}.reward-requirements div{padding:10px;background:#f8faf9;border:1px solid var(--bm-line);border-radius:9px}.reward-requirements span{display:block;font-size:9px;color:var(--bm-muted)}.reward-requirements strong{display:block;margin-top:4px;font-size:12px;color:var(--bm-green)}.reward-buy{background:#8e44ad!important}
.login-tabs{display:flex;margin-bottom:20px;border-bottom:2px solid #eee}.login-tabs button{flex:1;padding:10px;background:none;border:0;cursor:pointer;font-weight:800;color:#777;font-size:13px}.login-tabs button.active{color:var(--bm-green);border-bottom:3px solid var(--bm-green)}.registration-notice{background:#e8f4f8;color:#296b8b;padding:12px;border:1px solid #b3e5fc;border-radius:8px;font-size:11px;line-height:1.5;margin-bottom:15px}.double-profit{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff;padding:15px;border-radius:8px;margin-bottom:15px;text-align:center}.double-profit b,.double-profit span{display:block}.double-profit b{font-size:19px;margin-bottom:4px}.double-profit span{font-size:12px}.merchant-location-grid{display:grid;grid-template-columns:1fr 1fr .55fr;gap:10px}.mm-public-card{display:grid;grid-template-columns:100px 1fr;gap:24px;align-items:center;max-width:900px;margin:20px auto}.mm-public-icon{width:90px;height:90px;border-radius:22px;background:var(--bm-mint);display:grid;place-items:center;font-size:42px}.mm-public-card h2{margin:6px 0;color:var(--bm-green)}.mm-public-card p{font-size:13px;color:var(--bm-muted);line-height:1.65}.mm-feature-list{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.mm-feature-list span{background:#f7faf8;border:1px solid var(--bm-line);border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;color:#476056}.section-kicker{font-size:10px;font-weight:900;letter-spacing:1.2px;color:var(--bm-gold)}
.article-list{display:grid;gap:12px;max-width:900px;margin:auto}.article-card{background:#fff;border:1px solid var(--bm-line);border-radius:14px;padding:16px;box-shadow:0 8px 20px rgba(20,55,37,.05)}.article-card h3{margin:0 0 6px;color:#2c3e50}.article-card p{margin:0;color:var(--bm-muted);font-size:12px;line-height:1.5}.article-card button{margin-top:10px;border:0;background:var(--bm-green);color:#fff;border-radius:7px;padding:8px 12px;font-weight:800;cursor:pointer}.article-detail{max-width:900px;margin:auto;background:#fff;border:1px solid var(--bm-line);border-radius:14px;padding:20px}
.cart-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1400;display:grid;place-items:center;padding:18px}.cart-panel{position:relative;background:#fff;width:min(620px,100%);max-height:88vh;overflow:auto;border-radius:18px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.26)}.cart-items{display:grid;gap:8px}.cart-item{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border:1px solid var(--bm-line);border-radius:10px;padding:10px}.cart-item small{display:block;color:var(--bm-muted);margin-top:3px}.cart-item input{width:62px;padding:6px;border:1px solid var(--bm-line);border-radius:6px}.cart-remove{border:0;background:#fff3f1;color:#a83b31;border-radius:7px;padding:7px;cursor:pointer}.cart-total-row{display:flex;justify-content:space-between;font-size:18px;padding:15px 0;border-top:1px solid var(--bm-line);margin-top:12px}.migration-safe-note{font-size:10px;color:var(--bm-muted);line-height:1.5}.wa-admin-float{position:fixed;width:55px;height:55px;bottom:25px;right:25px;background:#25d366;color:#fff;border-radius:50%;display:grid;place-items:center;font-size:24px;box-shadow:2px 2px 10px rgba(0,0,0,.25);z-index:1000;text-decoration:none}.wa-admin-float:hover{transform:scale(1.08)}
.site-footer{background:#0b3d27;color:#dff6e9;margin-top:50px;padding:34px 20px}.site-footer-inner{max-width:1200px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.site-footer h3,.site-footer h4{color:#fff;margin-top:0}.site-footer p,.site-footer a,.footer-link-btn{font-size:11px;color:#c8e4d3;text-decoration:none;line-height:1.7}.footer-link-btn{border:0;background:none;padding:0;cursor:pointer}.site-footer-bottom{max-width:1200px;margin:24px auto 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);font-size:10px;color:#9fc9af}
@media(min-width:720px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-card .product-image-wrap{height:220px}}
@media(min-width:1024px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-card .product-image-wrap{height:230px}.navbar{flex-direction:row;justify-content:space-between}.nav-links{width:auto;justify-content:flex-end}.logo-area{justify-content:flex-start}}
@media(max-width:900px){.pd-desktop-layout{grid-template-columns:1fr}.reward-detail-grid{grid-template-columns:1fr}.site-information-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.top-service-bar{font-size:9px}.marketplace-intro-grid{grid-template-columns:repeat(2,1fr)}.marketplace-toolbar{grid-template-columns:1fr}.site-footer-inner{grid-template-columns:1fr}.section-title{font-size:20px}.hero-slider-container{margin:14px auto;border-radius:16px;aspect-ratio:auto;min-height:500px}.hero-slide-modern{flex-direction:column}.hero-slide-photo,.hero-slide-info{width:100%}.hero-slide-photo{height:58%}.hero-slide-info{height:42%;padding:18px}.hero-slide-info h2{font-size:18px}.hero-slide-info p{font-size:12px}.brand-wordmark small{display:none}.navbar{position:relative}.merchant-location-grid{grid-template-columns:1fr}.explanation-grid{grid-template-columns:1fr}.mm-public-card{grid-template-columns:1fr;text-align:center}.mm-public-icon{margin:auto}.logged-in-mini{display:none!important}}
@media(max-width:520px){.site-information-grid{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-card .product-image-wrap{height:150px}.product-info{padding:10px}.product-info h3{font-size:12px}.price-main{font-size:13px}.trust-card{padding:10px}.trust-card span{font-size:9px}.nav-links button{font-size:9px;padding:7px 8px}}


/* V3 — Dashboard visual parity with GAS */
.dashboard-view{background:var(--bm-bg)}
.dashboard-sidebar{background:#fff;color:var(--bm-ink);border-right:1px solid var(--bm-line);box-shadow:8px 0 24px rgba(20,55,37,.05);top:0;height:100vh;padding:18px 14px}
.sidebar-brand{border-bottom:1px solid var(--bm-line);padding:4px 6px 16px}.sidebar-brand strong{color:var(--bm-green);font-weight:900}.sidebar-brand small,.sidebar-user span{color:var(--bm-muted)}
.sidebar-logo,.user-avatar{background:var(--bm-mint)!important;color:var(--bm-green)!important}
.sidebar-user{padding:18px 6px}.sidebar-user strong{color:var(--bm-ink)}
.dashboard-menu{gap:6px}.dashboard-menu button{background:#f8fbf9;color:#344b3e;border:1px solid var(--bm-line);border-radius:9px;padding:10px 11px;font-size:11px;font-weight:700}.dashboard-menu button:hover,.dashboard-menu button.active{background:var(--bm-green);color:#fff;border-color:var(--bm-green)}
.sidebar-logout{background:#fff3f1!important;color:#a83b31!important;border:1px solid #efc3bd!important}
.dashboard-main{background:var(--bm-bg);padding:26px}.dashboard-topbar h1{color:var(--bm-green);font-size:25px}.dashboard-topbar p{color:var(--bm-muted)}.dashboard-card,.member-summary-card,.merchant-summary-card,.admin-summary-card,.gas-chart-card{border-color:var(--bm-line)!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(20,55,37,.06)!important}
.dashboard-menu-group{color:#fff!important;border:0!important;border-radius:8px!important;padding:8px 10px!important;margin:13px 2px 5px!important;box-shadow:0 2px 7px rgba(0,0,0,.08);font-size:10px!important}
.admin-group-transaksi{background:#1565c0!important}.admin-group-pembukuan{background:#2e7d32!important}.admin-group-laporan{background:linear-gradient(135deg,#7b1fa2,#3949ab)!important}.admin-group-anggota{background:#6a1b9a!important}.admin-group-mm{background:#00838f!important}.admin-group-komisi{background:#0b7a53!important}.admin-group-reward{background:#ef6c00!important}.admin-group-konten{background:#455a64!important}
@media(max-width:980px){.dashboard-view{display:block}.dashboard-sidebar{position:relative;height:auto;top:auto}.dashboard-main{padding:14px}.dashboard-menu{max-height:none!important}.dashboard-topbar{flex-direction:column;gap:10px}.dashboard-topbar h1{font-size:21px}}

/* ================================================================
   ADMIN V4 — PARITAS DETAIL GAS
================================================================ */
.admin-period-filter,
.admin-transfer-toolbar{
    display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:0 0 15px;
    padding:12px;background:#fff;border:1px solid var(--bm-line);border-radius:12px;
    box-shadow:0 5px 16px rgba(20,55,37,.04)
}
.admin-period-filter label,.admin-transfer-toolbar label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#344b3e}
.admin-period-select{min-width:155px;width:auto}.admin-period-search{min-width:230px}
.admin-transfer-toolbar label:nth-child(1){min-width:260px;flex:1}.admin-transfer-toolbar label:nth-child(2){min-width:250px}.admin-transfer-toolbar label:nth-child(3){min-width:250px;flex:1}
.admin-transfer-total{margin:0 0 12px;padding:10px 12px;border-radius:8px;background:#eaf7f0;color:#0f5132;font-size:13px}.admin-transfer-total strong{font-size:16px}
.admin-transfer-table input[type="checkbox"]{width:16px;height:16px;accent-color:#0f7a4e}
#adminProductSalesFormula{margin-bottom:14px;background:#fff8e8;border-color:#efd79e;color:#725314}
#adminTransferNotice{margin:0 0 14px}
.dashboard-main .data-table{font-size:11px}.dashboard-main .data-table th{white-space:nowrap;position:sticky;top:0;z-index:2;background:#edf5f0;color:#173c2a}.dashboard-main .data-table td{white-space:nowrap;vertical-align:top}
.dashboard-main .table-scroll{max-height:560px;overflow:auto;border:1px solid var(--bm-line);border-radius:10px}
/* GAS admin uses a long, independently scrollable menu. */
body .dashboard-sidebar .dashboard-menu{max-height:calc(100vh - 205px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8bb59e #edf5f0;padding-right:5px}
body .dashboard-sidebar .dashboard-menu::-webkit-scrollbar{width:8px}body .dashboard-sidebar .dashboard-menu::-webkit-scrollbar-track{background:#edf5f0;border-radius:10px}body .dashboard-sidebar .dashboard-menu::-webkit-scrollbar-thumb{background:#8bb59e;border-radius:10px}
@media(max-width:900px){.admin-period-filter,.admin-transfer-toolbar{align-items:stretch}.admin-period-filter label,.admin-transfer-toolbar label{width:100%;min-width:0!important}.admin-period-select,.admin-period-search{width:100%;min-width:0}.dashboard-main .table-scroll{max-height:460px}body .dashboard-sidebar .dashboard-menu{max-height:60vh}}
.admin-menu-scroll-btn{width:100%;border:0;border-radius:8px;padding:7px 8px;background:#d9efe3;color:#0f5132;font-size:9px;font-weight:900;letter-spacing:.4px;cursor:pointer;margin:5px 0}.admin-menu-scroll-btn:hover{background:#c2e4d1}.admin-menu-scroll-btn.hidden{display:none!important}

/* ================================================================
   ADMIN V5 - PARITAS GAS DETAIL
================================================================ */
.gas-filter-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 16px;padding:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}.gas-filter-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#334155}.gas-filter-select{min-width:145px}.admin-gas-form{display:grid;gap:14px;margin-bottom:18px}.admin-gas-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#334155}.admin-gas-form .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.admin-gas-form textarea{resize:vertical;min-height:90px}.rich-editor-fallback{min-height:260px}.gas-chart-tooltip{position:fixed;z-index:99999;pointer-events:none;display:none;min-width:130px;max-width:260px;padding:9px 11px;border-radius:8px;background:rgba(15,23,42,.96);color:#fff;box-shadow:0 10px 30px rgba(15,23,42,.25);font-size:12px;line-height:1.35}.gas-chart-tooltip.show{display:grid;gap:2px}.gas-chart-tooltip b{font-size:12px}.gas-chart-tooltip span{color:#cbd5e1}.gas-chart-tooltip strong{font-size:13px;color:#f8fafc}.table-scroll{overflow:auto;max-width:100%}.table-scroll table{min-width:max-content}.data-table td img{display:block;margin:auto}.info-note:empty{display:none}@media(max-width:720px){.gas-filter-toolbar{align-items:stretch}.gas-filter-toolbar label,.gas-filter-toolbar .btn{width:100%}.gas-filter-select{width:100%}.gas-chart-tooltip{max-width:210px}}

/* ADMIN V6 */
.table-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.table-actions .btn{padding:6px 10px;min-height:32px}.data-table td{white-space:pre-line}.gas-filter-toolbar .btn{white-space:nowrap}

/* =========================================================
   V7 PUBLIC WEBSITE VISUAL REFINEMENT
   Fokus: navbar, hero full-width, pendaftaran, detail produk,
   tombol pembelian, reward, dan password eye toggle.
========================================================= */

/* Header / menu */
.navbar{
    position:sticky;
    top:0;
    z-index:800;
    display:grid;
    grid-template-columns:minmax(270px,360px) minmax(0,1fr);
    align-items:center;
    gap:22px;
    padding:13px 22px;
    background:rgba(255,255,255,.98);
    border-bottom:1px solid var(--bm-line);
    box-shadow:0 7px 24px rgba(15,81,50,.08);
}
.logo-area{justify-content:flex-start;min-width:0}
.brand-logo-image{height:48px;max-width:54px}
.brand-wordmark{line-height:1.05}
.brand-wordmark>span,.brand-wordmark>b{font-size:22px}
.header-nav-zone{min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.logged-in-mini{
    position:static;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:7px;
    min-height:20px;
    font-size:10px;
    color:var(--bm-muted);
}
.nav-links{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}
.nav-primary,.nav-account{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.nav-primary{padding:4px;border-radius:14px;background:#f7faf8;border:1px solid #edf2ef}
.nav-account{padding-left:6px;border-left:1px solid var(--bm-line)}
.nav-links button{
    width:auto;
    min-height:36px;
    margin:0;
    padding:8px 10px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#26372f;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}
.nav-links button:hover,.nav-links button.active{background:var(--bm-mint);color:var(--bm-green);transform:none}
.nav-links .btn-login{
    width:auto;
    min-height:36px;
    margin:0;
    padding:8px 12px;
    background:var(--bm-green);
    color:#fff;
}
.nav-links .btn-logout-top{background:#fff2f0;color:#a83b31;border:1px solid #efc3bd}
.nav-links .btn-cart-top{background:var(--bm-gold);color:#fff}

/* Hero: benar-benar penuh kiri / kanan */
.hero-shell{width:100%;max-width:none;margin:0}
.hero-slider-container{
    width:100%;
    max-width:none;
    margin:0;
    min-height:440px;
    aspect-ratio:auto;
    border-radius:0;
    box-shadow:none;
    background:var(--bm-green);
}
.hero-slide-modern{min-height:440px}
.hero-slide-photo{width:58%;min-height:440px}
.hero-slide-info{
    width:42%;
    min-height:440px;
    padding:52px 56px;
    background:linear-gradient(145deg,#0d5b39,#0f6f45 62%,#0a4a30);
}
.hero-slide-info h2{font-size:34px;line-height:1.15;margin-bottom:18px;max-width:520px}
.hero-slide-info p{font-size:15px;line-height:1.8;max-width:570px}
.hero-slide-info a{margin-top:24px;padding:12px 20px;box-shadow:0 9px 22px rgba(0,0,0,.13)}
.hero-slide-overlay{padding:24px 30px}
.hero-slide-overlay h1{font-size:26px}
.marketplace-intro{margin-top:24px}

/* Registration */
.register-wrapper{
    max-width:980px;
    margin:10px auto 30px;
    padding:0;
    overflow:hidden;
    border-radius:24px;
    border:1px solid #dfe8e3;
    box-shadow:0 20px 55px rgba(15,81,50,.10);
}
.register-intro{
    display:flex;
    align-items:center;
    gap:16px;
    padding:24px 28px;
    color:#fff;
    background:linear-gradient(135deg,#0f5132,#14764a);
}
.register-intro .register-icon{
    width:58px;height:58px;display:grid;place-items:center;border-radius:18px;
    background:rgba(255,255,255,.13);font-size:29px;
}
.register-intro small{font-size:10px;letter-spacing:1.4px;font-weight:900;color:#f0c46c}
.register-intro h2{margin:3px 0 5px;font-size:24px}
.register-intro p{margin:0;font-size:12px;color:rgba(255,255,255,.82)}
.register-wrapper .login-tabs{margin:0;padding:0 24px;background:#fff;border-bottom:1px solid #edf1ef}
.register-wrapper .login-tabs button{padding:16px 10px;font-size:13px}
.registration-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 16px;
    padding:24px 28px 30px;
    background:linear-gradient(180deg,#fff,#fbfdfc);
}
.registration-form.hidden{display:none!important}
.registration-form .registration-notice,.registration-form .double-profit,.registration-form>.submit-btn,.registration-form>.merchant-location-grid{grid-column:1/-1}
.registration-form .form-group{display:flex;flex-direction:column;gap:7px;margin:0}
.registration-form .form-group label{font-size:12px;font-weight:850;color:#31463b}
.registration-form input,.registration-form textarea{
    width:100%;box-sizing:border-box;border:1px solid #d3ded8;border-radius:12px;
    background:#fff;padding:12px 13px;color:#1f3027;outline:none;transition:.18s ease;
}
.registration-form input{min-height:47px}
.registration-form textarea{min-height:100px;resize:vertical}
.registration-form input:focus,.registration-form textarea:focus{border-color:#178055;box-shadow:0 0 0 4px rgba(23,128,85,.10)}
.registration-form>.submit-btn{
    min-height:50px;border-radius:12px;border:0;background:linear-gradient(135deg,#0f5132,#16794c);
    color:#fff;font-size:13px;font-weight:900;box-shadow:0 10px 25px rgba(15,81,50,.20);
}
.registration-notice{border-radius:12px;padding:13px 15px}
.double-profit{border-radius:14px}
.registration-password-wrap{position:relative}
.registration-password-wrap input{padding-right:50px}

/* Product detail */
.product-detail-view{border-radius:22px;padding:24px}
.pd-desktop-layout{grid-template-columns:minmax(280px,.95fr) minmax(340px,1.15fr) minmax(265px,.7fr);gap:24px}
.pd-col-desc{min-width:0}
.pd-description-card{
    margin-top:18px;padding:17px 18px;border:1px solid #dce7e1;border-radius:15px;
    background:linear-gradient(180deg,#fbfdfc,#f7faf8);
}
.pd-section-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:11px}
.pd-section-heading>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--bm-mint);font-size:17px}
.pd-section-heading small{display:block;font-size:9px;letter-spacing:1.1px;color:var(--bm-gold);font-weight:900}
.pd-section-heading h4{margin:2px 0 0;color:#21372b;font-size:15px}
.pd-description-copy{white-space:pre-line;font-size:13px;line-height:1.8;color:#4b5e53}
.action-card{
    position:sticky;top:110px;padding:18px;border:1px solid #e4d2b6;border-radius:17px;
    background:linear-gradient(180deg,#fffdf9,#fff);box-shadow:0 12px 32px rgba(116,79,22,.08)
}
.purchase-heading{display:flex;align-items:center;gap:10px;margin:15px 0 12px;padding-bottom:12px;border-bottom:1px solid #efe4d4}
.purchase-heading>span{font-size:21px}
.purchase-heading small{display:block;font-size:9px;letter-spacing:1px;color:#a27431;font-weight:900}
.purchase-heading strong{display:block;margin-top:2px;font-size:12px;color:#2c3f34}
.qty-box{display:grid;grid-template-columns:1fr 92px;align-items:center;gap:10px;margin:12px 0}
.qty-box span{font-size:12px;font-weight:850;color:#34483c}
.qty-box input{width:100%;box-sizing:border-box;text-align:center;min-height:40px;border-radius:10px}
.pd-total-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0 14px;border-top:1px dashed #e5d2b1}
.pd-total-row>span{font-size:11px;color:#7a6545;font-weight:800}
.pd-total{margin:0;font-size:20px}
.product-action-buttons{display:grid;gap:9px}
.product-action-buttons .submit-btn{
    min-height:58px;border:0;border-radius:13px;padding:10px 13px;display:flex;align-items:center;gap:11px;text-align:left;color:#fff;
    box-shadow:0 9px 22px rgba(0,0,0,.11);transition:.18s ease
}
.product-action-buttons .submit-btn:hover{transform:translateY(-2px);filter:brightness(1.03)}
.btn-add-cart{background:linear-gradient(135deg,#b47a16,#e0aa45)!important}
.wa-seller{background:linear-gradient(135deg,#18a653,#25d366)!important;margin-top:0}
.product-action-buttons .action-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.18);font-size:18px;flex:0 0 auto}
.product-action-buttons b{display:block;font-size:12px}
.product-action-buttons small{display:block;margin-top:2px;font-size:9px;color:rgba(255,255,255,.82);font-weight:600}

/* Reward catalog & detail */
#rewardPanel{background:linear-gradient(180deg,#fbf8fd,#fff 420px)}
.reward-title{font-size:27px;color:#6f278f;margin-bottom:8px}
#mainRewardGrid{gap:18px}
.reward-card{position:relative;border:1px solid #ddc8e7;background:linear-gradient(180deg,#fff,#fcf8fe);box-shadow:0 12px 32px rgba(111,39,143,.08)}
.reward-card:before{content:'REWARD';position:absolute;z-index:3;top:12px;right:12px;background:#7b2d98;color:#fff;font-size:8px;font-weight:900;letter-spacing:1px;padding:6px 9px;border-radius:999px;box-shadow:0 5px 14px rgba(80,25,102,.22)}
.reward-card .product-image-wrap{height:240px;background:linear-gradient(135deg,#f5eef8,#fff)}
.reward-card .product-image-wrap img{object-fit:contain;padding:10px;box-sizing:border-box}
.reward-card .product-info{padding:16px}
.reward-card .product-info h3{font-size:15px;min-height:auto;margin:10px 0 9px;color:#3d2447}
.reward-card .price-main{color:#8e44ad;font-size:15px}
.reward-card .product-cta{background:#8e44ad}
.reward-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 2px}
.reward-card-metrics div{padding:8px;border-radius:9px;background:#f7f1fa;border:1px solid #ecdef2}
.reward-card-metrics span{display:block;font-size:8px;color:#80658a;text-transform:uppercase;letter-spacing:.5px;font-weight:800}
.reward-card-metrics strong{display:block;margin-top:3px;font-size:10px;color:#532e63}
.reward-detail-view{border-color:#e1cce8;background:linear-gradient(180deg,#fff,#fcf8fe)}
.reward-detail-image{object-fit:contain;padding:14px;box-sizing:border-box;border:1px solid #eadff0;background:#fff}
.reward-purchase-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 15px}
.reward-purchase-summary div{padding:11px;border-radius:10px;background:#f7f1fa;border:1px solid #eadcf0}
.reward-purchase-summary span{display:block;font-size:8px;text-transform:uppercase;color:#80658a;font-weight:900;letter-spacing:.5px}
.reward-purchase-summary strong{display:block;margin-top:4px;font-size:11px;color:#4e2c5c}
.reward-copy-card{margin:11px 0;padding:14px 15px;border:1px solid #eadff0;border-radius:12px;background:#fff}
.reward-copy-card h4{margin:0 0 8px;color:#5d2e70;font-size:13px}
.reward-section-label{margin-top:15px;font-size:11px;font-weight:900;color:#633279;text-transform:uppercase;letter-spacing:.8px}
.reward-requirements{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.reward-requirements div{background:#fff;border-color:#e8dced}
.reward-buy{min-height:50px;border-radius:12px;box-shadow:0 10px 24px rgba(110,44,139,.22)}

/* Eye-only password toggle */
.password-toggle{
    width:38px;height:38px;right:6px;display:grid;place-items:center;padding:0;border-radius:10px;
    font-size:18px;line-height:1;color:#0f6a43;background:#edf8f2;cursor:pointer
}
.password-toggle:hover{background:#dff2e8}
.password-wrap .form-control{padding-right:52px}

@media(max-width:1180px){
    .navbar{grid-template-columns:1fr;gap:8px}
    .logo-area{justify-content:center}
    .header-nav-zone{align-items:center}
    .nav-links,.nav-primary,.nav-account{justify-content:center}
    .nav-account{border-left:0;padding-left:0}
    .logged-in-mini{justify-content:center}
}
@media(max-width:900px){
    .hero-slider-container,.hero-slide-modern{min-height:560px}
    .hero-slide-modern{flex-direction:column}
    .hero-slide-photo,.hero-slide-info{width:100%;min-height:0}
    .hero-slide-photo{height:330px;flex:0 0 330px}
    .hero-slide-info{height:auto;min-height:230px;padding:28px 24px}
    .hero-slide-info h2{font-size:25px}
    .pd-desktop-layout{grid-template-columns:1fr}
    .action-card{position:static}
    .reward-detail-grid{grid-template-columns:1fr}
    .reward-requirements{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
    .navbar{padding:11px 10px}
    .brand-wordmark>span,.brand-wordmark>b{font-size:18px}
    .nav-links{gap:5px}
    .nav-primary,.nav-account{width:100%}
    .nav-primary button{flex:1 1 calc(33.333% - 5px);text-align:center;padding:7px 5px;font-size:9px}
    .nav-account button{flex:1 1 auto;text-align:center}
    .hero-slide-photo{height:260px;flex-basis:260px}
    .hero-slider-container,.hero-slide-modern{min-height:500px}
    .registration-form{grid-template-columns:1fr;padding:20px 16px 24px}
    .register-intro{padding:20px 17px}
    .merchant-location-grid{grid-template-columns:1fr}
    .reward-purchase-summary{grid-template-columns:1fr}
    .reward-requirements{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
    .nav-primary button{flex:1 1 calc(50% - 5px)}
    .reward-requirements{grid-template-columns:1fr}
    .qty-box{grid-template-columns:1fr 86px}
}

/* =============================================================
   WEB V8 - PRODUK BERHADIAH: DUA TAMPILAN PRODUK + HADIAH
   ============================================================= */
.reward-card-dual{overflow:hidden}
.reward-dual-thumb{display:grid;grid-template-columns:1fr 1fr;height:235px;background:#f8f4fa;border-bottom:1px solid #eadff0}
.reward-thumb-side{position:relative;min-width:0;overflow:hidden;background:#fff}
.reward-thumb-side+ .reward-thumb-side{border-left:1px solid #eadff0}
.reward-thumb-side img{width:100%;height:100%;display:block;object-fit:contain;padding:12px;box-sizing:border-box;background:linear-gradient(180deg,#fff,#faf7fb)}
.reward-thumb-prize img{object-fit:cover;padding:0}
.reward-thumb-label{position:absolute;z-index:2;left:9px;top:9px;padding:5px 8px;border-radius:999px;background:rgba(15,81,50,.92);color:#fff;font-size:8px;font-weight:900;letter-spacing:.8px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.reward-thumb-prize .reward-thumb-label{background:rgba(123,45,152,.94)}
.reward-card-dual .reward-card-metrics strong{white-space:normal;line-height:1.25;overflow-wrap:anywhere}
.reward-card-dual .price-main{font-size:12px;color:#6f278f}

.reward-detail-heading{display:flex;align-items:flex-start;gap:14px;margin:6px 0 20px;padding:0 2px}
.reward-detail-heading .reward-chip{flex:0 0 auto;margin-top:4px}
.reward-detail-heading h2{margin:0;color:#2f2440;font-size:25px;line-height:1.2}
.reward-detail-heading .reward-value{margin:5px 0 0}

.reward-dual-view{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
.reward-visual-card{position:relative;min-width:0;border:1px solid #e4d8e9;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 32px rgba(67,42,75,.08)}
.reward-visual-label{padding:11px 14px;font-size:11px;font-weight:900;letter-spacing:.8px;color:#fff}
.reward-visual-label.product-label{background:linear-gradient(135deg,#0f5132,#16734a)}
.reward-visual-label.prize-label{background:linear-gradient(135deg,#6f278f,#9c4fba)}
.reward-visual-image-wrap{position:relative;height:390px;overflow:hidden;background:#f7f8f7}
.reward-visual-image{width:100%;height:100%;display:block}
.product-image-stage .reward-visual-image{object-fit:contain;padding:18px;box-sizing:border-box;background:linear-gradient(180deg,#fff,#f5faf7)}
.reward-image-stage .reward-visual-image{object-fit:cover;background:#eee}
.reward-product-caption{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:14px 16px;border-top:1px solid #e9eee9}
.reward-product-caption strong{font-size:15px;color:#1d432f;overflow-wrap:anywhere}
.reward-product-caption span{grid-column:1;color:#6c7b72;font-size:10px;font-weight:700;overflow-wrap:anywhere}
.reward-product-caption b{grid-column:2;grid-row:1 / span 2;color:#0f5132;font-size:17px;white-space:nowrap}

.reward-photo-description{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:38px 18px 16px;color:#fff;background:linear-gradient(180deg,transparent,rgba(20,7,26,.45) 28%,rgba(20,7,26,.9));max-height:54%;box-sizing:border-box;overflow:auto;scrollbar-width:thin}
.reward-photo-description strong{display:block;margin-bottom:5px;font-size:17px;color:#ffe784;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.reward-photo-copy{font-size:12px;line-height:1.55;color:#fff}
.reward-photo-copy,.reward-photo-copy p,.reward-photo-copy li,.reward-photo-copy span,.reward-photo-copy strong{color:#fff!important}
.reward-photo-copy p{margin:5px 0}
.reward-photo-copy ul,.reward-photo-copy ol{margin:5px 0;padding-left:18px}

.reward-detail-content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:20px;margin-top:20px;align-items:start}
.reward-product-description-card,.reward-condition-card{border:1px solid #e6dbea;border-radius:16px;background:#fff;padding:17px;box-shadow:0 8px 24px rgba(67,42,75,.05)}
.reward-product-description-card h4{margin:0 0 12px;color:#274b37;font-size:15px}
.reward-product-scroll{max-height:240px;overflow-y:auto;padding:13px 15px;background:#fbfcfb;border:1px solid #e7ece8;border-radius:11px;line-height:1.7;scrollbar-width:thin;scrollbar-color:#9db6a8 #edf3ef}
.reward-product-scroll::-webkit-scrollbar{width:8px}
.reward-product-scroll::-webkit-scrollbar-track{background:#edf3ef;border-radius:10px}
.reward-product-scroll::-webkit-scrollbar-thumb{background:#9db6a8;border-radius:10px}
.reward-product-scroll p:first-child{margin-top:0}
.reward-product-scroll p:last-child{margin-bottom:0}

.reward-condition-card .reward-section-label{margin:0 0 10px;color:#5e286f;font-size:14px;font-weight:900}
.reward-turnover-requirements{grid-template-columns:1fr;margin:0 0 14px}
.reward-turnover-requirements>div{padding:12px 13px;background:linear-gradient(135deg,#f8fbf9,#f4f8f6);border-color:#dce9e1}
.reward-turnover-requirements>div:first-child{border-left:4px solid #16734a}
.reward-turnover-requirements span{font-size:10px;text-transform:none;letter-spacing:0;color:#63766b}
.reward-turnover-requirements strong{font-size:15px;color:#0f6840}
.reward-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:4px 0 15px}
.reward-meta-grid>div{padding:10px 11px;border:1px solid #eee4f2;border-radius:10px;background:#fbf8fd}
.reward-meta-grid span{display:block;color:#80658a;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.reward-meta-grid strong{display:block;margin-top:3px;color:#522d61;font-size:12px;overflow-wrap:anywhere}
.reward-condition-card .reward-buy{margin-top:3px;border-radius:11px;font-weight:900;box-shadow:0 8px 20px rgba(123,45,152,.2)}

@media(max-width:900px){
  .reward-dual-view,.reward-detail-content-grid{grid-template-columns:1fr}
  .reward-visual-image-wrap{height:340px}
  .reward-dual-thumb{height:210px}
}
@media(max-width:560px){
  .reward-detail-heading{display:block}
  .reward-detail-heading .reward-chip{margin-bottom:9px}
  .reward-detail-heading h2{font-size:21px}
  .reward-dual-thumb{height:180px}
  .reward-visual-image-wrap{height:300px}
  .reward-product-caption{grid-template-columns:1fr}
  .reward-product-caption b{grid-column:1;grid-row:auto;margin-top:4px}
  .reward-meta-grid{grid-template-columns:1fr}
  .reward-photo-description{max-height:62%;padding:32px 13px 13px}
}

/* Produk bervarian Merchant Reguler */
.variant-product-editor{margin-bottom:20px;padding:18px}.variant-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:12px 0}.variant-product-editor label{display:flex;flex-direction:column;gap:6px;font-weight:600}.variant-product-editor input,.variant-product-editor select,.variant-product-editor textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #d8dee8;border-radius:8px;background:#fff}.variant-editor-actions{margin:12px 0}.variant-entry-table input,.variant-entry-table select{min-width:95px;padding:7px}.variant-entry-table [data-f="image_url"]{min-width:180px}
\n/* Merchant product editor V2 */
.product-type-switch{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.profit-preview{margin:14px 0;padding:14px 16px;border:1px solid #dce9e1;border-radius:12px;background:#f7fbf8;display:grid;gap:3px}.profit-preview span,.profit-preview small{color:#60756a}.profit-preview strong{font-size:22px;color:#0f6840}.variant-product-editor{margin-top:0}.variant-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:12px 0}.variant-product-editor label{display:flex;flex-direction:column;gap:6px;font-weight:700}.variant-product-editor input,.variant-product-editor select,.variant-product-editor textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #d8dee8;border-radius:8px;background:#fff}.variant-entry-table input,.variant-entry-table select{min-width:95px;padding:7px}.variant-entry-table [data-f="image_url"]{min-width:180px}\n.mm-sale-panel{margin-top:18px;padding:18px;border:1px solid #dbe4ee;border-radius:14px;background:#f8fafc}.mm-sale-panel h3{margin-top:0}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.payment-submit-form{display:grid;gap:14px;margin-top:18px}.payment-submit-form label{display:grid;gap:7px;font-weight:700}.payment-submit-form h3{margin:0 0 4px}.payment-submit-form input[type=file]{padding:10px;background:#fff}

/* Rich text editor V2.7 */
.rich-source-hidden{display:none!important}.rich-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:8px;border:1px solid #d7dce3;border-bottom:0;border-radius:10px 10px 0 0;background:#f7f8fa}.rich-toolbar button{min-width:34px;padding:6px 9px;border:1px solid #cbd2da;background:#fff;border-radius:6px;cursor:pointer}.rich-toolbar input[type=color]{width:38px;height:32px;border:0;background:transparent}.rich-editor{min-height:150px;padding:12px;border:1px solid #d7dce3;border-radius:0 0 10px 10px;background:#fff;overflow:auto}.rich-editor:focus{outline:2px solid rgba(0,0,0,.12)}

/* =============================================================
   V2.8 - EDITOR DOKUMEN PRODUK + POS MERCHANT MANDIRI
   ============================================================= */
.rich-doc-shell{border:1px solid #d7dce3;border-radius:12px;background:#fff;overflow:hidden}
.rich-doc-shell .rich-toolbar{border:0;border-bottom:1px solid #d7dce3;border-radius:0;padding:9px;background:#f5f7fa;align-items:center}
.rich-toolbar select{height:34px;padding:4px 8px;border:1px solid #cbd2da;border-radius:6px;background:#fff;color:#29323c}
.rich-toolbar button{height:34px;min-width:34px;font-weight:700}
.rich-doc-editor{min-height:210px;border:0!important;border-radius:0!important;padding:16px 18px;font-size:14px;line-height:1.7}
.rich-doc-editor h2,.rich-doc-editor h3,.rich-doc-editor h4{margin:10px 0 7px}
.rich-doc-editor p{margin:7px 0}
.rich-doc-editor ul,.rich-doc-editor ol{padding-left:24px}
.variant-product-editor .rich-doc-editor{min-height:180px}

body.mm-pos-open{overflow:hidden!important}
.mm-pos-overlay{position:fixed;inset:0;z-index:99999;background:#eef2f6;overflow:auto}
.mm-pos-overlay.hidden{display:none!important}
.mm-pos-shell{min-height:100vh;display:flex;flex-direction:column;background:#f4f6f9}
.mm-pos-header{position:sticky;top:0;z-index:8;display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 22px;background:#fff;border-bottom:1px solid #dfe5eb;box-shadow:0 2px 12px rgba(32,45,58,.06)}
.mm-pos-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:1.2px;color:#0f6840}
.mm-pos-header h2{margin:2px 0 0;font-size:22px;color:#26323d}
.mm-pos-header-actions{display:flex;align-items:center;gap:12px}
.mm-pos-deposit{min-width:150px;padding:8px 13px;border-radius:10px;background:#eef8f2;border:1px solid #cce7d6;text-align:right}
.mm-pos-deposit span{display:block;font-size:9px;text-transform:uppercase;font-weight:800;color:#668174}
.mm-pos-deposit strong{display:block;margin-top:2px;color:#0f6840;font-size:17px}
.mm-pos-buyerbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 22px;background:#263746;color:#fff}
.mm-pos-buyerbar>div{display:grid;gap:2px}.mm-pos-buyerbar span{font-size:9px;font-weight:800;letter-spacing:.8px;color:#b9c7d3}.mm-pos-buyerbar strong{font-size:15px}.mm-pos-buyerbar small{color:#d3dde5}
.mm-pos-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,.85fr);gap:16px;padding:16px 18px;flex:1;min-height:0}
.mm-pos-products,.mm-pos-cart{background:#fff;border:1px solid #e0e5ea;border-radius:14px;box-shadow:0 7px 24px rgba(31,44,57,.05)}
.mm-pos-products{padding:15px;min-width:0}
.mm-pos-searchbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,260px);gap:10px}
.mm-pos-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:10px;margin-top:12px}
.mm-pos-product-card{display:grid;grid-template-columns:66px minmax(0,1fr);grid-template-rows:auto auto;gap:9px 11px;padding:11px;border:1px solid #e3e8ed;border-radius:12px;background:#fff;transition:.15s}
.mm-pos-product-card:hover{border-color:#9fcab1;box-shadow:0 5px 15px rgba(15,104,64,.08)}
.mm-pos-product-card.is-soldout{opacity:.62;background:#f7f7f7}
.mm-pos-product-img{grid-row:1 / span 2;width:66px;height:66px;border-radius:9px;overflow:hidden;background:#eef1f4;display:flex;align-items:center;justify-content:center}
.mm-pos-product-img img{width:100%;height:100%;object-fit:cover}.mm-pos-noimage{font-size:25px}
.mm-pos-product-info{min-width:0;display:grid;gap:2px}.mm-pos-product-info small{font-size:9px;color:#77838d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-pos-product-info h4{margin:0;font-size:13px;color:#26323d;line-height:1.25}.mm-pos-product-info strong{color:#0f6840;font-size:14px}.mm-pos-product-info span{font-size:9px;color:#66737e}
.mm-pos-product-card .mm-pos-add{grid-column:2;justify-self:start;padding:7px 11px;font-size:10px}
.mm-pos-pagination{display:flex;justify-content:center;gap:6px;margin-top:14px}.mm-pos-pagination button{min-width:34px;height:34px;border:1px solid #ccd4dc;background:#fff;border-radius:7px;cursor:pointer}.mm-pos-pagination button.active{background:#0f6840;color:#fff;border-color:#0f6840}.mm-pos-pagination button:disabled{opacity:.4;cursor:not-allowed}
.mm-pos-cart{position:sticky;top:90px;align-self:start;max-height:calc(100vh - 112px);display:flex;flex-direction:column;overflow:hidden}
.mm-pos-cart-heading{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;border-bottom:1px solid #e7ebef}.mm-pos-cart-heading>div{display:grid;gap:2px}.mm-pos-cart-heading span{font-size:9px;font-weight:900;letter-spacing:.8px;color:#66737e}.mm-pos-cart-heading strong{font-size:13px}
.mm-pos-cart-items{padding:8px 12px;overflow:auto;flex:1;min-height:120px}
.mm-pos-cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto 28px;gap:8px;align-items:center;padding:10px 2px;border-bottom:1px solid #edf0f3}.mm-pos-cart-name{display:grid;gap:2px;min-width:0}.mm-pos-cart-name strong{font-size:12px;overflow-wrap:anywhere}.mm-pos-cart-name small,.mm-pos-line-total small{font-size:8px;color:#74808a}.mm-pos-line-total{text-align:right;display:grid;gap:2px}.mm-pos-line-total strong{font-size:11px;color:#26323d}
.mm-pos-qty{display:grid;grid-template-columns:27px 42px 27px;align-items:center}.mm-pos-qty button{height:29px;border:1px solid #cfd6dc;background:#f8fafb;cursor:pointer}.mm-pos-qty input{width:42px;height:29px;text-align:center;border:1px solid #cfd6dc;border-left:0;border-right:0;padding:0;box-sizing:border-box}.mm-pos-remove{width:26px;height:26px;border:0;background:#fff1f1;color:#b53737;border-radius:50%;cursor:pointer;font-size:17px}
.mm-pos-summary{padding:11px 14px;background:#f7f9fb;border-top:1px solid #e4e9ed;display:grid;gap:7px}.mm-pos-summary>div{display:flex;justify-content:space-between;gap:12px;align-items:center}.mm-pos-summary span{font-size:10px;color:#66737e}.mm-pos-summary strong{font-size:12px}.mm-pos-summary .mm-pos-after{padding-top:7px;border-top:1px dashed #cfd6dc}.mm-pos-summary .mm-pos-after strong{color:#0f6840;font-size:15px}
.mm-pos-cart .form-message{margin:10px 12px 0}.mm-pos-checkout{margin:10px 12px 13px;width:calc(100% - 24px);font-weight:900}.mm-pos-checkout:disabled{opacity:.45;cursor:not-allowed}
.mm-pos-success{position:absolute;inset:0;z-index:20;background:rgba(24,34,44,.6);display:flex;align-items:center;justify-content:center;padding:20px}.mm-pos-success.hidden{display:none!important}.mm-pos-success-card{width:min(520px,100%);background:#fff;border-radius:18px;padding:28px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.2)}.mm-pos-success-icon{width:68px;height:68px;margin:0 auto 12px;border-radius:50%;background:#e5f6ec;color:#0f6840;display:grid;place-items:center;font-size:34px;font-weight:900}.mm-pos-success-card h3{margin:0 0 8px;font-size:22px}.mm-pos-success-card p{line-height:1.6;color:#5e6b75}.mm-pos-success-card .profile-actions{justify-content:center}

@media(max-width:980px){.mm-pos-main{grid-template-columns:1fr}.mm-pos-cart{position:static;max-height:none}.mm-pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
@media(max-width:650px){.mm-pos-header{padding:10px 12px;align-items:flex-start}.mm-pos-header h2{font-size:18px}.mm-pos-header-actions{display:grid;justify-items:end}.mm-pos-deposit{min-width:125px}.mm-pos-buyerbar{padding:9px 12px}.mm-pos-main{padding:10px;gap:10px}.mm-pos-searchbar{grid-template-columns:1fr}.mm-pos-product-grid{grid-template-columns:1fr}.mm-pos-cart-row{grid-template-columns:minmax(0,1fr) auto 24px}.mm-pos-line-total{grid-column:1 / span 2;text-align:left}.mm-pos-remove{grid-column:3;grid-row:1 / span 2}.mm-pos-qty{grid-column:2;grid-row:1}.mm-pos-header-actions .btn{font-size:10px;padding:7px}.rich-toolbar{gap:4px}.rich-toolbar select{max-width:105px}.rich-doc-editor{min-height:180px}}
.mm-pos-buyer-search{padding:22px;flex:1;display:flex;justify-content:center;align-items:flex-start}
.mm-pos-buyer-search.hidden{display:none!important}.mm-pos-buyer-search-box{width:min(980px,100%);background:#fff;border:1px solid #e0e6eb;border-radius:16px;padding:22px;box-shadow:0 8px 30px rgba(30,43,56,.06)}
.mm-pos-buyer-search-box h3{margin:3px 0 5px;font-size:22px;color:#26323d}.mm-pos-buyer-search-box p{margin:0 0 16px;color:#66737e}.mm-pos-buyer-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.mm-pos-buyer-results{display:grid;gap:8px;margin-top:12px}.mm-pos-buyer-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e2e7ec;border-radius:11px;background:#fbfcfd}.mm-pos-buyer-card>div{display:grid;gap:3px;min-width:0}.mm-pos-buyer-card strong{font-size:13px;color:#26323d}.mm-pos-buyer-card span{font-size:10px;color:#61707b}.mm-pos-buyer-card small{font-size:9px;color:#7a8791}
@media(max-width:650px){.mm-pos-buyer-search{padding:12px}.mm-pos-buyer-search-box{padding:15px}.mm-pos-buyer-search-row{grid-template-columns:1fr}.mm-pos-buyer-card{align-items:flex-start}.mm-pos-buyer-card .btn{flex:0 0 auto}}


/* V2.8.1: tombol Ganti Pembeli pada POS harus kontras di buyer bar gelap */
.mm-pos-buyerbar .btn-outline,
#mmPosChangeBuyer {
    color: #ffffff !important;
    border-color: rgba(255,255,255,.82) !important;
}
.mm-pos-buyerbar .btn-outline:hover,
#mmPosChangeBuyer:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,.12) !important;
}

/* V2.9 - Excel product import */
.product-import-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,520px);gap:18px;align-items:center;margin-bottom:18px}
.product-import-copy h3{margin:4px 0 6px}.product-import-copy p{margin:0;color:var(--muted,#667085)}
.product-import-actions{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:10px;align-items:center}
.product-import-actions .form-control{min-width:0}
.product-import-card .form-message{grid-column:1/-1;margin-top:0}
@media(max-width:900px){.product-import-card{grid-template-columns:1fr}.product-import-actions{grid-template-columns:1fr}.product-import-actions .btn{width:100%}}


/* V2.9.7 - Rekap Bagi Hasil summary */
#adminProfitAllocationPage .allocation-summary-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    margin:0 0 18px;
}
#adminProfitAllocationPage .allocation-summary-grid .metric-card{
    min-width:0;
}
#adminProfitAllocationPage .allocation-summary-grid .metric-card strong{
    font-size:20px;
    overflow-wrap:anywhere;
}
#adminProfitAllocationPage .allocation-summary-grid .metric-card:nth-child(9),
#adminProfitAllocationPage .allocation-summary-grid .metric-card:nth-child(10){
    border-color:#bdd8f6;
    background:#f6fbff;
}
@media(max-width:1200px){
    #adminProfitAllocationPage .allocation-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:900px){
    #adminProfitAllocationPage .allocation-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px){
    #adminProfitAllocationPage .allocation-summary-grid{grid-template-columns:1fr;}
}

/* V2.9.8 — Komisi/SHU mingguan: ringkasan, transfer, rekap */
.weekly-transfer-summary{margin-top:14px;margin-bottom:16px}
.weekly-status-done{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#e7f7ee;color:#0f6a3c;font-weight:800;font-size:12px;white-space:nowrap}
.weekly-status-pending{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff6df;color:#8a5a00;font-weight:800;font-size:12px;white-space:nowrap}
.weekly-transfer-panel{width:min(620px,100%)}
.weekly-transfer-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.weekly-transfer-detail>div{border:1px solid var(--bm-line);border-radius:12px;padding:12px;background:#f8fbf9}
.weekly-transfer-detail span{display:block;font-size:11px;color:var(--bm-muted);margin-bottom:5px}
.weekly-transfer-detail strong{display:block;font-size:14px;word-break:break-word}
.weekly-transfer-panel .form-field{display:grid;gap:7px;margin:12px 0}
.weekly-transfer-panel .form-field small{color:var(--bm-muted);font-size:11px}
.weekly-transfer-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.weekly-transfer-warning{font-size:11px;line-height:1.5;color:#7a5b00;background:#fff7dc;border:1px solid #f0d98d;border-radius:10px;padding:10px;margin-top:14px}
.page-heading.compact{margin-bottom:4px}
@media(max-width:640px){.weekly-transfer-detail{grid-template-columns:1fr}.weekly-transfer-actions{flex-direction:column-reverse}.weekly-transfer-actions .btn{width:100%}}

/* ================================================================
   ADMIN V2.9.9 — SUPER ADMIN & RBAC
================================================================ */
.admin-permission-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:22px 0 12px}.admin-permission-heading h3{margin:0 0 4px}.admin-permission-heading p{margin:0;color:#64748b}.admin-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 22px}.admin-permission-group{border:1px solid #dbe4ea;border-radius:14px;padding:14px;background:#fbfdfc;min-width:0}.admin-permission-group legend{padding:0 8px;font-weight:800;font-size:12px;letter-spacing:.08em;color:#0f766e}.admin-permission-item{display:flex;align-items:flex-start;gap:10px;padding:9px 6px;border-bottom:1px dashed #e5e7eb;cursor:pointer}.admin-permission-item:last-child{border-bottom:0}.admin-permission-item input{margin-top:3px;width:17px;height:17px;flex:0 0 auto}.admin-permission-item span{display:flex;flex-direction:column;gap:2px}.admin-permission-item b{font-size:14px}.admin-permission-item small{color:#64748b;line-height:1.35}.admin-super-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#fff7d6;border:1px solid #f1cf57;color:#765600;font-weight:800;font-size:11px;letter-spacing:.05em}.admin-protected-label{font-weight:700;color:#64748b}.admin-permission-summary{min-width:260px;max-width:420px;white-space:normal!important;line-height:1.45}.admin-create-card{margin-bottom:18px}.dashboard-menu-group.admin-group-super{background:#5b21b6;color:#fff}.status-danger{color:#b91c1c}.status-ok{color:#047857}
@media(max-width:900px){.admin-permission-grid{grid-template-columns:1fr}.admin-permission-heading{flex-direction:column}.admin-permission-heading .profile-actions{width:100%;flex-wrap:wrap}}
.dashboard-menu-group.admin-group-audit{background:#334155;color:#fff}
