        :root {
            --bg-white: #ffffff;
            --bg-light: #f4f5f7;
            --border-color: #f1f1f4;
            --text-dark: #181c32;
            --text-gray: #3f4254;
            --text-muted: #a1a5b7;
            --primary: #3e97ff;
            --radius-lg: 12px;
        }

        * {
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-white);
            color: var(--text-dark);
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            width: 100%;
        }

        /* Top Header Navigation */
        .top-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 30px;
            height: 70px;
            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-white);
            flex-shrink: 0;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 35px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .logo-box {
            width: 32px;
            height: 32px;
            background: #f1faff;
            color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-box svg {
            width: 18px;
            height: 18px;
        }

        .brand-name {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
            letter-spacing: -0.2px;
        }

        .top-nav {
            display: flex;
            gap: 25px;
        }

        .nav-link {
            text-decoration: none;
            color: var(--text-gray);
            font-size: 14px;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-link:hover, .nav-link.active {
            color: var(--text-dark);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .usage-stats {
            text-align: right;
            display: flex;
            flex-direction: column;
        }

        .usage-top {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
        }

        .usage-bottom {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .btn-upgrade {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 9px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .btn-upgrade:hover {
            background-color: #2884ef;
        }

        .user-profile {
            position: relative;
            width: 38px;
            height: 38px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--text-dark);
            font-size: 15px;
            cursor: pointer;
        }

        .badge-verified {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 14px;
            height: 14px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            border: 2px solid white;
        }

        /* Sub Header / Toolbar */
        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 30px;
            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-white);
            flex-shrink: 0;
        }

        .page-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 6px;
            letter-spacing: -0.2px;
        }

        .breadcrumbs {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .breadcrumbs a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .breadcrumbs a:hover {
            color: var(--primary);
        }

        /* Slash divider specific color */
        .breadcrumbs span {
            margin: 0 2px;
        }

        .toolbar-actions {
            display: flex;
            gap: 12px;
        }

        .btn-secondary {
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            color: var(--text-gray);
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0px 2px 4px rgba(0,0,0,0.01);
            transition: all 0.2s;
        }

        .btn-secondary i {
            color: var(--text-muted);
            font-size: 13px;
        }

        .btn-secondary:hover {
            background: #fdfdfd;
            color: var(--text-dark);
            border-color: #d8d8e5;
        }

        /* Main Content */
        .content {
            flex: 1;
            padding: 30px;
            background-color: var(--bg-white);
            overflow: auto;
        }

        .large-card {
            background: var(--bg-light);
            border-radius: var(--radius-lg);
            width: 100%;
            min-height: calc(100vh - 210px);
            border: 1px solid var(--border-color);
        }

        /* Dropdown specific */
        .nav-item-dropdown {
            position: relative;
            display: flex;
            align-items: center;
        }

        .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            width: 750px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s ease;
            margin-top: 15px; /* spacing from the header */
        }

        /* to cover the gap */
        .nav-item-dropdown::after {
            content: '';
            position: absolute;
            height: 30px;
            width: 100%;
            bottom: -30px;
            left: 0;
        }

        .nav-item-dropdown:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mega-menu-content {
            display: flex;
            padding: 25px 30px;
            gap: 40px;
        }

        .mega-col {
            flex: 1;
        }

        .mega-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
        }

        .mega-links.grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: 15px;
            row-gap: 16px;
        }

        .mega-link {
            display: flex;
            align-items: center;
            color: var(--text-gray);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: color 0.2s;
            gap: 10px;
        }

        .mega-link:hover {
            color: var(--primary);
        }

        .mega-link i {
            width: 16px;
            font-size: 14px;
            color: var(--text-muted);
            text-align: center;
            transition: color 0.2s;
        }

        .mega-link:hover i {
            color: var(--primary);
        }

        .badge {
            background: var(--bg-light);
            color: var(--text-gray);
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            margin-left: auto;
        }

        .mega-footer {
            padding: 20px 30px;
            background: #fafafa;
            border-top: 1px solid var(--border-color);
            border-bottom-left-radius: var(--radius-lg);
            border-bottom-right-radius: var(--radius-lg);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mega-footer-text h5 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .mega-footer-text p {
            font-size: 13px;
            color: var(--text-gray);
        }

        .btn-dark {
            background: var(--text-dark);
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.2s;
        }

        .btn-dark:hover {
            background: black;
        }

        /* Account Mega Menu Specific Styles */
        .mega-menu-xl {
            width: 1050px;
            left: -200px;
        }

        .mega-menu-content.p-0 {
            padding: 0;
            gap: 0;
        }

        .mega-sidebar {
            width: 250px;
            background: #fdfdfd;
            border-right: 1px solid var(--border-color);
            padding: 30px;
            border-top-left-radius: var(--radius-lg);
            border-bottom-left-radius: var(--radius-lg);
        }

        .mega-content-grid {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            padding: 30px;
            gap: 25px;
        }

        .mega-links.flex-col {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .mega-links.no-icons .mega-link {
            gap: 0;
        }

        .mega-links.no-icons .mega-link i {
            display: none;
        }

        /* Network Mega Menu Specific Styles */
        .mega-menu-md {
            width: 700px;
            left: -100px;
        }

        .mega-content-grid.grid-col-2 {
            grid-template-columns: repeat(2, 1fr);
        }

        .badge-primary {
            background-color: #eef6ff;
            color: var(--primary);
            font-weight: 600;
        }
    
/* === Global Responsive Boilerplate === */
.mobile-menu-btn { display: none; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 999; }
.mobile-overlay.active { display: block; }

@media (max-width: 900px) {
    .mobile-menu-btn { display: block; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); margin-left: 10px;}
    
    .top-header { height: auto; flex-direction: row; padding: 10px 15px; align-items: center; justify-content: space-between; }
    .header-left { flex-direction: row; align-items: center; gap: 10px; width: auto; }
    .brand-container { display: flex; align-items: center; width: auto; }
    .brand-name { display: none; }
    
    .header-right { width: auto; align-items: center; display: flex !important; gap: 15px; }
    .btn-upgrade { padding: 6px 10px; font-size: 12px; }
    .usage-stats { display: flex; flex-direction: column; align-items: flex-end; }
    .usage-top { font-size: 10px; }
    .usage-bottom { font-size: 10px; }
    .user-profile { width: 32px; height: 32px; font-size: 13px; }
    
    /* Off-canvas sidebar */
    .top-nav { 
        position: fixed; left: -300px; top: 0; width: 260px; height: 100vh; 
        background: #fff; z-index: 1000; display: flex !important; flex-direction: column; 
        gap: 0; padding-top: 20px; transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
        overflow-y: auto; flex-wrap: nowrap;
    }
    .top-nav.active { left: 0; }
    
    .nav-link { 
        padding: 15px 20px; 
        width: 100%; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        border-bottom: 1px solid var(--border-color); 
        font-size: 13px;
    }
    
    .nav-item-dropdown { width: 100%; display: flex; flex-direction: column; }
    .nav-item-dropdown > .nav-link::after { content: '+'; font-size: 16px; color: var(--text-muted); }
    .nav-item-dropdown.active > .nav-link::after { content: '-'; }
    
    .nav-item-dropdown::after { display: none; }
    
    .mega-menu, .mega-menu-xl, .mega-menu-md {
        position: static; width: 100% !important; transform: none; box-shadow: none; display: none !important; margin: 0; border: none; border-left: 2px solid var(--border-color); padding-left: 10px; border-radius: 0;
    }
    
    .nav-item-dropdown.active .mega-menu { display: block !important; position: static; }
    .nav-item-dropdown:hover .mega-menu { display: none !important; } /* override hover */
    .nav-item-dropdown.active:hover .mega-menu { display: block !important; }
    
    .mega-menu-content { flex-direction: column; padding: 10px !important; gap: 15px; }
    .mega-content-grid { display: flex !important; flex-direction: column; gap: 15px; padding: 10px; }
    .mega-sidebar { width: 100%; padding: 10px; border: none; }
    
    .toolbar { flex-direction: column; align-items: flex-start; gap: 15px; padding: 15px; }
    .toolbar-actions { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .btn-upgrade { padding: 4px 8px; font-size: 11px; }
    .usage-stats { display: none; } /* optionally hide to save space */
}
