
        :root {
            --navy: #100958;
            --teal: #11948f;
            --teal-light: #e0f5f4;
            --red: #ef4444;
            --amber: #f59e0b;
            --green: #10b981;
            --purple: #6B46C1;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-400: #9ca3af;
            --gray-600: #4b5563;
            --gray-800: #1f2937;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
            --shadow-lg: 0 10px 32px rgba(0,0,0,0.14);
            --radius: 14px;
            --radius-sm: 8px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Plus Jakarta Sans', sans-serif; background: #f0f2f5; }

        /* ─── TOAST ─── */
        #toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
        .toast-msg { background: white; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 360px; animation: slideInToast .3s ease; border-left: 4px solid #10b981; font-size: 13px; font-weight: 600; }
        .toast-msg.error { border-left-color: var(--red); }
        .toast-msg.info { border-left-color: #3b82f6; }
        .toast-msg.warning { border-left-color: var(--amber); }
        .toast-icon { font-size: 18px; flex-shrink: 0; }
        .toast-msg.success .toast-icon { color: var(--green); }
        .toast-msg.error .toast-icon { color: var(--red); }
        .toast-msg.info .toast-icon { color: #3b82f6; }
        .toast-msg.warning .toast-icon { color: var(--amber); }
        @keyframes slideInToast { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

        /* ─── MODAL ─── */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
        .modal-box { background: white; border-radius: 16px; max-width: 420px; width: 100%; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideInToast .3s ease; }
        .modal-header-bar { padding: 16px 20px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); color: white; }
        .modal-header-bar h5 { margin: 0; font-size: 15px; font-weight: 500;color: #ffffff; }
        .modal-close-btn { background: rgba(255,255,255,.2); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
        .modal-close-btn:hover { background: rgba(255,255,255,.35); }
        .modal-body-content { padding: 18px 20px; overflow-y: auto; flex: 1; }

        /* ─── SIDEBAR OVERLAY ─── */
        #sidebarOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000; cursor: pointer; }
        /* #sidebarOverlay.active { display: block; } */

        /* ─── LAYOUT ─── */
        .page-wrapper { display: flex; min-height: 100vh; flex-direction: column; }

        /* ─── HEADER ─── */
        .site-header { height: 64px; background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); box-shadow: 0 2px 12px rgba(16,9,88,.25); position: sticky; top: 0; z-index: 1000; }
        .site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
        .header-logo img { height: 32px; }
        .header-search { flex: 1; max-width: 340px; position: relative; }
        .header-search input { width: 100%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; padding: 7px 14px 7px 36px; font-size: 13px; color: white; outline: none; font-family: inherit; transition: background .2s; }
        .header-search input::placeholder { color: rgba(255,255,255,.65); }
        .header-search input:focus { background: rgba(255,255,255,.22); }
        .header-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.7); font-size: 14px; }
        .header-actions { display: flex; align-items: center; gap: 10px; }
        .header-icon-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; font-size: 16px; }
        .header-icon-btn:hover { background: rgba(255,255,255,.28); }
        .header-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); overflow: hidden; cursor: pointer; }
        .header-avatar img { width: 100%; height: 100%; object-fit: cover; }

        /* ─── HERO BANNER ─── */
        .hero-banner { background: linear-gradient(135deg, var(--navy) 0%, #1a1a7e 50%, var(--teal) 100%); height: 160px; position: relative; overflow: hidden; }
        .hero-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: rgba(255,255,255,.06); border-radius: 50%; }
        .hero-banner::after { content: ''; position: absolute; bottom: -40px; left: 30%; width: 160px; height: 160px; background: rgba(255,255,255,.04); border-radius: 50%; }

        /* ─── MAIN AREA ─── */
        .main-area { display: flex; gap: 20px; padding: 0 0 40px; margin-top: -280px; position: relative; z-index: 10; }

        /* ─── SIDEBAR ─── */
        .sidebar { width: 250px; min-width: 250px; flex-shrink: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; align-self: flex-start; position: sticky; top: 80px; }
        @media (max-width: 1199px) {
            .sidebar { position: fixed !important; top: 0 !important; left: 0 !important; width: 320px !important; min-width: 260px !important; height: 100dvh !important; overflow-y: auto !important; z-index: 10001 !important; border-radius: 0 !important; box-shadow: 6px 0 30px rgba(0,0,0,.25) !important; transform: translateX(-100%) !important; transition: transform .3s ease !important; }
            .sidebar.sidebar-open { transform: translateX(0) !important; }
        }

        .sidebar-top { padding: 24px 16px 16px; text-align: center; position: relative; background: linear-gradient(180deg, #f8f9ff 0%, white 100%); }
        #sidebarCloseBtn { display: none; position: absolute; top: 12px; right: 12px; background: var(--gray-100); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; align-items: center; justify-content: center; transition: background .2s; }
        #sidebarCloseBtn:hover { background: #fee2e2; }
        @media (max-width: 1199px) { #sidebarCloseBtn { display: flex; } }

        .profile-photo-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 10px; }
        .photo-circle { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--teal); overflow: hidden; background: var(--gray-100); }
        .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 .2s; }
        .profile-photo-wrap:hover .photo-hover-overlay { background: rgba(0,0,0,.4); }
        .photo-hover-overlay i { color: white; font-size: 18px; opacity: 0; transition: opacity .2s; }
        .profile-photo-wrap:hover .photo-hover-overlay i { opacity: 1; }
        .photo-actions { display: flex; justify-content: center; gap: 7px; margin-top: 8px; }
        .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 .2s, box-shadow .2s; }
        .photo-action-btn:hover { transform: scale(1.15); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
        .btn-cam-photo { background: var(--teal); }
        .btn-edit-photo { background: var(--purple); }
        .btn-del-photo { background: var(--red); }

        .sidebar-name { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
        .sidebar-loc { font-size: 11px; color: var(--gray-400); }

        .sidebar-nav { padding: 8px 10px 16px; }
        .sidebar-divider { border: none; border-top: 1px solid var(--gray-100); margin: 8px 0; }
        .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--gray-600); font-size: 13px; text-decoration: none; font-weight: 500; transition: all .18s; margin-bottom: 2px; }
        .nav-item:hover { background: var(--navy); color: white; }
        .nav-item.active { background: linear-gradient(135deg, var(--navy), var(--teal)); color: white; }
        .nav-item.danger { color: var(--red); }
        .nav-item.danger:hover { background: #fff1f2; color: var(--red); }
        .nav-item i { font-size: 17px; flex-shrink: 0; }

        /* ─── SIDEBAR TOGGLE ─── */
        #sidebarToggle { display: none; background: none; border: none; color: var(--navy); font-size: 26px; cursor: pointer; padding: 4px; margin-bottom: 12px; border-radius: 8px; transition: background .2s; }
        #sidebarToggle:hover { background: var(--gray-100); }
        @media (max-width: 1199px) { #sidebarToggle { display: block; } }

        /* ─── CONTENT ─── */
       .content {
    flex: 1;
    min-width: 0;
    background: #c2e6e5;
    padding: 12px;
    border-radius: 12px;
}
        /* ─── PROFILE HERO CARD ─── */
        .profile-hero { background: white; border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
        .hero-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--teal); overflow: hidden; flex-shrink: 0; }
        .hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .hero-info h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
        .hero-info p { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
        .hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
        .hero-badge { background: var(--gray-100); color: var(--gray-600); padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 3px; }
        .hero-badge.verified { background: #dcfce7; color: #166534; }

        /* ─── STATS ─── */
        .stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
        .stat-card { background: white; border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s; }
        .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
        .stat-val { font-size: 15px; font-weight: 700; color: var(--gray-800); }
        .stat-lbl { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

        /* ─── HELP CARD ─── */
        .help-card { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 14px; }
        .help-card i { font-size: 28px; color: #0ea5e9; margin-bottom: 6px; display: block; }
        .help-card h5 { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
        .help-card p { font-size: 12px; color: var(--gray-600); margin-bottom: 10px; }
        .help-btn { background: linear-gradient(135deg, var(--navy), var(--teal)); color: white; border: none; padding: 9px 20px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; transition: all .2s; font-family: inherit; }
        .help-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,9,88,.3); }

        /* ─── CHAT MODAL ─── */
        .chat-wrap { display: flex; flex-direction: column; height: 320px; }
        .chat-msgs { 
            flex: 1; 
            overflow-y: auto; 
            overflow-x: hidden;
            padding: 8px 4px; 
            display: flex; 
            flex-direction: column; 
            gap: 8px;
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: #d1d5db transparent;
        }
        .chat-msgs::-webkit-scrollbar { width: 4px; }
        .chat-msgs::-webkit-scrollbar-track { background: transparent; }
        .chat-msgs::-webkit-scrollbar-thumb { 
            background: #d1d5db; 
            border-radius: 4px;
            transition: background 0.2s;
        }
        .chat-msgs::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
        
        .chat-msg { max-width: 75%; display: flex; flex-direction: column; gap: 1px; }
        .chat-msg.agent { align-self: flex-start; }
        .chat-msg.user { align-self: flex-end; }
        .chat-bubble { 
            padding: 7px 11px; 
            border-radius: 10px; 
            font-size: 12px; 
            line-height: 1.4;
            word-wrap: break-word;
            max-width: 100%;
        }
        .chat-msg.agent .chat-bubble { 
            background: #f8f9fa; 
            color: #374151; 
            border-radius: 6px 10px 10px 10px;
            border: 1px solid #e5e7eb;
        }
        .chat-msg.user .chat-bubble { 
            background: linear-gradient(135deg, #100958, #11948f); 
            color: white; 
            border-radius: 10px 6px 10px 10px;
        }
        .chat-time { 
            font-size: 9px; 
            color: #9ca3af; 
            margin-top: 2px;
        }
        .chat-msg.user .chat-time { text-align: right; }
        
        .chat-input-row { 
            display: flex; 
            gap: 6px; 
            margin-top: 8px; 
            border-top: 1px solid #f3f4f6; 
            padding-top: 8px;
        }
        .chat-input { 
            flex: 1; 
            border: 1px solid #e5e7eb; 
            border-radius: 6px; 
            padding: 6px 10px; 
            font-size: 12px; 
            outline: none; 
            font-family: inherit; 
            transition: all 0.2s;
            background: #f9fafb;
        }
        .chat-input:focus { 
            border-color: #11948f; 
            background: white;
            box-shadow: 0 0 0 3px rgba(17,148,143,0.1);
        }
        .chat-send-btn { 
            background: linear-gradient(135deg, #100958, #11948f); 
            color: white; 
            border: none; 
            border-radius: 6px; 
            width: 32px; 
            height: 32px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            cursor: pointer; 
            font-size: 14px; 
            transition: all 0.2s; 
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(16,9,88,0.2);
        }
        .chat-send-btn:hover { 
            transform: scale(1.05); 
            box-shadow: 0 4px 8px rgba(16,9,88,0.3);
        }
        .chat-send-btn:active { transform: scale(0.95); }
        
        .typing-indicator { 
            display: flex; 
            gap: 3px; 
            align-items: center; 
            padding: 6px 10px;
        }
        .typing-dot { 
            width: 5px; 
            height: 5px; 
            background: #9ca3af; 
            border-radius: 50%; 
            animation: typingBounce 1.2s infinite; 
        }
        .typing-dot:nth-child(2) { animation-delay: .2s; }
        .typing-dot:nth-child(3) { animation-delay: .4s; }
        @keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
        
        .agent-info { 
            display: flex; 
            align-items: center; 
            gap: 6px; 
            padding: 8px 0 6px; 
            border-bottom: 1px solid #f3f4f6; 
            margin-bottom: 6px; 
        }
        .agent-avatar { 
            width: 32px; 
            height: 32px; 
            border-radius: 50%; 
            background: linear-gradient(135deg, #100958, #11948f); 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            color: white; 
            font-size: 14px; 
            flex-shrink: 0; 
        }
        .agent-meta h6 { 
            font-size: 12px; 
            font-weight: 700; 
            color: #374151; 
            margin: 0; 
        }
        .agent-meta span { 
            font-size: 10px; 
            color: #059669; 
            font-weight: 600; 
        }
        .online-dot { 
            width: 6px; 
            height: 6px; 
            background: #059669; 
            border-radius: 50%; 
            display: inline-block; 
            margin-right: 3px; 
            animation: pulse 2s infinite; 
        }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

        /* ─── TABS ─── */
        .tabs-wrap { background: white; border-radius: var(--radius); padding: 8px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
        .tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
        .tabs::-webkit-scrollbar { display: none; }
        .tab-btn { flex: 1; min-width: 72px; padding: 8px 10px; border-radius: 9px; border: none; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--gray-400); transition: all .2s; white-space: nowrap; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 5px; }
        .tab-btn.active { background: linear-gradient(135deg, var(--navy), var(--teal)); color: white; box-shadow: 0 3px 10px rgba(16,9,88,.25); }
        .tab-btn:hover:not(.active) { background: var(--gray-100); color: var(--gray-600); }
        .tab-panel { display: none; }
        .tab-panel.active { display: block; }

        /* ─── FORM SECTION ─── */
        .form-section { background: white; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
        .section-head { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 7px; }
        .section-head i { color: var(--teal); font-size: 16px; }

        /* ─── FIELD IMPROVEMENTS ─── */
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
        @media (max-width: 600px) { 
            .form-row { grid-template-columns: 1fr; gap: 12px; }
            .field-input { font-size: 16px; padding: 10px 40px 10px 12px; }
            .field-icon { right: 12px; font-size: 16px; }
            select.field-input { padding-right: 40px; background-position: right 12px center; }
        }
        .form-row.single { grid-template-columns: 1fr; }
        .field-group { position: relative; display: flex; flex-direction: column; width: 100%; }
        .field-label { font-size: 12px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; display: flex; align-items: center; gap: 3px; min-height: 16px; }
        .req { color: var(--red); }
        .field-input-wrapper { position: relative; width: 100%; display: flex; align-items: stretch; }
        .field-input { width: 100%; border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 10px 40px 10px 12px; font-size: 14px; color: var(--gray-800); background: #fff; transition: all .2s; outline: none; font-family: inherit; height: 40px; box-sizing: border-box; display: flex; align-items: center; }
        .field-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17,148,143,.1); }
        .field-input.valid { border-color: var(--green); background: #f0fdf4; }
        .field-input.invalid { border-color: var(--red); background: #fef2f2; animation: shake .4s ease; }
        @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
        .field-hint { font-size: 10px; color: var(--gray-400); margin-top: 4px; line-height: 1.4; }
        .field-err { font-size: 10px; color: var(--red); margin-top: 3px; display: none; line-height: 1.3; font-weight: 500; }
        .field-ok { font-size: 10px; color: var(--green); margin-top: 3px; display: none; }
        .field-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; display: none; z-index: 10; }
        .field-icon.error { color: var(--red); }
        .field-icon.success { color: var(--green); }
        select.field-input { appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7280' d='M7 10.5L2 5h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }

        /* ─── PROGRESS ─── */
        .progress-wrap { margin-bottom: 14px; }
        .progress-bar-outer { height: 5px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
        .progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red) 0%, var(--amber) 50%, var(--green) 100%); border-radius: 3px; transition: width .3s; }
        .progress-label { font-size: 11px; color: var(--gray-400); margin-top: 3px; text-align: right; }

        /* ─── BUTTONS ─── */
        .btn-primary { background: linear-gradient(135deg, var(--navy), var(--teal)); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; height: 40px; display: flex; align-items: center; justify-content: center; }
        .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(16,9,88,.3); }
        .btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
        .btn-secondary { background: white; color: var(--gray-600); border: 1.5px solid var(--gray-200); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; height: 40px; display: flex; align-items: center; justify-content: center; }
        .btn-secondary:hover { background: var(--gray-100); }
        .btn-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

        /* ─── SECURITY ─── */
        .security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        @media (max-width: 600px) { .security-grid { grid-template-columns: 1fr; } }
        .security-card { background: white; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-100); }
        .security-card-full { grid-column: 1 / -1; }
        .sec-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
        .sec-edit-btn { background: none; border: none; color: var(--purple); cursor: pointer; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; transition: background .2s; font-family: inherit; }
        .sec-edit-btn:hover { background: #f5f0ff; }
        .sec-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
        .sec-body { text-align: center; }
        .sec-title { font-size: 12px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
        .sec-desc { font-size: 10px; color: var(--gray-400); }

        /* ─── NOTIFICATIONS ─── */
        .notif-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
        .notif-row:last-child { border-bottom: none; }
        .notif-text { flex: 1; }
        .notif-title { font-size: 12px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
        .notif-desc { font-size: 10px; color: var(--gray-400); }
        .form-check { position: relative; }
        .form-switch { display: inline-block; width: 44px; height: 24px; }
        .form-switch-sm { width: 40px; height: 22px; }
        .form-check-input { opacity: 0; width: 0; height: 0; }
        .form-switch .form-check-input:checked + .form-check-label::before { background: var(--teal); }
        .form-switch .form-check-label::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--gray-300); border-radius: 24px; transition: background .2s; }
        .form-switch .form-check-label::after { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform .2s; }
        .form-switch-sm .form-check-label::after { height: 16px; width: 16px; left: 3px; bottom: 3px; }
        .form-switch .form-check-input:checked + .form-check-label::after { transform: translateX(20px); }
        .form-switch-sm .form-check-input:checked + .form-check-label::after { transform: translateX(18px); }
        .form-check-label { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
        .form-switch-sm .form-check-label { width: 40px; height: 22px; }
        /* ─── CARDS ─── */
        .cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
        @media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }
        .credit-card-compact { border-radius: 12px; padding: 14px; color: white; position: relative; overflow: hidden; min-height: 120px; box-shadow: 0 5px 18px rgba(0,0,0,.18); transition: transform .3s, box-shadow .3s; cursor: pointer; }
        .credit-card-compact:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
        .cc-shine { position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%); border-radius: 50%; }
        .cc-logo { font-size: 12px; font-weight: 800; position: absolute; top: 10px; right: 12px; letter-spacing: 1px; }
        .cc-chip { width: 26px; height: 18px; background: linear-gradient(135deg, #ffd700, #ffed4e); border-radius: 3px; margin: 10px 0 6px; }
        .cc-num { font-size: 11px; letter-spacing: 3px; font-weight: 600; margin-bottom: 6px; }
        .cc-holder { font-size: 8px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
        .cc-expiry { font-size: 8px; opacity: .75; margin-top: 1px; }
        .add-card-compact { border: 2px dashed var(--gray-200); border-radius: 14px; min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; background: var(--gray-50); gap: 6px; }
        .add-card-compact:hover { border-color: var(--teal); background: var(--teal-light); }
        .add-card-compact i { font-size: 24px; color: var(--gray-400); transition: color .2s; }
        .add-card-compact:hover i { color: var(--teal); }
        .add-card-compact span { font-size: 12px; color: var(--gray-400); font-weight: 600; }

        /* ─── NOTIFICATIONS ─── */
        .notif-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
        .notif-row:last-child { border-bottom: none; }
        .notif-text { flex: 1; }
        .notif-title { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 1px; }
        .notif-desc { font-size: 11px; color: var(--gray-400); }
        .form-switch-sm .form-check-input { width: 38px; height: 21px; cursor: pointer; }

        /* ─── CAMERA ─── */
        #cameraVideoEl { width: 100%; border-radius: 10px; display: none; background: #000; }
        #cameraCanvas { display: none; }
        .cam-snap-btn { width: 46px; height: 46px; border-radius: 50%; border: 3px solid white; background: var(--red); display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; font-size: 16px; box-shadow: 0 3px 10px rgba(239,68,68,.4); transition: transform .15s; }
        .cam-snap-btn:hover { transform: scale(1.08); }

        /* ─── NOTIFICATION SETTINGS STYLES ─── */
        .notif-settings-wrap {
            max-width: 1156px;
        }

        /* Header card */
        .notif-header-card {
            background: linear-gradient(135deg, #100958 0%, #11948f 100%);
            border-radius: 16px;
            padding: 20px 22px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }
        .notif-header-card::before {
            content: '';
            position: absolute;
            top: -40px; right: -40px;
            width: 160px; height: 160px;
            border-radius: 50%;
            background: rgba(255,255,255,0.06);
        }
        .notif-header-card::after {
            content: '';
            position: absolute;
            bottom: -30px; left: 60px;
            width: 100px; height: 100px;
            border-radius: 50%;
            background: rgba(255,255,255,0.04);
        }
        .notif-hdr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
        .notif-hdr-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; flex-shrink: 0; }
        .notif-hdr-text h4 { color: white; font-size: 17px; font-weight: 700; margin: 0 0 3px; }
        .notif-hdr-text p { color: rgba(255,255,255,0.8); font-size: 12px; margin: 0; }
        .notif-hdr-email { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 6px 12px; color: white; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-top: 2px; }

        /* Toggle group */
        .notif-group-card {
            background: white;
            border-radius: 14px;
            border: 1px solid #e5e7eb;
            overflow: hidden;
            margin-bottom: 16px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        }
        .notif-group-title {
            padding: 12px 16px 8px;
            font-size: 11px;
            font-weight: 700;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            border-bottom: 1px solid #f3f4f6;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .notif-group-title i { font-size: 14px; color: #11948f; }

        .notif-toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid #f9fafb;
            transition: background 0.15s;
            gap: 12px;
        }
        .notif-toggle-row:last-child { border-bottom: none; }
        .notif-toggle-row:hover { background: #fafafa; }

        .notif-toggle-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
        .notif-toggle-icon {
            width: 34px; height: 34px;
            border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }
        .notif-toggle-info { flex: 1; min-width: 0; }
        .notif-toggle-name { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 1px; }
        .notif-toggle-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; }

        /* Custom switch */
        .custom-switch-wrap { flex-shrink: 0; }
        .custom-switch { position: relative; width: 40px; height: 22px; }
        .custom-switch input { opacity: 0; width: 0; height: 0; }
        .switch-slider {
            position: absolute; inset: 0;
            background: #d1d5db;
            border-radius: 22px;
            cursor: pointer;
            transition: all 0.25s;
        }
        .switch-slider::before {
            content: '';
            position: absolute;
            width: 16px; height: 16px;
            left: 3px; top: 3px;
            background: white;
            border-radius: 50%;
            transition: all 0.25s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .custom-switch input:checked + .switch-slider { background: linear-gradient(135deg, #100958, #11948f); }
        .custom-switch input:checked + .switch-slider::before { transform: translateX(18px); }

        /* Save button */
        .notif-save-btn {
            background: linear-gradient(135deg, #100958 0%, #11948f 100%);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px 28px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(16,9,88,0.25);
        }
        .notif-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,9,88,0.35); }
        .notif-save-btn:active { transform: translateY(0); }

        /* Responsive */
        @media (max-width: 575px) {
            .notif-toggle-desc { display: none; }
            .notif-hdr-email { display: none; }
            .notif-header-card { padding: 16px; }
        }

        /* ─── 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);
        }
        .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;
            padding: 1px 5px;
            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;
            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;
        }

        /* ─── RESPONSIVE ─── */
        @media (max-width: 767px) {
            .hero-banner { height: 120px; }
            .main-area { margin-top: -290px; }
            .profile-hero { flex-direction: column; text-align: center; }
            .stats-strip { grid-template-columns: repeat(3, 1fr); }
            .stat-val { font-size: 13px; }
            .header-search { display: none; }
        }
        @media (max-width: 480px) {
            .stats-strip { grid-template-columns: 1fr; }
            .hero-badges { justify-content: center; }
        }

        /* ─── ADD CARD FORM ─── */
        #addCardFormPanel { display: none; }

        /* ─── DROPDOWN HEADER ─── */
        .hdr-dropdown { position: relative; }
        .hdr-dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: white; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 240px; overflow: hidden; z-index: 9000; border: 1px solid var(--gray-100); animation: slideInToast .2s ease; }
        .hdr-dropdown.open .hdr-dropdown-menu { display: block; }
        .hdr-dd-header { background: linear-gradient(135deg, var(--navy), var(--teal)); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
        .hdr-dd-header span { color: white; font-size: 14px; font-weight: 700; }
        .hdr-dd-body { padding: 12px 16px; max-height: 240px; overflow-y: auto; }
        .notif-item { display: flex; gap: 10px;  border-bottom: 1px solid var(--gray-100); }
        .notif-item:last-child { border-bottom: none; }
        .notif-item-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: var(--teal); }
        .notif-item-text { font-size: 12px; color: var(--gray-600); line-height: 1.4; }
        .notif-item-time { font-size: 10px; color: var(--gray-400); margin-top: 2px; }
        .hdr-dd-footer { padding: 10px 16px; text-align: center; border-top: 1px solid var(--gray-100); }
        .hdr-dd-footer a { font-size: 12px; color: var(--teal); font-weight: 600; text-decoration: none; }
        .user-dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--gray-600); text-decoration: none; transition: background .15s; }
        .user-dd-item:hover { background: var(--gray-50); }
        .user-dd-item i { font-size: 16px; }
        .user-dd-item.logout { color: var(--red); }
        .user-dd-divider { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
        .user-dd-divider img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
        .user-dd-name { font-size: 13px; font-weight: 700; color: var(--gray-800); }
        .user-dd-email { font-size: 11px; color: var(--gray-400); }
        .alarm-badge { width: 8px; height: 8px; background: var(--red); border-radius: 50%; position: absolute; top: 4px; right: 4px; border: 1.5px solid var(--teal); }
    
    @media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1450px;
    }
}
   

