:root {
    --brand: #14532d;
    --brand-2: #166534;
    --brand-soft: #ecfdf3;
}

body { background: #f5f7f6; }
body.bare { background: #f5f7f6; }

.app-navbar { background: var(--brand); }
.app-navbar .nav-link.active { background: rgba(255,255,255,.12); border-radius: .375rem; }

.btn-primary { --bs-btn-bg: var(--brand-2); --bs-btn-border-color: var(--brand-2);
    --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); }

.card { border: 1px solid #e5e9e7; border-radius: .75rem; }

.stat-label { color: #6b7280; font-size: .85rem; }
.stat-value { font-size: 1.75rem; font-weight: 600; color: var(--brand); }

.badge-role-superadmin { background: #14532d; }
.badge-role-mitra   { background: #1d4ed8; }
.badge-role-penjual    { background: #b45309; }

/* Halaman login / setup */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: .75rem; }
.flash-bare { max-width: 400px; }

/* Landing */
.hero { background: linear-gradient(135deg, var(--brand), #0f766e); color: #fff; padding: 96px 0 80px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; }

/* Judul bagian sejajar (dengan/tanpa tombol) */
.section-head { min-height: 31px; }
.disabled-look { opacity: .45; }

/* Cetak laporan */
@media print {
    .app-navbar, footer, .btn, form.d-print-none, .d-print-none { display: none !important; }
    body { background: #fff; }
    main.container { max-width: 100%; padding: 0; }
    .card { border: 1px solid #bbb; break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
}

/* Dokumentasi */
.dok-thumb { aspect-ratio: 4 / 3; object-fit: cover; background: #e9ecef; }
.dok-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* Landing page */
.lp-nav { background: #fff; border-bottom: 1px solid #e5e9e7; }
.lp-nav .navbar-brand { color: var(--brand); }
.lp-stats { margin-top: -36px; position: relative; }
.lp-stats .card { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.lp-num { font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.lp-step { background: #fff; border: 1px solid #e5e9e7; border-radius: .75rem; padding: 1rem; }
.lp-step-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .5rem; }
.lp-alt { background: #eef3f0; }
.lp-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid #e5e9e7; }
.lp-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--brand); }
.lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lp-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: .5rem; transition: transform .15s; }
.lp-photo:hover img { transform: scale(1.02); }
.lp-video { border-radius: .5rem; overflow: hidden; background: #000; cursor: pointer; position: relative; }
.lp-video img { width: 100%; height: 100%; object-fit: cover; }
.lp-video iframe { border: 0; }
#lpBox .modal-content { overflow: hidden; }

/* Logo Koperasi Prima Investama */
.brand-logo { width: 32px; height: 32px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.auth-logo.auth-logo-img { background: #fff; width: 72px; height: 72px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.auth-logo.auth-logo-img img { width: 60px; height: 60px; object-fit: contain; }
