        /* ---CSS--- */
        :root {
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --nav-height: 70px;
}

/* ---- DARK THEME ---- */
body.dark {
    --primary: #818cf8;
    --primary-light: #1e1b4b;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
}
body.dark .sticky-header {
    background-color: rgba(15, 23, 42, 0.95);
}
body.dark .bottom-nav {
    background: rgba(15, 23, 42, 0.97);
}
body.dark .modal {
    background: #1e293b;
    color: #f1f5f9;
}
body.dark .trend-modal-container {
    background: #1e293b;
}
body.dark .collect-modal {
    background: #1e293b;
}
body.dark input, body.dark select, body.dark textarea {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
}
body.dark .service-dropdown {
    background: #0f172a;
    color: #f1f5f9;
}
body.dark .filter-pill-group {
    background: #1e293b;
}
body.dark .filter-btn.active {
    background: #334155;
    color: #f1f5f9;
}
body.dark .summary-item {
    background: #1e293b;
    border-color: #334155;
}
body.dark .summary-item.highlight {
    background: #f1f5f9;
    color: #0f172a;
}
body.dark .summary-item.mpesa-card {
    background: #1e3a5f;
    border-color: #1e40af;
    color: #93c5fd;
}
body.dark .transaction-item {
    background: #1e293b;
}
body.dark .t-details {
    background: #0f172a;
    border-color: #334155;
}
body.dark .t-breakdown {
    background: #1e293b;
    border-color: #334155;
}
body.dark .search-results-list {
    background: #1e293b;
    border-color: #334155;
}
body.dark .search-item:hover {
    background: #334155;
}
body.dark .cart-container {
    background: #0f172a;
    border-color: #334155;
}
body.dark .switcher-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
body.dark .pending-item {
    background: #1e293b;
    border-color: #334155;
}
body.dark .pending-item.overdue {
    background: #2d1515;
    border-color: #7f1d1d;
}
body.dark .pending-item.due-soon {
    background: #2d1f0a;
    border-color: #78350f;
}
body.dark .stat-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark .receipt-container {
    background: #1e293b;
    border-color: #475569;
}
body.dark .date-input {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}
body.dark #dropZone {
    background: #0f172a;
    border-color: #334155;
}
body.dark .btn-outline {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}
body.dark .daily-summary {
    background: #1e293b;
    border-color: var(--primary);
}
body.dark .daily-summary-stats {
    background: #0f172a;
}
body.dark .pending-summary-bar {
    background: linear-gradient(135deg, #2d1f0a 0%, #1a1500 100%);
    border-color: #78350f;
}
body.dark .btn-primary {
    background: #4f46e5;
    color: #ffffff !important;
    opacity: 1 !important;
}
body.dark .btn-primary:hover {
    background: #4338ca;
    color: #ffffff !important;
}
body.dark .btn-primary i {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.dark .fab {
    background: #4f46e5;
    color: #ffffff;
    opacity: 1 !important;
}
body.dark .fab i {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.dark .pending-summary-total { color: #fbbf24; }
body.dark .pending-summary-label, body.dark .pending-summary-count { color: #d97706; }
body.dark #pendingAddForm {
    background: #0f172a;
    border-color: #334155;
}

/* ---- ADMIN DASHBOARD ---- */
.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.staff-card:active { transform: scale(0.99); }
.staff-card-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.staff-name { font-weight:800; font-size:0.95rem; }
.staff-role-badge {
    font-size:0.6rem; font-weight:700; padding:2px 8px;
    border-radius:10px; text-transform:uppercase; letter-spacing:0.5px;
}
.badge-admin { background:#fef3c7; color:#92400e; }
.badge-staff { background:var(--primary-light); color:var(--primary); }
.staff-stats { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; }
.staff-stat { text-align:center; background:#f9fafb; border-radius:8px; padding:6px; }
.staff-stat-val { font-weight:800; font-size:0.9rem; color:var(--text-main); }
.staff-stat-lbl { font-size:0.6rem; color:var(--text-muted); text-transform:uppercase; font-weight:700; margin-top:2px; }
body.dark .staff-stat { background:#0f172a; }
body.dark .staff-card { background:var(--bg-card); }

.delete-request-item {
    background:#fff5f5; border:1px solid #fecaca; border-radius:10px;
    padding:12px; margin-bottom:8px;
}
body.dark .delete-request-item { background:#2d1515; border-color:#7f1d1d; }
.del-req-service { font-weight:700; font-size:0.88rem; color:var(--text-main); }
.del-req-meta { font-size:0.75rem; color:var(--text-muted); margin-top:3px; }
.del-req-actions { display:flex; gap:8px; margin-top:10px; }
.del-approve-btn { flex:1; padding:7px; background:#dcfce7; border:1px solid #a7f3d0; color:#065f46; border-radius:8px; font-weight:700; font-size:0.8rem; cursor:pointer; }
.del-reject-btn { padding:7px 12px; background:#fee2e2; border:1px solid #fecaca; color:#b91c1c; border-radius:8px; font-weight:700; font-size:0.8rem; cursor:pointer; }

.pending-delete-tag {
    display:inline-block; background:#fff7ed; border:1px solid #fed7aa;
    color:#c2410c; font-size:0.6rem; font-weight:700;
    padding:1px 6px; border-radius:10px; margin-left:6px; vertical-align:middle;
}

/* ---- SUBSCRIPTION & UPGRADE ---- */
.upgrade-plan-card {
    border: 2px solid var(--border); border-radius: 14px;
    padding: 16px; cursor: pointer; transition: all 0.2s;
    background: var(--bg-body);
}
.upgrade-plan-card.selected {
    border-color: var(--primary); background: var(--primary-light);
}
.upgrade-plan-card:hover { border-color: var(--primary); }

.plan-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.3px;
    text-transform: uppercase;
}
.plan-badge.free { background: #f3f4f6; color: #6b7280; }
.plan-badge.pro { background: #ede9fe; color: #7c3aed; }
.plan-badge.business { background: #fef3c7; color: #92400e; }

.locked-overlay {
    position: relative; overflow: hidden;
}
.locked-overlay::after {
    content: '🔒 Pro Feature — Tap to Upgrade';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: var(--primary);
    cursor: pointer; backdrop-filter: blur(2px);
    border-radius: inherit;
}

/* ---- BUSINESS SETTINGS ---- */
.biz-tab {
    flex: 1; padding: 10px 8px; border: none; background: none;
    font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: all 0.2s; display: flex; align-items: center;
    justify-content: center; gap: 5px;
}
.biz-tab.active {
    color: var(--primary); border-bottom-color: var(--primary);
}
.biz-tab:hover { color: var(--primary); }

.sub-action-btn {
    width: 100%; padding: 12px; border-radius: 12px;
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
    border: none; transition: all 0.2s; display: flex;
    align-items: center; justify-content: center; gap: 8px;
}
.sub-action-btn.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}
.sub-action-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }
.sub-action-btn.outline {
    background: white; border: 1.5px solid var(--border);
    color: var(--text-main);
}
.sub-action-btn.outline:hover { border-color: var(--primary); color: var(--primary); }
.sub-action-btn.danger {
    background: #fff1f2; border: 1.5px solid #fecdd3;
    color: #be123c;
}

.payment-history-item {
    background: var(--bg-body); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
    display: flex; justify-content: space-between; align-items: center;
}

.biz-currency-opt {
    padding: 9px 6px; border: 2px solid var(--border); border-radius: 10px;
    text-align: center; cursor: pointer; font-weight: 700; font-size: 0.82rem;
    transition: all 0.15s; background: white; color: var(--text-main);
}
.biz-currency-opt.selected {
    border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}
.biz-type-opt {
    padding: 10px 8px; border: 2px solid var(--border); border-radius: 12px;
    text-align: center; cursor: pointer; font-weight: 700; font-size: 0.8rem;
    transition: all 0.15s; background: white; color: var(--text-main); line-height: 1.4;
}
.biz-type-opt .biz-type-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.biz-type-opt.selected {
    border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}

/* ---- SERVICES EDITOR ---- */
.svc-item {
    display: flex; align-items: center; gap:10px;
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.svc-item:last-child { border-bottom: none; }
.svc-item:active { background: var(--bg-body); }
.svc-cat-tag {
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.4px; background: var(--primary-light);
    color: var(--primary); padding: 2px 7px; border-radius: 6px;
}
.svc-name { flex: 1; font-weight: 600; font-size: 0.88rem; }
.svc-price { font-weight: 800; font-size: 0.88rem; color: var(--primary); margin-right: 4px; }
.svc-edit-btn {
    background: none; border: none; color: var(--text-muted);
    font-size: 0.85rem; cursor: pointer; padding: 4px 6px;
    border-radius: 6px; transition: background 0.15s;
}
.svc-edit-btn:hover { background: var(--bg-body); }
.svc-delete-btn {
    background: none; border: none; color: #fca5a5;
    font-size: 0.85rem; cursor: pointer; padding: 4px 6px;
    border-radius: 6px; transition: background 0.15s;
}
.svc-delete-btn:hover { background: #fee2e2; }
.svc-cat-header {
    padding: 6px 16px 4px;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.6px; color: var(--text-muted);
    background: var(--bg-body); border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
}

/* ---- BUSINESS SETUP SCREEN ---- */
#setupScreen {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    display: none; flex-direction: column;
    align-items: center; justify-content: flex-start;
    z-index: 9998; padding: 20px;
    overflow-y: auto;
}
#setupScreen::before {
    content: ''; position: fixed; top:-60px; right:-60px;
    width: 250px; height: 250px;
    background: rgba(99,102,241,0.2); border-radius: 50%;
    pointer-events: none;
}
.setup-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 28px 24px;
    width: 100%; max-width: 400px;
    margin: 20px auto;
    position: relative; z-index: 1;
}
.setup-step-indicator {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 24px;
}
.setup-step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.2); transition: all 0.3s;
}
.setup-step-dot.active {
    background: white; width: 24px; border-radius: 4px;
}
.setup-step-dot.done { background: #6366f1; }
.setup-title {
    color: white; font-size: 1.3rem; font-weight: 900;
    margin: 0 0 6px; text-align: center;
}
.setup-subtitle {
    color: rgba(255,255,255,0.55); font-size: 0.8rem;
    text-align: center; margin: 0 0 24px; line-height: 1.5;
}
.setup-input {
    width: 100%; padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
    font-size: 0.95rem; font-family: inherit;
    background: rgba(255,255,255,0.08); color: white;
    outline: none; box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 12px;
}
.setup-input::placeholder { color: rgba(255,255,255,0.35); }
.setup-input:focus {
    border-color: rgba(165,180,252,0.7);
    background: rgba(255,255,255,0.12);
}
.setup-label {
    color: rgba(255,255,255,0.7); font-size: 0.78rem;
    font-weight: 700; margin-bottom: 8px; display: block;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.biz-type-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 16px;
}
.biz-type-btn {
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 14px; padding: 14px 10px;
    color: rgba(255,255,255,0.7); cursor: pointer;
    text-align: center; transition: all 0.2s;
    font-family: inherit;
}
.biz-type-btn:active { transform: scale(0.97); }
.biz-type-btn.selected {
    background: rgba(99,102,241,0.3);
    border-color: #6366f1; color: white;
}
.biz-type-icon { font-size: 1.8rem; margin-bottom: 6px; display: block; }
.biz-type-label { font-size: 0.78rem; font-weight: 700; }
.currency-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.currency-btn {
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 10px 6px;
    color: rgba(255,255,255,0.7); cursor: pointer;
    text-align: center; transition: all 0.2s;
    font-family: inherit; font-size: 0.8rem; font-weight: 700;
}
.currency-btn.selected {
    background: rgba(99,102,241,0.3);
    border-color: #6366f1; color: white;
}
.currency-symbol { font-size: 1.1rem; font-weight: 900; display: block; margin-bottom: 2px; }
.setup-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; border: none; border-radius: 14px;
    font-weight: 800; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    font-family: inherit; margin-top: 4px;
}
.setup-btn:active { transform: scale(0.98); opacity: 0.9; }
.setup-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.setup-error {
    background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5; padding: 10px 14px; border-radius: 10px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; display: none;
}
.services-preview {
    background: rgba(0,0,0,0.2); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 14px; max-height: 180px;
    overflow-y: auto;
}
.service-preview-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8); font-size: 0.82rem;
}
.service-preview-item:last-child { border-bottom: none; }
.service-preview-price { color: #a5b4fc; font-weight: 700; }

/* ---- LOGIN SCREEN ---- */
#loginScreen {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; padding: 24px 20px;
    overflow: hidden;
}
#loginScreen::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: rgba(99,102,241,0.25);
    border-radius: 50%; pointer-events: none;
}
#loginScreen::after {
    content: '';
    position: absolute; bottom: -100px; left: -60px;
    width: 280px; height: 280px;
    background: rgba(139,92,246,0.2);
    border-radius: 50%; pointer-events: none;
}
.login-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    padding: 32px 26px;
    width: 100%; max-width: 360px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative; z-index: 1;
}
.login-logo {
    text-align: center; margin-bottom: 26px;
}
.login-logo-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(99,102,241,0.5);
}
.login-logo h1 {
    font-size: 1.5rem; font-weight: 900;
    color: white; margin: 0 0 4px;
    letter-spacing: -0.5px;
}
.login-logo p {
    font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 0;
    letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600;
}
.login-tabs {
    display: flex; background: rgba(0,0,0,0.25); padding: 3px;
    border-radius: 14px; margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}
.login-tab {
    flex: 1; padding: 9px; border: none; background: transparent;
    border-radius: 11px; font-weight: 700; font-size: 0.82rem;
    color: rgba(255,255,255,0.55); cursor: pointer; transition: all 0.2s;
}
.login-tab.active {
    background: rgba(255,255,255,0.15);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.login-input-wrap {
    position: relative; margin-bottom: 12px;
}
.login-input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.4); font-size: 0.85rem; pointer-events: none;
}
.login-input {
    width: 100%; padding: 13px 42px 13px 38px;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
    font-size: 0.92rem; font-family: inherit;
    background: rgba(255,255,255,0.08); color: white;
    outline: none; box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}
.login-input::placeholder { color: rgba(255,255,255,0.35); }
.login-input:focus {
    border-color: rgba(165,180,252,0.7);
    background: rgba(255,255,255,0.12);
}
.pw-toggle {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.45);
    cursor: pointer; padding: 4px; font-size: 0.85rem;
    transition: color 0.2s;
}
.pw-toggle:hover { color: rgba(255,255,255,0.8); }
.login-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; border: none; border-radius: 14px;
    font-weight: 800; font-size: 0.95rem; cursor: pointer;
    margin-top: 6px; transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(99,102,241,0.45);
    letter-spacing: 0.3px;
}
.login-btn:active { transform: scale(0.98); opacity: 0.9; }
.login-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5; padding: 10px 14px; border-radius: 10px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
    display: none;
}
.login-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0; color: rgba(255,255,255,0.25); font-size: 0.72rem;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,0.12);
}
.login-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.7s linear infinite; vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sync-indicator {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7c3aed, var(--primary));
    background-size: 200% 100%;
    z-index: 5000;
    display: none;
    animation: syncPulse 1.2s linear infinite;
}
.sync-indicator.show { display: block; }
@keyframes syncPulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Dark theme toggle switch */
.theme-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; cursor: pointer; font-size: 0.8rem;
}
.toggle-switch {
    width: 40px; height: 22px; background: #cbd5e1;
    border-radius: 11px; position: relative; transition: background 0.3s;
    flex-shrink: 0; cursor: pointer; border: none; outline: none;
}
.toggle-switch.on { background: var(--primary); }
.toggle-knob {
    width: 18px; height: 18px; background: white;
    border-radius: 50%; position: absolute; top: 2px; left: 2px;
    transition: left 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-switch.on .toggle-knob { left: 20px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Apply dark instantly before JS loads (prevents white flash) */
html.dark-init body { background-color: #0f172a; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 120px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 5px;
}

header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { 
    font-weight: 800; font-size: 1.1rem; color: var(--primary); 
    display: flex; align-items: center; gap: 8px; 
}
.brand-icon {
    width: 32px; height: 32px; background: var(--primary-light); color: var(--primary);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

.date-input { 
    padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; 
    background: white; font-family: inherit; font-weight: 600; font-size: 0.9rem;
    color: var(--text-main); outline: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer; transition: all 0.2s;
}
.date-input:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15); }
.date-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* Custom date picker styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    padding: 4px;
    transition: all 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--primary-light);
}

/* Center and style the calendar dropdown */
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}
input[type="date"]::-webkit-datetime-edit-text {
    color: var(--text-muted);
    padding: 0 2px;
}
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-main);
    padding: 2px;
    border-radius: 4px;
}
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background-color: var(--primary-light);
    color: var(--primary);
    outline: none;
}

.dashboard-row { 
    max-width: 1000px; margin: 10px auto; padding: 0 15px; 
    display: flex; gap: 12px; 
}

.card {
    background: var(--bg-card); border-radius: 16px; padding: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.total-label { color: var(--text-muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.total-amount { font-size: 1.6rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.split-stats { display: flex; gap: 12px; margin-top: 6px; font-size: 0.8rem; font-weight: 600; }

.target-header { display: flex; justify-content: space-between; margin-bottom: 5px; align-items: center; }
.target-input { border: none; border-bottom: 1px dashed #ccc; width: 60px; text-align: right; font-weight: bold; font-size: 1rem; background: transparent; color: var(--text-muted); padding:0; }
.progress-bg { height: 6px; background: #f3f4f6; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; width: 0%; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease; border-radius: 10px; }
.target-status { font-size: 0.85rem; font-weight: bold; display: flex; justify-content: space-between; align-items: center; margin-top: 2px;}
.card.goal-hit { border: 1px solid var(--success); background: #f0fdf4; }

.controls-container { max-width: 1000px; margin: 0 auto; padding: 5px 15px; display: flex; justify-content: center; gap: 8px; }
.filter-pill-group { display: flex; background: #eef0f4; padding: 3px; border-radius: 12px; }
.filter-btn { border: none; background: transparent; padding: 6px 14px; border-radius: 10px; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s; }
.filter-btn.active { background: white; color: var(--text-main); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.filter-btn.active-blue { background: var(--primary); color: white; box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3); }

.summary-strip { max-width: 1000px; margin: 12px auto 5px auto; padding: 0 15px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.summary-item { background: white; border: 1px solid var(--border); padding: 8px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.summary-item.highlight { background: var(--text-main); color: white; border: none; }
.summary-item.mpesa-card { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.si-label { font-size: 0.6rem; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; opacity: 0.8; }
.si-val { font-weight: 800; font-size: 0.95rem; }

.list-container { max-width: 1000px; margin: 15px auto; padding: 0 15px; }
.transaction-list { list-style: none; padding: 0; margin: 0; }
.transaction-item { 
    background: var(--bg-card); margin-bottom: 10px; border-radius: 12px; 
    border: 1px solid transparent; box-shadow: 0 1px 2px rgba(0,0,0,0.03); 
    overflow: hidden; cursor: pointer; transition: 0.2s;
}
.transaction-item:active { transform: scale(0.99); }
.t-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; }
.t-service { font-weight: 600; font-size: 0.95rem; color: var(--text-main); }
.t-amount { font-weight: 800; font-size: 1rem; }
.t-amount.income { color: var(--success); }
.t-amount.expense { color: var(--danger); }
.t-details { 
    background: #f8fafc; padding: 15px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem;
}
.t-row-detail { display: flex; justify-content: space-between; color: var(--text-muted); }
.t-breakdown { font-size: 0.8rem; color: #4b5563; background: white; padding: 8px; border-radius: 6px; border: 1px solid #e5e7eb; margin-top: 5px; }

.actions-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.action-btn { background: #fee2e2; border: 1px solid #fecaca; cursor: pointer; padding: 8px 12px; border-radius: 6px; font-size: 0.8rem; color: #b91c1c; font-weight: 600; }
.edit-btn { background: #e0e7ff; border: 1px solid #c7d2fe; cursor: pointer; padding: 8px 12px; border-radius: 6px; font-size: 0.8rem; color: #4338ca; font-weight: 600; }

/* NEW: Receipt Button */
.receipt-btn { 
    background: #d1fae5; border: 1px solid #a7f3d0; cursor: pointer; 
    padding: 8px 12px; border-radius: 6px; font-size: 0.8rem; 
    color: #065f46; font-weight: 600; 
}

.bottom-nav { 
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05); 
    display: flex; justify-content: space-evenly; 
    padding: 10px 0; padding-bottom: max(15px, env(safe-area-inset-bottom));
    z-index: 900; box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}
.nav-item { 
    background: none; border: none; cursor: pointer; 
    display: flex; flex-direction: column; align-items: center; gap: 5px; 
    color: #9ca3af; font-size: 0.7rem; font-weight: 600; flex: 1; max-width: 80px;
}
.icon-box {
    font-size: 1.2rem; transition: 0.2s; 
    padding: 5px 12px; border-radius: 20px;
}
.nav-item.active { color: var(--primary); }
.nav-item.active .icon-box { background: var(--primary-light); color: var(--primary); }

.fab { 
    position: fixed; bottom: 100px; right: 20px; 
    background: var(--text-main); color: white; 
    width: 54px; height: 54px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 22px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); 
    cursor: pointer; border: none; z-index: 800; 
    transition: transform 0.2s; 
}
.fab:active { transform: scale(0.95); }

.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); 
    display: none; justify-content: center; align-items: flex-end; z-index: 2000; 
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.modal-overlay.active { display: flex; }
.modal { 
    background: white; width: 100%; max-width: 480px; padding: 20px 18px; 
    border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.2); 
    animation: slideUp 0.25s ease-out;
    max-height: 88vh;
    overflow-y: auto;
}
/* Pull handle for bottom sheets */
.modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 14px;
}

/* NEW: Larger modal for charts and receipts */
.modal-large {
    max-width: 500px;
    width: 92%;
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { background: none; border: none; font-size: 1.5rem; color: #9ca3af; cursor: pointer; }

.switcher-row { display: flex; gap: 10px; margin-bottom: 20px; }
.switcher-btn { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: white; cursor: pointer; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.switcher-btn.active-inc { background: #dcfce7; color: #166534; border-color: #166534; }
.switcher-btn.active-exp { background: #fee2e2; color: #991b1b; border-color: #991b1b; }
.switcher-btn.active-method { background: #e0e7ff; color: #4338ca; border-color: #4338ca; }

.service-dropdown { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: #f9fafb; font-size: 1rem; color: var(--text-main); outline: none; }
.qty-input { width: 60px; padding: 12px 8px; border-radius: 10px; border: 1px solid var(--border); text-align: center; font-size: 0.95rem; height: 44px; box-sizing: border-box; }
.price-input { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 0.95rem; height: 44px; box-sizing: border-box; }
.add-btn { background: var(--primary); color: white; border: none; padding: 0 18px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 0.9rem; height: 44px; min-width: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.8rem; color: #374151; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; }
.btn-primary { width: 100%; padding: 14px; background: var(--text-main); color: white; border: none; border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.btn-outline { width: 100%; padding: 12px; border: 1px solid var(--border); background: white; color: var(--text-main); border-radius: 12px; font-weight: 600; cursor: pointer; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 8px;}

.cart-container { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; padding: 10px; }
.cart-list { list-style: none; padding: 0; margin: 0; max-height: 120px; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e5e7eb; font-size: 0.9rem; }
.cart-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5e7eb; font-weight: 800; font-size: 1.1rem; }
.cart-del-btn { color: #ef4444; background: none; border: none; cursor: pointer; }

#report-print-area { display: none; }
@media print {
    body { background: white; color: black; padding: 0; }
    .sticky-header, .controls-container, .fab, .bottom-nav, .modal-overlay, .dashboard-row, .summary-strip, .no-print, .action-btn, .edit-btn { display: none !important; }
    #report-print-area { display: block; width: 100%; font-family: 'Courier Prime', monospace; }
    .print-header { text-align: center; margin-bottom: 20px; border-bottom: 1px dashed #000; padding-bottom: 15px; }
    .print-header h1 { margin: 0; font-size: 20px; text-transform: uppercase; letter-spacing: 2px; }
    .print-summary-grid { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid #ccc; padding-bottom: 20px; }
    .p-card { text-align: center; flex: 1; }
    .p-card-title { font-size: 10px; text-transform: uppercase; color: #555; font-weight: bold; }
    .p-card-value { font-size: 16px; font-weight: bold; margin-top: 5px; }
    .print-table { width: 100%; border-collapse: collapse; font-size: 11px; }
    .print-table th { text-align: left; border-bottom: 1px solid #000; padding: 5px; text-transform: uppercase; }
    .print-table td { padding: 5px; border-bottom: 1px solid #ddd; }
    .print-footer { position: fixed; bottom: 0; left: 0; width: 100%; text-align: center; font-size: 10px; color: #666; border-top: 1px solid #ccc; padding-top: 10px; }
}
@media (max-width: 600px) { .dashboard-row { flex-direction: row; } .card { padding: 15px; } }
@media print {
    @page {
        margin: 15mm;
        size: auto;
    }
    body { margin: 0; padding: 0; }
    tr { page-break-inside: avoid; page-break-after: auto; }
    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
    .no-print, .fab-container, .modal, .filters, .input-section { display: none !important; }
}

.search-results-list {
    position: absolute; top: 100%; left: 0; right: 0; background: white;
    border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 10px 10px;
    max-height: 200px; overflow-y: auto; z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); display: none;
}
.search-item {
    padding: 12px 15px; border-bottom: 1px solid #f3f4f6; cursor: pointer;
    font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center;
}
.search-item:hover { background-color: #f0fdf4; color: var(--primary); }
.search-item strong { font-weight: 700; color: #374151; }

/* NEW: Receipt Styles */
.receipt-container {
    background: white;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier Prime', monospace;
    max-width: 400px;
    margin: 0 auto;
}
.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.receipt-header h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
}
.receipt-header p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}
.receipt-body {
    margin: 15px 0;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 14px;
}
.receipt-items {
    margin: 15px 0;
    border-top: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
}
.receipt-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 13px;
}
.receipt-total {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
}
.receipt-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #000;
    font-size: 11px;
    color: #666;
}

/* NEW: Chart Container */
.chart-container {
    width: 100%;
    height: 180px;
    margin: 10px 0;
}

/* NEW: Dedicated Trend Modal Styles */
.trend-modal-container {
    background: white;
    width: 90%;
    max-width: 360px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.2s ease-out;
}

.trend-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trend-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.trend-chart-wrapper {
    width: 100%;
    height: 170px;
    margin: 10px 0;
}

.trend-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.trend-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.trend-stat {
    text-align: center;
}

.trend-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.trend-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.trend-profit {
    color: var(--success);
}

.trend-expense {
    color: var(--danger);
}

/* NEW: Stats Card Styles */
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.stat-icon.purple {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon.green {
    background: #dcfce7;
    color: var(--success);
}

.stat-icon.orange {
    background: #fed7aa;
    color: var(--warning);
}

.stat-icon.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

.stat-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* NEW: Daily Summary Notification */
.daily-summary {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 340px;
    animation: slideUpBounce 0.5s ease-out;
    display: none;
}

.daily-summary.show {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUpBounce {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
    80% {
        transform: translateX(-50%) translateY(5px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.daily-summary-header {
    text-align: center;
    margin-bottom: 15px;
}

.daily-summary-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.daily-summary-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.daily-summary-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.daily-summary-stats {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
}

.daily-summary-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.9rem;
}

.daily-summary-label {
    color: var(--text-muted);
    font-weight: 600;
}

.daily-summary-value {
    font-weight: 800;
}

.daily-summary-close {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Pending Payments Styles */
.pending-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--danger);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    border-radius: 8px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
    line-height: 16px;
}
.nav-item { position: relative; }

.pending-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: 0.2s;
}
.pending-item.overdue {
    border-color: #fecaca;
    background: #fff5f5;
}
.pending-item.due-soon {
    border-color: #fed7aa;
    background: #fffbf5;
}
.pending-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 13px 15px;
    cursor: pointer;
}
.pending-client-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}
.pending-service {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.pending-amount {
    font-weight: 800;
    font-size: 1rem;
    color: var(--warning);
    text-align: right;
}
.pending-due-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-align: right;
    margin-top: 2px;
}
.pending-due-label.overdue { color: var(--danger); }
.pending-due-label.due-soon { color: #d97706; }
.pending-due-label.ok { color: var(--success); }

.pending-actions {
    display: flex;
    gap: 8px;
    padding: 0 15px 13px;
}
.pending-mark-btn {
    background: #dcfce7;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}
.pending-delete-btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.pending-summary-bar {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pending-summary-total {
    font-size: 1.3rem;
    font-weight: 900;
    color: #92400e;
}
.pending-summary-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #b45309;
    letter-spacing: 0.5px;
}
.pending-summary-count {
    font-size: 0.75rem;
    color: #b45309;
    font-weight: 600;
    margin-top: 3px;
}
.pending-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.pending-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.pending-empty-text { font-size: 0.9rem; font-weight: 600; }

/* Collect Payment Modal */
.collect-modal-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center;
    z-index: 3500;
}
.collect-modal-overlay.active { display: flex; }
.collect-modal {
    background: white; width: 90%; max-width: 340px;
    border-radius: 20px; padding: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.2s ease-out;
}
.collect-method-btn {
    flex: 1; padding: 14px 10px; border-radius: 12px;
    border: 2px solid var(--border); background: white;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; transition: all 0.15s; color: var(--text-muted);
}
.collect-method-btn.active-cash {
    background: #dcfce7; border-color: #16a34a; color: #15803d;
}
.collect-method-btn.active-epay {
    background: #e0e7ff; border-color: var(--primary); color: var(--primary);
}
.partial-badge {
    display: inline-block; background: #fff7ed;
    border: 1px solid #fed7aa; color: #c2410c;
    font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; margin-top: 4px;
}
