/*header.css*/
:root {
            /* Client provided colors */
            --brand-dark: #113047;
            --brand-light: #d5f4ff;
            --brand-white: #ffffff;
            --brand-accent: #b02a29;
            --brand-accent-hover: #c93231;
            --bg-color: #0b1f
            
            --navy: #0d2537;
            --navy-light: #3a6b8a;
            --bg-pill: #F4F7F9;
            --text-dark: #0f172a;
            --text-gray: #475569;
            --text-muted: #94a3b8;
            --white: #ffffff;
            --border-light: rgba(226, 232, 240, 0.8);
            
            /* Extended palette for UI depth */
            
            --shadow-float: 0 20px 40px -10px rgba(17, 48, 71, 0.15);
            --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
             --border-radius-lg: 16px;
        --border-radius-md: 12px;
        --border-radius-sm: 8px;
        }

        /* Override WHMCS Body to support the dark theme background gracefully */
        body {
            background-color: var(--bg-pill);
            padding-top: 100px; /* Space for the floating header */
        }
/* Hide the default global header breadcrumb on this page to prevent duplicates */
  .master-breadcrumb {
    display: none !important;
  }


 /*navbar*/
 /* =========================================================
   1. GLOBAL ANTI-OVERFLOW
   ========================================================= */
html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; position: relative !important; margin: 0 !important; padding: 0 !important; }

/* --- WHMCS TOPBAR (Alerts & Admin) --- */
.ifox-topbar { background-color: var(--brand-dark); color: var(--brand-light); padding: 8px 0; font-size: 13px; position: absolute; top: 0; left: 0; width: 100%; z-index: 1001; display:none; }
.ifox-topbar a { color: var(--brand-white); text-decoration: none; transition: var(--transition-smooth); }
.ifox-topbar a:hover { color: var(--brand-accent); }
.ifox-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.client-alerts-list { margin: 0; padding: 0; list-style: none; display: flex; gap: 15px; }

/* --- WRAPPER & MAIN NAVBAR --- */
.ifox-navbar-wrapper { position: fixed; top: 24px; left: 0; right: 0; margin: 0 auto; width:96%; max-width: 1700px; z-index: 1000; transition: var(--transition-smooth); box-shadow: 20px 20px 40px -10px rgba(17, 48, 71, 0.15); border-radius: 100px; }
.ifox-navbar-wrapper * { box-sizing: border-box; }
.ifox-navbar { background: rgba(255, 255, 255); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 100px; padding: 15px 12px 20px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap !important; border: 1px solid rgba(255, 255, 255, 0.8); }

/* --- LOGO --- */
.ifox-navbar .nav-logo { height: 50px !important; width: auto !important; transition: var(--transition-smooth); }
.ifox-nav-logo { font-size: 24px; font-weight: 800; color: var(--brand-dark); text-decoration: none !important; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; transition: var(--transition-smooth); }
.ifox-nav-logo span { color: var(--brand-accent); }
.ifox-nav-logo:hover { color: var(--brand-dark); }

/* --- DESKTOP MENU --- */
.ifox-nav-menu { display: flex; align-items: center; list-style: none; margin: 0 auto; gap: 4px; padding: 0; }
.ifox-has-mega-menu, .ifox-direct-link { position: relative; }
.ifox-has-mega-menu > a, .ifox-direct-link > a { color: var(--brand-dark); text-decoration: none !important; font-weight: 600; font-size: 17px; padding: 10px 19px; border-radius: 30px; display: flex; align-items: center; gap: 6px; transition: var(--transition-smooth); white-space: nowrap; }
.ifox-has-mega-menu > a i { font-size: 20px; color: #113047; transition: transform 0.3s ease; }
.ifox-has-mega-menu:hover > a, .ifox-direct-link:hover > a { color: var(--brand-dark); background: var(--bg-pill); }
.ifox-has-mega-menu:hover > a i { color: var(--brand-accent); }

/* --- MEGA MENU DROPDOWNS --- */
.ifox-mega-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(15px) scale(0.98); background: var(--brand-white); border-radius: 24px; box-shadow: var(--shadow-float); border: 1px solid var(--border-light); opacity: 0; visibility: hidden; transform-origin: top center; transition: var(--transition-smooth); padding: 24px; pointer-events: none; width: 340px; max-width: 90vw; z-index: 1002; }
.ifox-mega-menu.account-menu { width: 260px; }
.ifox-mega-menu::before { content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; }
.ifox-has-mega-menu:hover .ifox-mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
.ifox-mega-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ifox-mega-item { display: flex; align-items: flex-start; gap: 16px; padding: 12px; border-radius: 16px; text-decoration: none !important; transition: var(--transition-smooth); border: 1px solid transparent; }
.ifox-icon-box { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-pill); display: flex; align-items: center; justify-content: center; color: var(--brand-dark); font-size: 18px; flex-shrink: 0; transition: var(--transition-smooth); }
.ifox-mega-text h5 { font-size: 15px; font-weight: 700; color: var(--brand-dark); margin: 0 0 4px 0; transition: color 0.2s ease; }
.ifox-mega-text p { font-size: 13.5px; color: var(--text-gray); line-height: 1.4; margin: 0; }
.ifox-mega-item:hover { background: var(--bg-pill); transform: translateX(4px); }
.ifox-mega-item:hover .ifox-icon-box { background: var(--brand-accent); color: var(--brand-white); transform: scale(1.05) rotate(-4deg); box-shadow: 0 8px 15px rgba(176, 42, 41, 0.2); }
.ifox-mega-item:hover .ifox-mega-text h5 { color: var(--brand-accent); }

/* --- NAV RIGHT & BUTTONS --- */
.ifox-nav-right { display: flex; align-items: center; gap: 12px; }
.ifox-nav-auth { display: flex; align-items: center; gap: 8px; }
.ifox-btn-login, .ifox-btn-register { display: flex; align-items: center; gap: 8px; text-decoration: none !important; font-weight: 600; font-size: 14.5px; padding: 10px 22px; border-radius: 30px; white-space: nowrap; transition: var(--transition-smooth); }
.ifox-btn-login { background-color: var(--brand-dark); color: var(--brand-white); }
.ifox-btn-login:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(17, 48, 71, 0.2); color: var(--brand-white); }
.ifox-btn-register { background-color: var(--brand-accent); color: var(--brand-white);}
.ifox-btn-register:hover { background: var(--brand-accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(176, 42, 41, 0.3); color: var(--brand-white); }

/* --- TOGGLE & OVERLAY --- */
.ifox-menu-toggle { display: none; color: var(--brand-dark); font-size: 20px; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--bg-pill); border-radius: 50%; }
.ifox-drawer-close { display: none; }
.ifox-mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(11, 31, 46, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 998; opacity: 0; visibility: hidden; transition: var(--transition-smooth); }
.ifox-mobile-overlay.active { opacity: 1; visibility: visible; }

/* =========================================================
   2. RESPONSIVE SCALING (කවදාවත් පේළි දෙකකට නොකැඩෙන පරිදි)
   ========================================================= */

@media (max-width: 1650px) {
    .ifox-navbar { padding: 10px 15px 10px 24px; }
    .ifox-has-mega-menu > a, .ifox-direct-link > a { padding: 8px 7px; font-size: 16px; gap: 4px; }
    .ifox-btn-login, .ifox-btn-register { padding: 10px 24px; font-size: 14px; }
    .ifox-navbar .nav-logo { height: 50px !important; }
}
@media (max-width: 1500px) {
    .i-navbar-navbar-wrapper .nav-logo {
        height:50px;
    }

}
@media (max-width: 1400px) {
    .ifox-navbar { padding: 8px 12px 8px 16px; }
    .ifox-has-mega-menu > a, .ifox-direct-link > a { padding: 6px 8px; font-size: 16px; }
    .ifox-btn-login, .ifox-btn-register { padding: 6px 12px; font-size: 13.5px; }
    
}
/* =========================================================
   DESKTOP RIGHT-SIDE BUTTONS FIX (Account & Dashboard)
   ========================================================= */
@media (min-width: 1181px) {
    /* Account බටන් එක Mega Menu එකේ CSS වලින් Override වීම නැවැත්වීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register,
    .ifox-nav-auth .ifox-btn-login {
        padding: 10px 15px !important;
        color: #ffffff !important; /* අකුරු අනිවාර්යයෙන්ම සුදු පාට කිරීම */
        background-color: var(--brand-dark, #113047) !important;
        width: auto !important;
       
        height: 44px !important;
        border-radius: 30px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* සැඟවී ඇති Text එක නැවත පෙන්වීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register span,
    .ifox-nav-auth .ifox-btn-login span {
        display: inline-block !important;
        color: #ffffff !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    /* අයිකන් වල වර්ණය නිවැරදි කිරීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register i,
    .ifox-nav-auth .ifox-btn-login i {
        color: #ffffff !important;
        font-size: 16px !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    /* Hover කළ විට ලස්සනට පාට වෙනස් වීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register:hover,
    .ifox-nav-auth .ifox-btn-login:hover {
        background-color: var(--brand-accent, #b02a29) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 15px rgba(176, 42, 41, 0.2) !important;
    }
       
}
/* =========================================================
   3. TABLET & MOBILE DRAWER (Max 1180px)
   ========================================================= */
@media (max-width: 1180px) {
    .ifox-navbar-wrapper { top: 16px !important; left: 16px !important; right: 16px !important; width: auto !important; max-width: none !important; margin: 0 !important; transform: none !important; }
    .ifox-navbar { padding: 8px 16px !important; }
    .ifox-menu-toggle { display: flex; }
    
    .ifox-btn-login span, .ifox-btn-register span { display: none !important; }
    .ifox-btn-login, .ifox-btn-register, .ifox-nav-auth .ifox-has-mega-menu > a { width: 40px !important; height: 40px !important; min-width: 40px !important; padding: 0 !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
    .ifox-btn-login i, .ifox-btn-register i { margin: 0 !important; font-size: 16px !important; }
    .ifox-navbar .nav-logo { height:40px !important;flex-shrink: 1 !important; }
    .ifox-nav-right { gap: 8px !important; }
    
    /* MOBILE DRAWER MENU - Fixed White Space Issue */
    .ifox-nav-menu { 
        position: fixed; top: 0; right: 0; transform: translateX(100%); visibility: hidden; 
        width: 85%; max-width: 340px; height: 100vh; background: var(--brand-white); 
        flex-direction: column; align-items: stretch; 
        justify-content: flex-start !important; /* මෙයින් අයිකන් ටික උඩට ගනී (සුදු ඉර නැති කරයි) */
        padding: 70px 24px 40px !important; 
        box-shadow: -20px 0 40px rgba(0,0,0,0.1); transition: all 0.4s ease; z-index: 1001; overflow-y: auto; overflow-x: hidden; gap: 8px; display: flex; 
    }
    .ifox-nav-menu.active { transform: translateX(0); visibility: visible; }
    
    .ifox-has-mega-menu > a, .ifox-direct-link > a { width: 100%; justify-content: space-between; padding: 12px 16px; background: var(--bg-pill); border-radius: 12px; font-size: 16px; }
    
    /* Drawer Mega Menus */
    .ifox-mega-menu { position: static; width: 100% !important; box-shadow: none; border: none; padding: 0; opacity: 1; visibility: visible; transform: none; display: none !important; background: transparent; margin-top: 8px; }
    .ifox-has-mega-menu.mobile-open .ifox-mega-menu { 
    display: block !important; 
    position: relative !important; 
    z-index: 1050 !important; 
    pointer-events: auto !important; 
}
    .ifox-has-mega-menu.mobile-open > a { color: var(--brand-accent); background: rgba(176, 42, 41, 0.05); }
    .ifox-has-mega-menu.mobile-open > a i { color: var(--brand-accent); }
    .ifox-mega-item { background: var(--brand-white); border: 1px solid var(--border-light); padding: 12px; margin-bottom: 8px; gap: 12px; }
    
    .ifox-drawer-close { display: flex; position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: var(--bg-pill); border-radius: 50%; align-items: center; justify-content: center; font-size: 18px; color: var(--brand-dark); cursor: pointer; }
    
    /* Background Blur */
    .ifox-has-mega-menu.mobile-open::before { content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; -webkit-backdrop-filter: blur(8px); z-index: 1040; cursor: default; }
    .ifox-nav-auth .ifox-has-mega-menu.mobile-open .ifox-mega-menu { z-index: 1050 !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important; }


    .ifox-has-mega-menu.mobile-open > a { position: relative; z-index: 1050; }

          
   
}
/* =========================================================
   MOBILE DRAWER DROPDOWN FIX (Left Shifting Issue)
   ========================================================= */
@media (max-width: 1180px) {
    /* මෙයින් Mega Menu එක Drawer එක ඇතුළේ වමට පැනීම (Shift වීම) නවත්වයි */
    .ifox-has-mega-menu .ifox-mega-menu,
    .ifox-has-mega-menu.mobile-open .ifox-mega-menu {
        position: relative !important; 
        z-index: 1050 !important; 
        pointer-events: auto !important; 
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important; /* <--- This stops it from being pushed down */
        transform: none !important; 
        margin-left: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }    
    /* ඇතුලේ තියෙන කොටු (Items) Drawer එකේ පළලට හරියටම හදයි */
    .ifox-mega-item {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    /* Text එක කොටුවෙන් එළියට පැනීම වැළැක්වීම */
    .ifox-mega-text {
        flex: 1;
        min-width: 0; /* Flexbox එකේදී text එක wrap වෙන්න අත්‍යවශ්‍යයි */
    }
    
    .ifox-mega-text h5, 
    .ifox-mega-text p {
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}
/* =========================================================
   4. ACCOUNT DROPDOWN (Right Side)
   ========================================================= */
@media (max-width: 991px) {
    .ifox-nav-auth .ifox-has-mega-menu .ifox-mega-menu, .ifox-nav-auth .ifox-mega-menu[style] {
        position: absolute !important; top: 120% !important; right: 0 !important; left: auto !important; transform: none !important; width: 280px !important; max-width: calc(100% - 20px) !important; padding: 15px !important; z-index: 1050 !important; display: none !important; background: rgb(192 199 219 / 90%) !important; backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important; border: 1px solid rgba(255, 255, 255, 0.6) !important; border-radius: 20px !important;
    }
    .ifox-nav-auth .ifox-has-mega-menu.mobile-open .ifox-mega-menu { display: block !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
    .account-menu .ifox-icon-box { display: none !important; }
    .account-menu .ifox-mega-item { gap: 0 !important; padding: 12px 15px !important; }
    .account-menu .ifox-mega-text h5 { margin-bottom: 0 !important; font-size: 15px !important; }
}

/* =========================================================
   5. MOBILE PHONES (Max 768px)
   ========================================================= */
@media (max-width: 768px) {
    .ifox-navbar-wrapper { top: 12px !important; left: 12px !important; right: 12px !important; box-shadow: 0 10px 25px rgba(17, 48, 71, 0.12) !important; }
    .ifox-navbar { padding: 8px 12px 8px 16px !important; flex-wrap: nowrap !important; }
    .ifox-navbar .nav-logo { height: 36px !important; max-width: 140px !important; }
    .ifox-nav-right { gap: 6px !important; }
    
    .ifox-btn-login, .ifox-btn-register, .ifox-nav-auth .ifox-has-mega-menu > a, .ifox-menu-toggle { width: 38px !important; height: 38px !important; min-width: 38px !important; }
    
    /* WHMCS Bootstrap Horizontal Scroll Fix */
    .row { margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; }
    .container, .container-fluid, #main-body, .primary-content { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
}

/* =========================================================
   6. ACCOUNT DROPDOWN (TWO-COLUMN UPGRADE)
   ========================================================= */

/* Desktop Specific Styles */
@media (min-width: 992px) {
    .ifox-mega-menu.account-menu {
        width: 520px !important; /* Wide enough for two columns */
        padding: 24px !important;
        right: 0 !important; /* Align flush with the right edge */
        left: auto !important; /* Remove center alignment */
        transform: translateY(15px) !important; /* Remove the -50% X translation */
    }
    
    .ifox-has-mega-menu:hover .ifox-mega-menu.account-menu {
        transform: translateY(0) !important;
    }

    .account-menu .ifox-mega-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 15px !important;
    }

    .account-menu .ifox-mega-item {
        padding: 10px 14px !important; /* Tighter padding for grid */
        gap: 12px !important;
    }

    .account-menu .ifox-icon-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
}

/* Logout Button Styling (Applies to both Desktop & Mobile) */
.account-menu .logout-item {
    grid-column: 1 / -1 !important; /* Forces it to span all available columns */
    justify-content: center !important;
    text-align: center;
    margin-top: 10px !important;
    padding-top: 15px !important;
    border-top: 1px solid var(--border-light) !important;
    background: transparent !important;
}

.account-menu .logout-item .ifox-mega-text {
    flex: 0 0 auto !important; /* Prevents text from stretching */
}

.account-menu .logout-item:hover {
    background-color: #fef2f2 !important; /* Subtle red hover */
    border-color: transparent !important;
}
/* Mobile & Tablet Specific Styles (Fix for BOTH Notification Bell & Account Menus - Position Alignment) */
@media (max-width: 1180px) {
    /* 1. Make the main navbar the anchor point for right-side dropdowns */
    .ifox-navbar {
        position: relative !important;
    }
    
    /* 2. Remove relative positioning from the icons so dropdowns break free */
    .ifox-nav-auth .ifox-has-mega-menu {
        position: static !important;
    }

    /* 3. Style and position BOTH dropdowns relative to the navbar */
    .ifox-nav-auth .ifox-has-mega-menu .ifox-mega-menu,
    .ifox-nav-auth .ifox-has-mega-menu.mobile-open .ifox-mega-menu,
    .ifox-nav-auth .ifox-mega-menu[style] {
        position: absolute !important;
        top: calc(100% + 5px) !important; /* Drops right below the white navbar */
        right: 12px !important; /* Aligns neatly with the right edge */
        left: auto !important;
        width: 320px !important;
        max-width: calc(100vw - 32px) !important; /* Safe width for small phones */
        padding: 16px !important;
        background: var(--brand-white) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 16px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
        transform: none !important;
        margin: 0 !important;
        display: none !important; /* Hide normally */
        z-index: 1050 !important;
    }

    /* Show when clicked/tapped */
    .ifox-nav-auth .ifox-has-mega-menu.mobile-open .ifox-mega-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* -------------------------------------
       Account Menu Specific Mobile Fixes 
       ------------------------------------- */
    .account-menu .ifox-mega-grid {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    .account-menu .ifox-icon-box {
        display: flex !important; 
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    .account-menu .ifox-mega-item {
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 10px !important;
    }
    .account-menu .ifox-mega-text h5 {
        font-size: 14px !important;
        margin: 0 !important;
    }
    .account-menu .logout-item {
        justify-content: flex-start !important;
        padding-top: 12px !important;
        margin-top: 5px !important;
        border-top: 1px solid var(--border-light) !important;
    }
}
@media (max-width: 1180px) {
    /* 1. Free the drawer by removing the backdrop filter from the parent */
    .ifox-navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        position: relative;
    }
    
    /* 2. Re-apply the blur behind the navbar using a pseudo-element so it doesn't trap children */
    .ifox-navbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: inherit;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: -1;
    }
}
/* =========================================================
   1366px LAPTOP FIX: Hide Text & Show Only Icons for Dashboard/Account
   ========================================================= */
@media (max-width: 1450px) and (min-width: 1181px) {
    /* Text එක සම්පූර්ණයෙන්ම සැඟවීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register span,
    .ifox-nav-auth .ifox-btn-login span {
        display: none !important;
    }

    /* Button එක රවුම් හැඩයකට (Circle) සකස් කිරීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register,
    .ifox-nav-auth .ifox-btn-login {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important; 
        justify-content: center !important;
    }

    /* අයිකන් එක හරි මැදට ගැනීම */
    .ifox-nav-auth .ifox-has-mega-menu > a.ifox-btn-register i,
    .ifox-nav-auth .ifox-btn-login i {
        margin: 0 !important;
        font-size: 16px !important;
    }
}
/*footer.css*/
/* =========================================================
   iFox Footer — Responsive Rewrite
   Breakpoints: 1200px (desktop) / 992px (laptop) / 768px (tablet)
                / 576px (large phone) / 400px (small phone)
   ========================================================= */

.ifox-footer {
    background-color: var(--brand-dark, #113047);
    color: var(--brand-white, #ffffff);
    
    padding: 70px 0 30px;
    font-size: 14.5px;
}

.ifox-footer a {
    color: var(--brand-white);
    text-decoration: none;
    transition: var(--transition-smooth, all 0.3s ease);
}

.ifox-footer a:hover {
    color: var(--brand-accent, #b02a29);
}

.ifox-footer-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid: 1.5fr for brand column + 4 equal link columns.
   Using minmax(0, ...) keeps grid items from overflowing on narrow columns. */
.ifox-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* --- Column 1: Brand & Contact --- */
.ifox-footer-brand {
    margin-bottom: 25px;
}

.ifox-footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-white);
    margin-bottom: 10px;
    display: inline-block;
}

.ifox-footer-logo span {
    color: var(--brand-accent, #b02a29);
}

.ifox-footer-tagline {
    color: var(--brand-white);
    font-size: 16px;
    margin-bottom: 30px;
}

.ifox-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.ifox-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--brand-white);
    line-height: 1.5;
}

.ifox-contact-item i {
    margin-top: 3px;
    font-size: 16px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ifox-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ifox-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-white);
    font-size: 16px;
    transition: var(--transition-smooth, all 0.3s ease);
}

.ifox-social-icons a:hover {
    background: var(--brand-accent, #b02a29);
    transform: translateY(-3px);
}

/* --- Link columns --- */
.ifox-footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0; /* allow column to shrink instead of overflowing the grid */
}

.ifox-widget-title {
    color: var(--brand-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.ifox-widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background-color: var(--brand-accent, #b02a29);
    margin-right: 12px;
    flex-shrink: 0;
}

.ifox-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ifox-footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    word-break: break-word;
}

.ifox-footer-links li a:hover {
    color: var(--brand-white);
    padding-left: 5px;
}

/* --- Bottom Bar --- */
.ifox-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ifox-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
    width: 100%;
}

.ifox-whmcs-utils {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 30px;
}

.ifox-btn-language {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ifox-btn-language:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Laptops / small desktops: keep brand column wide, shrink gaps */
@media (max-width: 1200px) {
    .ifox-footer-grid {
        gap: 30px;
    }
}

/* Tablets: 3 columns, brand spans the full top row */
@media (max-width: 992px) {
    .ifox-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 45px;
        column-gap: 25px;
    }
    .ifox-footer-col-main {
        grid-column: 1 / -1;
    }
}

/* Large phones / small tablets: 2 columns for links */
@media (max-width: 768px) {
    .ifox-footer {
        padding: 50px 0 20px;
    }
    .ifox-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
        column-gap: 20px;
        margin-bottom: 40px;
    }
    .ifox-footer-col-main {
        grid-column: 1 / -1;
    }
    .ifox-footer-col {
        gap: 15px;
    }
}

/* Phones: single column, everything stacks */
@media (max-width: 576px) {
    .ifox-footer-container {
        width: 100%;
        padding: 0 20px;
    }
    .ifox-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 35px;
    }
    .ifox-footer-col-main {
        grid-column: 1;
    }
    .ifox-footer-logo {
        font-size: 22px;
    }
    .ifox-footer-tagline {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .ifox-social-icons {
        justify-content: flex-start;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .ifox-footer {
        padding: 40px 0 20px;
        font-size: 14px;
    }
    .ifox-contact-item {
        line-height: 1.4;
    }
    .ifox-social-icons a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .ifox-whmcs-utils {
        justify-content: center;
    }
}
 section#main-body{
        padding: 0;
    }

    #main-body .container{
        max-width:100%;
        padding:0;

    }
    .primary-bg-color{
        padding-top:0;
    }

/*view-cart-css*/
:root {
    --brand-dark: #113047;
    --brand-light: #d5f4ff;
    --brand-white: #ffffff;
    --brand-accent: #b02a29;
    --brand-accent-hover: #c93231;
    --bg-color: #0b1f2e;
    --navy: #0d2537;
    --navy-light: #3a6b8a;
    --bg-pill: #F4F7F9;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-muted: #94a3b8;
    --border-light: rgba(226, 232, 240, 0.8);
    --shadow-float: 0 20px 40px -10px rgba(17, 48, 71, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

.spc-single-page .row { display: flex; flex-wrap: wrap; gap: 24px; }
.spc-single-page .cart-body { flex: 1; min-width: 0; }
.spc-single-page .secondary-cart-sidebar {
    width: 320px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
@media (max-width: 1000px) {
    .spc-single-page .secondary-cart-sidebar { width: 100%; position: static; order: -1; }
}

/* ---- Loading ---- */
.spc-global-loader {
    position: fixed; inset: 0; background: rgba(11,31,46,.55);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; z-index: 9999; color: #fff;
}
.spc-spinner {
    width: 40px; height: 40px; border: 4px solid rgba(255,255,255,.25);
    border-top-color: var(--brand-accent); border-radius: 50%;
    animation: spc-spin .8s linear infinite;
}
@keyframes spc-spin { to { transform: rotate(360deg); } }
.spc-skeleton {
    background: linear-gradient(90deg, var(--bg-pill) 25%, #eef2f5 37%, var(--bg-pill) 63%);
    background-size: 400% 100%; animation: spc-shimmer 1.4s ease infinite;
    border-radius: var(--border-radius-sm); height: 180px;
}
@keyframes spc-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Steps ---- */
.spc-step { margin-bottom: 40px; }
.spc-step-sub { color: var(--text-muted); font-size: 13.5px; margin: 4px 0 16px; }

/* ---- Period cards ---- */
.spc-period-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .spc-period-grid { grid-template-columns: repeat(2, 1fr); } }
.spc-period-card {
    position: relative; border: 2px solid var(--border-light); border-radius: var(--border-radius-md);
    padding: 16px 10px; text-align: center; cursor: pointer; background: #fff;
    transition: var(--transition-smooth); display: block;
}
.spc-period-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-float); }
.spc-period-active { border-color: var(--brand-dark); box-shadow: 0 0 0 3px var(--brand-light); }
.spc-period-radio { position: absolute; top: 10px; left: 10px; accent-color: var(--brand-dark); }
.spc-period-cycle { display: block; font-size: 13px; color: var(--text-gray); font-weight: 600; }
.spc-period-price { display: block; font-size: 22px; font-weight: 800; color: var(--brand-dark); margin: 4px 0; }
.spc-period-permonth { font-size: 11px; color: var(--text-muted); }

/* ---- Domain step ---- */
.spc-domain-toggle { display: flex; gap: 10px; margin-bottom: 14px; }
.spc-toggle-btn {
    flex: 1; padding: 11px 14px; border: 2px solid var(--border-light); border-radius: var(--border-radius-md);
    background: #fff; font-weight: 600; color: var(--text-gray); cursor: pointer; transition: var(--transition-smooth);
}
.spc-toggle-active { border-color: var(--brand-dark); color: var(--brand-dark); background: var(--brand-light); }
.spc-domain-search-row { display: flex; gap: 10px; }
.spc-input { border-radius: var(--border-radius-md) !important; }
.spc-domain-results { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.spc-domain-result-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--border-radius-md); background: #fff;
}
.spc-domain-result-row.available { border-color: #16a34a; }
.spc-domain-status.available { color: #16a34a; font-weight: 700; font-size: 12px; }
.spc-domain-status.unavailable { color: var(--brand-accent); font-weight: 700; font-size: 12px; }
.spc-domain-hint { font-size: 12px; color: var(--text-muted); }
.spc-domain-cart-item .item-title { color: var(--brand-dark); font-weight: 700; }

/* ---- Order summary sidebar ---- */
.order-summary {
    background: var(--brand-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}
.order-summary .font-size-30 { color: var(--brand-dark); font-size: 18px !important; margin-bottom: 12px; }
.total-due-today { background: #fff; border-radius: var(--border-radius-sm); padding: 12px 14px; }
.total-due-today .amt { font-size: 22px; font-weight: 800; color: var(--brand-dark); display: block; }
#spcSubmitOrder { border-radius: var(--border-radius-sm); font-weight: 700; margin-top: 12px; }
.spc-summary-promo { margin: 14px 0; }
.spc-promo-form { display: flex; gap: 8px; }

/* ---- Billing form (injected checkout.tpl) ---- */
#spcAccountPaymentForm { background: var(--bg-pill); border-radius: var(--border-radius-lg); padding: 20px; }
#spcAccountPaymentForm .primary-bg-color { color: var(--brand-dark); font-weight: 700; }
#spcAccountPaymentForm input.field,
#spcAccountPaymentForm select.field { border-radius: var(--border-radius-sm); }
#spcAccountPaymentForm #btnCompleteOrder { display: none; } /* using the sidebar submit button instead */

/* ---- Cart line items ---- */
.view-cart-items .item {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
}

/*clientarea*/
/* =========================================================
   IFOX.UK CLIENT AREA DASHBOARD
   LIGHT PREMIUM THEME
   ========================================================= */

:root {

    /* Brand */
    --brand-dark: #113047;
    --brand-light: #d5f4ff;
    --brand-white: #ffffff;

    --brand-accent: #b02a29;
    --brand-accent-hover: #c93231;

    /* UI */
    --bg-color: #f4f7f9;
    --bg-soft: #f8fafc;
    --bg-blue-soft: #eef9fd;

    --navy: #0d2537;
    --navy-light: #3a6b8a;

    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-muted: #94a3b8;

    --white: #ffffff;

    --border-light: rgba(226, 232, 240, 0.9);

    /* Status */
    --success: #16a34a;
    --success-bg: #ecfdf3;

    --warning: #d97706;
    --warning-bg: #fff7ed;

    --danger: #dc2626;
    --danger-bg: #fef2f2;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);

    --shadow-sm:
        0 4px 12px rgba(17, 48, 71, 0.05);

    --shadow-md:
        0 12px 30px rgba(17, 48, 71, 0.08);

    --shadow-float:
        0 20px 40px -10px rgba(17, 48, 71, 0.15);

    /* Radius */
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;

    /* Animation */
    --transition:
        all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================================================
   BASE
   ========================================================= */

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
}


/* #main-body .container {
    max-width: 1600px;
   
    padding: 0 15px;
} */

section#main-body {
    padding: 0;
}

a {
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}


/* =========================================================
   IFOX.UK CLIENT AREA DASHBOARD
   LIGHT PREMIUM THEME (UPDATED DESIGN)
   ========================================================= */

:root {
    /* Brand */
    --brand-dark: #113047;
    --brand-light: #d5f4ff;
    --brand-white: #ffffff;
    --brand-accent: #b02a29;
    --brand-accent-hover: #c93231;

    /* UI */
    --bg-color: #f4f7f9;
    --bg-soft: #f8fafc;
    --bg-blue-soft: #eef9fd;
    --navy: #0d2537;
    --navy-light: #3a6b8a;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --border-light: rgba(226, 232, 240, 0.9);

    /* Status */
    --success: #16a34a;
    --success-bg: #ecfdf3;
    --warning: #d97706;
    --warning-bg: #fff7ed;
    --danger: #dc2626;
    --danger-bg: #fef2f2;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(17, 48, 71, 0.05);
    --shadow-md: 0 12px 30px rgba(17, 48, 71, 0.08);
    --shadow-float: 0 20px 40px -10px rgba(17, 48, 71, 0.15);

    /* Radius */
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;

    /* Animation */
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   BASE
   ========================================================= */
body {
   
    background: var(--bg-color);
    color: var(--text-dark);
}

#main-body .container {
    max-width: 100%;
  
   
}
section#main-body {
    padding: 0;
}
a {
    transition: var(--transition);
}
a:hover {
    text-decoration: none;
}

/* =========================================================
   DASHBOARD WRAPPER
   ========================================================= */
.welcome-header,
.stats-grid,
.dashboard-grid,
.ifox-dashboard-status {
   
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   1. DASHBOARD GRID (50/50 SPLIT)
   ========================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 20px;
    align-items: start;
}

/* =========================================================
   2. NEW WELCOME HERO BANNER
   ========================================================= */
.welcome-header-banner {
    position: relative;
    /* You can swap this out with your server rack background image */
    background: linear-gradient(135deg, #f4fafe 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    /* border: 1px solid var(--border-light); */
    padding: 40px 50px;
    margin-bottom: 25px;
    display: block;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    margin-top: 20px; 
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.welcome-text {
    max-width: 600px;
    position: relative;
    z-index: 3;
}

.welcome-text h1 {
    color: var(--brand-dark);
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.welcome-text p {
    color: var(--text-gray);
    font-size: 15px;
    margin: 0 0 25px 0;
}

.welcome-actions {
    display: flex;
    gap: 15px;
}

.btn-welcome-primary,
.btn-welcome-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none !important;
}

.btn-welcome-primary {
    background: var(--brand-accent);
    color: #ffffff !important;
    border: 2px solid var(--brand-accent);
}

.btn-welcome-primary:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(176, 42, 41, 0.2);
}

.btn-welcome-outline {
    background: #ffffff;
    color: var(--brand-accent) !important;
    border: 1px solid var(--brand-accent);
}

.btn-welcome-outline:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(176, 42, 41, 0.08);
}

.welcome-mascot {
    position: absolute;
    right: 40px;
    bottom: -40px; 
    z-index: 1;
    pointer-events: none; 
}

.mascot-img-top {
    max-height: 220px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991px) {
    .welcome-header-banner {
        padding: 30px;
        overflow: hidden; 
    }
    .welcome-mascot {
        right: -20px;
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .welcome-mascot {
        display: none; 
    }
    .welcome-text {
        text-align: center;
        margin: 0 auto;
    }
    .welcome-actions {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .welcome-actions {
        flex-direction: column;
    }
    .btn-welcome-primary, 
    .btn-welcome-outline {
        width: 100%;
        justify-content: center;
    }
    .sidebar{
        display:none;
    }
}

/* =========================================================
   BUTTONS (General)
   ========================================================= */
.btn-primary {
    background: var(--brand-accent) !important;
    border: 1px solid var(--brand-accent) !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--brand-accent-hover) !important;
    border-color: var(--brand-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(176,42,41,0.20);
}

/* =========================================================
   STATISTICS GRID
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

/* =========================================================
   STAT CARD
   ========================================================= */
.stat-card {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.stat-card::before {
    display: none;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.stat-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.stat-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon {
    transform: scale(1.05);
}
.icon-blue {
    background: var(--brand-dark);
    color: #ffffff;
    box-shadow: none; 
}
.icon-light-blue {
    background: #f1f5f9;
    color: var(--brand-dark);
    border: none;
}

.stat-val {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-val h2 {
    margin: 0 0 2px;
    color: var(--brand-dark);
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: normal;
}
.stat-val > span {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center; 
}

.stat-link {
    display: inline-block;
    color: #2563eb; 
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.stat-link:hover {
    color: #1d4ed8;
    transform: none;
}

/* =========================================================
   BADGES
   ========================================================= */
.custom-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}
.badge-red {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    text-transform: uppercase;
}
.badge-green {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #bbf7d0;
}
.badge-blue {
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

/* =========================================================
   DYNAMIC DASHBOARD PANELS
   ========================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.col-left, .col-right {
    min-width: 0;
}

/* =========================================================
   CUSTOM CARD (For panels)
   ========================================================= */
.custom-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.custom-card:hover {
    border-color: rgba(17,48,71,0.13);
    box-shadow: var(--shadow-sm);
}
.custom-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(90deg, #ffffff, #fbfdfe);
    border-bottom: 1px solid var(--border-light);
}
.custom-card-header h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--brand-dark);
    font-size: 15px;
    font-weight: 800;
}
.custom-card-header h3 i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 13px;
    margin-right: 2px;
}
.custom-card .card-body {
    padding: 20px !important;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.65;
}

/* =========================================================
   LIST GROUP (Panel items)
   ========================================================= */
.custom-list-group {
    display: flex;
    flex-direction: column;
}
.custom-list-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.custom-list-item:last-child {
    border-bottom: none;
}
.custom-list-item:hover {
    background: linear-gradient(90deg, #f8fcfe, #ffffff);
    color: var(--brand-dark);
    padding-left: 22px;
}
.item-info {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}
.item-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 14px;
    transition: var(--transition);
}
.custom-list-item:hover .item-icon {
    transform: scale(1.05);
}
.bg-blue {
    background: var(--brand-dark);
    color: #fff;
}
.bg-gray {
    background: #eef2f5;
    color: var(--navy-light);
}
.item-details {
    min-width: 0;
}
.item-details h4 {
    margin: 0;
    overflow: hidden;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
}
.item-details p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}
.item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 12px;
}
.item-meta .fa-chevron-right {
    font-size: 9px;
    transition: var(--transition);
}
.custom-list-item:hover .item-meta .fa-chevron-right {
    color: var(--brand-accent);
    transform: translateX(3px);
}
.custom-card .card-footer {
    padding: 12px 20px !important;
    background: #fbfcfd !important;
    border-top: 1px solid var(--border-light) !important;
}

/* =========================================================
   OUTLINE BUTTON
   ========================================================= */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.dashboard-grid + * {
    box-sizing: border-box;
}

/* =========================================================
   STATUS SECTION
   ========================================================= */
.ifox-dashboard-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 5px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    color: var(--text-gray);
    font-size: 12px;
}
.ifox-status-online {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--success);
    font-weight: 700;
}
.ifox-status-online::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

/* =========================================================
   MASCOT SUPPORT CARD
   ========================================================= */
.sidebar-mascot-wrapper {
    position: relative;
    margin-top: 35px;
    text-align: center;
}
.mascot-img {
    position: relative;
    z-index: 3;
    display: block;
    width: 350px;
    max-width: 75%;
    margin: 0 auto -35px;
    object-fit: contain;
    transition: var(--transition);
}
.sidebar-mascot-wrapper:hover .mascot-img {
    transform: translateY(-5px);
}
.mascot-help-card {
    position: relative;
    z-index: 2;
    padding: 52px 20px 20px;
    background: linear-gradient(145deg, #ffffff, #f1fbfe);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.mascot-help-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 70px;
    height: 3px;
    transform: translateX(-50%);
    background: var(--brand-accent);
    border-radius: 0 0 5px 5px;
}
.mascot-help-card h4 {
    margin: 0 0 7px;
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 800;
}
.mascot-help-card p {
    margin: 0 0 15px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}
.btn-red-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: none;
    border-radius: 9px;
    background: var(--brand-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-red-accent:hover {
    background: var(--brand-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(176,42,41,0.20);
}
.master-breadcrumb .breadcrumb {
    padding-top: 100px;
}
/* =========================================================
   SIDEBAR
   ========================================================= */
/* =========================================================
   SIDEBAR (Matches Mockup Design)
   ========================================================= */
.card-sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 0 !important; /* Fixed: Removed the 100px margin */
}

/* Hide standard WHMCS panel headers to create a unified look */
.card-sidebar .card-header {
    display: none !important;
}

/* Remove boxed styling around the sidebar lists */
.card-sidebar .custom-sidebar-body {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.card-sidebar .custom-sidebar-list {
    gap: 20px;
    background: transparent !important;
}

.card-sidebar .list-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px !important;
    padding: 12px 16px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    color: var(--text-dark) !important;
    font-size: 17px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.card-sidebar .list-group-item:hover {
    background: var(--bg-soft) !important;
    color: var(--brand-dark) !important;
    transform: translateX(4px);
}

/* Active state matching mockup (Light Red BG, Red Text) */
.card-sidebar .list-group-item.active {
    background: #fef2f2 !important; 
    color: var(--brand-accent) !important; 
}

.sidebar-menu-item-icon-wrapper {
    width: 24px;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
}

.card-sidebar .list-group-item:hover .sidebar-menu-item-icon-wrapper {
    color: var(--brand-dark);
}

.card-sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper i {
    color: var(--brand-accent) !important;
}

/* =========================================================
   REMOVE EXCESS WHMCS CARD STYLING
   ========================================================= */
.primary-bg-color {
    background: transparent !important;
}
.card {
    box-shadow: none;
}
.btn-default {
    color:var(--white);
    background-color: var(--brand-accent);
}
.btn-default:hover{
   transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(176, 42, 41, 0.20);
}
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .col-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        align-items: start;
    }
    .col-right .custom-card {
        margin-bottom: 0;
    }
}
@media (max-width: 850px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .refer-card {
        min-width: 100%;
    }
    .welcome-text h1 {
        font-size: 25px;
    }
    .col-right {
        grid-template-columns: 1fr;
    }
    
}
@media (max-width: 600px) {
    #main-body .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 0 !important;
    }
    .welcome-header {
        padding: 10px 0 15px 0;
    }
    .welcome-text h1 {
        font-size: 22px;
    }
    .welcome-text p {
        font-size: 13px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 20px;
    }
    .custom-card-header {
        padding: 15px;
    }
    .custom-list-item {
        padding: 13px 14px;
    }
    .item-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .item-details h4 {
        font-size: 12px;
    }
    .item-meta {
        gap: 7px;
    }
}

/* =========================================================
   CUSTOM DOMAIN PROMO PANEL (BOTTOM)
   ========================================================= */
.domain-promo-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 40px;
    margin-top: 10px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.domain-promo-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.domain-promo-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
}

.domain-promo-text h3 {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 800;
}

.domain-promo-text p {
    margin: 0;
    color: var(--text-gray);
    font-size: 14px;
}

.domain-promo-right {
    flex: 1.5;
    min-width: 400px;
}

.domain-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: var(--transition);
}

.domain-input-wrapper:focus-within {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(176, 42, 41, 0.1);
}

.domain-search-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 14.5px;
    outline: none;
    color: var(--text-dark);
    background: transparent;
}

.domain-tld-select {
    border-left: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.domain-tld-select select {
    border: none;
    background: transparent;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand-dark);
    outline: none;
    cursor: pointer;
    padding-right: 5px;
}

.btn-domain-search {
    background: var(--brand-accent);
    color: #ffffff;
    border: none;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-domain-search:hover {
    background: var(--brand-accent-hover);
}

.domain-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 13px;
}

.tags-label {
    color: var(--text-gray);
    font-weight: 500;
}

.domain-tags .tag {
    background: var(--bg-pill);
    color: var(--text-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.domain-tags .tag:hover {
    background: #e2e8f0;
    color: var(--brand-dark);
}

@media (max-width: 900px) {
   
    .container{
    margin-top: 70px;
   }
    .domain-promo-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    .domain-promo-right {
        width: 100%;
        min-width: 100%;
    }
    .domain-input-wrapper {
        flex-direction: column;
        border: none;
        gap: 10px;
    }
    .domain-search-input, .domain-tld-select, .btn-domain-search {
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        width: 100%;
        padding: 14px;
    }
    .domain-tags {
        flex-wrap: wrap;
    }
}

/* =========================================================
   PANEL REFINEMENTS & EMPTY STATES (Mockup Match)
   ========================================================= */
.custom-card-header {
    background: #ffffff !important; 
    padding: 16px 20px !important;
}

.custom-card-header h3 {
    font-size: 15px !important;
}

.custom-card-header h3 i {
    background: transparent !important; 
    color: var(--brand-dark) !important;
    font-size: 16px !important;
    width: auto !important;
    height: auto !important;
    margin-right: 8px !important;
}

/* Styling WHMCS default empty states */
.custom-card .card-body {
    text-align: center; /* Centers empty state text */
}

/* Create the circular icon container for empty states */
.custom-card .card-body i.fas.fa-box-open,
.custom-card .card-body i.fas.fa-ticket-alt,
.custom-card .card-body i.fas.fa-headset,
.custom-card .card-body i.far.fa-frown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-blue-soft);
    color: var(--navy-light);
    border-radius: 50%;
    font-size: 22px;
    margin: 10px auto 20px auto;
}

/* Style WHMCS default buttons in empty states */
.custom-card .card-body .btn-default,
.custom-card .card-body .btn-primary {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Specific styling for the outline button in Tickets empty state */
#ClientAreaHomePagePanels-Recent_Support_Tickets .card-body .btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--brand-dark) !important;
    box-shadow: none !important;
}

#ClientAreaHomePagePanels-Recent_Support_Tickets .card-body .btn:hover {
    background: #f1f5f9 !important;
    border-color: var(--brand-dark) !important;
}

.sidebar .card-sidebar:first-of-type,
div[class*="sidebar"] > .card-sidebar:first-of-type {
    margin-top: 50px !important; 
}

.hero-breadcrumb {
    margin-top:50px !important;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.hero-breadcrumb {

    margin-top: 50px;

    margin-bottom: 15px;

}

.hero-breadcrumb .breadcrumb {

    background: transparent !important;

    padding: 0 !important;

    margin: 0 !important;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    list-style: none;

}

.hero-breadcrumb .breadcrumb-item {

    display: flex;

    align-items: center;

    color: #b02a29;

}

.hero-breadcrumb .breadcrumb-item a {

    color: #000000;

    text-decoration: none;

    transition: all .3s ease;

}

.hero-breadcrumb .breadcrumb-item a:hover {

    color: #b02a29;

}

.hero-breadcrumb .breadcrumb-item.active {

    color: #b02a29;

}

.hero-breadcrumb
.breadcrumb-item
+ .breadcrumb-item::before {

    content: "/";

    color: #b02a29;

    padding: 0 10px;

    font-weight: 400;

}
html{
        background-color: #f4f7f9;
}
@media (max-width: 900px) {
    .hero-breadcrumb {
        padding-top: 40px;
    }
}

/*dashboard tables*/
.page-link {
        padding: .25rem .75rem !important;
        border:none !important;
}

 .custom-verify-email-alert {
    background: #ecf4ff !important;
    border: 1px solid #b1c1d9 !important;
    border-left: 4px solid #0c84ea !important;
    max-width: 85%  !important;
    /* margin: 0 auto !important; */
}
.ve-icon-wrapper {
    color: #113047 !important;
    background: white !important;
}
.btn-ve-resend {
    color: #113047 !important;
    background: white !important;
    border: 1px solid #b1c1d9 !important;
}

        /* --- RESPONSIVE CSS --- */
       /* --- RESPONSIVE CSS --- */
/* Bootstrap Rows වල ඇති Negative margins නිසා පිටට පැනීම නැවැත්වීම */
@media (max-width: 768px) {
    .row {
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Main body එක සහ Container එක screen එකට සීමා කිරීම */
    #main-body, 
    .container, 
    .container-fluid, 
    .primary-content {
        max-width: 100vw !important;
        box-sizing: border-box !important;
         /* padding-left: 5px !important;
        padding-right: 15px !important; */
        overflow-x: hidden !important; /* Content එක ඇතුලෙන් පිටට පැනීම නවතයි */
    }
}