/* =========================================================
           BASE & GLOBAL SHELL
           ========================================================= */
        html, body {
            background: #f9fafc;
            color: #17213a;
            margin: 0;
            padding: 2px;
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        body.member-mobile-menu-open {
            overflow: hidden;
        }

        .member-dashboard {
            min-height: calc(100vh - 150px);
            background: #f5f8fc;
            color: #17213a;
        }

        .member-dashboard-container {
            max-width: 1800px;
            margin: 0 auto;
            padding: 28px 32px 40px;
        }

        .member-dashboard a {
            text-decoration: none;
        }

        /* =========================================================
           HEADER (V2.0 NAVBAR)
           ========================================================= */
        .member-header {
            position: relative;
            z-index: 1000;
            border-radius: 14px 14px 0 0;
        margin-bottom: 5px;
        }

        .member-v2-navbar {
            min-height: 64px;
            padding: 8px 18px;
            background: #0754c7;
            border-radius: 14px 14px 0 0;
        }

        .member-v2-navbar .navbar-brand {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-right: 20px;
            color: #ffffff;
            text-decoration: none;
        }

        .member-v2-logo-mark {
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff;
            font-size: 22px;
        }

        .member-v2-logo-text {
            display: flex;
            flex-direction: column;
            color: #ffffff;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.05;
        }

        .member-v2-logo-text small {
            margin-top: 3px;
            color: rgba(255, 255, 255, 0.78);
            font-size: 9px;
            font-weight: 500;
        }

        .member-v2-toggler {
            border: 1px solid rgba(255, 255, 255, 0.28);
            color: #ffffff;
            padding: 6px 9px;
            border-radius: 7px;
        }

        .member-v2-toggler:focus {
            box-shadow: none;
        }

        .member-v2-menu {
            align-items: center;
        }

        .member-v2-menu .navbar-nav {
            align-items: center;
            gap: 2px;
        }

        .member-v2-menu .nav-link {
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 40px;
            padding: 8px 10px !important;
            border-radius: 7px;
            color: rgba(255, 255, 255, 0.96) !important;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none !important;
            white-space: nowrap;
        }

        .member-v2-menu .nav-link:hover,
        .member-v2-menu .nav-link:focus,
        .member-v2-menu .nav-link.show,
        .member-v2-menu .nav-item.active > .nav-link {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff !important;
        }

        .member-v2-menu .dropdown-toggle::after {
            margin-left: 2px;
            vertical-align: middle;
        }

        .member-v2-menu .dropdown-menu {
            min-width: 220px;
            margin-top: 5px;
            padding: 7px;
            border: 1px solid #dce4f0;
            border-radius: 9px;
            box-shadow: 0 12px 30px rgba(22, 45, 82, 0.14);
        }

        .member-v2-menu .dropdown-item {
            min-height: 36px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            border-radius: 6px;
            color: #435069;
            font-size: 12px;
            text-decoration: none !important;
        }

        .member-v2-menu .dropdown-item:hover,
        .member-v2-menu .dropdown-item:focus {
            background: #f1f6ff;
            color: #0754c7;
        }

        .member-v2-menu .dropdown-submenu {
            position: relative;
        }

        .member-v2-menu .dropdown-submenu > .dropdown-menu {
            top: -7px;
            left: 100%;
            margin: 0 0 0 4px;
        }

        .member-v2-menu .dropdown-submenu > .dropdown-item::after {
            content: '\F285';
            margin-left: auto;
            font-family: 'bootstrap-icons';
            font-size: 9px;
        }

        .member-v2-menu .dropdown-submenu > .dropdown-menu.is-open {
            display: block;
        }

        .member-v2-menu .dropdown-divider {
            margin: 6px 0;
        }

        .member-v2-menu .nav-badge {
            padding: 2px 4px;
            border-radius: 4px;
            background: #ff7e15;
            color: #ffffff;
            font-size: 7px;
            font-weight: 700;
        }

        .member-v2-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 10px;
        }

        .member-header-action {
            position: relative;
            min-width: 36px;
            padding: 4px 6px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1px;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: #ffffff !important;
            font-size: 10px;
            text-decoration: none !important;
        }

        .member-header-action:hover,
        .member-header-action:focus,
        .member-header-action:active {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff !important;
        }

        .member-header-action i {
            font-size: 19px;
            color: inherit;
        }

        .member-header-badge {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 15px;
            height: 15px;
            padding: 0 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            background: #e9730e;
            color: #ffffff;
            font-size: 8px;
            font-weight: 700;
        }

        .member-v2-profile {
            position: relative;
            margin-left: 4px;
        }

        .member-v2-profile-toggle {
            width: 48px !important;
            height: 38px !important;
            padding: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            gap: 5px !important;
            border: 0 !important;
            border-radius: 8px !important;
            background: transparent !important;
            color: #ffffff !important;
        }

        .member-v2-profile-toggle:hover,
        .member-v2-profile-toggle:focus,
        .member-v2-profile-toggle:active,
        .member-v2-profile-toggle[aria-expanded="true"] {
            background: transparent !important;
            color: #ffffff !important;
        }

        .member-v2-profile-toggle .member-header-avatar {
            width: 30px !important;
            height: 30px !important;
            min-width: 30px !important;
            min-height: 30px !important;
            margin: 0 !important;
            padding: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 0 0 30px !important;
            border: 0 !important;
            border-radius: 50% !important;
            background: #ffffff !important;
            color: #0754c7 !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            line-height: 30px !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }

        .member-v2-profile-toggle .bi-chevron-down {
            width: 10px;
            height: 10px;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            margin: 0 !important;
            padding: 0 !important;
            color: #ffffff !important;
            font-size: 9px !important;
            line-height: 1 !important;
        }

        .member-v2-profile-menu {
            position: absolute !important;
            top: calc(100% + 6px) !important;
            right: -18px !important;
            left: auto !important;
            width: 235px;
            min-width: 235px;
            max-width: calc(100vw - 20px);
            margin: 0 !important;
            padding: 8px;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #dce4f0;
            border-radius: 12px !important;
            box-shadow: 0 14px 35px rgba(22, 45, 82, 0.16);
            z-index: 1100;
            transform: none !important;
        }

        .member-v2-profile-menu .dropdown-profile {
            padding: 8px 10px;
            display: flex;
            align-items: center;
            gap: 9px;
            border-radius: 8px;
        }

        .member-v2-profile-menu .dropdown-profile strong {
            display: block;
            color: #202a40;
            font-size: 12px;
        }

        .member-v2-profile-menu .dropdown-profile span {
            display: block;
            margin-top: 2px;
            color: #8993a4;
            font-size: 10px;
        }

        .member-v2-profile-menu .dropdown-profile > .dropdown-avatar {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            margin: 0 !important;
            padding: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 0 0 40px !important;
            border: 0 !important;
            border-radius: 50% !important;
            background: #e8f1ff !important;
            color: #0754c7 !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            line-height: 1 !important;
            text-align: center !important;
            vertical-align: middle !important;
            box-sizing: border-box !important;
        }

        .member-v2-profile-menu .dropdown-item {
            min-height: 38px;
            border-radius: 7px;
        }

        .member-v2-profile-menu .dropdown-danger {
            color: #dc3545;
        }

        .member-v2-profile-menu .dropdown-danger:hover {
            color: #dc3545;
            background: #fff1f2;
        }

        /* =========================================================
           DASHBOARD & SECTIONS
           ========================================================= */
        .member-section {
            margin-top: 30px;
        }

        .member-section-heading {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .member-section-eyebrow {
            margin-bottom: 5px;
            color: #718096;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .09em;
            text-transform: uppercase;
        }

        .member-section-heading h2,
        .member-panel-header h2 {
            margin: 0;
            color: #18233d;
            font-size: 20px;
            font-weight: 700;
            line-height: 1.3;
        }

        /* Sidebar */
        .member-sidebar {
            position: sticky;
            top: 20px;
        }

        .member-profile-card {
            padding: 30px 20px 25px;
            text-align: center;
            background: #ffffff;
            border: 1px solid #e3eaf3;
            border-radius: 12px;
        }

        .member-profile-avatar {
            width: 88px;
            height: 88px;
            margin: 0 auto 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(145deg, #0754c7, #3989e8);
            border: 5px solid #eaf2ff;
            color: #ffffff;
            font-size: 25px;
            font-weight: 700;
        }

        .member-profile-name {
            margin: 0;
            color: #17213a;
            font-size: 20px;
            font-weight: 700;
        }

        .member-profile-id {
            margin-top: 6px;
            color: #7a8497;
            font-size: 13px;
        }

        .member-profile-badge {
            display: inline-block;
            margin-top: 13px;
            padding: 6px 12px;
            border-radius: 20px;
            background: #edf5ff;
            color: #0754c7;
            font-size: 12px;
            font-weight: 600;
        }

        .member-sidebar-menu {
            margin-top: 14px;
            padding: 8px 0;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #e3eaf3;
            border-radius: 12px;
        }

        .member-sidebar-menu a {
            min-height: 49px;
            padding: 0 19px;
            display: flex;
            align-items: center;
            gap: 13px;
            color: #465269;
            font-size: 14px;
            transition: .2s ease;
        }

        .member-sidebar-menu a:hover {
            background: #f1f6ff;
            color: #0754c7;
        }

        .member-sidebar-menu a i {
            width: 20px;
            color: #68758b;
            font-size: 17px;
            text-align: center;
        }

        .member-sidebar-menu a:hover i {
            color: #0754c7;
        }

        .member-sidebar-logout {
            margin-top: 7px;
            border-top: 1px solid #edf0f5;
            color: #dc3545 !important;
        }

        .member-sidebar-logout i {
            color: #dc3545 !important;
        }

        /* Welcome & Referral */
        .member-welcome-card {
            min-height: 178px;
            padding: 30px 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(115deg, #ffffff 0%, #f6faff 100%);
            border: 1px solid #e0e8f3;
            border-radius: 12px;
        }

        .member-welcome-content {
            max-width: 700px;
        }

        .member-welcome-card h1 {
            margin: 0;
            color: #16213b;
            font-size: 28px;
            line-height: 1.25;
            font-weight: 750;
        }

        .member-welcome-card h1 span {
            color: #0754c7;
        }

        .member-welcome-card p {
            max-width: 580px;
            margin: 12px 0 0;
            color: #68758b;
            font-size: 15px;
            line-height: 1.65;
        }

        .member-welcome-icon {
            width: 72px;
            height: 72px;
            margin-right: 12px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #eaf2ff;
            color: #0754c7;
            font-size: 30px;
        }

        .member-referral-card {
            min-height: 178px;
            padding: 25px;
            display: flex;
            gap: 17px;
            align-items: flex-start;
            background: linear-gradient(135deg, #eef6ff, #f8fbff);
            border: 1px solid #dce9fa;
            border-radius: 12px;
        }

        .member-referral-icon {
            width: 52px;
            height: 52px;
            flex: 0 0 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 13px;
            background: #dceaff;
            color: #0754c7;
            font-size: 23px;
        }

        .member-referral-label {
            margin-bottom: 5px;
            color: #54709c;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .09em;
        }

        .member-referral-content h2 {
            margin: 0;
            color: #0754c7;
            font-size: 21px;
            font-weight: 750;
        }

        .member-referral-content p {
            margin: 8px 0 14px;
            color: #627087;
            font-size: 13px;
            line-height: 1.55;
        }

        .member-primary-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 14px;
            border-radius: 6px;
            background: #0754c7;
            color: #ffffff !important;
            font-size: 12px;
            font-weight: 600;
        }

        /* Quick Actions */
        .member-quick-section {
            margin-top: 30px;
        }

        .member-quick-actions {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }

        .member-quick-action {
            min-height: 88px;
            padding: 15px 17px;
            display: flex;
            align-items: center;
            gap: 14px;
            background: #ffffff;
            border: 1px solid #e2e9f2;
            border-radius: 10px;
            transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        }

        .member-quick-action:hover {
            border-color: #cbdcf4;
            box-shadow: 0 8px 22px rgba(25, 67, 120, .08);
            transform: translateY(-2px);
        }

        .member-quick-action-icon {
            width: 49px;
            height: 49px;
            flex: 0 0 49px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 11px;
            font-size: 21px;
        }

        .member-quick-action-icon.blue { background: #eaf2ff; color: #0754c7; }
        .member-quick-action-icon.green { background: #e7f8ef; color: #15965a; }
        .member-quick-action-icon.orange { background: #fff1df; color: #e98300; }
        .member-quick-action-icon.purple { background: #f0eaff; color: #7042d8; }
        .member-quick-action-icon.red { background: #ffebeb; color: #df4848; }
        .member-quick-action-icon.teal { background: #e5f8f7; color: #118d88; }

        .member-quick-action strong {
            display: block;
            color: #202b43;
            font-size: 14px;
            font-weight: 700;
        }

        .member-quick-action span {
            display: block;
            margin-top: 4px;
            color: #7a8598;
            font-size: 12px;
        }

        .member-quick-arrow {
            margin-left: auto;
            color: #a1aaba;
            font-size: 13px;
        }

        /* Stat Cards */
        .member-stat-card {
            min-height: 166px;
            padding: 22px;
            background: #ffffff;
            border: 1px solid #e2e9f2;
            border-radius: 10px;
        }

        .member-stat-icon {
            width: 45px;
            height: 45px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            font-size: 20px;
        }

        .member-stat-icon.orange { background: #fff1df; color: #e98300; }
        .member-stat-icon.green { background: #e7f8ef; color: #15965a; }
        .member-stat-icon.red { background: #ffebeb; color: #df4848; }
        .member-stat-icon.purple { background: #f0eaff; color: #7042d8; }

        .member-stat-label {
            color: #66738a;
            font-size: 13px;
        }

        .member-stat-value {
            margin-top: 5px;
            color: #17213a;
            font-size: 27px;
            font-weight: 750;
            line-height: 1.2;
        }

        .member-stat-active {
            color: #15965a;
            font-size: 21px;
        }

        .member-stat-card a {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 12px;
            color: #0754c7;
            font-size: 12px;
            font-weight: 600;
        }

        .member-stat-note {
            display: block;
            margin-top: 10px;
            color: #8a94a5;
            font-size: 11px;
        }

        /* Panels */
        .member-panel {
            height: 100%;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #e2e9f2;
            border-radius: 10px;
        }

        .member-panel-header {
            padding: 22px 23px 18px;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            border-bottom: 1px solid #edf1f6;
        }

        .member-panel-header h2 {
            font-size: 19px;
        }

        .member-panel-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #0754c7;
            font-size: 12px;
            font-weight: 600;
        }

        /* Orders */
        .member-orders {
            padding: 4px 23px;
        }

        .member-order {
            min-height: 92px;
            display: flex;
            align-items: center;
            gap: 14px;
            border-bottom: 1px solid #edf1f6;
        }

        .member-order:last-child {
            border-bottom: 0;
        }

        .member-order-product-icon {
            width: 50px;
            height: 50px;
            flex: 0 0 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: #f3f6fa;
            color: #6f7c91;
            font-size: 20px;
        }

        .member-order-info {
            min-width: 0;
            flex: 1;
        }

        .member-order-number {
            color: #202a41;
            font-size: 12px;
            font-weight: 700;
        }

        .member-order-product {
            margin-top: 5px;
            overflow: hidden;
            color: #566278;
            font-size: 13px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .member-order-meta {
            margin-top: 5px;
            color: #8a94a5;
            font-size: 11px;
        }

        .member-order-meta span {
            margin: 0 5px;
        }

        .member-order-status {
            padding: 6px 10px;
            border-radius: 5px;
            font-size: 10px;
            font-weight: 700;
            white-space: nowrap;
        }

        .member-order-status.success { background: #e7f8ef; color: #15965a; }
        .member-order-status.primary { background: #eaf2ff; color: #0754c7; }
        .member-order-status.warning { background: #fff2dc; color: #bd7100; }

        .member-order-arrow {
            color: #a1aaba;
            font-size: 14px;
        }

        /* Activity */
        .member-activity {
            padding: 6px 23px 10px;
        }

        .member-activity-item {
            min-height: 59px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #edf1f6;
        }

        .member-activity-item:last-child {
            border-bottom: 0;
        }

        .member-activity-icon {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: #f1f5fa;
            color: #63728a;
            font-size: 15px;
        }

        .member-activity-item div:last-child {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .member-activity-item span {
            color: #66738a;
            font-size: 12px;
        }

        .member-activity-item strong {
            color: #202a41;
            font-size: 13px;
        }

        /* Sunday Offer */
        .member-sunday-offer {
            margin-top: 30px;
            padding: 24px 26px;
            display: flex;
            align-items: center;
            gap: 25px;
            background: linear-gradient(105deg, #fff8ec, #fffdf8);
            border: 1px solid #f0ddbf;
            border-radius: 12px;
        }

        .member-sunday-offer-main {
            min-width: 315px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .member-sunday-offer-icon {
            width: 64px;
            height: 64px;
            flex: 0 0 64px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            background: #ffebcf;
            color: #e87500;
            font-size: 27px;
        }

        .member-sunday-offer-main h2 {
            margin: 0;
            color: #263044;
            font-size: 20px;
            font-weight: 750;
        }

        .member-sunday-offer-main h2 span {
            color: #e66f00;
        }

        .member-sunday-offer-main p {
            margin: 7px 0 0;
            color: #777064;
            font-size: 12px;
            line-height: 1.5;
        }

        .member-sunday-offer-categories {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            border: 1px solid #eadfce;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(255, 255, 255, .55);
        }

        .member-sunday-offer-categories div {
            min-height: 75px;
            padding: 10px 7px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-right: 1px solid #eadfce;
        }

        .member-sunday-offer-categories div:last-child {
            border-right: 0;
        }

        .member-sunday-offer-categories i {
            color: #525c6e;
            font-size: 18px;
        }

        .member-sunday-offer-categories strong {
            margin-top: 6px;
            color: #313b4f;
            font-size: 11px;
        }

        .member-sunday-offer-categories span {
            margin-top: 3px;
            color: #8a8377;
            font-size: 9px;
        }

        .member-sunday-offer-button {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 11px 15px;
            border: 1px solid #e77c18;
            border-radius: 7px;
            background: #ffffff;
            color: #df6d00 !important;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }

        /* Trust Strip */
        .member-trust-strip {
            margin-top: 20px;
            padding: 20px 25px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            background: #ffffff;
            border: 1px solid #e2e9f2;
            border-radius: 10px;
        }

        .member-trust-item {
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 11px;
            border-right: 1px solid #e6ebf2;
        }

        .member-trust-item:last-child {
            border-right: 0;
        }

        .member-trust-icon {
            width: 39px;
            height: 39px;
            flex: 0 0 39px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #edf4ff;
            color: #0754c7;
            font-size: 17px;
        }

        .member-trust-item strong {
            display: block;
            color: #263149;
            font-size: 12px;
        }

        .member-trust-item span {
            display: block;
            margin-top: 3px;
            color: #8993a5;
            font-size: 10px;
        }

        /* =========================================================
           RESPONSIVE BREAKPOINTS
           ========================================================= */
        @media (min-width: 1600px) {
            .member-dashboard-container {
                padding-left: 42px;
                padding-right: 42px;
            }
            .member-welcome-card h1 { font-size: 30px; }
            .member-section-heading h2,
            .member-panel-header h2 { font-size: 21px; }
        }

        @media (min-width: 992px) {
            .member-dashboard-container {
                padding: 20px;
            }
        }

        @media (max-width: 1199.98px) {
            body { padding: 5px; }
            .member-dashboard-container { padding: 24px; }
            .member-quick-actions { grid-template-columns: repeat(2, 1fr); }
            .member-sunday-offer { flex-wrap: wrap; }
            .member-sunday-offer-main { flex: 1; }
            .member-sunday-offer-categories { flex-basis: 100%; }
            .member-sunday-offer-button { margin-left: auto; }
            .member-v2-navbar { padding: 8px 12px; }
            .member-v2-menu {
                width: 100%;
                margin-top: 8px;
                padding-top: 6px;
                border-top: 1px solid rgba(255, 255, 255, 0.15);
            }
            .member-v2-menu .navbar-nav {
                align-items: stretch;
                gap: 2px;
            }
            .member-v2-menu .nav-link {
                min-height: 42px;
                padding: 9px 10px !important;
                justify-content: flex-start;
            }
            .member-v2-menu .dropdown-menu {
                position: static !important;
                width: 100%;
                margin: 2px 0 5px;
                box-shadow: none;
                border-color: rgba(7, 84, 199, 0.12);
            }
            .member-v2-menu .dropdown-submenu > .dropdown-menu {
                margin-left: 10px;
                width: calc(100% - 10px);
            }
            .member-v2-menu .dropdown-submenu > .dropdown-item::after {
                transform: rotate(90deg);
            }
            .member-v2-actions {
                margin-left: auto;
                gap: 2px;
            }
            .member-header-action {
                min-width: 34px;
                padding: 4px 5px;
            }
            .member-header-action i { font-size: 19px; }
            .member-v2-profile-toggle { width: 34px; height: 36px; }
            .member-v2-profile-toggle .member-header-avatar {
                width: 28px;
                height: 28px;
                flex-basis: 28px;
            }
            .member-v2-profile-menu {
                position: absolute !important;
                right: 0 !important;
                left: auto !important;
                width: 235px;
                max-width: calc(100vw - 20px);
            }
        }

        @media (max-width: 991.98px) {
            .member-sidebar { position: static; }
            .member-sidebar-menu { display: none; }
            .member-profile-card { padding: 20px; }
            .member-profile-avatar { width: 72px; height: 72px; font-size: 21px; }
            .member-profile-name { font-size: 18px; }
            .member-welcome-card { min-height: 160px; }
            .member-referral-card { min-height: 160px; }
            .member-trust-strip { grid-template-columns: repeat(2, 1fr); gap: 15px 0; }
            .member-trust-item:nth-child(2) { border-right: 0; }
            .member-v2-navbar {
                position: relative;
                min-height: 58px;
                padding: 8px 10px;
            }
            .member-v2-toggler { order: 1; margin-right: 0; }
            .member-v2-navbar .navbar-brand {
                order: 2;
                margin-right: auto !important;
                margin-left: auto !important;
            }
            .member-v2-actions {
                order: 3;
                margin-left: 0 !important;
                gap: 8px;
            }
            .member-v2-profile { margin-left: 3px; }
            .member-v2-menu { order: 4; }
            .member-v2-profile-toggle { width: 48px !important; }
            .member-v2-profile-menu {
                right: -10px !important;
                left: auto !important;
                width: 235px;
                max-width: calc(100vw - 10px);
            }
        }

        @media (max-width: 767.98px) {
            .member-dashboard-container { padding: 16px 0px 30px;}
            .member-section { margin-top: 24px; }
            .member-section-heading { margin-bottom: 13px; }
            .member-section-heading h2,
            .member-panel-header h2 { font-size: 18px; }
            .member-section-eyebrow { font-size: 10px; }
            .member-profile-card {
                display: flex;
                align-items: center;
                text-align: left;
                gap: 14px;
                padding: 16px;
            }
            .member-profile-avatar {
                width: 58px;
                height: 58px;
                flex: 0 0 58px;
                margin: 0;
                font-size: 18px;
            }
            .member-profile-badge { margin-top: 6px; }
            .member-welcome-card { min-height: 0; padding: 24px 20px; }
            .member-welcome-card h1 { font-size: 24px; }
            .member-welcome-card p { font-size: 14px; }
            .member-welcome-icon { display: none; }
            .member-referral-card { min-height: 0; padding: 20px; }
            .member-referral-content h2 { font-size: 19px; }
            .member-referral-content p { font-size: 13px; }
            .member-quick-actions { grid-template-columns: 1fr; gap: 10px; }
            .member-quick-action { min-height: 76px; }
            .member-quick-action strong { font-size: 14px; }
            .member-quick-action span { font-size: 12px; }
            .member-stat-card { min-height: 145px; padding: 19px; }
            .member-stat-value { font-size: 25px; }
            .member-panel-header { padding: 18px 17px 15px; }
            .member-orders { padding: 4px 17px; }
            .member-order { gap: 10px; min-height: 85px; }
            .member-order-product-icon { width: 43px; height: 43px; flex-basis: 43px; }
            .member-order-product { font-size: 12px; }
            .member-order-status { display: none; }
            .member-activity { padding-left: 17px; padding-right: 17px; }
            .member-sunday-offer { padding: 20px; gap: 18px; }
            .member-sunday-offer-main { min-width: 0; width: 100%; }
            .member-sunday-offer-main h2 { font-size: 19px; }
            .member-sunday-offer-categories { width: 100%; grid-template-columns: repeat(2, 1fr); }
            .member-sunday-offer-categories div:nth-child(2) { border-right: 0; }
            .member-sunday-offer-categories div:nth-child(3),
            .member-sunday-offer-categories div:nth-child(4) { border-top: 1px solid #eadfce; }
            .member-sunday-offer-button { width: 100%; justify-content: center; }
            .member-trust-strip { grid-template-columns: 1fr; padding: 16px; gap: 0; }
            .member-trust-item {
                justify-content: flex-start;
                padding: 13px 0;
                border-right: 0;
                border-bottom: 1px solid #e6ebf2;
            }
            .member-trust-item:last-child { border-bottom: 0; }
            .member-v2-logo-text { font-size: 16px; }
            .member-v2-logo-text small { font-size: 8px; }
            .member-v2-logo-mark { width: 34px; height: 34px; font-size: 19px; }
        }

        @media (max-width: 575.98px) {
            .member-v2-logo-text { font-size: 16px; }
            .member-v2-logo-text small { font-size: 8px; }
            .member-v2-logo-mark { width: 34px; height: 34px; font-size: 19px; }
        }

        @media (max-width: 399.98px) {
            .member-welcome-card h1 { font-size: 21px; }
            .member-welcome-card p { font-size: 13px; }
            .member-referral-card { gap: 12px; }
            .member-referral-icon { width: 45px; height: 45px; flex-basis: 45px; font-size: 19px; }
            .member-sunday-offer-main { align-items: flex-start; }
            .member-sunday-offer-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 22px; }
        }
    

@media (max-width: 991.98px) {

    .member-v2-actions {
        gap: 4px;
    }

}

/* =========================================================
   PROFILE PAGE
   Bootstrap-first. Only page-specific rules not covered by
   the existing member.css are defined here.
   ========================================================= */

.member-profile-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 5px solid #eaf2ff;
}

.member-profile-page .member-panel-header h2 {
    display: flex;
    align-items: center;
}

.member-profile-page .list-group-item .btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-profile-page .list-group-item .disabled {
    pointer-events: none;
    opacity: .55;
}

.member-profile-page .alert {
    border-color: #d9e7fb;
}

@media (max-width: 575.98px) {
    .member-profile-image {
        width: 90px;
        height: 90px;
    }

    .member-profile-page .member-dashboard-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}