@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --koperasi-red: #ad2633;
    --koperasi-red-dark: #861c27;
    --koperasi-red-soft: #fae9e8;
    --koperasi-green: #26734d;
    --koperasi-green-dark: #184d35;
    --koperasi-green-soft: #e6f2eb;
    --koperasi-cream: #f7f4ed;
    --koperasi-ink: #17231d;
    --koperasi-muted: #68746d;
    --koperasi-line: #e2e6e1;
    --white: #fff;
    --shadow-sm: 0 8px 30px rgba(31, 48, 39, .07);
    --shadow-lg: 0 24px 80px rgba(31, 48, 39, .13);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--koperasi-ink); background: #fff; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Manrope', sans-serif; letter-spacing: -.025em; }
a { color: var(--koperasi-red); }
.min-w-0 { min-width: 0; }

.marketplace-nav { background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(226,230,225,.8); backdrop-filter: blur(18px); }
.brand-lockup { display: inline-flex; align-items: center; gap: .7rem; color: var(--koperasi-ink); text-decoration: none; line-height: 1; }
.brand-lockup > span:last-child { display: flex; flex-direction: column; gap: .22rem; }
.brand-lockup strong { font-size: 1rem; }
.brand-lockup small { color: var(--koperasi-muted); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand-symbol { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--koperasi-red); box-shadow: 0 8px 22px rgba(173,38,51,.2); }
.navbar .nav-link { color: #3e4943; font-weight: 600; font-size: .92rem; padding: .65rem .85rem !important; }
.navbar .nav-link:hover { color: var(--koperasi-red); }
.btn { font-weight: 700; border-radius: 12px; padding: .68rem 1.1rem; }
.btn-koperasi, .btn-koperasi:focus { color: #fff; background: var(--koperasi-red); border: 1px solid var(--koperasi-red); box-shadow: 0 8px 20px rgba(173,38,51,.16); }
.btn-koperasi:hover { color: #fff; background: var(--koperasi-red-dark); border-color: var(--koperasi-red-dark); transform: translateY(-1px); }
.btn-outline-koperasi { color: var(--koperasi-red); border: 1px solid #e2b9bd; background: #fff; }
.btn-outline-koperasi:hover { color: #fff; background: var(--koperasi-red); border-color: var(--koperasi-red); }

.hero-section { position: relative; overflow: hidden; padding: 6.6rem 0 5.8rem; background: var(--koperasi-cream); }
.hero-section::before { content: ''; position: absolute; width: 460px; height: 460px; right: -100px; top: -200px; border-radius: 50%; background: rgba(173,38,51,.09); }
.hero-section::after { content: ''; position: absolute; width: 340px; height: 340px; left: 40%; bottom: -260px; border-radius: 50%; background: rgba(38,115,77,.12); }
.hero-section .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--koperasi-red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.hero-title { max-width: 710px; font-size: clamp(2.7rem, 6vw, 5.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.065em; }
.hero-title em { color: var(--koperasi-red); font-style: normal; }
.hero-copy { max-width: 600px; color: var(--koperasi-muted); font-size: 1.1rem; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; color: #536058; font-size: .85rem; font-weight: 600; }
.trust-row i { color: var(--koperasi-green); }
.village-panel { position: relative; max-width: 470px; margin-left: auto; padding: 1rem; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.village-card { min-height: 400px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; color: #fff; border-radius: 23px; overflow: hidden; background: linear-gradient(145deg, #1f6444, #153e2d); position: relative; }
.village-card::after { content: ''; position: absolute; width: 280px; height: 280px; right: -110px; bottom: -110px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; }
.village-icon { width: 68px; height: 68px; display: grid; place-items: center; font-size: 1.7rem; color: var(--koperasi-red); background: #fff; border-radius: 20px; }
.village-card h2 { max-width: 300px; font-size: 2rem; font-weight: 800; }
.village-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; position: relative; z-index: 1; }
.village-metrics div { padding: .9rem .6rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.village-metrics strong, .village-metrics small { display: block; }
.village-metrics small { font-size: .68rem; color: rgba(255,255,255,.65); margin-top: .25rem; }
.floating-badge { position: absolute; left: -25px; bottom: 44px; z-index: 2; padding: .8rem 1rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 700; font-size: .82rem; }
.floating-badge i { color: var(--koperasi-red); }

.section-space { padding: 6rem 0; }
.section-muted { background: #f8faf8; }
.section-heading { max-width: 620px; margin-bottom: 2.6rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; }
.section-heading p { color: var(--koperasi-muted); line-height: 1.7; }
.feature-card { height: 100%; padding: 1.7rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: var(--radius-md); transition: .25s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-sm); }
.feature-card .icon-box { width: 54px; height: 54px; display: grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 16px; font-size: 1.25rem; }
.feature-card:nth-child(even) .icon-box { color: var(--koperasi-green); background: var(--koperasi-green-soft); }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; margin: 1.2rem 0 .55rem; }
.feature-card p { color: var(--koperasi-muted); line-height: 1.65; font-size: .9rem; margin: 0; }
.steps-line { position: relative; }
.step-card { padding: 1.6rem; border-radius: var(--radius-md); background: var(--koperasi-cream); height: 100%; }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--koperasi-green); border-radius: 12px; font-weight: 800; }
.step-card h3 { margin: 1.1rem 0 .45rem; font-size: 1.05rem; font-weight: 800; }
.step-card p { color: var(--koperasi-muted); font-size: .88rem; margin: 0; }
.cta-panel { padding: 3.5rem; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg,var(--koperasi-red),#7d1a25); position: relative; overflow: hidden; }
.cta-panel::after { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -170px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; }
.cta-panel h2 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; max-width: 650px; }
.cta-panel p { color: rgba(255,255,255,.75); max-width: 600px; }
.cta-panel .btn-light { color: var(--koperasi-red); }

.site-footer { color: #fff; background: #13271e; }
.site-footer .brand-lockup small { color: rgba(255,255,255,.55); }
.site-footer h2 { margin-bottom: 1rem; }
.site-footer a:not(.brand-lockup) { display: block; margin: .5rem 0; color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-copy { max-width: 470px; line-height: 1.7; }

/* Authentication */
.auth-body { min-height: 100vh; background: var(--koperasi-cream); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(520px, 1.1fr); }
.auth-aside { display: flex; flex-direction: column; padding: 3rem clamp(2rem,5vw,5rem); color: #fff; background: linear-gradient(150deg,#194d35,#102e22); position: relative; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; width: 460px; height: 460px; right: -250px; top: -120px; border: 80px solid rgba(255,255,255,.055); border-radius: 50%; }
.auth-aside::after { content: ''; position: absolute; width: 280px; height: 280px; left: -170px; bottom: -150px; background: var(--koperasi-red); opacity: .2; border-radius: 50%; }
.auth-aside .brand-lockup { position: relative; z-index: 1; color: #fff; }
.auth-aside .brand-lockup small { color: rgba(255,255,255,.55); }
.auth-story { position: relative; z-index: 1; margin: auto 0; max-width: 500px; }
.auth-story h1 { font-size: clamp(2.3rem,4vw,4.2rem); font-weight: 800; line-height: 1.06; letter-spacing: -.06em; }
.auth-story p { color: rgba(255,255,255,.65); line-height: 1.75; }
.auth-points { display: grid; gap: .8rem; }
.auth-points span { display: flex; align-items: center; gap: .65rem; font-size: .87rem; font-weight: 600; color: rgba(255,255,255,.78); }
.auth-points i { color: #8bd0ac; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem clamp(1.25rem,5vw,5rem); }
.auth-form { width: 100%; max-width: 540px; }
.auth-form.wide { max-width: 700px; }
.auth-form > h1 { font-size: 2.1rem; font-weight: 800; }
.auth-form > p { color: var(--koperasi-muted); }
.form-label { color: #3b4841; font-size: .83rem; font-weight: 700; }
.form-control, .form-select { min-height: 50px; border-color: #dce1dc; border-radius: 12px; padding: .72rem .9rem; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: rgba(173,38,51,.65); box-shadow: 0 0 0 .22rem rgba(173,38,51,.09); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9aa39e; z-index: 2; }
.input-icon .form-control { padding-left: 2.7rem; }
.password-toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #7a857f; z-index: 3; }
.role-choice { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option label { display: flex; align-items: center; gap: .55rem; height: 100%; padding: .85rem; border: 1px solid var(--koperasi-line); border-radius: 12px; cursor: pointer; font-size: .82rem; font-weight: 700; transition: .2s; }
.role-option label i { color: var(--koperasi-green); }
.role-option input:checked + label { color: var(--koperasi-red); border-color: var(--koperasi-red); background: var(--koperasi-red-soft); }
.role-option input:checked + label i { color: var(--koperasi-red); }
.role-fields { display: none; padding: 1.2rem; border-radius: 16px; background: #f7f9f7; }
.role-fields.active { display: block; }
.security-note { display: flex; gap: .7rem; padding: .85rem 1rem; color: #536159; background: var(--koperasi-green-soft); border-radius: 12px; font-size: .8rem; }

/* Dashboard */
.dashboard-body { min-height: 100vh; background: #f3f5f2; }
.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: 272px; padding: 1.2rem; display: flex; flex-direction: column; overflow-y: auto; color: #fff; background: #142a20; transition: transform .25s ease; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-brand { height: 62px; display: flex; align-items: center; justify-content: space-between; }
.dashboard-sidebar .brand-symbol { width: 40px; height: 40px; }
.dashboard-sidebar .brand-lockup small { color: rgba(255,255,255,.5); }
.sidebar-close, .topbar-menu { border: 0; background: transparent; }
.sidebar-close { color: #fff; font-size: 1.2rem; }
.sidebar-profile { display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0 1.8rem; padding: .9rem; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.06); border-radius: 15px; }
.profile-avatar { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--koperasi-red); border-radius: 13px; font-size: .9rem; font-weight: 800; }
.sidebar-profile strong, .sidebar-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { font-size: .85rem; }
.sidebar-profile small { color: rgba(255,255,255,.5); font-size: .7rem; margin-top: .2rem; }
.sidebar-menu { display: flex; flex-direction: column; }
.sidebar-label { padding: 0 .7rem .5rem; color: rgba(255,255,255,.35); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-link { width: 100%; display: flex; align-items: center; gap: .75rem; margin: .13rem 0; padding: .76rem .8rem; color: rgba(255,255,255,.65); text-decoration: none; border: 0; border-radius: 11px; background: transparent; font-size: .84rem; font-weight: 600; text-align: left; }
.sidebar-link i { width: 20px; color: rgba(255,255,255,.42); text-align: center; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-link.active { color: #fff; background: var(--koperasi-red); }
.sidebar-link.active i { color: #fff; }
.sidebar-stage { margin-top: 1rem; padding: 1rem; border-radius: 15px; background: rgba(255,255,255,.055); }
.sidebar-stage span { display: inline-block; padding: .2rem .48rem; color: #ffd2d6; background: rgba(173,38,51,.45); border-radius: 6px; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.sidebar-stage strong, .sidebar-stage small { display: block; }
.sidebar-stage strong { margin-top: .6rem; font-size: .78rem; }
.sidebar-stage small { margin-top: .25rem; color: rgba(255,255,255,.4); font-size: .68rem; }
.dashboard-main { min-height: 100vh; margin-left: 272px; }
.dashboard-topbar { height: 92px; padding: 1.2rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(255,255,255,.85); border-bottom: 1px solid var(--koperasi-line); backdrop-filter: blur(14px); }
.dashboard-topbar .eyebrow { font-size: .58rem; }
.dashboard-topbar h1 { margin: .2rem 0 0; font-size: 1.35rem; font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-menu { width: 42px; height: 42px; border-radius: 11px; color: var(--koperasi-ink); background: #eef1ee; }
.status-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; color: #38624d; background: var(--koperasi-green-soft); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.status-chip span { width: 7px; height: 7px; border-radius: 50%; background: #2c9b61; box-shadow: 0 0 0 4px rgba(44,155,97,.12); }
.small-avatar { width: 38px; height: 38px; }
.dashboard-content { padding: 2rem; }
.dashboard-footer { padding: 1rem 2rem 2rem; color: #8a948e; font-size: .72rem; }
.sidebar-backdrop { display: none; }
.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; color: #fff; background: linear-gradient(125deg,#1e6142,#153d2d); border-radius: 22px; overflow: hidden; position: relative; }
.welcome-panel::after { content: ''; position: absolute; width: 250px; height: 250px; right: -75px; top: -120px; border: 48px solid rgba(255,255,255,.06); border-radius: 50%; }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel h2 { margin: .3rem 0 .5rem; font-size: 1.7rem; font-weight: 800; }
.welcome-panel p { max-width: 620px; margin: 0; color: rgba(255,255,255,.65); }
.welcome-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; color: var(--koperasi-red); background: #fff; font-size: 1.7rem; }
.stat-card { height: 100%; padding: 1.3rem; border: 1px solid var(--koperasi-line); border-radius: 18px; background: #fff; box-shadow: 0 5px 20px rgba(31,48,39,.035); }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; }
.stat-card-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 12px; }
.stat-card-icon.green { color: var(--koperasi-green); background: var(--koperasi-green-soft); }
.stat-card-icon.gold { color: #9c6a15; background: #fbf1da; }
.stat-card-icon.blue { color: #2c6385; background: #e5f1f8; }
.stat-card small { color: var(--koperasi-muted); font-size: .72rem; font-weight: 700; }
.stat-card strong { display: block; margin-top: 1rem; font-family: 'Manrope',sans-serif; font-size: 1.35rem; }
.content-card { padding: 1.5rem; border: 1px solid var(--koperasi-line); border-radius: 18px; background: #fff; }
.content-card h2 { font-size: 1rem; font-weight: 800; }
.onboarding-list { display: grid; gap: .75rem; }
.onboarding-item { display: flex; gap: .8rem; padding: .85rem; border-radius: 13px; background: #f7f9f7; }
.onboarding-item i { width: 28px; height: 28px; display: grid; place-items: center; color: var(--koperasi-green); background: var(--koperasi-green-soft); border-radius: 8px; }
.onboarding-item strong, .onboarding-item small { display: block; }
.onboarding-item strong { font-size: .82rem; }
.onboarding-item small { margin-top: .2rem; color: var(--koperasi-muted); font-size: .73rem; }
.status-banner { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border-radius: 14px; background: #fff5dd; color: #71551c; }
.status-banner.verified { background: var(--koperasi-green-soft); color: var(--koperasi-green-dark); }
.status-banner strong, .status-banner small { display: block; }
.status-banner small { margin-top: .2rem; opacity: .75; }
.table { --bs-table-bg: transparent; font-size: .83rem; }
.table thead th { padding: .8rem; color: #78837d; font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; border-bottom-color: var(--koperasi-line); }
.table tbody td { padding: .9rem .8rem; border-bottom-color: #eef0ed; }
.badge-soft-success { color: #246b48; background: #dff1e7; }
.badge-soft-warning { color: #765412; background: #fff0c8; }
.badge-soft-danger { color: #9f2632; background: #f8dfe1; }
.badge-soft-secondary { color: #58625d; background: #e8ebe8; }
.chart-wrap { height: 280px; }
.empty-state { padding: 2rem; color: var(--koperasi-muted); text-align: center; }
.empty-state i { display: block; margin-bottom: .8rem; color: #bbc2bd; font-size: 2rem; }

/* Errors */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--koperasi-cream); }
.error-card { max-width: 560px; padding: 3rem; text-align: center; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.error-code { color: var(--koperasi-red); font-family: 'Manrope',sans-serif; font-size: 4rem; font-weight: 800; line-height: 1; }

@media (max-width: 991.98px) {
    .hero-section { padding-top: 4.5rem; }
    .village-panel { margin: 3rem auto 0; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { min-height: 320px; padding: 2rem; }
    .auth-story { margin: 3rem 0 1rem; }
    .auth-story h1 { font-size: 2.4rem; max-width: 600px; }
    .auth-points { display: none; }
    .dashboard-sidebar { transform: translateX(-100%); }
    .dashboard-body.sidebar-open .dashboard-sidebar { transform: translateX(0); }
    .dashboard-body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1030; background: rgba(10,22,16,.5); backdrop-filter: blur(2px); }
    .dashboard-main { margin-left: 0; }
}

@media (max-width: 767.98px) {
    .section-space { padding: 4.2rem 0; }
    .hero-title { font-size: 3rem; }
    .floating-badge { left: -8px; }
    .cta-panel { padding: 2rem; }
    .auth-aside { min-height: 260px; }
    .auth-story { margin-top: 2rem; }
    .auth-story p { margin-bottom: 0; }
    .auth-main { padding: 2.3rem 1rem; align-items: flex-start; }
    .role-choice { grid-template-columns: 1fr; }
    .dashboard-topbar { height: auto; min-height: 82px; padding: 1rem; justify-content: flex-start; }
    .topbar-actions { margin-left: auto; }
    .status-chip { display: none; }
    .dashboard-content { padding: 1rem; }
    .welcome-panel { padding: 1.4rem; }
    .welcome-icon { display: none; }
    .chart-wrap { height: 230px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 2.55rem; }
    .village-card { min-height: 355px; padding: 1.4rem; }
    .village-metrics { grid-template-columns: 1fr; }
    .village-metrics div { display: flex; justify-content: space-between; align-items: center; }
    .village-metrics small { margin: 0; }
    .floating-badge { display: none; }
}

/* Keamanan, kesiapan produksi, dan kompatibilitas — Tahap 5 */
.system-welcome { background: linear-gradient(125deg,#173e2d,#26734d); }
.system-welcome .welcome-icon { color: var(--koperasi-green); }
.health-check-list { display: grid; }
.health-check-list article { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .78rem 0; border-bottom: 1px solid #eef1ee; }
.health-check-list article:last-child { border-bottom: 0; }

/* Tahap 6 — keanggotaan, produk digital, integrasi API, dan navigasi ponsel */
.membership-callout { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; color: #244b39; background: #eef8f2; border: 1px solid #cfe7d8; border-radius: 16px; }
.membership-callout > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--koperasi-green); border-radius: 12px; }
.membership-callout strong, .membership-callout p { display: block; }
.membership-callout p { margin: .2rem 0 .7rem; color: #5f776b; font-size: .7rem; }
.membership-check { padding: .8rem .9rem .8rem 2.4rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 12px; }
.auth-expired-icon { width: 70px; height: 70px; display: inline-grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 22px; font-size: 1.6rem; }

.product-kind-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.product-kind-choice label { position: relative; cursor: pointer; }
.product-kind-choice input { position: absolute; opacity: 0; }
.product-kind-choice span { height: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: .1rem .7rem; padding: 1rem; border: 1px solid var(--koperasi-line); border-radius: 15px; }
.product-kind-choice i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: var(--koperasi-green); background: #eaf5ef; border-radius: 10px; }
.product-kind-choice strong, .product-kind-choice small { display: block; }
.product-kind-choice small { color: var(--koperasi-muted); font-size: .62rem; line-height: 1.45; }
.product-kind-choice input:checked + span { border-color: var(--koperasi-red); box-shadow: 0 0 0 3px rgba(190,32,49,.08); }
.product-kind-choice input:checked + span i { color: #fff; background: var(--koperasi-red); }
.product-digital-fields { display: none; }
.product-digital-fields.active { display: block; }
.digital-target-field { padding: .8rem; background: #f5faf7; border: 1px solid #dcebe2; border-radius: 14px; }
.digital-target-field small { display: block; margin-top: .35rem; color: var(--koperasi-muted); font-size: .65rem; }
.detail-cart-form:has(.digital-target-field) { flex-wrap: wrap; }
.product-digital-badge { position: absolute; left: .65rem; bottom: .65rem; padding: .35rem .55rem; color: #fff; background: #136b4b; border-radius: 999px; font-size: .58rem; font-weight: 800; }
.cart-digital-target { display: block; margin-top: .25rem; color: var(--koperasi-green); font-size: .62rem; font-weight: 700; }
.digital-checkout-notice { display: flex; align-items: center; gap: 1rem; }
.digital-checkout-notice > span { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--koperasi-green); border-radius: 15px; }
.digital-checkout-notice strong, .digital-checkout-notice p { display: block; }
.digital-checkout-notice p { margin: .2rem 0 0; color: var(--koperasi-muted); font-size: .7rem; }
.digital-serial { padding: .35rem .5rem; color: #244b39; background: #eaf6ef; border-radius: 8px; }

.integration-security-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem .9rem; color: #2f634b; background: #edf7f1; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.integration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.integration-card { padding: 1.2rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.integration-card.active { border-color: #a9d6bc; box-shadow: 0 10px 30px rgba(28,109,71,.1); }
.integration-card > header { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: .8rem; }
.integration-card h2, .integration-card p { margin: 0; }
.integration-card h2 { font-size: .9rem; }
.integration-card p { margin-top: .18rem; color: var(--koperasi-muted); font-size: .63rem; line-height: 1.45; }
.integration-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--koperasi-green); border-radius: 15px; font-size: 1rem; }
.integration-icon.payment_gateway { background: #2656a4; }
.integration-icon.bank_mutation { background: #8a5a18; }
.integration-icon.national_courier { background: #9d2635; }
.integration-icon.digital { width: 44px; height: 44px; }
.integration-status { padding: .35rem .55rem; color: #67716b; background: #f0f2f0; border-radius: 999px; font-size: .57rem; font-weight: 800; }
.integration-status.success, .integration-card.active .integration-status { color: #176b43; background: #e1f4e8; }
.integration-status.failed { color: #a42c38; background: #fde8eb; }
.integration-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin: 1rem 0; }
.integration-summary span { padding: .7rem; background: #f7f9f7; border-radius: 12px; }
.integration-summary small, .integration-summary strong { display: block; }
.integration-summary small { color: var(--koperasi-muted); font-size: .55rem; text-transform: uppercase; }
.integration-summary strong { margin-top: .2rem; overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.integration-test-message { margin-bottom: .8rem; padding: .65rem .75rem; border-radius: 11px; font-size: .62rem; }
.integration-test-message.success { color: #176b43; background: #eaf6ef; }
.integration-test-message.failed { color: #9f2f3a; background: #fff0f1; }
.integration-form { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--koperasi-line); }
.integration-form.show { display: block; }
.integration-switch { width: 100%; padding: .8rem .9rem .8rem 3rem; background: #f7f9f7; border-radius: 12px; }
.integration-card code { overflow-wrap: anywhere; }
.mutation-list article { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid #eef1ee; }
.mutation-list article:last-child { border-bottom: 0; }
.mutation-direction { width: 38px; height: 38px; display: grid; place-items: center; color: #187048; background: #e5f5ec; border-radius: 11px; }
.mutation-direction.debit { color: #a42c38; background: #fdebed; }
.mutation-list strong, .mutation-list small { display: block; }
.mutation-list small { margin-top: .12rem; color: var(--koperasi-muted); font-size: .61rem; }

.mobile-bottom-nav { position: fixed; z-index: 1030; right: 10px; bottom: max(10px,env(safe-area-inset-bottom)); left: 10px; display: flex; align-items: stretch; min-height: 66px; padding: .4rem; background: rgba(255,255,255,.96); border: 1px solid rgba(213,220,215,.9); border-radius: 20px; box-shadow: 0 12px 40px rgba(18,39,28,.2); backdrop-filter: blur(16px); }
.mobile-bottom-nav > * { min-width: 0; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: #77817b; background: transparent; border: 0; border-radius: 14px; text-decoration: none; }
.mobile-bottom-nav i { font-size: .92rem; }
.mobile-bottom-nav span { max-width: 100%; overflow: hidden; font-size: .52rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-bottom-nav > *.active { color: #fff; background: var(--koperasi-red); }

@media (max-width: 991.98px) {
    .dashboard-content { padding-bottom: 105px; }
    .dashboard-footer { padding-bottom: 95px; }
    .integration-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .product-kind-choice { grid-template-columns: 1fr; }
    .integration-card { padding: 1rem; }
    .integration-card > header { grid-template-columns: 44px minmax(0,1fr); }
    .integration-card > header .integration-status { grid-column: 1 / -1; justify-self: start; }
    .integration-summary { grid-template-columns: 1fr; }
    .membership-callout { flex-direction: column; }
    .mobile-bottom-nav { right: 7px; bottom: max(7px,env(safe-area-inset-bottom)); left: 7px; }
}
.health-check-list article > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--koperasi-green); background: var(--koperasi-green-soft); border-radius: 10px; font-size: .7rem; }
.health-check-list article.error > span { color: var(--koperasi-red); background: var(--koperasi-red-soft); }
.health-check-list article.warning > span { color: #8a6117; background: #fbf1da; }
.health-check-list strong, .health-check-list small { display: block; }
.health-check-list strong { font-size: .75rem; }
.health-check-list small { margin-top: .15rem; color: var(--koperasi-muted); font-size: .63rem; }
.health-check-list b { color: var(--koperasi-green); font-size: .62rem; }
.health-check-list article.error b { color: var(--koperasi-red); }
.health-check-list article.warning b { color: #8a6117; }

@media (max-width: 480px) {
    .health-check-list article { grid-template-columns: 34px minmax(0,1fr); }
    .health-check-list article > b { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Marketplace — Tahap 2 */
.nav-cart-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem .75rem; color: var(--koperasi-ink); border-radius: 11px; text-decoration: none; font-size: .82rem; font-weight: 700; }
.nav-cart-button:hover { color: var(--koperasi-red); background: var(--koperasi-red-soft); }
.nav-cart-button b { min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 .25rem; color: #fff; background: var(--koperasi-red); border-radius: 999px; font-size: .62rem; }
.app-toast-region { position: fixed; z-index: 1090; right: 1.25rem; top: 88px; display: grid; gap: .6rem; pointer-events: none; }
.app-toast { width: min(360px,calc(100vw - 2rem)); display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 1rem; color: #fff; background: #163d2c; border-radius: 14px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; pointer-events: auto; }
.app-toast.error { background: #8e202b; }
.app-toast i { margin-top: .15rem; }
.app-toast strong { display: block; font-size: .82rem; }
.app-toast span { display: block; margin-top: .15rem; color: rgba(255,255,255,.72); font-size: .73rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.home-catalog-strip { padding: 0 0 3.5rem; background: var(--koperasi-cream); }
.home-product-search { position: relative; z-index: 2; max-width: 850px; margin: 0 auto 2.1rem; display: flex; align-items: center; padding: .55rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 17px; box-shadow: var(--shadow-sm); }
.home-product-search > i { margin-left: .8rem; color: #89938d; }
.home-product-search input { min-width: 0; flex: 1; padding: .75rem; border: 0; outline: 0; font-size: .9rem; }
.home-product-search button, .catalog-search button { padding: .75rem 1.2rem; color: #fff; background: var(--koperasi-red); border: 0; border-radius: 11px; font-weight: 800; }
.home-categories { display: grid; grid-template-columns: repeat(7,1fr); gap: .75rem; }
.home-categories a { padding: 1rem .55rem; color: var(--koperasi-ink); background: rgba(255,255,255,.65); border: 1px solid rgba(220,225,220,.8); border-radius: 16px; text-align: center; text-decoration: none; transition: .2s ease; }
.home-categories a:hover { transform: translateY(-4px); background: #fff; border-color: #e2b9bd; box-shadow: var(--shadow-sm); }
.home-categories span { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto .65rem; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 13px; }
.home-categories strong, .home-categories small { display: block; }
.home-categories strong { font-size: .77rem; }
.home-categories small { margin-top: .25rem; color: var(--koperasi-muted); font-size: .65rem; }
.featured-product-section { background: #fff; }
.view-all-link { align-items: center; gap: .6rem; color: var(--koperasi-red); text-decoration: none; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.view-all-link:hover { color: var(--koperasi-red-dark); }

.product-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 18px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-sm); }
.product-card-media { position: relative; aspect-ratio: 1 / .86; display: block; overflow: hidden; background: #f2f4f1; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #b0b9b3; background: linear-gradient(145deg,#eef1ee,#f9faf8); font-size: 2.3rem; }
.product-discount { position: absolute; left: .7rem; top: .7rem; padding: .3rem .48rem; color: #fff; background: var(--koperasi-red); border-radius: 7px; font-size: .64rem; font-weight: 800; }
.product-discount.large { left: 1rem; top: 1rem; font-size: .74rem; }
.product-soldout { position: absolute; inset: auto .7rem .7rem; padding: .38rem; color: #fff; background: rgba(20,34,27,.78); border-radius: 7px; text-align: center; font-size: .7rem; font-weight: 700; backdrop-filter: blur(8px); }
.product-card-body { padding: 1rem; }
.product-category { color: var(--koperasi-red); text-decoration: none; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.product-card h3 { min-height: 2.7em; margin: .45rem 0 .4rem; font-family: 'DM Sans',sans-serif; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.product-card h3 a { display: -webkit-box; overflow: hidden; color: var(--koperasi-ink); text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-store { display: flex; align-items: center; gap: .35rem; overflow: hidden; color: var(--koperasi-muted); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: .69rem; }
.product-store i { color: var(--koperasi-green); }
.product-rating { display: flex; align-items: center; gap: .28rem; margin-top: .65rem; color: #a16a0b; font-size: .69rem; }
.product-rating small { color: var(--koperasi-muted); }
.product-card-footer { min-height: 51px; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.product-price strong, .product-price del { display: block; }
.product-price strong { color: var(--koperasi-red); font-family: 'Manrope',sans-serif; font-size: .92rem; }
.product-price del { color: #9aa29d; font-size: .66rem; }
.product-cart-button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; color: var(--koperasi-red); background: var(--koperasi-red-soft); border: 0; border-radius: 11px; text-decoration: none; }
.product-cart-button:hover { color: #fff; background: var(--koperasi-red); }
.catalog-empty { padding: 5rem 1rem; color: var(--koperasi-muted); background: #f8faf8; border: 1px dashed #d4dad5; border-radius: 22px; text-align: center; }
.catalog-empty.compact { padding: 3rem 1rem; }
.catalog-empty > i { display: block; margin-bottom: 1rem; color: #adb8b1; font-size: 2.6rem; }
.catalog-empty h2, .catalog-empty h3 { color: var(--koperasi-ink); font-weight: 800; }

.home-umkm-section { background: #f8faf8; }
.umkm-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 19px; }
.umkm-card-cover { height: 145px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg,var(--koperasi-green),var(--koperasi-green-dark)); font-size: 2rem; }
.umkm-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.umkm-card-body { padding: 1.2rem; }
.verified-label { color: var(--koperasi-green); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.verified-label i { margin-right: .3rem; }
.umkm-card h3 { margin: .55rem 0 .4rem; font-size: 1rem; font-weight: 800; }
.umkm-card p { min-height: 3.3em; color: var(--koperasi-muted); font-size: .77rem; line-height: 1.5; }
.umkm-card a { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 800; text-decoration: none; }

.catalog-hero { padding: 4.2rem 0 3.5rem; color: #fff; background: linear-gradient(125deg,#194d35,#102e22); position: relative; overflow: hidden; }
.catalog-hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -210px; border: 70px solid rgba(255,255,255,.05); border-radius: 50%; }
.catalog-hero .container { position: relative; z-index: 1; }
.catalog-hero .eyebrow { color: #ef9da5; }
.catalog-hero h1 { max-width: 680px; font-size: clamp(2.2rem,5vw,4rem); font-weight: 800; letter-spacing: -.055em; }
.catalog-hero p { color: rgba(255,255,255,.62); }
.catalog-search { max-width: 720px; display: flex; align-items: center; margin-top: 1.7rem; padding: .45rem; color: var(--koperasi-ink); background: #fff; border-radius: 15px; }
.catalog-search > i { margin-left: .8rem; color: #929b96; }
.catalog-search input { min-width: 0; flex: 1; padding: .75rem; border: 0; outline: 0; }
.catalog-section { background: #fbfcfa; }
.category-pills { display: flex; gap: .55rem; padding-bottom: .4rem; overflow-x: auto; scrollbar-width: thin; }
.category-pills a { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .65rem .8rem; color: #57625c; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 999px; text-decoration: none; font-size: .75rem; font-weight: 700; }
.category-pills a span { color: #9aa29e; font-size: .62rem; }
.category-pills a.active, .category-pills a:hover { color: #fff; background: var(--koperasi-red); border-color: var(--koperasi-red); }
.category-pills a.active span, .category-pills a:hover span { color: rgba(255,255,255,.65); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; color: var(--koperasi-muted); font-size: .8rem; }
.catalog-toolbar strong { color: var(--koperasi-ink); }
.catalog-toolbar form { display: flex; align-items: center; gap: .55rem; }
.catalog-toolbar label { font-weight: 700; }
.catalog-toolbar select { padding: .5rem 2rem .5rem .7rem; background-color: #fff; border: 1px solid var(--koperasi-line); border-radius: 10px; font-size: .75rem; }
.catalog-pagination { margin-top: 2.5rem; }
.catalog-pagination .page-link { margin: 0 .2rem; color: var(--koperasi-ink); border: 1px solid var(--koperasi-line); border-radius: 9px !important; }
.catalog-pagination .active .page-link { background: var(--koperasi-red); border-color: var(--koperasi-red); }

.product-detail-page { background: #f9faf8; }
.breadcrumb-line { display: flex; align-items: center; gap: .55rem; overflow: hidden; color: var(--koperasi-muted); white-space: nowrap; font-size: .72rem; }
.breadcrumb-line a { color: var(--koperasi-muted); text-decoration: none; }
.breadcrumb-line span { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-line i { font-size: .52rem; }
.product-gallery-main { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 24px; }
.product-gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: .7rem; overflow-x: auto; }
.product-thumbnails button { width: 74px; height: 74px; flex: 0 0 auto; padding: 3px; overflow: hidden; background: #fff; border: 2px solid transparent; border-radius: 12px; }
.product-thumbnails button.active { border-color: var(--koperasi-red); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.product-detail-info { padding-top: .5rem; }
.product-detail-info h1 { margin: .7rem 0 .8rem; font-size: clamp(2rem,4vw,3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; }
.detail-rating { display: flex; flex-wrap: wrap; gap: .7rem; color: var(--koperasi-muted); font-size: .78rem; }
.detail-rating span { padding-right: .7rem; border-right: 1px solid var(--koperasi-line); }
.detail-rating span:last-child { border: 0; }
.detail-rating i { color: #e7a71a; margin-right: .3rem; }
.detail-price { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; padding: 1.1rem; background: var(--koperasi-red-soft); border-radius: 14px; }
.detail-price strong { color: var(--koperasi-red); font-family: 'Manrope',sans-serif; font-size: 1.65rem; }
.detail-price del { color: #929b96; }
.detail-price span { padding: .25rem .45rem; color: #fff; background: var(--koperasi-red); border-radius: 6px; font-size: .7rem; font-weight: 800; }
.detail-description { color: #59655e; line-height: 1.75; font-size: .88rem; }
.detail-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; margin: 1.3rem 0; }
.detail-meta > div { display: flex; align-items: center; gap: .7rem; padding: .8rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 12px; }
.detail-meta > div > i { color: var(--koperasi-green); }
.detail-meta small, .detail-meta strong { display: block; }
.detail-meta small { color: var(--koperasi-muted); font-size: .65rem; }
.detail-meta strong { margin-top: .1rem; font-size: .75rem; }
.detail-cart-form { display: flex; gap: .75rem; margin: 1.2rem 0; }
.quantity-picker { display: inline-flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 12px; }
.quantity-picker button { width: 42px; height: 46px; padding: 0; color: #566159; background: #fff; border: 0; }
.quantity-picker button:hover { color: var(--koperasi-red); background: var(--koperasi-red-soft); }
.quantity-picker input { width: 52px; height: 46px; padding: 0; border: 0; outline: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.quantity-picker input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity-picker.small button { width: 32px; height: 36px; }
.quantity-picker.small input { width: 42px; height: 36px; font-size: .78rem; }
.seller-mini-card { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: 1rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 15px; }
.seller-mini-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; color: var(--koperasi-green); background: var(--koperasi-green-soft); border-radius: 13px; }
.seller-mini-card > div { min-width: 0; flex: 1; }
.seller-mini-card small, .seller-mini-card strong, .seller-mini-card div span { display: block; }
.seller-mini-card small { color: var(--koperasi-muted); font-size: .63rem; }
.seller-mini-card strong { margin: .15rem 0; font-size: .82rem; }
.seller-mini-card div span { overflow: hidden; color: var(--koperasi-muted); text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; }
.seller-mini-card div span i { margin-right: .3rem; }
.seller-mini-card > a { flex: 0 0 auto; font-size: .7rem; font-weight: 800; text-decoration: none; }
.detail-section { padding: 1.6rem; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 21px; }
.review-empty { padding: 2rem; color: var(--koperasi-muted); background: #f7f9f7; border-radius: 14px; text-align: center; }
.review-empty i { font-size: 1.8rem; }
.review-empty p { margin: .7rem 0 0; }
.review-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.review-card { padding: 1rem; background: #f8faf8; border-radius: 14px; }
.review-stars { color: #e3a21a; font-size: .72rem; }
.review-card p { margin: .7rem 0; color: #59645e; font-size: .8rem; }
.review-card strong, .review-card small { display: block; }
.review-card strong { font-size: .76rem; }
.review-card small { margin-top: .2rem; color: var(--koperasi-muted); font-size: .65rem; }

/* Product management */
.dashboard-filter-pills { display: flex; gap: .35rem; overflow-x: auto; }
.dashboard-filter-pills a { flex: 0 0 auto; padding: .48rem .68rem; color: #657169; background: #f2f4f2; border-radius: 8px; text-decoration: none; font-size: .7rem; font-weight: 700; }
.dashboard-filter-pills a.active, .dashboard-filter-pills a:hover { color: #fff; background: var(--koperasi-red); }
.management-product { min-width: 210px; display: flex; align-items: center; gap: .7rem; }
.management-thumb { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; color: #aeb7b1; background: #eef1ee; border-radius: 10px; }
.management-thumb.large { width: 62px; height: 62px; }
.management-thumb img { width: 100%; height: 100%; object-fit: cover; }
.management-product strong, .management-product small { display: block; }
.management-product strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.management-product small { margin-top: .2rem; color: var(--koperasi-muted); font-size: .66rem; }
.dashboard-search-form { min-width: min(100%,380px); display: flex; align-items: center; overflow: hidden; background: #f6f8f6; border: 1px solid var(--koperasi-line); border-radius: 11px; }
.dashboard-search-form i { margin-left: .7rem; color: #8e9992; }
.dashboard-search-form input { min-width: 0; flex: 1; padding: .65rem; background: transparent; border: 0; outline: 0; font-size: .75rem; }
.dashboard-search-form button { align-self: stretch; padding: 0 .8rem; color: #fff; background: var(--koperasi-red); border: 0; font-size: .72rem; font-weight: 700; }
.product-editor-form .content-card h2, .product-image-manager + p { font-size: .95rem; }
.product-image-manager { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: .7rem; }
.product-image-manager > div { position: relative; aspect-ratio: 1; overflow: hidden; background: #f0f2f0; border-radius: 12px; }
.product-image-manager img { width: 100%; height: 100%; object-fit: cover; }
.product-image-manager form { position: absolute; right: .35rem; top: .35rem; }
.product-image-manager button { width: 30px; height: 30px; color: #fff; background: rgba(139,27,39,.9); border: 0; border-radius: 8px; }
.product-upload-zone { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; color: #68746d; background: #f8faf8; border: 1px dashed #bec7c1; border-radius: 14px; text-align: center; cursor: pointer; }
.product-upload-zone:hover { color: var(--koperasi-red); border-color: var(--koperasi-red); background: var(--koperasi-red-soft); }
.product-upload-zone > i { margin-bottom: .65rem; font-size: 1.7rem; }
.product-upload-zone strong, .product-upload-zone span { display: block; }
.product-upload-zone strong { font-size: .8rem; }
.product-upload-zone span { margin-top: .25rem; font-size: .65rem; }
.product-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-preview { display: grid; grid-template-columns: repeat(4,1fr); gap: .4rem; margin-top: .7rem; }
.upload-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.product-editor-actions { position: sticky; z-index: 4; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .9rem 1rem; background: rgba(255,255,255,.95); border: 1px solid var(--koperasi-line); border-radius: 15px; box-shadow: 0 -8px 30px rgba(31,48,39,.06); backdrop-filter: blur(10px); }

/* Cart */
.cart-items-card { padding: 0; overflow: hidden; }
.cart-list-heading, .cart-row { display: grid; grid-template-columns: minmax(280px,2fr) minmax(115px,.75fr) 132px minmax(120px,.8fr) 35px; align-items: center; gap: .7rem; }
.cart-list-heading { padding: .85rem 1.2rem; color: #7b867f; background: #f7f9f7; font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cart-row { padding: 1rem 1.2rem; border-top: 1px solid #edf0ed; }
.cart-row:first-child { border-top: 0; }
.cart-row.unavailable { background: #fbf7f7; opacity: .82; }
.cart-product-cell { min-width: 0; display: flex; align-items: center; gap: .8rem; }
.cart-thumb { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; color: #aeb7b1; background: #eef1ee; border-radius: 12px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-cell > div { min-width: 0; }
.cart-product-name { display: block; overflow: hidden; color: var(--koperasi-ink); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 800; }
.cart-product-cell small { display: block; margin-top: .25rem; overflow: hidden; color: var(--koperasi-muted); text-overflow: ellipsis; white-space: nowrap; font-size: .65rem; }
.cart-unavailable, .cart-low-stock { display: inline-block; margin-top: .35rem; color: var(--koperasi-red); font-size: .65rem; font-weight: 800; }
.cart-price-cell strong, .cart-price-cell del { display: block; }
.cart-price-cell strong, .cart-subtotal-cell strong { font-size: .78rem; }
.cart-price-cell del { color: #9ba39e; font-size: .65rem; }
.cart-remove-cell button { width: 32px; height: 32px; padding: 0; color: #a06b70; background: transparent; border: 0; border-radius: 8px; }
.cart-remove-cell button:hover { color: #fff; background: var(--koperasi-red); }
.cart-summary-card { position: sticky; top: 1rem; }
.cart-summary-card h2 { margin-bottom: 1.2rem; }
.cart-summary-line { display: flex; justify-content: space-between; gap: .7rem; margin: .8rem 0; font-size: .76rem; }
.cart-summary-line.muted { color: var(--koperasi-muted); font-size: .69rem; }
.cart-summary-total { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: 1.2rem; }
.cart-summary-total span { font-size: .8rem; font-weight: 700; }
.cart-summary-total strong { color: var(--koperasi-red); font-family: 'Manrope',sans-serif; font-size: 1.2rem; }
.cart-secure-note { display: flex; align-items: flex-start; gap: .5rem; margin: .9rem 0 0; color: var(--koperasi-muted); font-size: .65rem; line-height: 1.5; }
.cart-secure-note i { color: var(--koperasi-green); margin-top: .1rem; }
.cart-empty { padding: 4rem 1rem; text-align: center; }
.cart-empty > span { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 1.2rem; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 24px; font-size: 1.8rem; }
.cart-empty h2 { font-size: 1.2rem; }
.cart-empty p { color: var(--koperasi-muted); font-size: .82rem; }

@media (max-width: 1199.98px) {
    .home-categories { grid-template-columns: repeat(4,1fr); }
    .cart-summary-card { position: static; }
}

@media (max-width: 991.98px) {
    .nav-cart-button { justify-content: flex-start; }
    .catalog-hero { padding: 3.2rem 0; }
    .product-detail-info { padding-top: 0; }
    .cart-list-heading { display: none; }
    .cart-row { grid-template-columns: minmax(220px,1fr) 120px 35px; }
    .cart-product-cell { grid-column: 1 / -1; }
    .cart-price-cell { display: none; }
    .cart-subtotal-cell { text-align: right; }
}

@media (max-width: 767.98px) {
    .app-toast-region { right: 1rem; top: 78px; }
    .home-categories { grid-template-columns: repeat(3,1fr); }
    .home-categories a { padding: .75rem .35rem; }
    .home-product-search { margin-bottom: 1.4rem; }
    .home-product-search input { font-size: .78rem; }
    .home-product-search button { padding: .7rem; font-size: .75rem; }
    .product-card { border-radius: 14px; }
    .product-card-media { aspect-ratio: 1; }
    .product-card-body { padding: .75rem; }
    .product-card h3 { font-size: .8rem; }
    .product-price strong { font-size: .8rem; }
    .product-store { font-size: .62rem; }
    .product-cart-button { width: 32px; height: 32px; }
    .catalog-search { align-items: stretch; }
    .catalog-search button { padding: .65rem; font-size: .72rem; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .catalog-toolbar form { width: 100%; justify-content: space-between; }
    .catalog-toolbar select { flex: 1; }
    .detail-cart-form { flex-wrap: wrap; }
    .detail-cart-form .btn { min-height: 48px; }
    .review-grid { grid-template-columns: 1fr; }
    .product-editor-actions { align-items: stretch; flex-direction: column; }
    .product-editor-actions > div { display: grid !important; grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 1fr auto 32px; padding: .9rem; }
    .cart-thumb { width: 60px; height: 60px; }
}

@media (max-width: 420px) {
    .home-categories { grid-template-columns: repeat(2,1fr); }
    .product-card-footer { align-items: flex-end; }
    .product-card .product-rating { display: none; }
    .product-price strong { font-size: .72rem; }
    .detail-meta { grid-template-columns: 1fr; }
    .seller-mini-card { align-items: flex-start; flex-wrap: wrap; }
    .seller-mini-card > a { margin-left: 54px; }
    .cart-row { grid-template-columns: 1fr auto; }
    .cart-remove-cell { grid-column: 2; grid-row: 2; }
    .cart-subtotal-cell { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .app-toast, .product-card, .product-card-media img { animation: none !important; transition: none !important; }
}

/* Transaksi, pembayaran, dan pengiriman — Tahap 3 */
.badge-soft-info { color: #22627a; background: #e4f3f8; }
.topbar-notification { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: var(--koperasi-ink); background: #f0f3f0; border-radius: 12px; text-decoration: none; }
.topbar-notification:hover { color: var(--koperasi-red); }
.notification-count { position: absolute; min-width: 18px; height: 18px; display: grid; place-items: center; right: -4px; top: -4px; padding: 0 .25rem; color: #fff; background: var(--koperasi-red); border: 2px solid #fff; border-radius: 999px; font-size: .56rem; font-weight: 800; }
.checkout-section-title { display: flex; gap: .8rem; margin-bottom: 1.15rem; }
.checkout-section-title > span { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 12px; }
.checkout-section-title h2, .checkout-summary h2, .order-summary-card h2 { margin: 0 0 .25rem; font-size: .95rem; }
.checkout-section-title p { margin: 0; color: var(--koperasi-muted); font-size: .72rem; }
.saved-addresses { display: grid; gap: .65rem; }
.saved-address-card { position: relative; cursor: pointer; }
.saved-address-card input { position: absolute; opacity: 0; }
.saved-address-card > span { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid var(--koperasi-line); border-radius: 14px; transition: .2s ease; }
.saved-address-card input:checked + span { border-color: var(--koperasi-red); background: var(--koperasi-red-soft); box-shadow: 0 0 0 2px rgba(173,38,51,.08); }
.saved-address-card strong { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.saved-address-card strong em { padding: .2rem .45rem; color: var(--koperasi-green); background: var(--koperasi-green-soft); border-radius: 6px; font-size: .57rem; font-style: normal; text-transform: uppercase; }
.saved-address-card b { font-size: .72rem; }
.saved-address-card small { color: var(--koperasi-muted); font-size: .68rem; line-height: 1.5; }
.new-address-option > span { border-style: dashed; }
.new-address-fields { padding: 1rem; background: #f8faf8; border-radius: 14px; }
.checkout-groups { display: grid; gap: .9rem; }
.checkout-store { overflow: hidden; border: 1px solid var(--koperasi-line); border-radius: 15px; }
.checkout-store header, .checkout-store footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .8rem 1rem; background: #f8faf8; font-size: .75rem; }
.checkout-store header { justify-content: flex-start; }
.checkout-store header i { color: var(--koperasi-red); }
.checkout-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .8rem 1rem; border-top: 1px solid #eef1ee; }
.checkout-item-image, .order-product-image { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; color: #a2aaa5; background: #eef1ee; border-radius: 11px; }
.checkout-item-image img, .order-product-image img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item div { min-width: 0; }
.checkout-item div strong, .checkout-item div small { display: block; }
.checkout-item div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.checkout-item div small { margin-top: .2rem; color: var(--koperasi-muted); font-size: .66rem; }
.checkout-item > b { font-size: .76rem; }
.payment-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.payment-methods label { position: relative; cursor: pointer; }
.payment-methods input { position: absolute; opacity: 0; }
.payment-methods span { height: 100%; display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1px solid var(--koperasi-line); border-radius: 14px; }
.payment-methods input:checked + span { color: var(--koperasi-red); background: var(--koperasi-red-soft); border-color: var(--koperasi-red); }
.payment-methods i { font-size: 1.15rem; }
.payment-methods strong { color: var(--koperasi-ink); font-size: .74rem; }
.payment-methods small { color: var(--koperasi-muted); font-size: .63rem; line-height: 1.45; }
.checkout-summary { position: sticky; top: 1rem; }
.checkout-summary > div, .order-summary-card > div:not(.order-address):not(.delivery-time-list) { display: flex; justify-content: space-between; gap: .8rem; margin: .8rem 0; font-size: .74rem; }
.checkout-summary .checkout-total, .order-summary-card .total { align-items: center; margin-bottom: 1.15rem; }
.checkout-total strong, .order-summary-card .total strong { color: var(--koperasi-red); font-family: 'Manrope',sans-serif; font-size: 1.08rem; }
.checkout-summary > p { display: flex; gap: .5rem; margin: .8rem 0 0; color: var(--koperasi-muted); font-size: .64rem; line-height: 1.5; }
.status-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
.status-tabs a { flex: 0 0 auto; padding: .58rem .8rem; color: #68736d; background: #fff; border: 1px solid var(--koperasi-line); border-radius: 999px; text-decoration: none; font-size: .68rem; font-weight: 700; }
.status-tabs a.active, .status-tabs a:hover { color: #fff; background: var(--koperasi-red); border-color: var(--koperasi-red); }
.status-tabs.compact a { padding: .45rem .7rem; }
.order-list { display: grid; gap: .8rem; }
.order-card { padding: 0; overflow: hidden; }
.order-card header, .order-card footer { padding: .85rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: #fafbfa; }
.order-card header > div:first-child span, .order-card header > div:first-child small { display: block; }
.order-card header > div:first-child span { font-size: .76rem; font-weight: 800; }
.order-card header > div:first-child small { color: var(--koperasi-muted); font-size: .62rem; }
.order-card-body { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-block: 1px solid #eef1ee; }
.order-card-body > div:nth-child(2) strong, .order-card-body > div:nth-child(2) small, .order-card-total small, .order-card-total strong { display: block; }
.order-card-body > div:nth-child(2) strong { font-size: .78rem; }
.order-card-body > div:nth-child(2) small, .order-card-total small { color: var(--koperasi-muted); font-size: .64rem; }
.order-card-total { text-align: right; }
.order-card-total strong { font-size: .8rem; }
.order-card footer { justify-content: flex-end; }
.order-timeline { display: grid; grid-template-columns: repeat(5,1fr); }
.order-timeline > div { position: relative; display: flex; align-items: center; flex-direction: column; gap: .45rem; color: #9ba49f; text-align: center; }
.order-timeline > div::before { content: ''; position: absolute; z-index: 0; height: 2px; left: -50%; right: 50%; top: 17px; background: #e3e7e4; }
.order-timeline > div:first-child::before { display: none; }
.order-timeline span { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; background: #eef1ee; border-radius: 50%; font-size: .72rem; }
.order-timeline small { font-size: .61rem; font-weight: 700; }
.order-timeline .done { color: var(--koperasi-green); }
.order-timeline .done::before, .order-timeline .done span { background: var(--koperasi-green-soft); }
.payment-action-card, .order-action-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; color: #564315; background: #fff5dd; border: 1px solid #f0dfad; border-radius: 17px; }
.payment-action-card > div, .order-action-banner > div { display: flex; align-items: flex-start; gap: .8rem; }
.payment-action-card > div > span, .order-action-banner > div > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #7c5d0d; background: #fff; border-radius: 12px; }
.payment-action-card p, .order-action-banner p { margin: .2rem 0 0; font-size: .68rem; }
.payment-action-card form, .order-action-banner form { display: flex; align-items: center; gap: .5rem; }
.payment-action-card .form-control, .order-action-banner .form-control { min-height: 40px; }
.order-detail-items { display: grid; }
.order-detail-items article { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid #eef1ee; }
.order-detail-items article:first-child { padding-top: 0; }
.order-detail-items article:last-child { border-bottom: 0; }
.order-detail-items article a, .order-detail-items article > div > strong { display: block; color: var(--koperasi-ink); text-decoration: none; font-size: .76rem; font-weight: 800; }
.order-detail-items article small { display: block; margin-top: .2rem; color: var(--koperasi-muted); font-size: .64rem; }
.order-detail-items article > strong { font-size: .76rem; }
.review-box { margin: -.2rem 0 .7rem 60px; padding: .7rem; background: #f8faf8; border-radius: 11px; }
.review-box form { display: grid; grid-template-columns: 130px minmax(150px,1fr) auto; gap: .5rem; }
.review-box .form-control, .review-box .form-select { min-height: 38px; }
.review-stars { color: #e7ad24; letter-spacing: .1rem; }
.review-box p { margin: .25rem 0 0; color: var(--koperasi-muted); font-size: .68rem; }
.partner-deliveries { display: grid; gap: .6rem; }
.partner-deliveries article { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .8rem; background: #f8faf8; border-radius: 12px; }
.partner-deliveries strong, .partner-deliveries small { display: block; }
.partner-deliveries strong { font-size: .75rem; }
.partner-deliveries small { margin-top: .2rem; color: var(--koperasi-muted); font-size: .63rem; }
.order-address { display: flex !important; align-items: flex-start; justify-content: flex-start !important; gap: .7rem !important; padding: .7rem; background: #f8faf8; border-radius: 12px; }
.order-address > i { width: 24px; flex: 0 0 auto; color: var(--koperasi-red); text-align: center; }
.order-address strong { display: block; font-size: .7rem; }
.order-address p { margin: .2rem 0 0; color: var(--koperasi-muted); font-size: .64rem; line-height: 1.5; }
.order-address a { font-size: .65rem; font-weight: 700; }
.order-table td small, .payment-table td small { display: block; margin-top: .25rem; color: var(--koperasi-muted); font-size: .62rem; }
.payment-proof { display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 700; text-decoration: none; }
.delivery-status-panel { display: flex; align-items: center; gap: .8rem; }
.delivery-status-panel > span, .delivery-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; color: var(--koperasi-green); background: var(--koperasi-green-soft); border-radius: 12px; }
.delivery-status-panel strong, .delivery-status-panel p { display: block; margin: 0; }
.delivery-status-panel strong { font-size: .8rem; }
.delivery-status-panel p { margin-top: .2rem; color: var(--koperasi-muted); font-size: .68rem; }
.availability-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; color: var(--koperasi-green); background: var(--koperasi-green-soft); border-radius: 999px; font-size: .68rem; font-weight: 800; }
.availability-chip i { font-size: .5rem; }
.available-delivery header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.available-delivery header strong, .available-delivery header small { display: block; }
.available-delivery header strong { font-size: .8rem; }
.available-delivery header small { color: var(--koperasi-muted); font-size: .62rem; }
.available-delivery header b { color: var(--koperasi-green); font-size: .82rem; }
.delivery-route { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .4rem .7rem; margin: 1rem 0; }
.delivery-route > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 11px; }
.delivery-route > i { grid-column: 1; color: #a4ada8; text-align: center; font-size: .7rem; }
.delivery-route strong, .delivery-route small { display: block; }
.delivery-route strong { font-size: .72rem; }
.delivery-route small, .delivery-route p { margin: .15rem 0 0; color: var(--koperasi-muted); font-size: .63rem; line-height: 1.45; }
.delivery-route.detail a { font-size: .66rem; font-weight: 700; text-decoration: none; }
.delivery-job-list { display: grid; gap: .7rem; }
.delivery-job-list article, .delivery-job-list article > div { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.delivery-job-list article > div:first-child > div strong, .delivery-job-list article > div:first-child > div small { display: block; }
.delivery-job-list article > div:first-child > div strong { font-size: .76rem; }
.delivery-job-list article > div:first-child > div small { color: var(--koperasi-muted); font-size: .63rem; }
.delivery-job-list article > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
.delivery-package-list { display: grid; gap: .5rem; }
.delivery-package-list div { display: flex; gap: .6rem; padding: .65rem; background: #f8faf8; border-radius: 10px; font-size: .72rem; }
.delivery-package-list span { color: var(--koperasi-red); font-weight: 800; }
.delivery-note { display: flex; gap: .7rem; margin-top: .8rem; padding: .8rem; color: #67531c; background: #fff5dd; border-radius: 11px; }
.delivery-note strong { font-size: .7rem; }
.delivery-note p { margin: .15rem 0 0; font-size: .65rem; }
.delivery-time-list { display: grid !important; gap: .5rem !important; }
.delivery-time-list > div { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: .4rem; font-size: .65rem; }
.delivery-time-list i { color: var(--koperasi-green); }
.notification-list-card { padding: 0; overflow: hidden; }
.notification-list { display: grid; }
.notification-row { margin: 0; }
.notification-row + .notification-row { border-top: 1px solid #eef1ee; }
.notification-row button { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: 1rem 1.2rem; color: var(--koperasi-ink); background: #fff; border: 0; text-align: left; }
.notification-row.unread button { background: #fff8f8; }
.notification-row-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 12px; }
.notification-row strong, .notification-row small, .notification-row time { display: block; }
.notification-row strong { font-size: .75rem; }
.notification-row small { margin-top: .2rem; color: #58645d; font-size: .68rem; }
.notification-row time { margin-top: .3rem; color: #99a19d; font-size: .58rem; }
.notification-dot { color: var(--koperasi-red); font-size: .45rem; }

@media (max-width: 1199.98px) {
    .checkout-summary { position: static; }
}
@media (max-width: 767.98px) {
    .payment-methods { grid-template-columns: 1fr; }
    .payment-methods span { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
    .payment-methods strong { width: calc(100% - 2rem); }
    .payment-methods small { margin-left: 1.65rem; }
    .payment-action-card, .order-action-banner { align-items: stretch; flex-direction: column; }
    .payment-action-card form, .order-action-banner form { align-items: stretch; flex-direction: column; }
    .order-card-body { grid-template-columns: 52px minmax(0,1fr); }
    .order-card-total { grid-column: 2; text-align: left; }
    .order-timeline { overflow-x: auto; grid-template-columns: repeat(5,100px); padding-bottom: .4rem; }
    .order-timeline > div::before { left: -50px; right: 50px; }
    .review-box { margin-left: 0; }
    .review-box form { grid-template-columns: 1fr; }
    .delivery-job-list article { align-items: flex-start; flex-direction: column; }
    .delivery-job-list article > div:last-child { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
    .checkout-item { grid-template-columns: 46px minmax(0,1fr); }
    .checkout-item > b { grid-column: 2; }
    .order-card header { align-items: flex-start; flex-direction: column; }
    .order-detail-items article { grid-template-columns: 46px minmax(0,1fr); }
    .order-detail-items article > strong { grid-column: 2; }
    .partner-deliveries article { align-items: flex-start; flex-direction: column; }
    .notification-row button { grid-template-columns: 38px minmax(0,1fr) auto; padding: .85rem; }
}

/* Analitik dan laporan — Tahap 4 */
.content-card .section-heading { max-width: none; margin-bottom: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.content-card .section-heading h2 { font-size: 1rem; letter-spacing: 0; line-height: 1.3; }
.content-card .section-heading a:not(.btn) { color: var(--koperasi-red); font-size: .68rem; font-weight: 800; text-decoration: none; }
.chart-wrap-large { height: 310px; }
.chart-wrap-donut { height: 185px; }
.chart-legend-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; margin-top: 1rem; }
.chart-legend-list span { display: flex; align-items: center; gap: .4rem; color: var(--koperasi-muted); font-size: .63rem; }
.chart-legend-list span i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.chart-legend-list span b { margin-left: auto; color: var(--koperasi-ink); }
.ranking-list { display: grid; gap: .2rem; }
.ranking-list article { display: flex; align-items: center; gap: .75rem; padding: .68rem 0; border-bottom: 1px solid #eef1ee; }
.ranking-list article:last-child { border-bottom: 0; }
.ranking-number { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--koperasi-red); background: var(--koperasi-red-soft); border-radius: 9px; font-size: .68rem; font-weight: 900; }
.ranking-number.green { color: var(--koperasi-green); background: var(--koperasi-green-soft); }
.ranking-number.gold { color: #8a6117; background: #fbf1da; }
.ranking-list strong, .ranking-list small { display: block; }
.ranking-list strong { overflow: hidden; color: var(--koperasi-ink); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list small { margin-top: .15rem; color: var(--koperasi-muted); font-size: .62rem; }
.empty-state.compact { padding: 1.5rem .5rem; }
.empty-state.compact i { font-size: 1.45rem; }
.analytics-table { min-width: 600px; margin: 0; }
.analytics-table td a { color: var(--koperasi-ink); text-decoration: none; }
.analytics-table td small { display: block; margin-top: .2rem; color: var(--koperasi-muted); font-size: .61rem; }
.analytics-table .badge { font-size: .6rem; }
.courier-recent-list { display: grid; }
.courier-recent-list > a { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .72rem 0; color: var(--koperasi-ink); border-bottom: 1px solid #eef1ee; text-decoration: none; }
.courier-recent-list > a:last-child { border-bottom: 0; }
.courier-recent-list strong, .courier-recent-list small { display: block; }
.courier-recent-list strong { font-size: .72rem; }
.courier-recent-list small { margin-top: .12rem; color: var(--koperasi-muted); font-size: .6rem; }
.courier-recent-list > a > i { color: #a3aaa6; font-size: .62rem; }
.report-welcome { background: linear-gradient(125deg,#70212b,#ad2633); }
.report-welcome .welcome-icon { color: var(--koperasi-green); }
.report-filter { display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(150px,1fr) minmax(150px,1fr) auto; align-items: end; gap: .8rem; }
.report-filter .form-label { font-size: .68rem; font-weight: 800; }
.report-filter .form-control, .report-filter .form-select { min-height: 45px; }
.report-filter .btn { min-height: 45px; }
.report-stat strong { font-size: 1.2rem; }
.report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.25rem; }
.report-heading h2 { font-size: 1.1rem; }
.report-heading p { margin: .25rem 0 0; color: var(--koperasi-muted); font-size: .7rem; }
.report-export-actions { display: flex; flex: 0 0 auto; gap: .5rem; }
.report-table-wrap { margin: 0 -1.5rem; }
.report-table { min-width: 850px; margin: 0; }
.report-table th:first-child, .report-table td:first-child { padding-left: 1.5rem; }
.report-table th:last-child, .report-table td:last-child { padding-right: 1.5rem; }
.report-table td { white-space: nowrap; font-size: .72rem; }
.report-empty { padding: 3rem 1rem; }
.report-empty h3 { color: var(--koperasi-ink); font-size: .9rem; font-weight: 800; }
.report-empty p { font-size: .7rem; }
.report-limit-note { margin: 1rem 0 0; color: var(--koperasi-muted); font-size: .65rem; }

@media (max-width: 991.98px) {
    .report-filter { grid-template-columns: 1fr 1fr; }
    .report-filter > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .chart-wrap-large { height: 245px; }
    .content-card .section-heading { align-items: flex-start; flex-direction: column; }
    .report-filter { grid-template-columns: 1fr; }
    .report-filter > div:first-child { grid-column: auto; }
    .report-heading { flex-direction: column; }
    .report-export-actions { width: 100%; }
    .report-export-actions .btn { flex: 1; }
}
@media (max-width: 420px) {
    .chart-legend-list { grid-template-columns: 1fr; }
    .report-export-actions { flex-direction: column; }
}
