/* MoCash — clear, accessible installment colors (green = money/trust, orange = action) */
:root {
    --mocash-green: #0d7a3e;
    --mocash-green-dark: #065f2f;
    --mocash-green-light: #e8f5ee;
    --mocash-green-soft: #f4fbf7;
    --mocash-orange: #e87700;
    --mocash-orange-dark: #b85c00;
    --mocash-blue: #0066b3;
    --mocash-blue-light: #e8f4fc;
    --mocash-text: #1a1a1a;
    --mocash-muted: #5a6570;
    --mocash-border: #d5dee8;
    --mocash-white: #ffffff;
    /* legacy aliases for admin pages */
    --mocash-primary: var(--mocash-green);
    --mocash-secondary: var(--mocash-green-dark);
    --mocash-accent: #34a853;
    --mocash-dark: var(--mocash-green-dark);
}

.mocash-page {
    min-height: 60vh;
    background: #f7f9fb;
    color: var(--mocash-text);
}

/* ---- Hero ---- */
.mocash-hero {
    background: var(--mocash-green);
    color: var(--mocash-white);
    padding: 40px 0 48px;
    border-bottom: 4px solid var(--mocash-orange);
}

.mocash-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

@media (max-width: 991px) {
    .mocash-hero-inner {
        grid-template-columns: 1fr;
    }
}

.mocash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--mocash-white);
    color: var(--mocash-green-dark);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.mocash-badge i {
    color: var(--mocash-orange);
    font-size: 1.1rem;
}

.mocash-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--mocash-white);
}

.mocash-hero > .container-fluid > .mocash-hero-inner > div > p,
.mocash-hero p {
    font-size: 1.05rem;
    color: #e8f5ee;
    max-width: 560px;
    line-height: 1.55;
    opacity: 1;
}

.mocash-hero-steps {
    list-style: none;
    padding: 0;
    margin: 22px 0 26px;
    display: grid;
    gap: 10px;
}

.mocash-hero-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mocash-white);
}

.mocash-hero-steps li i {
    font-size: 1.25rem;
    color: #ffd966;
}

.mocash-hero-card {
    background: var(--mocash-white);
    border: none;
    border-radius: 12px;
    padding: 22px 24px;
    color: var(--mocash-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mocash-hero-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--mocash-green-dark);
}

.mocash-feature-list {
    display: grid;
    gap: 12px;
}

.mocash-feature-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--mocash-text);
}

.mocash-feature-list div i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mocash-green-light);
    color: var(--mocash-green);
    flex-shrink: 0;
}

.mocash-hero .btn-light {
    background: var(--mocash-white);
    color: var(--mocash-green-dark);
    border: 2px solid var(--mocash-white);
    font-weight: 700;
}

.mocash-hero .btn-light:hover {
    background: #f0fdf4;
    color: var(--mocash-green-dark);
    border-color: #f0fdf4;
}

/* ---- Color legend (pricing clarity) ---- */
.mocash-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--mocash-white);
    border: 1px solid var(--mocash-border);
    border-radius: 10px;
}

.mocash-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mocash-muted);
}

.mocash-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mocash-legend-dot-total { background: var(--mocash-green); }
.mocash-legend-dot-deposit { background: var(--mocash-blue); }
.mocash-legend-dot-monthly { background: var(--mocash-orange); }

/* ---- Section header ---- */
.mocash-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mocash-section-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--mocash-text);
}

.mocash-section-head p {
    margin: 0;
    color: var(--mocash-muted);
    font-size: 0.92rem;
}

.mocash-count-badge {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--mocash-green-light);
    color: var(--mocash-green-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #b7dfc8;
}

/* ---- Buttons ---- */
.btn-mocash {
    background: var(--mocash-orange);
    border-color: var(--mocash-orange);
    color: var(--mocash-white);
    font-weight: 700;
}

.btn-mocash:hover,
.btn-mocash:focus {
    background: var(--mocash-orange-dark);
    border-color: var(--mocash-orange-dark);
    color: var(--mocash-white);
}

/* ---- Product grid ---- */
.mocash-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.mocash-product-card {
    position: relative;
    border: 2px solid var(--mocash-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--mocash-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mocash-product-card:hover {
    border-color: var(--mocash-green);
    box-shadow: 0 6px 20px rgba(13, 122, 62, 0.12);
    transform: none;
}

.mocash-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mocash-product-highlight {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--mocash-orange);
    color: var(--mocash-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mocash-product-img-wrap {
    background: #f8fafb;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--mocash-border);
}

.mocash-product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.mocash-product-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c5cdd6;
}

.mocash-product-body {
    padding: 14px 14px 16px;
}

.mocash-product-brand {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mocash-muted);
    font-weight: 700;
}

.mocash-product-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 4px 0 10px;
    line-height: 1.35;
    color: var(--mocash-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mocash-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.mocash-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mocash-green-dark);
}

.mocash-retail-price {
    font-size: 0.82rem;
    color: var(--mocash-muted);
    text-decoration: line-through;
}

.mocash-price-label {
    font-size: 0.72rem;
    color: var(--mocash-muted);
    font-weight: 600;
}

.mocash-product-plan {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mocash-plan-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mocash-plan-tag-deposit {
    background: var(--mocash-blue-light);
    color: var(--mocash-blue);
}

.mocash-plan-tag-monthly {
    background: #fff4e5;
    color: var(--mocash-orange-dark);
}

/* ---- Book / records / detail ---- */
.mocash-book-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.mocash-book-product,
.mocash-book-form-card {
    border: 1px solid var(--mocash-border);
    border-radius: 12px;
}

.mocash-book-form-card {
    border-top: 4px solid var(--mocash-green);
}

.mocash-plan-summary {
    border: 1px solid var(--mocash-border);
    border-left: 4px solid var(--mocash-blue);
    border-radius: 10px;
}

.mocash-plan-summary .mocash-plan-lines li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.92rem;
}

.mocash-plan-summary .mocash-plan-lines li strong {
    color: var(--mocash-green-dark);
}

.mocash-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mocash-record-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid var(--mocash-border);
    border-radius: 12px;
    background: var(--mocash-white);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.mocash-record-card:hover {
    border-color: var(--mocash-green);
    box-shadow: none;
    color: inherit;
}

.mocash-record-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #f8fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--mocash-border);
}

.mocash-record-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mocash-record-img i {
    font-size: 1.8rem;
    color: #c5cdd6;
}

.mocash-record-arrow {
    color: var(--mocash-green);
    font-size: 1.2rem;
}

.mocash-detail-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafb;
    border: 1px solid var(--mocash-border);
}

.mocash-payment {
    border: 2px solid #ffc107 !important;
    border-left: 5px solid var(--mocash-orange) !important;
    background: #fffdf5;
}

.mocash-empty-state {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed var(--mocash-border);
    border-radius: 12px;
    background: var(--mocash-white);
}

.mocash-empty-state i {
    font-size: 3rem;
    color: var(--mocash-green);
}

.mocash-empty-state h3 {
    color: var(--mocash-text);
    font-weight: 700;
}

.mocash-empty-state p {
    color: var(--mocash-muted);
}

.mocash-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--mocash-green);
    font-weight: 700;
    text-decoration: none;
}

.mocash-back-link:hover {
    color: var(--mocash-green-dark);
}

.mocash-loading {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--mocash-green-light);
    color: var(--mocash-green-dark);
}

.mocash-loading .spinner-border {
    color: var(--mocash-green) !important;
}

/* ---- Store nav accents ---- */
.mocash-nav-link {
    background: var(--mocash-green-light) !important;
    color: var(--mocash-green-dark) !important;
    font-weight: 700 !important;
    border-radius: 6px;
    border: 1px solid #b7dfc8 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.mocash-header-action .action-label {
    color: var(--mocash-muted);
}

.mocash-header-action .action-title {
    color: var(--mocash-green);
    font-weight: 800;
}

.bg-purple,
.badge.bg-purple {
    background: var(--mocash-orange) !important;
    color: var(--mocash-white);
}

/* ---- Admin MoCash (keeps green theme) ---- */
.mocash-admin-stats .admin-stat-card {
    background: #fff;
    border: 1px solid var(--mocash-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.mocash-admin-stats .admin-stat-card span {
    display: block;
    font-size: 0.72rem;
    color: var(--mocash-muted);
    text-transform: uppercase;
}

.mocash-admin-stats .admin-stat-card strong {
    display: block;
    font-size: 1.3rem;
    margin-top: 4px;
    color: var(--mocash-green-dark);
}

.mocash-admin-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
}

.mocash-admin-payment-row:last-child {
    border-bottom: none;
}

.mocash-admin-detail {
    position: sticky;
    top: 12px;
}

.mocash-admin-hero {
    border-left: 4px solid var(--mocash-green);
    padding: 20px 22px;
}

.mocash-admin-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mocash-admin-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--mocash-green-light);
    color: var(--mocash-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mocash-admin-tabs .nav-link {
    color: var(--mocash-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
}

.mocash-admin-tabs .nav-link.active {
    color: var(--mocash-green-dark);
    border-bottom-color: var(--mocash-green);
    background: transparent;
}

.mocash-admin-form-card {
    border-top: 3px solid var(--mocash-green);
}

.mocash-admin-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafb;
    border: 1px solid var(--mocash-border);
}

.mocash-available-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.mocash-available-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mocash-border);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.mocash-available-item:hover {
    border-color: var(--mocash-green);
    background: var(--mocash-green-soft);
}

.mocash-available-item i {
    color: var(--mocash-green);
    font-size: 1.2rem;
}

.mocash-catalog-table td {
    vertical-align: middle;
}

.mocash-empty i {
    font-size: 3rem;
    color: #c5cdd6;
}
