/* 
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */
:root {
    --bg-dark: #0f1322;
    --bg-darker: #060810;
    --bg-glass: rgba(13, 18, 36, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --indigo-primary: #7c3aed; /* Stunning Royal Violet/Purple */
    --indigo-hover: #6d28d9;
    --indigo-light: #c084fc;
    --emerald-accent: #10b981; /* Emerald Teal */
    --red-accent: #f43f5e; /* Rose Red */
    --amber-accent: #fbbf24; /* Sun Gold */
    --cyan-accent: #06b6d4;
    --slate-text: #94a3b8;
}

body {
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-darker);
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color-scheme: dark !important;
}

/* Glassmorphism panels and containers */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.45);
}

.glass-header {
    background: rgba(8, 10, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass) !important;
}

/* Custom Translucent Utility Helper Classes */
.text-indigo { color: var(--indigo-primary) !important; }
.text-indigo-light { color: var(--indigo-light) !important; }
.text-emerald { color: var(--emerald-accent) !important; }
.text-red { color: var(--red-accent) !important; }
.text-warning { color: var(--amber-accent) !important; }
.text-cyan { color: var(--cyan-accent) !important; }
.text-slate-400 { color: var(--slate-text) !important; }
.text-slate-500 { color: #64748b !important; }

.bg-indigo-opacity {
    background-color: rgba(124, 58, 237, 0.12) !important;
}
.border-indigo-opacity {
    border-color: rgba(124, 58, 237, 0.25) !important;
}

.bg-warning-opacity {
    background-color: rgba(251, 191, 36, 0.1) !important;
}
.border-warning-opacity {
    border-color: rgba(251, 191, 36, 0.25) !important;
}

.bg-red-opacity {
    background-color: rgba(244, 63, 94, 0.1) !important;
}
.border-red-opacity {
    border-color: rgba(244, 63, 94, 0.25) !important;
}

.bg-emerald-opacity {
    background-color: rgba(16, 185, 129, 0.1) !important;
}
.border-emerald-opacity {
    border-color: rgba(16, 185, 129, 0.25) !important;
}

.text-amber {
    color: var(--amber-accent) !important;
}
.bg-amber-opacity {
    background-color: rgba(251, 191, 36, 0.1) !important;
} .border-amber-opacity {
    border-color: rgba(251, 191, 36, 0.25) !important;
}

.text-teal {
    color: var(--cyan-accent) !important;
}
.bg-teal-opacity {
    background-color: rgba(6, 182, 212, 0.1) !important;
}
.border-teal-opacity {
    border-color: rgba(6, 182, 212, 0.25) !important;
}

.text-purple { color: #a855f7 !important; }
.bg-purple { background-color: #a855f7 !important; }
.bg-purple-opacity {
    background-color: rgba(168, 85, 247, 0.12) !important;
}
.border-purple-opacity {
    border-color: rgba(168, 85, 247, 0.25) !important;
}

.bg-cyan { background-color: #06b6d4 !important; }
.bg-cyan-opacity {
    background-color: rgba(6, 182, 212, 0.12) !important;
}
.border-cyan-opacity {
    border-color: rgba(6, 182, 212, 0.25) !important;
}

.bg-slate-opacity {
    background-color: rgba(255, 255, 255, 0.03) !important;
}
.bg-slate-opacity-deep {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.btn-danger-opacity {
    background-color: rgba(244, 63, 94, 0.12) !important;
    border-color: rgba(244, 63, 94, 0.2) !important;
    color: var(--red-accent) !important;
    transition: all 0.2s;
}
.btn-danger-opacity:hover {
    background-color: rgba(244, 63, 94, 0.25) !important;
    color: #ffffff !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Hover scales & micro-animations */
.hover-scale {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(124, 58, 237, 0.35);
    border-color: rgba(124, 58, 237, 0.35) !important;
}

.active-pulse {
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0% {
        border-color: var(--border-glass);
    }
    50% {
        border-color: rgba(124, 58, 237, 0.35);
    }
    100% {
        border-color: var(--border-glass);
    }
}

/* Dashboard Metric Cards */
.metric-card {
    border-left: 4px solid var(--indigo-primary) !important;
}
.metric-card.baki {
    border-left-color: var(--red-accent) !important;
}
.metric-card.advance {
    border-left-color: var(--emerald-accent) !important;
}
.metric-card.sell {
    border-left-color: var(--cyan-accent) !important;
}

/* Buttons Styling */
.btn-indigo {
    background-color: var(--indigo-primary);
    border-color: var(--indigo-primary);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.btn-indigo:hover {
    background-color: var(--indigo-hover);
    border-color: var(--indigo-hover);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.active-filter {
    background-color: var(--indigo-primary) !important;
    border-color: var(--indigo-primary) !important;
    color: #ffffff !important;
}

/* Timeline Components */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--bg-darker);
    border: 2px solid var(--indigo-primary);
    border-radius: 50%;
    z-index: 2;
}

/* Math Calculator styling */
.calc-grid button {
    height: 52px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 12px;
    transition: all 0.15s;
}
.calc-grid button:active {
    transform: scale(0.93);
}

/* Toast Message Toastify styling */
.toast-msg {
    position: fixed;
    top: 24px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 100099 !important;
    padding: 12px 24px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-msg.success {
    background-color: rgba(16, 185, 129, 0.95);
    border-left: 5px solid #047857;
}
.toast-msg.error {
    background-color: rgba(244, 63, 94, 0.95);
    border-left: 5px solid #b91c1c;
}
.toast-msg.info {
    background-color: rgba(124, 58, 237, 0.95);
    border-left: 5px solid #6d28d9;
}
.toast-msg.warning {
    background-color: rgba(245, 158, 11, 0.95);
    border-left: 5px solid #d97706;
}

/* Floating WhatsApp Support Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background-color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.whatsapp-float-btn:hover {
    transform: scale(1.08);
    background-color: #047857;
}

/* Inputs styling and placeholder formatting */
.input-dark {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
}
.input-dark::placeholder {
    color: var(--slate-text) !important;
    opacity: 0.8 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}
.input-dark:focus {
    border-color: var(--indigo-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.2) !important;
}

/* Selection Highlight */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: #f3e8ff;
}

/* Dropdown Menu alignment fix */
.dropdown-menu-dark-custom {
    background-color: #0b0d19;
    border: 1px solid #1e293b;
    border-radius: 14px;
    box-shadow: 0 25px 30px -5px rgba(0,0,0,0.65);
    padding: 8px;
    min-width: 240px;
}
.dropdown-menu-dark-custom .dropdown-item {
    color: var(--slate-text);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dropdown-menu-dark-custom .dropdown-item:hover {
    background-color: #1e1b4b;
    color: #ffffff;
}
.dropdown-menu-dark-custom .dropdown-divider {
    border-color: #1e293b;
}

/* Utilities & Typography Reset */
h1, .h1 {
    font-size: 1.5rem !important; /* ~24px */
    font-weight: 800 !important;
}
h2, .h2 {
    font-size: 1.25rem !important; /* ~20px */
    font-weight: 700 !important;
}
h3, .h3 {
    font-size: 1.1rem !important; /* ~17.6px */
    font-weight: 700 !important;
}
h4, .h4 {
    font-size: 1rem !important; /* ~16px */
    font-weight: 700 !important;
}
h5, .h5 {
    font-size: 0.875rem !important; /* ~14px */
    font-weight: 700 !important;
}
p {
    font-size: 0.875rem !important; /* ~14px */
    line-height: 1.6 !important;
}
.text-xxs {
    font-size: 0.65rem !important;
}
.text-xs-custom {
    font-size: 0.75rem !important;
}
.text-sm-custom {
    font-size: 0.875rem !important;
}
.font-black-custom {
    font-weight: 900 !important;
}
.tracking-tight-custom {
    letter-spacing: -0.025em !important;
}

/* Spinner */
.spinner-border-sm-custom {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 0.2em;
}

/* Color System Missing Utilities */
.bg-slate-900 {
    background-color: #0f172a !important;
}
.bg-slate-950 {
    background-color: #020617 !important;
}
.bg-slate-950\/40 {
    background-color: rgba(2, 6, 23, 0.4) !important;
}
.border-slate-800 {
    border-color: #1e293b !important;
}
.border-slate-700 {
    border-color: #334155 !important;
}
.text-slate-200 {
    color: #e2e8f0 !important;
}
.text-slate-300 {
    color: #cbd5e1 !important;
}

/* Premium Dark Alerts Override */
.alert {
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    border: 1px solid transparent !important;
}
.alert-danger {
    background-color: rgba(244, 63, 94, 0.15) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.3) !important;
}
.alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.alert-warning {
    background-color: rgba(251, 191, 36, 0.15) !important;
    color: #fde047 !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}
.alert-info {
    background-color: rgba(124, 58, 237, 0.15) !important;
    color: #d8b4fe !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

/* Dark-themed premium buttons */
.btn-dark.input-dark {
    background-color: rgba(30, 41, 59, 0.45) !important;
    border: 1px solid #1e293b !important;
    color: #e2e8f0 !important;
    transition: all 0.2s;
}
.btn-dark.input-dark:hover {
    background-color: rgba(30, 41, 59, 0.8) !important;
    border-color: var(--indigo-light) !important;
    color: #ffffff !important;
}
.btn-dark.input-dark:focus {
    box-shadow: 0 0 0 0.25rem rgba(192, 132, 252, 0.2) !important;
}
.bg-dark {
    background-color: #0b0f19 !important;
}

/* Premium Custom File Inputs */
input[type="file"].input-dark::-webkit-file-upload-button {
    background-color: var(--indigo-primary) !important;
    border: none !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    transition: background-color 0.2s;
}
input[type="file"].input-dark::-webkit-file-upload-button:hover {
    background-color: var(--indigo-hover) !important;
}
input[type="file"].input-dark::file-selector-button {
    background-color: var(--indigo-primary) !important;
    border: none !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    transition: background-color 0.2s;
}
input[type="file"].input-dark::file-selector-button:hover {
    background-color: var(--indigo-hover) !important;
}

/* Dark Mode Form Select Options and visibility fixes */
select, select.form-select, select.input-dark, select option, .input-dark option {
    color-scheme: dark !important;
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* Premium Dark Tables Override */
.table-dark {
    background-color: #0f1322 !important;
    color: #cbd5e1 !important;
}
.table-dark th {
    background-color: #060810 !important;
    color: #94a3b8 !important;
    border-color: #1e293b !important;
}
.table-dark td {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: #1e293b !important;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-bg-type: rgba(255, 255, 255, 0.02) !important;
    color: #e2e8f0 !important;
}
.table-hover>tbody>tr:hover>* {
    --bs-table-bg-type: rgba(124, 58, 237, 0.08) !important;
    color: #ffffff !important;
}

/* Ensure all Bootstrap modals are themed properly */
.modal-content {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid #1e293b !important;
}
.modal-header {
    background-color: #020617 !important;
    border-bottom: 1px solid #1e293b !important;
}
.modal-footer {
    background-color: #020617 !important;
    border-top: 1px solid #1e293b !important;
}

/* Clickable Admin History row hover style */
.btn-admin-history-mdl {
    transition: background-color 0.15s ease;
}
.btn-admin-history-mdl:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
}
.btn-admin-history-mdl:hover .text-white {
    color: #a5b4fc !important; /* indigo-200 */
    text-decoration: underline !important;
}

/* Trial Lock Overlay */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Gradient and Auth Form improvements */
.bg-gradient-indigo {
    background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 50%, #030712 100%) !important;
}

#authTab .nav-link {
    color: #94a3b8 !important;
    background: rgba(15, 23, 42, 0.3) !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.25s ease;
}
#authTab .nav-link.active {
    color: #ffffff !important;
    background: rgba(124, 58, 237, 0.08) !important;
    border-bottom: 2px solid var(--indigo-primary) !important;
}

.input-group-text.bg-transparent {
    border: 1px solid #1e293b !important;
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
}

.input-group:focus-within .input-group-text {
    border-color: var(--indigo-primary) !important;
}

.input-group:focus-within .form-control {
    border-color: var(--indigo-primary) !important;
}

/* Make inputs look outstanding */
.input-dark {
    border-radius: 10px !important;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
}

/* WhatsApp support floating button overrides */
.whatsapp-float-btn {
    width: 46px !important;
    height: 46px !important;
    bottom: 20px !important;
    right: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}
.whatsapp-float-btn i {
    font-size: 20px !important;
}

/* Fix modals rendering under backdrops or falling below other components */
.modal {
    z-index: 100050;
}
.modal-backdrop {
    z-index: 100040;
}
body.modal-open {
    overflow: hidden !important;
}

/* Mobile Spacing Optimization (Remove wide empty side margins) */
@media (max-width: 576px) {
    .container-xxl, .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    main {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    header {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .glass-panel.p-4 {
        padding: 16px !important;
    }
    .glass-panel.p-3 {
        padding: 12px !important;
    }
    .glass-panel {
        border-radius: 0.75rem !important;
    }
}

.cursor-pointer {
    cursor: pointer !important;
}

/* --- TallyKhata Mobile Redesign Styles --- */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .d-desktop-only {
        display: none !important;
    }
    
    /* Background for mobile body */
    body.user-role-owner {
        background-color: #f8fafc !important; /* Soft light background for mobile dashboard as seen in screenshot */
        color: #1e293b !important;
    }

    /* Hide desktop header for owners on mobile */
    body.user-role-owner #app-header {
        display: none !important;
    }

    /* Red header */
    .mobile-header-red {
        background: linear-gradient(180deg, #f43f5e 0%, #b91c1c 100%) !important; /* Premium pinkish-red gradient matching mockup */
        color: #ffffff !important;
        padding: 12px 16px 14px 16px !important;
        position: sticky;
        top: 0;
        z-index: 1025;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: 0 4px 20px rgba(185, 28, 28, 0.15);
    }
    
    /* Dark header */
    .mobile-header-dark {
        background-color: #f1f5f9 !important;
        background: #f1f5f9 !important;
        color: #0f172a !important;
        padding: 12px 16px !important;
        position: sticky;
        top: 0;
        z-index: 1025;
        border-bottom: 1.5px solid #cbd5e1 !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }
    
    @media (max-width: 576px) {
        .mobile-header-red, .mobile-header-dark {
            margin-left: -8px !important;
            margin-right: -8px !important;
            margin-top: -0.75rem !important;
        }
    }
    
    @media (min-width: 576.01px) and (max-width: 768px) {
        .mobile-header-red, .mobile-header-dark {
            margin-left: -12px !important;
            margin-right: -12px !important;
            margin-top: -1.5rem !important;
        }
    }
    
    .mobile-header-top-row {
        min-height: 44px;
        height: auto !important;
        position: relative;
        z-index: 5;
        padding-top: 4px;
        padding-bottom: 4px;
    }
    
    .mobile-header-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #2dd4bf !important; /* Soft cyan circle */
        color: #ffffff !important;
        font-weight: 800;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-header-phone {
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 4px;
    }
    
    .mobile-header-balance-btn {
        background-color: #ffffff !important;
        color: #b91c1c !important;
        border: none !important;
        border-radius: 20px !important;
        padding: 3px 12px 3px 6px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: transform 0.15s ease;
    }
    .mobile-header-balance-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-header-balance-btn .bkash-icon {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: #db2777; /* bKash pink */
        color: #ffffff;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    .mobile-header-icon-btn, .mobile-header-profile-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #ffffff !important;
        border: none !important;
        color: #374151 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        cursor: pointer;
        position: relative;
    }
    
    .mobile-header-profile-btn {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        background-color: #fce7f3 !important;
        color: #db2777 !important;
    }
    
    .mobile-header-profile-btn .menu-dot {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 14px;
        height: 14px;
        background-color: #94a3b8;
        border-radius: 50%;
        border: 1px solid #ffffff;
        color: #ffffff;
        font-size: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-illustration-container {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 30px;
        overflow: visible;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .flag-silhouette-svg {
        width: 100%;
        height: 100%;
        display: block;
        overflow: visible;
    }
    
    .mobile-header-red a, .mobile-header-red button {
        color: #ffffff;
    }
    
    .mobile-header-dark a, .mobile-header-dark button {
        color: #0f172a !important;
    }

    /* Mobile rounded card overlay */
    .mobile-dashboard-card {
        background-color: #ffffff !important;
        border-radius: 20px 20px 0 0 !important;
        margin-top: -30px; /* Overlap the curved header nicely */
        padding: 24px 16px 20px 16px;
        position: relative;
        z-index: 10;
        min-height: calc(100vh - 120px);
        box-shadow: 0 -8px 24px rgba(0,0,0,0.04);
        color: #1e293b !important;
    }

    /* Split indicators - restructured as a premium card below grid */
    .mobile-balance-split {
        display: flex;
        background-color: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 16px !important;
        padding: 16px 8px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }
    .mobile-balance-item {
        flex: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.15s, background-color 0.15s;
        max-width: 150px;
        margin: 0 auto;
    }
    .mobile-balance-item:active {
        transform: scale(0.97);
        background-color: rgba(0, 0, 0, 0.03);
    }
    .mobile-balance-item:first-child {
        border-right: 1px solid #f1f5f9 !important;
    }
    .mobile-balance-label {
        font-size: 12px;
        color: #64748b !important;
        font-weight: 600;
        margin-top: 4px;
        margin-bottom: 0px;
    }
    .mobile-balance-amount {
        font-size: 24px;
        font-weight: 900;
        line-height: 1.1;
    }
    .mobile-balance-amount.receivable {
        color: #e11d48 !important; /* Rose Red */
    }
    .mobile-balance-amount.payable {
        color: #16a34a !important; /* Emerald Green */
    }

    /* Grid options styled flat like mockup */
    .mobile-features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 8px;
        margin-bottom: 24px;
        padding: 4px 0;
    }
    .mobile-feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
        color: #334155;
        cursor: pointer;
        transition: transform 0.15s ease;
        background: transparent !important;
        border: none;
        outline: none;
        padding: 0;
        justify-self: center;
        align-self: start;
        width: auto;
        min-width: 70px;
        max-width: 85px;
    }
    .mobile-feature-item:active {
        transform: scale(0.92);
    }
    .mobile-feature-icon {
        width: 36px;
        height: 36px;
        background-color: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        font-size: 26px !important;
        transition: transform 0.2s;
    }
    
    /* Specific Flat Colors from mockup */
    .mobile-feature-item[id="btn-m-recharge"] .mobile-feature-icon { color: #2563eb !important; } /* Blue mobile */
    .mobile-feature-item[id="btn-m-stock"] .mobile-feature-icon { color: #dc2626 !important; } /* Red box */
    .mobile-feature-item[id="btn-m-notes"] .mobile-feature-icon { color: #ea580c !important; } /* Orange notebook */
    .mobile-feature-item[id="btn-m-add-money"] .mobile-feature-icon { color: #f59e0b !important; } /* Gold/amber wallet */
    .mobile-feature-item[id="btn-m-qr"] .mobile-feature-icon { color: #9333ea !important; } /* Purple QR */
    .mobile-feature-item[id="btn-m-backup"] .mobile-feature-icon { color: #16a34a !important; } /* Green backup */
    .mobile-feature-item[id="btn-m-msg"] .mobile-feature-icon { color: #db2777 !important; } /* Pink SMS */
    .mobile-feature-item[id="btn-m-cashbox"] .mobile-feature-icon { color: #ea580c !important; } /* Orange safe */

    .mobile-feature-label {
        font-size: 11px;
        font-weight: 700;
        color: #334155 !important;
        line-height: 1.25;
    }

    /* Search area styling */
    .mobile-search-wrapper {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 20px;
    }
    .mobile-search-bar {
        background-color: #ffffff !important;
        border: 1.5px solid #94a3b8 !important;
        border-radius: 20px !important;
        padding-left: 36px !important;
        font-size: 12px !important;
        height: 38px !important;
        color: #1e293b !important;
    }
    .mobile-search-bar::placeholder {
        font-size: 11.5px !important;
        color: #64748b !important;
        font-weight: 500 !important;
    }
    .mobile-search-container {
        position: relative;
        flex-grow: 1;
    }
    .mobile-search-container .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #475569 !important;
        font-size: 12px;
    }
    .mobile-search-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #ffffff !important;
        border: 1.5px solid #94a3b8 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1e293b !important;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }

    /* Customer List Header */
    .mobile-list-header {
        font-size: 12px;
        font-weight: 700;
        color: #475569;
        margin-bottom: 12px;
    }

    /* Mobile Customer Item */
    .mobile-customer-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 4px;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
    }
    .mobile-customer-item:active {
        background-color: #f8fafc;
    }
    .mobile-customer-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 13px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    .mobile-customer-info {
        flex-grow: 1;
        min-width: 0;
    }
    .mobile-customer-name {
        font-weight: 700;
        color: #0f172a;
        font-size: 14px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-customer-time {
        font-size: 11px;
        color: #64748b;
    }
    .mobile-customer-balance-area {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .mobile-customer-balance {
        font-weight: 700;
        font-size: 14px;
        font-family: monospace;
    }

    /* Mobile Floating Action Button */
    .mobile-fab {
        position: fixed;
        bottom: 74px;
        right: 16px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #b91c1c !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(185, 28, 28, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1010;
        cursor: pointer;
    }
    .mobile-fab:active {
        transform: scale(0.95);
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1030;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
    }
    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        flex: 1;
        padding: 4px 0;
    }
    .mobile-bottom-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    .mobile-bottom-nav-item.active {
        color: #b91c1c;
    }
    /* Active oval background for the first tab icon like the mockup */
    .mobile-bottom-nav-item.active .nav-icon-wrapper {
        background-color: #fee2e2;
        padding: 4px 16px;
        border-radius: 12px;
        color: #b91c1c;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Spacing fixes for panels on mobile */
    .tab-content {
        padding-bottom: 70px !important;
    }
    
    /* Make other tabs inside ownerTabsContent fit white background */
    #panel-cashbox, #panel-wallet, #panel-orders, #panel-messages, #panel-mobile-menu {
        background: #ffffff !important;
        color: #1e293b !important;
        border-radius: 12px;
        padding: 16px !important;
        margin-top: 8px;
    }
    
    #panel-cashbox h3, #panel-wallet h3, #panel-orders h3, #panel-messages h3, #panel-mobile-menu h3 {
        color: #0f172a !important;
        border-bottom-color: #e2e8f0 !important;
    }
    
    #panel-cashbox .glass-panel, #panel-wallet .glass-panel, #panel-orders .glass-panel, #panel-messages .glass-panel, #panel-mobile-menu .glass-panel {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
    }
    
    .table-dark {
        --bs-table-bg: #ffffff !important;
        --bs-table-color: #1e293b !important;
        --bs-table-striped-bg: #f8fafc !important;
        --bs-table-hover-bg: #f1f5f9 !important;
    }
    
    .table-dark th {
        color: #475569 !important;
        background-color: #f1f5f9 !important;
        border-bottom-color: #e2e8f0 !important;
    }
    
    .table-dark td {
        border-bottom-color: #f1f5f9 !important;
        color: #334155 !important;
    }
    
    /* Input adjustments for light theme on mobile */
    #view-owner-stock .input-dark, #view-customer-ledger .input-dark, #view-owner-notes .input-dark,
    #panel-cashbox .input-dark, #panel-settings .input-dark,
    #view-owner-stock .form-select.input-dark, #view-customer-ledger .form-select.input-dark,
    #view-owner-notes .form-select.input-dark, #panel-cashbox .form-select.input-dark, #panel-settings .form-select.input-dark {
        background-color: #ffffff !important;
        border: 1.5px solid #94a3b8 !important;
        color: #0f172a !important;
        font-weight: 800 !important; /* Bold typed text */
    }
    #view-owner-stock .input-dark::placeholder, #view-customer-ledger .input-dark::placeholder,
    #view-owner-notes .input-dark::placeholder, #panel-cashbox .input-dark::placeholder, #panel-settings .input-dark::placeholder {
        color: #475569 !important;
        font-weight: 700 !important; /* Bold placeholder */
    }

    /* Stock, Ledger, Cashbox, Notes, Settings & Super Admin Views Mobile Color Correction */
    #view-owner-stock, #view-customer-ledger, #view-owner-notes, #panel-cashbox, #panel-settings {
        padding: 16px 8px !important;
        background-color: #f8fafc !important;
    }
    
    #view-owner-stock .glass-panel, #view-customer-ledger .glass-panel, #view-owner-notes .glass-panel, #panel-cashbox .glass-panel, #panel-settings .glass-panel {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    }
    
    #view-owner-stock h3, #view-owner-stock h4, #view-owner-stock h5, 
    #view-customer-ledger h2, #view-customer-ledger h3, #view-customer-ledger h5,
    #view-owner-notes h3, #view-owner-notes h4, #view-owner-notes h5,
    #panel-cashbox h3, #panel-cashbox h5, #panel-settings h3 {
        color: #000000 !important;
        font-weight: 850 !important; /* Extra bold headings */
    }
    
    #view-owner-stock label, #view-customer-ledger label, #view-owner-notes label, #panel-cashbox label, #panel-settings label,
    #view-owner-stock .form-label, #view-customer-ledger .form-label, #view-owner-notes .form-label, #panel-cashbox .form-label, #panel-settings .form-label {
        color: #000000 !important;
        font-weight: 850 !important; /* Extra bold labels */
    }
    
    #view-owner-stock .text-slate-400, #view-customer-ledger .text-slate-400, #view-owner-notes .text-slate-400,
    #view-owner-stock .text-slate-300, #view-customer-ledger .text-slate-300, #view-owner-notes .text-slate-300,
    #view-owner-stock .text-slate-200, #view-customer-ledger .text-slate-200, #view-owner-notes .text-slate-200,
    #panel-settings .text-slate-400, #panel-settings .text-slate-300, #panel-settings .text-slate-200 {
        color: #000000 !important; /* Pure black text */
        font-weight: 750 !important;
    }

    #view-owner-stock .text-white, #view-customer-ledger .text-white, #view-owner-notes .text-white, #panel-settings .text-white {
        color: #000000 !important;
    }

    /* Super Admin Premium Cards mobile styling overrides */
    #view-super-admin .glass-panel.metric-card {
        background: #e0e7ff !important; /* Rich indigo/blue tint */
        border: 1.5px solid #818cf8 !important;
        box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.08) !important;
    }
    #view-super-admin .glass-panel.metric-card .text-slate-400 {
        color: #3730a3 !important; /* Deep indigo */
        font-weight: 800 !important;
    }
    #view-super-admin #admin-metric-total {
        color: #1e1b4b !important; /* Extremely dark indigo/black */
        font-weight: 900 !important;
    }
    
    #view-super-admin .glass-panel.metric-card.baki {
        background: #fef3c7 !important; /* Rich yellow/amber tint */
        border: 1.5px solid #f59e0b !important;
        box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.08) !important;
    }
    #view-super-admin .glass-panel.metric-card.baki .text-amber {
        color: #b45309 !important; /* Deep amber */
        font-weight: 800 !important;
    }
    #view-super-admin #admin-metric-pending {
        color: #78350f !important; /* Dark amber/brown */
        font-weight: 900 !important;
    }
    
    #view-super-admin .glass-panel.metric-card.advance {
        background: #d1fae5 !important; /* Rich green/emerald tint */
        border: 1.5px solid #10b981 !important;
        box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.08) !important;
    }
    #view-super-admin .glass-panel.metric-card.advance .text-emerald {
        color: #047857 !important; /* Deep green */
        font-weight: 800 !important;
    }
    #view-super-admin #admin-metric-active {
        color: #064e3b !important; /* Dark green */
        font-weight: 900 !important;
    }
    
    #view-super-admin #btn-admin-metric-orders .glass-panel.metric-card {
        background: #f3e8ff !important; /* Rich purple/violet tint */
        border: 1.5px solid #a855f7 !important;
        box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.08) !important;
    }
    #view-super-admin #btn-admin-metric-orders .text-indigo-light {
        color: #6d28d9 !important; /* Deep purple */
        font-weight: 800 !important;
    }
    #view-super-admin #admin-metric-pending-orders {
        color: #4c1d95 !important; /* Dark purple */
        font-weight: 900 !important;
    }
    
    #view-super-admin #btn-admin-metric-funds .glass-panel.metric-card {
        background: #cffafe !important; /* Rich cyan/teal tint */
        border: 1.5px solid #06b6d4 !important;
        box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.08) !important;
    }
    #view-super-admin #btn-admin-metric-funds .text-cyan {
        color: #0891b2 !important; /* Deep cyan */
        font-weight: 800 !important;
    }
    #view-super-admin #admin-metric-funds {
        color: #083344 !important; /* Dark cyan */
        font-weight: 900 !important;
    }
    
    #view-super-admin #btn-admin-metric-premium .glass-panel.metric-card {
        background: #fffbeb !important; /* Rich yellow/gold tint */
        border: 1.5px solid #f59e0b !important;
        box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.08) !important;
    }
    #view-super-admin #btn-admin-metric-premium .text-warning {
        color: #b45309 !important; /* Deep gold */
        font-weight: 800 !important;
    }
    #view-super-admin #admin-metric-premium {
        color: #78350f !important; /* Dark gold/brown */
        font-weight: 900 !important;
    }
    
    #view-super-admin .border-warning-opacity.glass-panel {
        background: #fef3c7 !important; /* Match yellow tint */
        border: 1.5px solid #f59e0b !important;
        box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.08) !important;
    }
    #view-super-admin .border-warning-opacity.glass-panel h3 {
        color: #b45309 !important; /* Deep amber */
    }
    
    /* Back Buttons Mobile Style */
    #btn-stock-back, #btn-ledger-back, #btn-notes-back {
        background-color: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    }
    #btn-stock-back span, #btn-ledger-back span, #btn-notes-back span {
        color: #0f172a !important;
    }
    
    /* Table modifications for stock, ledger, cashbox, orders & super admin on mobile */
    #view-owner-stock .table-dark, 
    #view-customer-ledger .table-dark, 
    #panel-cashbox .table-dark,
    #panel-wallet .table-dark,
    #panel-orders .table-dark {
        background-color: #ffffff !important;
        color: #0f172a !important;
    }
    #view-owner-stock .table-dark tr, 
    #view-customer-ledger .table-dark tr, 
    #panel-cashbox .table-dark tr,
    #panel-wallet .table-dark tr,
    #panel-orders .table-dark tr {
        background-color: #ffffff !important;
        color: #0f172a !important;
    }
    #view-owner-stock .table-dark th, 
    #view-customer-ledger .table-dark th, 
    #panel-cashbox .table-dark th,
    #panel-wallet .table-dark th,
    #panel-orders .table-dark th {
        color: #0f172a !important;
        font-weight: 800 !important;
        background-color: #f1f5f9 !important;
        border-bottom: 2px solid #cbd5e1 !important;
    }
    #view-owner-stock .table-dark td, 
    #view-customer-ledger .table-dark td, 
    #panel-cashbox .table-dark td,
    #panel-wallet .table-dark td,
    #panel-orders .table-dark td {
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-weight: 700 !important; /* Bold table text */
    }

    #view-owner-stock .table-dark tbody tr:nth-of-type(odd) td,
    #view-customer-ledger .table-dark tbody tr:nth-of-type(odd) td,
    #panel-cashbox .table-dark tbody tr:nth-of-type(odd) td,
    #panel-wallet .table-dark tbody tr:nth-of-type(odd) td,
    #panel-orders .table-dark tbody tr:nth-of-type(odd) td {
        background-color: #f8fafc !important; /* Striped cells */
    }
    #view-owner-stock .table-dark tbody tr:hover td,
    #view-customer-ledger .table-dark tbody tr:hover td,
    #panel-cashbox .table-dark tbody tr:hover td,
    #panel-wallet .table-dark tbody tr:hover td,
    #panel-orders .table-dark tbody tr:hover td {
        background-color: rgba(59, 130, 246, 0.1) !important; /* Blue background on hover */
    }

    #panel-orders #owner-orders-limit {
        background-color: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
    }
    #panel-orders #orders-filter-label {
        color: #475569 !important;
    }

    /* Mobile Stock List Card overrides */
    .mobile-stock-card {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    }
    .mobile-stock-name {
        color: #0f172a !important;
        font-weight: 700;
        font-size: 13.5px;
    }
    .mobile-stock-supplier {
        color: #334155 !important;
    }
    .mobile-stock-divider {
        border-top: 1px solid #cbd5e1 !important;
    }
    .mobile-stock-time {
        color: #334155 !important;
        font-weight: 600 !important;
    }
    /* Blue Hover background for Mobile items, lists, and timeline cards */
    .mobile-customer-item:hover,
    .mobile-stock-card:hover,
    .timeline-item > div:hover {
        background-color: rgba(59, 130, 246, 0.08) !important;
        border-color: rgba(59, 130, 246, 0.35) !important;
        cursor: pointer;
    }

    /* Mobile ledger balance box border removal */
    #ledger-cust-balance-box {
        border: none !important;
    }

    /* Mobile customer details edit/delete button overrides */
    #btn-ledger-edit-cust {
        background-color: #4f46e5 !important;
        color: #ffffff !important;
        border: none !important;
    }
    #btn-ledger-edit-cust i {
        color: #ffffff !important;
    }
    #btn-ledger-delete-cust {
        background-color: #dc2626 !important;
        color: #ffffff !important;
        border: none !important;
    }
    #btn-ledger-delete-cust i {
        color: #ffffff !important;
    }

    /* Mobile-specific Inbox & System Notices card styles */
    #panel-messages #owner-messages-container > div {
        background-color: #f8fafc !important;
        border: 1.5px solid #cbd5e1 !important;
    }
    #panel-messages #owner-messages-container > div p {
        color: #0f172a !important; /* Pure black/dark gray text for message content */
        font-weight: 600 !important;
    }
    #panel-messages #owner-messages-container > div span {
        color: #475569 !important; /* Dark slate text for date and labels */
        font-weight: 700 !important;
    }

    /* Businesses Notes Card Overrides on Mobile View */
    #view-owner-notes .note-card-item {
        background-color: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    }
    #view-owner-notes .note-card-item h6 {
        color: #0f172a !important;
        font-weight: 800 !important;
    }
    #view-owner-notes .note-card-item .note-content-body {
        color: #334155 !important;
    }
    #view-owner-notes .note-card-item .note-card-date {
        color: #64748b !important;
    }

    /* Smaller placeholders on mobile */
    .input-dark::placeholder, 
    .form-control::placeholder, 
    input::placeholder, 
    textarea::placeholder {
        font-size: 10px !important;
    }

    /* Restrict login & register input/form widths for better mobile aesthetics */
    #view-auth form {
        max-width: 330px;
        margin: 0 auto;
        padding: 0 4px;
    }
}

/* ==================== PREMIUM STYLING ADDITIONS ==================== */
/* Desktop / Global styles */
.premium-card {
    border: 1px solid rgba(129, 140, 248, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.premium-capsule-tabs {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
}
.premium-capsule-tabs button {
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 8px 16px !important;
    transition: all 0.25s ease !important;
}
.premium-capsule-tabs button:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.premium-capsule-tabs button.active-filter {
    background: linear-gradient(135deg, var(--indigo-primary) 0%, var(--indigo-hover) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

.premium-search-input {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(129, 140, 248, 0.15) !important;
    border-radius: 12px !important;
    padding-left: 42px !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    transition: all 0.25s ease !important;
}
.premium-search-input:focus {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--indigo-primary) !important;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.25) !important;
}

.premium-table {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}
.premium-table tbody tr {
    background-color: rgba(255, 255, 255, 0.01) !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
}
.premium-table tbody tr:hover {
    background-color: rgba(124, 58, 237, 0.05) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}
.premium-table th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
    background-color: transparent !important;
}

.btn-premium-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.2s ease !important;
}
.btn-premium-success:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 12px rgba(16, 185, 129, 0.35) !important;
}
.btn-premium-success:active {
    transform: translateY(0) scale(0.98);
}

.btn-premium-danger {
    background: rgba(244, 63, 94, 0.08) !important;
    border: 1px solid rgba(244, 63, 94, 0.2) !important;
    color: #fb7185 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}
.btn-premium-danger:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 12px rgba(244, 63, 94, 0.35) !important;
}
.btn-premium-danger:active {
    transform: translateY(0) scale(0.98);
}

.btn-receipt-download {
    background: rgba(6, 182, 212, 0.08) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 10px !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}
.btn-receipt-download:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.25) !important;
}

/* Mobile & Tablet Overrides (max-width: 768px) */
@media (max-width: 768px) {
    .premium-card {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    }
    .premium-capsule-tabs {
        background: rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        padding: 4px;
        display: flex;
        gap: 4px;
    }
    .premium-capsule-tabs button {
        color: #475569 !important;
    }
    .premium-capsule-tabs button:hover {
        color: #0f172a !important;
        background: rgba(0, 0, 0, 0.03) !important;
    }
    .premium-capsule-tabs button.active-filter {
        background: linear-gradient(135deg, var(--indigo-primary) 0%, var(--indigo-hover) 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2) !important;
    }
    .premium-search-input {
        background-color: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
        color: #0f172a !important;
    }
    .premium-search-input:focus {
        border-color: var(--indigo-primary) !important;
        box-shadow: 0 0 10px rgba(124, 58, 237, 0.15) !important;
    }
    .premium-table tbody tr:hover {
        background-color: rgba(59, 130, 246, 0.08) !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Super Admin Compact Metrics & Category Buttons for Mobile */
    #view-super-admin .metric-card,
    #view-super-admin .admin-category-btn {
        padding: 12px 10px !important;
        height: 102px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    #view-super-admin .metric-card .fs-4,
    #view-super-admin .metric-card .fs-5,
    #view-super-admin .admin-category-btn .fs-5 {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-weight: 900 !important;
        margin-top: 2px !important;
    }
    #view-super-admin .metric-card .text-xxs,
    #view-super-admin .admin-category-btn .text-xxs {
        font-size: 9px !important;
        white-space: nowrap !important;
        font-weight: 800 !important;
    }
    #view-super-admin .metric-card .mt-3,
    #view-super-admin .admin-category-btn .mt-3 {
        margin-top: 4px !important;
    }
    #view-super-admin .metric-card span.p-2,
    #view-super-admin .admin-category-btn span.p-2 {
        padding: 4px !important;
    }
    #view-super-admin .metric-card i,
    #view-super-admin .admin-category-btn i {
        font-size: 11px !important;
    }

    /* Force dark background for category buttons on mobile to make text readable */
    #view-super-admin .admin-category-btn {
        background: #0f1322 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    #view-super-admin .admin-category-btn.control-btn.active-category {
        background: rgba(168, 85, 247, 0.15) !important;
        border-color: #a855f7 !important;
    }
    #view-super-admin .admin-category-btn.control-btn.active-category .category-subtitle {
        color: #c084fc !important;
    }
    #view-super-admin .admin-category-btn.control-btn.active-category .icon-wrap {
        border-color: #a855f7 !important;
        background: rgba(168, 85, 247, 0.15) !important;
        color: #c084fc !important;
    }
    #view-super-admin .admin-category-btn.payments-btn.active-category {
        background: rgba(16, 185, 129, 0.15) !important;
        border-color: #10b981 !important;
    }
    #view-super-admin .admin-category-btn.payments-btn.active-category .category-subtitle {
        color: #34d399 !important;
    }
    #view-super-admin .admin-category-btn.payments-btn.active-category .icon-wrap {
        border-color: #10b981 !important;
        background: rgba(16, 185, 129, 0.15) !important;
        color: #34d399 !important;
    }
    #view-super-admin .admin-category-btn.notices-btn.active-category {
        background: rgba(245, 158, 11, 0.15) !important;
        border-color: #f59e0b !important;
    }
    #view-super-admin .admin-category-btn.notices-btn.active-category .category-subtitle {
        color: #fbbf24 !important;
    }
    #view-super-admin .admin-category-btn.notices-btn.active-category .icon-wrap {
        border-color: #f59e0b !important;
        background: rgba(245, 158, 11, 0.15) !important;
        color: #fbbf24 !important;
    }
}

/* Control Access feature cards */
.control-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
}
.control-card:hover {
    border-color: rgba(129, 140, 248, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12) !important;
}

/* Admin category selection cards */
.admin-category-btn {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    transition: all 0.25s ease !important;
}
.admin-category-btn .category-subtitle {
    color: #94a3b8 !important;
    transition: color 0.25s ease;
}
.admin-category-btn .category-title {
    color: #ffffff !important;
    transition: color 0.25s ease;
}
.admin-category-btn .icon-wrap {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #94a3b8 !important;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-category-btn:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}
.admin-category-btn.control-btn.active-category {
    background: rgba(168, 85, 247, 0.06) !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15) !important;
}
.admin-category-btn.control-btn.active-category .category-subtitle {
    color: #c084fc !important;
}
.admin-category-btn.control-btn.active-category .icon-wrap {
    border-color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
}
.admin-category-btn.payments-btn.active-category {
    background: rgba(16, 185, 129, 0.06) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15) !important;
}
.admin-category-btn.payments-btn.active-category .category-subtitle {
    color: #34d399 !important;
}
.admin-category-btn.payments-btn.active-category .icon-wrap {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}
.admin-category-btn.notices-btn.active-category {
    background: rgba(245, 158, 11, 0.06) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.15) !important;
}
.admin-category-btn.notices-btn.active-category .category-subtitle {
    color: #fbbf24 !important;
}
.admin-category-btn.notices-btn.active-category .icon-wrap {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

/* Colorful Action Buttons in Admin Shop Cards */
.btn-circle-action {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}
.btn-circle-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25) !important;
}

/* Recharge/Wallet: Emerald */
.btn-action-wallet {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
.btn-action-wallet:hover {
    background: #10b981 !important;
    color: #ffffff !important;
}

/* Message: Blue/Indigo */
.btn-action-message {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
}
.btn-action-message:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
}

/* Daily rate: Cyan */
.btn-action-rate {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #06b6d4 !important;
    border: 1px solid rgba(6, 182, 212, 0.35) !important;
}
.btn-action-rate:hover {
    background: #06b6d4 !important;
    color: #ffffff !important;
}

/* Premium toggle: Gold/Star */
.btn-action-premium {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
.btn-action-premium:hover, .btn-action-premium.active-premium {
    background: #f59e0b !important;
    color: #ffffff !important;
}

/* Profile Edit: Slate */
.btn-action-edit {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}
.btn-action-edit:hover {
    background: #94a3b8 !important;
    color: #ffffff !important;
}

/* History: Purple */
.btn-action-history {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
}
.btn-action-history:hover {
    background: #a855f7 !important;
    color: #ffffff !important;
}

/* Itemized Ledger & Stock Search Styles */
#ledger-stock-search-results {
    max-height: 220px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
#ledger-stock-search-results::-webkit-scrollbar {
    width: 6px;
}
#ledger-stock-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.stock-search-item {
    transition: all 0.2s ease;
}
.stock-search-item:hover {
    background-color: rgba(124, 58, 237, 0.15) !important;
    border-left: 3px solid var(--indigo-primary);
}
#ledger-selected-stock-item {
    animation: slideDownFade 0.25s ease-out;
}
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ledger-stock-search-results .stock-search-item .stock-item-name {
    color: #ffffff !important;
    font-weight: 800 !important;
}
#ledger-stock-search-results .stock-search-item .text-slate-400 {
    color: #cbd5e1 !important;
}
#ledger-stock-search-results .stock-search-item .text-indigo {
    color: #c084fc !important;
}
