/**
 * Facture5-style Premium French SaaS Theme (dashboard.css)
 * Royal Blue Edition - Light, Crisp & Luminous Layout with Sticky Footer
 */

/* ==========================================================================
   Global Base & Flex Layout (Sticky Footer)
   ========================================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8fafc !important;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.saas-app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
    width: 100%;
}

/* ==========================================================================
   Left White Categorized Sidebar
   ========================================================================== */
.saas-sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #eaecf0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 1px 0 10px rgba(15, 23, 42, 0.02);
    overflow-y: auto;
    overflow-x: hidden;
}

.saas-sidebar::-webkit-scrollbar {
    width: 4px;
}
.saas-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

/* Brand Header */
.saas-sidebar-brand {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.brand-badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    font-size: 17px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: none;
}

/* User Info Box in Sidebar */
.saas-user-info-box {
    padding: 14px 20px;
    border-bottom: 1px solid #f8fafc;
}

.user-company-name {
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.user-company-sub {
    font-size: 11.5px;
    color: #10b981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-company-sub::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

/* Nav Menu Container & Categories */
.saas-nav-container {
    flex: 1;
    padding: 12px 12px;
}

.nav-category-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 10px 6px;
}

.saas-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.saas-menu-list li a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 9px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.saas-menu-list li a i {
    font-size: 14.5px;
    width: 18px;
    text-align: center;
    color: #64748b;
    transition: color 0.15s ease;
}

.saas-menu-list li a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.saas-menu-list li a:hover i {
    color: #2563eb;
}

.saas-menu-list li.active a {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.saas-menu-list li.active a i {
    color: #2563eb;
}

/* Badges in Sidebar Menu */
.menu-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    line-height: 1.1;
}

.badge-amber { background: #fef3c7; color: #b45309; }
.badge-rose { background: #ffe4e6; color: #be123c; }

/* Sidebar Bottom Footer */
.saas-sidebar-bottom {
    padding: 14px 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saas-sidebar-bottom .bottom-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.saas-sidebar-bottom .bottom-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.saas-sidebar-bottom .bottom-link.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* ==========================================================================
   Main Viewport Canvas & Topbar (Sticky Layout)
   ========================================================================== */
.saas-main-viewport {
    flex: 1;
    margin-left: 250px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Topbar */
.saas-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #eaecf0;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-search-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 480px;
}

.sidebar-mobile-toggle {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 7px 11px;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
}

.topbar-search-box {
    position: relative;
    width: 100%;
}

.topbar-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.topbar-input {
    width: 100%;
    height: 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px 8px 38px;
    font-size: 13.5px;
    color: #1e293b;
    transition: all 0.2s ease;
}

.topbar-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Topbar Right Actions */
.topbar-actions-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-saas-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-saas-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}

.topbar-bell-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    position: relative;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.topbar-bell-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

.bell-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
    line-height: 1;
}

/* User Pill */
.topbar-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 3px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.topbar-user-pill:hover,
.topbar-profile-dropdown.open .topbar-user-pill {
    border-color: #cbd5e1;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-display-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}

.user-chevron {
    font-size: 10px;
    color: #94a3b8;
}

/* ==========================================================================
   Topbar Dropdown Menus (Notifications & User Profile)
   ========================================================================== */
.topbar-actions-area .dropdown-menu {
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06) !important;
    padding: 0 !important;
    margin-top: 8px !important;
    animation: fadeInSlide 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050 !important;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications Dropdown */
.notifications-menu {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 360px !important;
    overflow: hidden !important;
}

.notifications-header {
    background: #f8fafc !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.notifications-header h6 {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.notifications-header .badge {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
}

.notifications-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

.notifications-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.notifications-list li.empty-notifications {
    padding: 32px 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: #64748b !important;
}

.notifications-list li.empty-notifications i {
    font-size: 22px !important;
    color: #94a3b8 !important;
    background: #f1f5f9 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.notifications-list li.empty-notifications span {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.notifications-list li a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #334155 !important;
    border-bottom: 1px solid #f8fafc !important;
    transition: background 0.15s ease !important;
}

.notifications-list li a:hover {
    background: #f8fafc !important;
}

.notifications-list li .alert-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.notifications-list li .alert-icon.danger { background: #fef2f2; color: #ef4444; }
.notifications-list li .alert-icon.warning { background: #fffbeb; color: #f59e0b; }
.notifications-list li .alert-icon.info { background: #eff6ff; color: #2563eb; }
.notifications-list li .alert-icon.success { background: #ecfdf5; color: #10b981; }

.notifications-list li .alert-content p {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #334155 !important;
}

/* User Profile Dropdown Menu */
.user-profile-menu {
    min-width: 230px !important;
    padding: 6px 0 !important;
    list-style: none !important;
}

.user-profile-menu li {
    list-style: none !important;
    margin: 0 !important;
}

.user-profile-menu .user-profile-header {
    padding: 12px 18px 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}

.user-profile-menu .user-profile-header strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.user-profile-menu .user-profile-header small {
    display: block !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

.user-profile-menu .divider {
    height: 1px !important;
    margin: 4px 0 !important;
    background-color: #f1f5f9 !important;
    border: none !important;
    overflow: hidden !important;
}

.user-profile-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 18px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.user-profile-menu li a i {
    font-size: 14px !important;
    width: 18px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    transition: color 0.15s ease !important;
}

.user-profile-menu li a:hover {
    background-color: #f8fafc !important;
    color: #2563eb !important;
}

.user-profile-menu li a:hover i {
    color: #2563eb !important;
}

.user-profile-menu li a.text-danger {
    color: #ef4444 !important;
}

.user-profile-menu li a.text-danger i {
    color: #ef4444 !important;
}

.user-profile-menu li a.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.user-profile-menu li a.text-danger:hover i {
    color: #dc2626 !important;
}

/* ==========================================================================
   Central Canvas & Dashboard Elements
   ========================================================================== */
#main-body {
    padding: 28px 32px 40px !important;
    background: transparent !important;
    flex: 1 0 auto !important; /* Pushes footer permanently to the bottom */
    display: flex !important;
    flex-direction: column !important;
}

#main-body > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 0 auto !important;
}

#main-body > .container-fluid > .row {
    margin-left: -12px !important;
    margin-right: -12px !important;
}

#main-body .sidebar {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

#main-body .main-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-shadow: none !important;
    margin-bottom: 24px !important;
}

#main-body .row {
    margin-left: -10px;
    margin-right: -10px;
}

#main-body .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.header-lined {
    display: none !important;
}

/* Notice Banner (Clean Royal Blue Theme - Centered) */
.saas-notice-banner {
    position: relative !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;
    padding: 12px 40px !important;
    color: #1e40af !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 22px !important;
}

.saas-notice-banner .notice-left {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
}

.saas-notice-banner .notice-icon {
    font-size: 16px;
    color: #2563eb;
    flex-shrink: 0;
}

.saas-notice-banner .notice-close {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #1e40af !important;
    opacity: 0.7 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero Header Card (Light Crisp Card) */
.saas-hero-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 24px 28px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.hero-greeting {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.hero-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease !important;
}

.btn-hero-blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-hero-glass {
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-hero-glass:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 4 Quick Action Floating Cards */
.saas-quick-actions {
    margin-bottom: 22px;
}

.action-card-col {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 14px;
}

.quick-action-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.quick-action-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.quick-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-rose { background: #fff1f2; color: #f43f5e; }
.icon-cyan { background: #ecfeff; color: #0891b2; }

.quick-action-info {
    display: flex;
    flex-direction: column;
}

.action-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.action-desc {
    font-size: 11.5px;
    color: #64748b;
}

/* 4 KPI Metric Cards (Modern SaaS Stat Cards) */
.saas-kpi-cards {
    margin-bottom: 24px;
}

.kpi-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 4px 6px -2px rgba(37, 99, 235, 0.03);
    transform: translateY(-2px);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.kpi-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #ecfdf5; color: #10b981; }
.badge-rose { background: #fff1f2; color: #f43f5e; }

.kpi-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.kpi-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.kpi-value small {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 2px;
}

.trend-green { color: #10b981; }
.trend-amber { color: #f59e0b; }
.trend-blue { color: #2563eb; }

/* Subtle indicator line */
.kpi-segmented-bar {
    display: none !important;
}

/* Panels & Content Cards */
.client-home-panels .panel,
.panel-default {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    margin-bottom: 22px !important;
    overflow: hidden !important;
}

.client-home-panels .panel .panel-heading,
.panel-default > .panel-heading {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 20px !important;
}

.panel-header-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.panel-title-left {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.panel-title-left .panel-icon {
    color: #2563eb !important;
    font-size: 15px !important;
}

.panel-title-right {
    display: flex !important;
    align-items: center !important;
}

.btn-panel-action {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #dbeafe !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
}

.btn-panel-action:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.client-home-panels .panel .panel-body,
.panel-default > .panel-body,
.empty-panel-body {
    padding: 32px 24px !important;
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    text-align: center !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.client-home-panels .panel .panel-body p,
.panel-default > .panel-body p,
.empty-panel-body p {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
}

.client-home-panels .panel .panel-body a,
.panel-default > .panel-body a,
.empty-panel-body a {
    color: #2563eb !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    display: inline !important;
    margin: 0 auto !important;
    transition: color 0.15s ease;
}

.client-home-panels .panel .panel-body a:hover,
.panel-default > .panel-body a:hover {
    color: #1d4ed8 !important;
}

/* ==========================================================================
   Domain Search Card (High-Converting SaaS Style)
   ========================================================================== */
.domain-search-panel-body {
    padding: 36px 32px !important;
    background: #ffffff !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.domain-promo-header {
    max-width: 620px;
    margin: 0 auto 24px;
}

.domain-promo-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.3px;
}

.domain-promo-desc {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.domain-search-form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 20px;
}

.domain-search-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 5px 6px 5px 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    gap: 10px;
}

.domain-search-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.domain-search-icon {
    color: #94a3b8;
    font-size: 16px;
    flex-shrink: 0;
}

.domain-search-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    flex: 1;
    height: auto !important;
    outline: none !important;
}

.domain-search-input::placeholder {
    color: #94a3b8;
}

.domain-search-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-domain-search {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 9px 18px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-domain-search:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-domain-transfer {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 9px 16px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-domain-transfer:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.domain-tld-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tld-pill {
    background: #f8fafc;
    border: 1px solid #eaecf0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.tld-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.tld-pill.popular {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.tld-ext {
    font-weight: 700;
    color: #0f172a;
}

.tld-price {
    font-weight: 600;
    color: #2563eb;
    font-size: 12px;
}

.domain-features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    width: 100%;
    max-width: 650px;
}

.domain-feat-item {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.domain-feat-item i {
    color: #10b981;
    font-size: 13px;
}

/* Fallback for standard WHMCS domain input group if rendered raw */
.client-home-panels form[action*="domain=register"] .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.client-home-panels form[action*="domain=register"] .input-group input.form-control {
    border-radius: 10px 0 0 10px !important;
    border: 1.5px solid #e2e8f0;
    height: 44px;
    font-size: 14px;
    padding: 8px 14px;
}

.client-home-panels form[action*="domain=register"] .input-group-btn .btn {
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    padding: 0 18px;
}

/* List group when items exist in panels */
.client-home-panels .panel .list-group {
    text-align: left !important;
    margin: 0 !important;
}

.client-home-panels .panel .list-group-item {
    padding: 14px 20px !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #334155 !important;
    font-size: 13.5px !important;
    transition: background 0.15s ease !important;
}

.client-home-panels .panel .list-group-item:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
}

.client-home-panels .panel .panel-footer,
.panel-default > .panel-footer {
    background: #ffffff !important;
    border-top: 1px solid #f8fafc !important;
    padding: 10px 20px !important;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    text-align: right !important;
}

.client-home-panels .panel .panel-footer a {
    color: #94a3b8;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.client-home-panels .panel .panel-footer a:hover {
    color: #2563eb;
}

/* Domain Search Widget inside Panel */
.panel .input-group input[name="domain"],
.panel input.form-control {
    height: 40px !important;
    border-radius: 8px 0 0 8px !important;
    border: 1px solid #eaecf0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

.panel .input-group-btn .btn-success,
.panel input[type="submit"].btn-success {
    height: 40px !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 0 !important;
    padding: 0 16px !important;
}

.panel .input-group-btn .btn-default,
.panel input[type="submit"].btn-default {
    height: 40px !important;
    background: #f8fafc !important;
    border-color: #eaecf0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 16px !important;
}

/* ==========================================================================
   Footer (Facture5 Style - Sticky at Bottom)
   ========================================================================== */
.facture-saas-footer {
    background: #ffffff !important;
    border-top: 1px solid #eaecf0 !important;
    padding: 18px 32px !important;
    margin-top: auto !important;
    width: 100% !important;
}

.footer-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-right-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-right-links a:hover {
    color: #2563eb;
}

.dot-sep {
    color: #cbd5e1;
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */
@media (max-width: 991px) {
    .saas-sidebar {
        transform: translateX(-100%);
    }

    .saas-sidebar.active-mobile {
        transform: translateX(0);
    }

    .saas-main-viewport {
        margin-left: 0;
    }

    .sidebar-close-btn,
    .sidebar-mobile-toggle {
        display: block;
    }

    #main-body {
        padding: 20px 15px 30px !important;
    }

    .saas-topbar {
        padding: 0 15px;
    }

    .saas-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .hero-right-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-inner-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Inner Pages (Account Details, Security, Tickets, Invoices, etc.)
   ========================================================================== */

/* Inner Page Sidebar (Left panel on details/settings pages) */
.sidebar .panel-sidebar {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.sidebar .panel-sidebar > .panel-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 13px 18px !important;
}

.sidebar .panel-sidebar .panel-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.sidebar .panel-sidebar .panel-title i:not(.panel-minimise) {
    color: #2563eb !important;
    margin-right: 6px;
}

.sidebar .panel-sidebar .panel-minimise {
    color: #94a3b8 !important;
    font-size: 12px !important;
    margin-top: 0 !important;
}

.sidebar .panel-sidebar .list-group {
    margin: 0 !important;
    padding: 6px 0 !important;
    background: #ffffff !important;
}

/* Ensure menu is expanded on desktop */
@media (min-width: 768px) {
    .sidebar .panel-sidebar .list-group,
    .sidebar .panel-sidebar .panel-body {
        display: block !important;
    }
}

.sidebar .panel-sidebar .list-group-item {
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
    line-height: 1.4 !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.sidebar .panel-sidebar .list-group-item i.sidebar-menu-item-icon,
.sidebar .panel-sidebar .list-group-item > i {
    font-size: 14px !important;
    width: 18px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
}

.sidebar .panel-sidebar .list-group-item .badge {
    margin-left: auto !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
}

.sidebar .panel-sidebar a.list-group-item:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
}

.sidebar .panel-sidebar a.list-group-item:hover i {
    color: #2563eb !important;
}

.sidebar .panel-sidebar a.list-group-item.active,
.sidebar .panel-sidebar a.list-group-item.active:hover,
.sidebar .panel-sidebar a.list-group-item.active:focus {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-left-color: #2563eb !important;
    font-weight: 600 !important;
}

.sidebar .panel-sidebar a.list-group-item.active i {
    color: #2563eb !important;
}

/* Main Content Container for Inner Pages */
#main-body .main-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 15px !important;
    box-shadow: none !important;
    margin-bottom: 24px !important;
}

/* Inner Page Header / Breadcrumb */
#main-body .header-lined,
#main-body .page-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 16px !important;
    margin: 0 0 24px !important;
}

#main-body .page-header h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.4px;
}

#main-body .page-header h1 small {
    font-size: 13.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    display: block;
    margin-top: 4px;
}

/* Modern Forms & Inputs */
#main-body .form-group {
    margin-bottom: 20px !important;
}

#main-body label.control-label,
#main-body label.col-form-label,
#main-body .form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

#main-body .form-control,
#main-body input[type="text"],
#main-body input[type="email"],
#main-body input[type="password"],
#main-body select.form-control {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    height: 42px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 8px 14px !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

/* Phone Input (intl-tel-input) Fix & Styling */
#main-body .intl-tel-input {
    width: 100% !important;
    position: relative !important;
    display: block !important;
}

#main-body .intl-tel-input input[type="tel"],
#main-body input[type="tel"] {
    padding-left: 82px !important;
    padding-right: 14px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    height: 42px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

#main-body .intl-tel-input .flag-container {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 72px !important;
    padding: 0 !important;
    border-radius: 10px 0 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
}

#main-body .intl-tel-input .selected-flag {
    padding: 0 8px 0 14px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 10px 0 0 10px !important;
    background: transparent !important;
}

#main-body .intl-tel-input .selected-flag:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

#main-body .intl-tel-input .country-list {
    border-radius: 12px !important;
    border: 1px solid #eaecf0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12) !important;
    z-index: 1050 !important;
}

#main-body .form-control:focus,
#main-body input[type="text"]:focus,
#main-body input[type="email"]:focus,
#main-body input[type="tel"]:focus,
#main-body input[type="password"]:focus,
#main-body select.form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

#main-body .form-control[disabled],
#main-body .form-control[readonly],
#main-body input[disabled] {
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
}

/* Section Titles within Forms */
#main-body h3.section-title,
#main-body .sub-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 28px 0 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Form Action Buttons */
#main-body .form-actions,
#main-body .text-center,
#main-body .btn-group {
    margin-top: 24px;
}

#main-body input[type="submit"].btn-primary,
#main-body button[type="submit"].btn-primary,
#main-body .btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease !important;
}

#main-body input[type="submit"].btn-primary:hover,
#main-body button[type="submit"].btn-primary:hover,
#main-body .btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

#main-body input[type="reset"].btn-default,
#main-body .btn-default {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
}

#main-body input[type="reset"].btn-default:hover,
#main-body .btn-default:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

/* ==========================================================================
   Account Details Structured SaaS Card Form
   ========================================================================== */
.saas-details-form {
    width: 100%;
}

.form-section-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-header i {
    font-size: 22px;
    color: #2563eb;
    background: #eff6ff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-header h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.form-section-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Email Preferences Grid */
.email-prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.email-pref-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    font-weight: normal !important;
}

.email-pref-item:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.email-pref-item input[type="checkbox"] {
    margin: 0 !important;
    accent-color: #2563eb;
    width: 17px;
    height: 17px;
}

.email-pref-item .pref-text {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* Marketing Newsletter Opt-in */
.marketing-optin-card {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
}

.marketing-optin-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.marketing-optin-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 4px;
}

.marketing-optin-content p {
    font-size: 13px;
    color: #3b82f6;
    margin: 0;
}

/* Form Actions Bar */
.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
}

.btn-save-details {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 11px 26px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-save-details:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.btn-cancel-details {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 11px 22px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

/* ==========================================================================
   Standard Inline Alert Banners (Matching Six Style)
   ========================================================================== */
#main-body .alert,
.alert {
    padding: 14px 20px !important;
    margin-bottom: 22px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#main-body .alert.text-center,
.alert.text-center {
    text-align: center !important;
}

#main-body .alert-success,
.alert-success {
    background-color: #dff0d8 !important;
    border-color: #d6e9c6 !important;
    color: #3c763d !important;
}

#main-body .alert-danger,
#main-body .alert-error,
.alert-danger {
    background-color: #f2dede !important;
    border-color: #ebccd1 !important;
    color: #a94442 !important;
}

#main-body .alert-warning,
.alert-warning {
    background-color: #fcf8e3 !important;
    border-color: #faebcc !important;
    color: #8a6d3b !important;
}

#main-body .alert-info,
.alert-info {
    background-color: #d9edf7 !important;
    border-color: #bce8f1 !important;
    color: #31708f !important;
}

#main-body .alert ul {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Account User Management (Clean SaaS Style)
   ========================================================================== */
.saas-card-panel {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.saas-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.header-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.header-icon {
    font-size: 20px;
    color: #2563eb;
    background: #eff6ff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-title-wrap h3 {
    margin: 0 0 4px !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.badge-count {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
}

.header-title-wrap p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
}

/* SaaS Modern Table */
.saas-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.saas-modern-table {
    width: 100%;
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.saas-modern-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.saas-modern-table tbody tr td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
}

.saas-modern-table tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* User Identity Row */
.user-row-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-row-avatar.invite {
    background: #f1f5f9;
    color: #64748b;
}

.user-row-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-row-email {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.user-role-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.user-role-badge.owner {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.user-role-badge.member {
    background: #f1f5f9;
    color: #475569;
}

.user-login-time {
    font-size: 13px;
    color: #64748b;
}

/* 2FA Badges */
.badge-2fa {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-2fa.enabled {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.badge-2fa.disabled {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Action Buttons */
.user-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-manage {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.btn-action-manage:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.btn-action-remove {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #ef4444 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.btn-action-remove:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Pending Invites Section */
.pending-invites-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.pending-invites-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.saas-card-footer-note {
    font-size: 12.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    max-width: 500px;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.input-with-icon input {
    padding-left: 40px !important;
}

/* Permissions Selection Grid */
.permissions-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin-top: 6px;
}

.perm-radio-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    font-weight: normal !important;
}

.perm-radio-card:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.perm-radio-card input[type="radio"] {
    margin: 3px 0 0 !important;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.perm-card-content strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
    margin-bottom: 2px;
}

.perm-card-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Specific Permissions List */
.invite-permissions-box {
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0;
    max-width: 700px;
}

.perms-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
}

.perms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.perm-checkbox-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-weight: normal !important;
    transition: all 0.15s ease !important;
}

.perm-checkbox-item:hover {
    border-color: #2563eb !important;
}

.perm-checkbox-item input[type="checkbox"] {
    margin: 3px 0 0 !important;
    accent-color: #2563eb;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.perm-checkbox-item strong {
    display: block;
    font-size: 12.5px;
    color: #0f172a;
}

.perm-checkbox-item p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
}

/* Invite Button */
.btn-saas-invite {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-saas-invite:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* Modals Modern Styling (System, AJAX & 2FA) */
.modal-backdrop {
    background-color: #0b0f19 !important;
    z-index: 1060 !important;
}
.modal-backdrop.in {
    opacity: 0.75 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.modal {
    z-index: 1070 !important;
    text-align: center;
    padding: 0 !important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block !important;
    text-align: left !important;
    vertical-align: middle !important;
    margin: 30px auto !important;
    max-width: 500px !important;
    width: 92% !important;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important;
}

.modal-header,
.modal-content.panel-primary > .modal-header,
.modal-header.panel-heading {
    background: #f8fafc !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.modal-header .close {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    opacity: 1 !important;
    text-shadow: none !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.modal-header .close:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.modal-title,
.modal-header h4.modal-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
    text-align: left !important;
}

.modal-body,
.modal-content.panel-primary > .modal-body,
.modal-body.panel-body {
    padding: 22px 24px !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    background: #ffffff !important;
}

.modal-body p {
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* 2FA Selection Module in Modal - Clean Card Styling */
.modal-body .radio,
.modal-body .twofa-module,
.modal-body .twofa-config-container {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

.modal-body .radio:hover,
.modal-body .twofa-module:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

.modal-body .radio label {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-body .radio input[type="radio"] {
    margin: 0 !important;
    position: static !important;
    accent-color: #2563eb;
    width: 17px;
    height: 17px;
}

.modal-body img.twofa-module-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.modal-footer,
.modal-content.panel-primary > .modal-footer,
.modal-footer.panel-footer {
    background: #f8fafc !important;
    padding: 16px 26px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.modal-footer .loader {
    display: none !important;
}

.modal-footer .loader.active {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-right: auto !important;
}

.modal-footer .btn {
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 9px 22px !important;
    transition: all 0.15s ease !important;
}

.modal-footer .btn-primary,
.modal-body input[type="submit"],
.modal-body .btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 9px 22px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

.modal-footer .btn-primary:hover,
.modal-body input[type="submit"]:hover,
.modal-body .btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.modal-footer .btn-default {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.modal-footer .btn-default:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Modal Body Forms & QR code styling */
.modal-body h2,
.modal-body h3,
.modal-body h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.modal-body img {
    max-width: 100%;
    margin: 16px auto !important;
    display: block !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 8px;
    background: #ffffff;
}

.modal-body .input-group,
.modal-body form {
    margin-top: 16px !important;
}

.modal-body .form-control {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    box-shadow: none !important;
    padding: 8px 14px !important;
}

.modal-body .form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* ==========================================================================
   Contact Selector / Switcher Bar
   ========================================================================== */
/* ==========================================================================
   Contact Selector / Switcher Bar
   ========================================================================== */
.contact-switch-card {
    background: #f8fafc !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

.contact-switch-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    margin: 0 !important;
    width: 100% !important;
}

.switch-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.switch-icon {
    color: #2563eb !important;
    font-size: 16px !important;
    background: #eff6ff !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.switch-label {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.switch-select-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    max-width: 480px !important;
    margin-left: auto !important;
}

.switch-select {
    border-radius: 9px !important;
    border: 1.5px solid #cbd5e1 !important;
    height: 38px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 6px 12px !important;
    background-color: #ffffff !important;
    flex: 1 !important;
    width: auto !important;
    display: inline-block !important;
}

.btn-switch-go {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    height: 38px !important;
    border-radius: 9px !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-switch-go:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .contact-switch-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .switch-select-wrap {
        max-width: none !important;
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   Email History Table (Clean SaaS Style)
   ========================================================================== */
.email-date-badge {
    font-size: 12.5px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #eaecf0;
}

.email-subject-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-row-icon {
    color: #2563eb;
    font-size: 14px;
    flex-shrink: 0;
}

.email-subject-text {
    font-weight: 600;
    color: #0f172a;
    font-size: 13.5px;
}

.badge-attachment {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
}

/* ==========================================================================
   DataTables Modern SaaS Styling
   ========================================================================== */
.dataTables_wrapper {
    margin-top: 12px !important;
    width: 100% !important;
    background: transparent !important;
}

.dataTables_wrapper .listtable {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 0 16px 0 !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_filter {
    margin-left: auto !important;
}

.dataTables_wrapper .dataTables_filter label {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_filter label .form-control {
    border-radius: 9px !important;
    border: 1.5px solid #e2e8f0 !important;
    height: 38px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    margin: 0 0 0 8px !important;
    outline: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    width: 220px !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_filter label .form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.dataTables_wrapper .dataTables_length label {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length label .form-control {
    border-radius: 9px !important;
    border: 1.5px solid #e2e8f0 !important;
    height: 38px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    margin: 0 6px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper div.dataTables_info {
    color: #64748b !important;
    font-size: 13px !important;
    padding: 16px 0 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    float: left !important;
    font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 14px 0 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    float: right !important;
    text-align: right !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid #eaecf0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    margin: 0 2px !important;
    transition: all 0.15s ease !important;
    display: inline-block !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.dataTables_wrapper .pagination {
    margin: 0 !important;
}

.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span {
    border-radius: 8px !important;
    border: 1px solid #eaecf0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
}

.dataTables_wrapper .pagination > .active > a,
.dataTables_wrapper .pagination > .active > a:focus,
.dataTables_wrapper .pagination > .active > a:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Affiliates System & Program Styling (affiliates.php)
   ========================================================================== */
.affiliate-portal-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px;
}

.affiliate-banner-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 44px 48px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.affiliate-banner-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner-content {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 24px;
}

.btn-activate-pro {
    background: #2563eb;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
}

.btn-activate-pro:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    color: #ffffff !important;
}

.btn-activate-pro i {
    transition: transform 0.2s ease;
}

.btn-activate-pro:hover i {
    transform: translateX(3px);
}

.banner-stats-badge {
    position: relative;
    z-index: 1;
    display: none;
}

@media (min-width: 992px) {
    .banner-stats-badge {
        display: block;
    }
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}

.stat-bubble-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-bubble-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.stat-bubble-desc {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Step Cards */
.affiliate-steps-row {
    margin-top: 10px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.step-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.5px;
}

.step-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.step-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.step-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Referral Link Card */
.affiliate-referral-card {
    padding: 24px 28px !important;
    margin-bottom: 24px;
}

.referral-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.referral-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.referral-card-header h4 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.referral-card-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.referral-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-input {
    height: 44px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    padding: 8px 16px !important;
}

.btn-copy-link {
    height: 44px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 0 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.btn-copy-link:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Balance Cards */
.affiliate-balances-row {
    margin-bottom: 24px;
}

.balance-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    margin-bottom: 16px;
}

.balance-card.active-balance {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.balance-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.balance-amount.available { color: #10b981; }
.balance-amount.pending { color: #f59e0b; }
.balance-amount.withdrawn { color: #2563eb; }

.balance-desc {
    font-size: 12px;
    color: #94a3b8;
}

/* Withdrawal Panel */
.withdrawal-panel {
    padding: 20px 24px !important;
}

.withdrawal-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.withdrawal-info h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.withdrawal-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.btn-withdraw {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 11px 24px !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.btn-withdraw:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.btn-withdraw.disabled, .btn-withdraw[disabled] {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}








