
        html { overflow-x: hidden; }

        /* ===== TOAST ===== */
        #toast-container {
            position: fixed; bottom: 20px; right: 20px;
            z-index: 999999; display: flex; flex-direction: column; gap: 8px;
        }
        .toast-msg {
            background: white; padding: 10px 14px; border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex; align-items: center; gap: 8px;
            min-width: 220px; max-width: 320px;
            animation: slideInRight 0.3s ease;
            font-size: 13px;
        }
        .toast-msg.success { border-left: 4px solid #10b981; }
        .toast-msg.error   { border-left: 4px solid #ef4444; }
        .toast-msg.warning { border-left: 4px solid #f59e0b; }
        .toast-msg.info    { border-left: 4px solid #3b82f6; }
        @keyframes slideInRight { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
        @keyframes slideInUp    { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

        /* ===== MODAL ===== */
        .modal-overlay {
            position: fixed !important; top:0 !important; left:0 !important;
            width:100% !important; height:100% !important;
            background:rgba(0,0,0,0.6) !important;
            z-index:99999 !important;
            display:flex !important; align-items:center !important; justify-content:center !important;
            padding:15px !important;
        }
        .modal-box {
            background:white !important; border-radius:14px !important;
            max-width:400px !important; width:100% !important;
            max-height:90vh !important; overflow:hidden !important;
            display:flex !important; flex-direction:column !important;
            box-shadow:0 20px 60px rgba(0,0,0,0.3) !important;
            animation:slideInUp 0.3s ease !important;
        }
        .modal-header-bar {
            padding:14px 18px !important; border-bottom:1px solid #e5e7eb !important;
            display:flex !important; justify-content:space-between !important; align-items:center !important;
            background:linear-gradient(135deg,#100958 0%,#11948f 100%) !important; color:white !important;
        }
        .modal-header-bar h5 { margin:0 !important; font-size:15px !important; font-weight:600 !important; color:white !important; }
        .modal-close-btn {
            background:rgba(255,255,255,0.2) !important; border:none !important; color:white !important;
            width:26px !important; height:26px !important; border-radius:50% !important;
            cursor:pointer !important; font-size:14px !important;
            display:flex !important; align-items:center !important; justify-content:center !important;
        }
        .modal-close-btn:hover { background:rgba(255,255,255,0.35) !important; }
        .modal-body-content { padding:16px 18px !important; overflow-y:auto !important; flex:1 !important; }

        /* ===== SIDEBAR OVERLAY ===== */
        #sidebarOverlay {
            display:none; position:fixed; top:0; left:0; right:0; bottom:0;
            background:rgba(0,0,0,0.5); z-index:10000; cursor:pointer;
        }
        /* #sidebarOverlay.active { display:block; } */

        /* ===== SIDEBAR ===== */
        .dashboard-slidebar {
            background:white; width:260px; min-width:260px; flex-shrink:0;
        }
        @media (max-width:1199px) {
            .dashboard-slidebar {
                position:fixed !important; top:0 !important; left:0 !important;
                width:300px !important; min-width:320px !important;
                height:100dvh !important; overflow-y:auto !important;
                z-index:10001 !important;
                box-shadow:6px 0 30px rgba(0,0,0,0.25) !important;
                transform:translateX(-100%) !important; transition:transform 0.3s ease !important;
            }
            .dashboard-slidebar.sidebar-open { transform:translateX(0) !important; }
        }
        #sidebarToggle { display:none; }
        @media (max-width:1199px) { #sidebarToggle { display:block; } }
        #sidebarCloseBtn { display:none; }
        @media (max-width:1199px) { #sidebarCloseBtn { display:flex; } }
        @media (min-width:1200px) { #sidebarCloseBtn { display:none !important; } }

        /* ===== PROFILE PHOTO ===== */
        .profile-photo-wrap { position:relative; width:80px; height:80px; margin:0 auto 4px; }
        .photo-circle {
            width:80px; height:80px; border-radius:50%;
            border:3px solid #11948f; overflow:hidden; background:#f3f4f6;
        }
        .photo-circle img { width:100%; height:100%; object-fit:cover; display:block; }
        .photo-hover-overlay {
            position:absolute; inset:0; border-radius:50%;
            background:rgba(0,0,0,0); display:flex; align-items:center; justify-content:center;
            cursor:pointer; transition:background 0.2s;
        }
        .profile-photo-wrap:hover .photo-hover-overlay { background:rgba(0,0,0,0.38); }
        .photo-hover-overlay i { color:white; font-size:18px; opacity:0; transition:opacity 0.2s; }
        .profile-photo-wrap:hover .photo-hover-overlay i { opacity:1; }
        .photo-actions { display:flex; justify-content:center; gap:6px; margin-top:6px; }
        .photo-action-btn {
            width:28px; height:28px; border-radius:50%; border:none;
            display:flex; align-items:center; justify-content:center;
            cursor:pointer; font-size:12px; color:white;
            transition:transform 0.2s, box-shadow 0.2s;
        }
        .photo-action-btn:hover { transform:scale(1.15); box-shadow:0 4px 10px rgba(0,0,0,0.2); }
        .btn-cam-photo  { background:#11948f; }
        .btn-edit-photo { background:#6B46C1; }
        .btn-del-photo  { background:#ef4444; }

        /* ===== SUCCESS MODAL ===== */
        .success-modal {
            display:none; position:fixed; top:0; left:0; width:100%; height:100%;
            background:rgba(0,0,0,0.6); z-index:999999;
            align-items:center; justify-content:center; padding:15px;
        }
        .success-modal-content {
            background:white; border-radius:16px; max-width:420px; width:100%;
            overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,0.3);
            animation:slideInUp 0.3s ease;
        }
        .success-modal-header {
            background:linear-gradient(135deg,#10b981,#059669);
            padding:24px; text-align:center; color:white;
        }
        .success-icon { font-size:48px; margin-bottom:8px; }
        .success-modal-header h2 { margin:0; font-size:20px; font-weight:700; }
        .success-modal-body { padding:16px 20px; max-height:50vh; overflow-y:auto; }
        .detail-row {
            display:flex; justify-content:space-between; padding:7px 0;
            border-bottom:1px solid #f3f4f6; font-size:13px;
        }
        .detail-label { color:#6b7280; font-weight:500; }
        .detail-value { font-weight:600; color:#1f2937; text-align:right; }
        .success-modal-footer { padding:14px 20px; border-top:1px solid #f3f4f6; text-align:center; }

        /* ===== BILL CATEGORY CARDS — COMPACT ===== */
        .bill-category-card {
            text-align:center; padding:10px 8px; border-radius:10px;
            background:white; border:2px solid #f3f4f6;
            transition:all 0.25s ease; cursor:pointer; position:relative; overflow:hidden;
        }
        .bill-category-card:hover {
            transform:translateY(-3px);
            box-shadow:0 8px 20px rgba(0,0,0,0.1);
            border-color:#11948f;
        }
        .bill-icon-wrapper {
            width:44px; height:44px; border-radius:10px;
            display:flex; align-items:center; justify-content:center;
            margin:0 auto 6px; font-size:1.3rem;
            box-shadow:0 3px 10px rgba(0,0,0,0.12);
            position:relative; overflow:hidden;
        }
        .bill-category-card p { margin-bottom:0; font-size:14px; font-weight:600; }
        .bill-category-card small { font-size:10px; opacity:0.75; }

        /* gradients */
        .bg-gradient-to-br { background-image:linear-gradient(to bottom right,var(--tw-gradient-stops)); }
        .from-yellow-400{--tw-gradient-from:#fbbf24}.to-orange-500{--tw-gradient-to:#f97316}
        .from-blue-500{--tw-gradient-from:#3b82f6}.to-indigo-600{--tw-gradient-to:#7c3aed}
        .from-purple-500{--tw-gradient-from:#a855f7}.to-pink-600{--tw-gradient-to:#ec4899}
        .from-cyan-500{--tw-gradient-from:#06b6d4}.to-blue-600{--tw-gradient-to:#2563eb}
        .from-red-500{--tw-gradient-from:#ef4444}.to-orange-600{--tw-gradient-to:#fb923c}
        .from-green-500{--tw-gradient-from:#10b981}.to-teal-600{--tw-gradient-to:#14b8a6}
        .from-orange-500{--tw-gradient-from:#fb923c}.to-red-600{--tw-gradient-to:#dc2626}
        .from-indigo-500{--tw-gradient-from:#6366f1}.to-purple-600{--tw-gradient-to:#9333ea}
        .from-emerald-500{--tw-gradient-from:#10b981}.to-teal-700{--tw-gradient-to:#0f766e}

        /* ===== STEP INDICATOR — with green fill line ===== */
        .step-indicator-wrap {
            position:relative; display:flex; justify-content:space-between;
            align-items:center; margin-bottom:20px;
        }
        /* background track */
        .step-indicator-wrap::before {
            content:''; position:absolute; top:50%; left:0; right:0;
            height:3px; background:#e0e0e0; transform:translateY(-50%); z-index:0;
        }
        /* green progress line — width controlled via JS */
        .step-progress-line {
            position:absolute; top:50%; left:0;
            height:3px; background:linear-gradient(90deg,#10b981,#059669);
            transform:translateY(-50%); z-index:1;
            transition:width 0.5s ease; width:0%;
        }

        a{
            font-size: 14px !important;
        }
        .step-dot {
            width:34px; height:34px; border-radius:50%;
            border:2px solid #e0e0e0; background:white;
            display:flex; align-items:center; justify-content:center;
            font-weight:700; font-size:13px; color:#9ca3af;
            position:relative; z-index:2; transition:all 0.3s ease;
            flex-shrink:0;
        }
        .step-dot.active  { background:#667eea; border-color:#667eea; color:white; }
        .step-dot.done    { background:#10b981; border-color:#10b981; color:white; }

        /* ===== COMPACT FORM ===== */
        .form-label { font-size:12px; font-weight:600; margin-bottom:3px; color:#374151; }
        .form-label.required::after { content:" *"; color:#ef4444; }
        .form-control, .form-select {
            font-size:13px; padding:7px 10px;
            border-radius:8px; border:1.5px solid #e5e7eb;
            transition:border-color 0.2s, box-shadow 0.2s;
        }
        .form-control:focus, .form-select:focus {
            border-color:#11948f; box-shadow:0 0 0 3px rgba(17,148,143,0.15);
            outline:none;
        }
        .form-control.is-valid   { border-color:#10b981; }
        .form-control.is-invalid { border-color:#ef4444; animation:shake 0.4s ease; }
        .form-select.is-valid    { border-color:#10b981; }
        .form-select.is-invalid  { border-color:#ef4444; }
        .invalid-feedback { color:#ef4444; font-size:11px; margin-top:2px; display:none; }
        .invalid-feedback.show { display:block; }
        .valid-feedback   { color:#10b981; font-size:11px; margin-top:2px; display:none; }
        .valid-feedback.show { display:block; }
        @keyframes shake {
            0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)}
        }

        /* ===== CREDIT CARD VISUAL — COMPACT ===== */
        .cc-visual {
            background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
            border-radius:12px; padding:14px 16px; color:white;
            position:relative; overflow:hidden;
            box-shadow:0 8px 24px rgba(102,126,234,0.3); margin-bottom:14px;
        }
        .cc-visual::before {
            content:''; position:absolute; top:-50%; right:-50%; width:180%; height:180%;
            background:radial-gradient(circle,rgba(255,255,255,0.08) 0%,transparent 70%);
        }
        .cc-chip {
            width:32px; height:26px; background:linear-gradient(135deg,#ffd700,#ffed4e);
            border-radius:5px; margin-bottom:10px;
        }
        .cc-number { font-size:15px; letter-spacing:2px; font-weight:600; font-family:'Courier New',monospace; }
        .cc-holder { font-size:11px; text-transform:uppercase; opacity:0.9; margin-top:6px; }
        .cc-expiry { font-size:11px; opacity:0.75; }
        .cc-brand  { position:absolute; top:14px; right:16px; font-size:16px; font-weight:700; opacity:0.9; }

        /* Bill summary */
        .bill-summary-box {
            background:#f8f9fa; border-radius:8px; padding:10px 12px;
            margin-bottom:12px; border-left:3px solid #667eea; font-size:13px;
        }
        .bill-summary-row {
            display:flex; justify-content:space-between; align-items:center;
            margin-bottom:4px; color:#666;
        }
        .bill-summary-amount { font-size:18px; font-weight:700; color:#667eea; }

        /* Quick fill buttons */
        .quick-actions-row {
            display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px;
        }
        .quick-action-btn {
            background:white; border:1px solid #e0e0e0; border-radius:8px;
            padding:8px 6px; text-align:center; cursor:pointer; transition:all 0.2s;
        }
        .quick-action-btn:hover { border-color:#667eea; box-shadow:0 2px 8px rgba(102,126,234,0.2); }
        .quick-action-btn .q-icon { font-size:18px; margin-bottom:4px; }
        .quick-action-btn .q-text { font-size:10px; color:#666; }

        /* ===== PAY BUTTON ===== */
        .btn-pay-bill {
            background:linear-gradient(135deg,#100958,#11948f);
            border:none; color:white; padding:9px 24px;
            border-radius:8px; font-weight:600; font-size:14px;
            transition:all 0.3s ease; cursor:pointer;
        }
        .btn-pay-bill:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(16,9,88,0.25); }
        .btn-pay-bill:disabled { background:#9ca3af; cursor:not-allowed; transform:none; box-shadow:none; }
        .btn-pay-bill.loading { position:relative; color:transparent; }
        .btn-pay-bill.loading::after {
            content:""; position:absolute; width:14px; height:14px;
            top:50%; left:50%; margin:-7px;
            border:2px solid white; border-radius:50%;
            border-top-color:transparent; animation:spin 0.8s linear infinite;
        }
        @keyframes spin { to{transform:rotate(360deg)} }

        /* ===== PAYMENT FORM PANEL ===== */
        #paymentForm { border-radius:12px; padding:16px; background:#f9fafb; border:1px solid #e5e7eb; }

        /* ===== RESPONSIVE ===== */
        @media (max-width:768px) {
            .tw-px-10 { padding-left:1rem !important; padding-right:1rem !important; }
            .tw-py-8  { padding-top:1rem !important; padding-bottom:1rem !important; }
        }
        @media (max-width:576px) {
            .flex-grow-1 { width:100% !important; }
        }

        @media (min-width:1400px) {
            .container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl {
                max-width:1450px;
            }
        }

        /* ============================================================
           NOTIFICATION OFFCANVAS STYLES
           ============================================================ */
        .notif-offcanvas-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 10050;
            backdrop-filter: blur(2px);
        }
        .notif-offcanvas-backdrop.active { display: block; }

        .notif-offcanvas {
            position: fixed;
            top: 0; right: 0;
            width: 380px;
            max-width: 100vw;
            height: 100vh;
            background: #fff;
            z-index: 10051;
            display: flex;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
            box-shadow: -8px 0 40px rgba(16,9,88,0.18);
            overflow: hidden;
        }
        .notif-offcanvas.active { transform: translateX(0); }

        .notif-oc-header {
            background: linear-gradient(135deg, #100958 0%, #11948f 100%);
            padding: 18px 20px 14px;
            flex-shrink: 0;
        }
        .notif-oc-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .notif-oc-title { color: white; font-size: 16px; font-weight: 700; margin: 0; }
        .notif-oc-close {
            background: rgba(255,255,255,0.18);
            border: none;
            color: white;
            width: 32px; height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .notif-oc-close:hover { background: rgba(255,255,255,0.32); }

        /* Stats strip */
        .notif-oc-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .notif-stat-pill {
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 10px;
            padding: 8px 6px;
            text-align: center;
            backdrop-filter: blur(8px);
        }
        .notif-stat-num { font-size: 18px; font-weight: 700; color: #fff; line-height: 1; }
        .notif-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.75); margin-top: 2px; }

        /* Tabs */
        .notif-oc-tabs {
            display: flex;
            background: #f8f9fb;
            border-bottom: 1px solid #e5e7eb;
            flex-shrink: 0;
        }
        .notif-tab {
            flex: 1;
            padding: 10px 8px;
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            border: none;
            background: transparent;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .notif-tab.active { color: #100958; border-bottom-color: #11948f; background: white; }
        .notif-tab-badge {
            background: #ef4444;
            color: white;
            font-size: 10px;
            font-weight: 700;
            border-radius: 10px;
            min-width: 18px;
        }
        .notif-tab.active .notif-tab-badge { background: #11948f; }

        /* Body scroll area */
        .notif-oc-body {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }
        .notif-oc-body::-webkit-scrollbar { width: 4px; }
        .notif-oc-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

        /* Tab panels */
        .notif-panel { display: none; }
        .notif-panel.active { display: block; }

        /* Section header */
        .notif-section-hdr {
            padding: 12px 16px 6px;
            font-size: 11px;
            font-weight: 700;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Notification item */
        .notif-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 16px;
            cursor: pointer;
            position: relative;
            transition: background 0.15s;
        }
        .notif-item:hover { background: #f9fafb; }
        .notif-item.unread { background: #f0f9ff; }
        .notif-item.unread::before { content: ''; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: #11948f; }

        .notif-item-icon {
            width: 36px; height: 36px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }
        .notif-item-body { flex: 1; min-width: 0; }
        .notif-item-title { font-size: 12px; font-weight: 600; color: #1f2937; margin-bottom: 2px; line-height: 1.4; }
        .notif-item-desc { font-size: 11px; color: #6b7280; line-height: 1.4; margin-bottom: 3px; }
        .notif-item-time { font-size: 10px; color: #9ca3af; }
        .notif-item-amount { font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

        /* Bill / Transaction card */
        .bill-card {
            margin: 8px 16px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e5e7eb;
        }
        .bill-card-header {
            padding: 10px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .bill-card-title { font-size: 12px; font-weight: 700; color: white; }
        .bill-card-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: rgba(255,255,255,0.25); color: white; }
        .bill-card-body { background: white; padding: 10px 14px; }
        .bill-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
        .bill-row:last-child { border-bottom: none; }
        .bill-row-left { display: flex; align-items: center; gap: 8px; }
        .bill-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
        .bill-label { font-size: 11px; font-weight: 600; color: #374151; }
        .bill-sub { font-size: 10px; color: #9ca3af; }
        .bill-amount { font-size: 12px; font-weight: 700; }
        .bill-due { font-size: 10px; color: #ef4444; font-weight: 500; }
        .bill-pay-btn {
            font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s;
        }
        .bill-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

        /* Mark all read bar */
        .notif-action-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            background: #f8f9fb;
            border-bottom: 1px solid #e5e7eb;
            flex-shrink: 0;
        }
        .notif-count-txt { font-size: 12px; color: #6b7280; }
        .mark-all-btn { font-size: 11px; color: #11948f; font-weight: 600; border: none; background: transparent; cursor: pointer; padding: 0; }
        .mark-all-btn:hover { text-decoration: underline; }

        /* Empty state */
        .notif-empty { padding: 40px 20px; text-align: center; }
        .notif-empty i { font-size: 40px; color: #d1d5db; margin-bottom: 10px; }
        .notif-empty p { font-size: 13px; color: #9ca3af; }

        /* Footer of offcanvas */
        .notif-oc-footer {
            padding: 12px 16px;
            border-top: 1px solid #e5e7eb;
            background: #f8f9fb;
            flex-shrink: 0;
        }
        .notif-view-all {
            display: block;
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, #100958, #11948f);
            color: white;
            text-align: center;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: opacity 0.2s;
        }
        .notif-view-all:hover { opacity: 0.9; color: white; }

        /* Shaking animation for bell */
        @keyframes shake {
            0%, 100% { transform: rotate(0deg); }
            10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
            20%, 40%, 60%, 80% { transform: rotate(10deg); }
        }
        .shaking-animation {
            animation: shake 2s infinite;
        }

        .tw-h-333-px {
    height: 250px !important;
}
  