/* =========================================================
   SOURCE: header.twig | STYLE BLOCK 1
   ========================================================= */
/* Logged-in top navbar user dropdown */
          header .navbar {
            margin-left: auto !important;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-shrink: 0;
          }

          .top-news-btn {
            min-height: 40px;
            border: 0;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: rgba(124, 58, 237, 0.14);
            color: inherit;
            cursor: pointer;
            padding: 0 13px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            transition: all .18s ease;
          }

          .top-owner-link {
            min-height: 40px;
            border: 0;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: rgba(124, 58, 237, 0.14);
            color: inherit;
            cursor: pointer;
            padding: 0 13px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            text-decoration: none;
            transition: all .18s ease;
          }

          .top-owner-link i {
            font-size: 18px;
            line-height: 1;
          }

          .top-owner-link:hover {
            background: rgba(124, 58, 237, 0.22);
            color: inherit;
            text-decoration: none;
            transform: translateY(-1px);
          }

          .top-news-btn i {
            font-size: 18px;
            line-height: 1;
          }

          .top-news-icon-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
          }

          .top-news-icon-wrap em {
            position: absolute;
            top: -8px;
            right: -9px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #ef4444;
            color: #fff;
            font-size: 10px;
            font-style: normal;
            font-weight: 800;
            line-height: 1;
            box-shadow: 0 0 0 2px rgba(15, 23, 42, .9);
          }

          .top-news-btn:hover {
            background: rgba(124, 58, 237, 0.22);
            color: inherit;
            text-decoration: none;
            transform: translateY(-1px);
          }

          .top-user-menu {
            position: relative;
            margin-left: 8px;
          }

          .top-user-menu .top-user-btn {
            width: 40px;
            height: 40px;
            border: 0;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(124, 58, 237, 0.14);
            color: inherit;
            cursor: pointer;
            padding: 0;
          }

          .top-user-menu .top-user-btn:hover {
            background: rgba(124, 58, 237, 0.22);
          }

          .top-user-menu .top-user-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #7c3aed, #a855f7);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
          }

          .top-user-menu .toggle-body {
            right: 0;
            left: auto;
            min-width: 275px;
            padding: 12px;
            border-radius: 16px;
            z-index: 9999;
          }

          .top-user-dropdown-head {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px;
            border-radius: 12px;
          }

          .top-user-dropdown-avatar {
            width: 38px;
            height: 38px;
            min-width: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #7c3aed, #a855f7);
            color: #fff;
            font-size: 15px;
            font-weight: 700;
          }

          .top-user-name {
            font-size: 14px;
            font-weight: 700;
            line-height: 1.2;
          }

          .top-user-email,
          .top-user-balance {
            display: block;
            font-size: 12px;
            opacity: .75;
            line-height: 1.35;
            word-break: break-word;
          }

          .top-user-dropdown-divider {
            height: 1px;
            background: rgba(148, 163, 184, .22);
            margin: 8px 0;
          }


          .top-user-balance-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px;
            border-radius: 12px;
            background: rgba(124, 58, 237, .10);
            margin: 8px 0;
          }

          .top-user-balance-card span {
            font-size: 12px;
            opacity: .75;
          }

          .top-user-balance-card strong {
            display: block;
            font-size: 14px;
            line-height: 1.2;
          }

          .top-user-currency-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 700;
            opacity: .8;
            padding: 4px 10px 8px;
          }

          .top-user-menu .currencyList {
            max-height: 190px;
            overflow-y: auto;
            padding: 0 2px 4px;
          }

          .top-user-dropdown-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 12px;
            color: inherit;
            text-decoration: none;
            font-size: 13px;
            line-height: 1.2;
          }

          .top-user-dropdown-link i {
            font-size: 17px;
          }

          .top-user-dropdown-link:hover {
            background: rgba(124, 58, 237, .12);
            color: inherit;
            text-decoration: none;
          }

          .top-user-dropdown-link.text-danger:hover {
            color: #dc3545 !important;
            background: rgba(220, 53, 69, .10);
          }


          /* Site news modal from Admin > Appearance > News */
          .site-news-modal {
            position: fixed;
            inset: 0;
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 18px;
          }

          .site-news-modal.is-open {
            display: flex;
          }

          .site-news-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 23, .72);
            backdrop-filter: blur(8px);
          }

          .site-news-dialog {
            position: relative;
            width: min(640px, 100%);
            max-height: min(82vh, 720px);
            border-radius: 22px;
            overflow: hidden;
            background: var(--color-2, #0f172a);
            border: 1px solid rgba(148, 163, 184, .22);
            box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
            color: var(--color-5, #f8fafc);
          }

          .site-news-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px;
            background: rgba(124, 58, 237, .14);
            border-bottom: 1px solid rgba(148, 163, 184, .18);
          }

          .site-news-head h3 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 9px;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.2;
          }

          .site-news-close {
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(148, 163, 184, .14);
            color: inherit;
            cursor: pointer;
          }

          .site-news-close:hover {
            background: rgba(239, 68, 68, .15);
            color: #ef4444;
          }

          .site-news-list {
            max-height: calc(min(82vh, 720px) - 68px);
            overflow-y: auto;
            padding: 14px;
          }

          .site-news-item {
            padding: 14px;
            border-radius: 17px;
            background: var(--color-8, rgba(15, 23, 42, .72));
            border: 1px solid rgba(148, 163, 184, .14);
          }

          .site-news-item + .site-news-item {
            margin-top: 10px;
          }

          .site-news-item-head {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
          }

          .site-news-icon {
            width: 42px;
            height: 42px;
            min-width: 42px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(124, 58, 237, .16);
            border: 1px solid rgba(168, 85, 247, .20);
            color: #c4b5fd;
            overflow: hidden;
          }

          .site-news-icon img {
            width: 25px;
            height: 25px;
            object-fit: contain;
          }

          .site-news-title {
            margin: 0;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.25;
          }

          .site-news-date {
            display: block;
            margin-top: 2px;
            font-size: 12px;
            opacity: .66;
          }

          .site-news-content {
            font-size: 13px;
            line-height: 1.55;
            opacity: .92;
            word-break: break-word;
          }

          .site-news-content p:last-child {
            margin-bottom: 0;
          }

          .site-news-empty {
            padding: 24px 14px;
            text-align: left;
            font-size: 13px;
            opacity: .75;
          }

          /* Premium compact sidebar buttons */
          .sidebar .menu-box {
            padding: 10px;
            border-radius: 16px;
            background:  var(--color-2) !important;
            border: 1px solid var(--color-8) !important;
          }

          .sidebar .menu-box-title {
            margin: 0 0 10px;
            padding: 0 4px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .02em;
            opacity: .82;
          }

          .sidebar .menu-box .nav-item {
            margin-bottom: 7px;
          }

          .sidebar .menu-box .nav-item:last-child {
            margin-bottom: 0;
          }

          .sidebar .menu-box .nav-link {
            width: 100%;
            min-height: 42px;
            padding: 8px 10px !important;
            border-radius: 13px;
            display: flex !important;
            align-items: center !important;
            gap: 10px;
            position: relative;
            overflow: hidden;
            color: var(--color-5) !important;
            background: var(--color-8) !important;
            border: 1px solid rgba(255, 255, 255, .055);
            transition: all .18s ease;
          }

          .sidebar .menu-box .nav-link i {
            width: 28px;
            height: 28px;
            min-width: 28px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            background: rgba(124, 58, 237, .14);
            color: #c4b5fd;
          }

          .sidebar .menu-box .nav-link .menu-text {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.15;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }

          .sidebar .menu-box .nav-link:hover {
            transform: translateX(2px);
            background: rgba(124, 58, 237, .13);
            border-color: rgba(168, 85, 247, .22);
            text-decoration: none;
          }

          .sidebar .menu-box .nav-link.active {
            color: var(--color-5) !important;
            background: #673ab780 !important;
            border-color: rgba(255, 255, 255, .14);
            box-shadow: 0 10px 24px rgba(124, 58, 237, .24);
          }

          .sidebar .menu-box .nav-link.active i {
            var(--color-8) !important;
         var(--color-5) !important;
          }



          /* Force text to align left instead of center */
          header .header-msg,
          header .header-title,
          .top-user-menu .toggle-body,
          .top-user-dropdown-head,
          .top-user-balance-card,
          .top-user-currency-title,
          .top-user-dropdown-link,
          .site-news-dialog,
          .site-news-head,
          .site-news-head h3,
          .site-news-item,
          .site-news-item-head,
          .site-news-title,
          .site-news-date,
          .site-news-content,
          .site-news-empty,
          .sidebar,
          .sidebar .menu-box,
          .sidebar .menu-box-title,
          .sidebar .menu-box .nav-link,
          .sidebar .menu-box .nav-link .menu-text,
          .profile-box,
          .profile-box span,
          .profile-box small,
          .bottom-info,
          .bottom-info small {
            text-align: left !important;
          }

          .sidebar .menu-box .nav-link {
            justify-content: flex-start !important;
          }

          .bottom-info small {
            display: block;
          }

          @media (max-width: 576px) {
            header {
              gap: 8px;
              padding-left: 14px !important;
              padding-right: 14px !important;
            }

            header .header-msg {
              flex: 1 1 auto;
              min-width: 0;
            }

            header .header-title {
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }

            header .navbar {
              margin-left: auto !important;
              margin-right: 0 !important;
              padding-right: 6px;
              gap: 8px;
              justify-content: flex-end;
            }

            .top-news-btn {
              min-height: 36px;
              width: 36px;
              border-radius: 12px;
              padding: 0;
              flex-shrink: 0;
            }

            .top-news-btn > span:last-child {
              display: none;
            }

            .top-owner-link {
              min-height: 36px;
              width: 36px;
              border-radius: 12px;
              padding: 0;
              flex-shrink: 0;
            }

            .top-owner-link > span {
              display: none;
            }

            .top-news-icon-wrap {
              display: inline-flex !important;
            }

            .site-news-modal {
              padding: 10px;
              align-items: flex-end;
            }

            .site-news-dialog {
              width: 100%;
              max-height: 86vh;
              border-radius: 20px 20px 14px 14px;
            }

            .site-news-list {
              max-height: calc(86vh - 66px);
            }

            .top-user-menu {
              margin-left: 0;
              margin-right: 4px;
            }

            .top-user-menu .top-user-btn {
              width: 36px;
              height: 36px;
              border-radius: 12px;
            }

            .top-user-menu .top-user-avatar {
              width: 26px;
              height: 26px;
              font-size: 12px;
            }

            .top-user-menu .toggle-body {
              right: 4px;
              left: auto;
              min-width: 250px;
              max-width: calc(100vw - 32px);
            }
          }


/* =========================================================
   SOURCE: header.twig | STYLE BLOCK 2
   ========================================================= */
/* =========================================================
   GLOBAL LEFT ALIGNMENT PATCH - ALL PAGES
   Makes page text align left instead of centered/middle aligned.
   Icon-only buttons and circular icons stay visually centered.
   ========================================================= */
body,
main,
section,
.container,
.container-fluid,
.page,
.page-body,
.card,
.card-body,
.card-head,
.card-head-title,
.card-head-title h1,
.card-head-title h2,
.card-head-title h3,
.card-head-title h4,
.card-head-title h5,
.card-head-title h6,
.card-head-title button,
.form-group,
.form-group label,
.control-label,
.form-label,
.response-container,
.alert,
.table,
.table th,
.table td,
.dropdown-menu,
.dropdown-item,
.te-custom-block,
.te-custom-block h1,
.te-custom-block h2,
.te-custom-block h3,
.te-custom-block h4,
.te-custom-block h5,
.te-custom-block h6,
.te-custom-block p,
.te-custom-block div,
.modal-wrapper .modal-box,
.modal-wrapper .m-header,
.modal-wrapper .m-body,
.modal-wrapper .m-body p,
.modal-wrapper .m-body div,
.modal-wrapper .m-body span,
.modal-body,
.modal-body p,
.modal-body div,
.modal-body span,
.service-modal-id,
.desc-list,
.desc-list .text,
.description,
#description_new,
#ser_name,
#dropdown_for_search,
#dropdown_for_search .dropdown-item,
.orders-card,
.orders-card .oc-item,
.top-user-summary,
.top-user-summary .tus-item,
.top-user-summary .tus-content,
.tus-level-box,
.tus-level-title,
.tus-level-title small,
.tus-level-meta-item,
.tus-level-meta-label,
.tus-level-meta-value,
.tus-level-section,
.tus-level-section-label,
.tus-level-list,
.tus-level-list li,
.tus-level-requirements,
.tus-level-req-name,
.tus-level-req-value,
.site-news-dialog,
.site-news-head,
.site-news-head h3,
.site-news-item,
.site-news-item-head,
.site-news-title,
.site-news-date,
.site-news-content,
.site-news-empty,
.sidebar,
.sidebar .menu-box,
.sidebar .menu-box-title,
.sidebar .menu-box .nav-link,
.sidebar .menu-box .nav-link .menu-text,
.profile-box,
.profile-box span,
.profile-box small,
.bottom-info,
.bottom-info small,
.header-title,
.header-msg,
.mh-menu,
.mh-buttons,
.payment-modal .payment-modal-body,
.payment-modal .payment-modal-header,
.payment-modal .payment-modal-footer,
.payment-modal .payment-modal-title,
.payment-pay-instruction,
.payment-verify-instruction,
.payment-pay-instruction-text,
.payment-verify-instruction-text,
.payment-amount,
.payment-amount-uuid,
.payment-step-label,
.text-center {
  text-align: left !important;
}

.sidebar .menu-box .nav-link,
.top-user-summary .tus-item,
.top-user-summary .tus-content,
.dashboard-typing-strip {
  justify-content: flex-start !important;
  text-align: left !important;
}

.top-user-summary .tus-content,
.profile-box {
  align-items: flex-start !important;
}

.dashboard-typing-strip {
  justify-content: flex-start !important;
}

.dashboard-typing-text {
  text-align: left !important;
}

/* Keep icon-only / close controls centered so the UI does not break. */
.m-close,
.tus-level-close,
.close,
.btn-icon,
.card-head-icon,
.desc-list .icon,
.tus-icon,
.top-user-menu .top-user-btn,
.top-user-menu .top-user-avatar,
.top-user-dropdown-avatar,
.site-news-close,
.site-news-icon,
.profile-avatar,
.noc-icon,
.payment-step-num,
.loader,
.spinner-block__wrapper,
.switcher-item i {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}


/* =========================================================
   SOURCE: header.twig | STYLE BLOCK 3
   ========================================================= */
/* =========================================================
   SIDEBAR USER INFO CENTER PATCH
   Keeps the sidebar avatar, username, email, and profile controls centered
   while the rest of the pages stay left-aligned.
   ========================================================= */
.sidebar .profile-box,
.sidebar .profile-box #username,
.sidebar .profile-box span#username,
.sidebar .profile-box small {
  text-align: center !important;
}

.sidebar .profile-box {
  align-items: center !important;
  justify-content: center !important;
}

.sidebar .profile-box .profile-avatar {
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.sidebar .profile-box .profile-box-btn,
.sidebar .profile-box .switcher {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.sidebar .profile-box .profile-box-btn button,
.sidebar .profile-box .switcher-item {
  justify-content: center !important;
  text-align: center !important;
}
/* =========================================================
   MONOCHROME BLACK & WHITE OVERRIDE
   Appended safely after the original header/sidebar CSS.
   Preserves layout, alignment patches, responsive behavior,
   dropdown logic, modal behavior, and existing HTML hooks.
   ========================================================= */

:root {
  --mono-black: #000000;
  --mono-ink: #111111;
  --mono-dark: #1a1a1a;
  --mono-mid: #666666;
  --mono-soft: #a3a3a3;
  --mono-line: #d9d9d9;
  --mono-pale: #f3f3f3;
  --mono-white: #ffffff;
  --mono-overlay: rgba(0, 0, 0, .72);
}

/* ---------- TOP NAVBAR ACTIONS ---------- */
.top-news-btn,
.top-owner-link,
.top-user-menu .top-user-btn {
  background: rgba(0, 0, 0, .06) !important;
  color: var(--color-5, #111111) !important;
  border: 1px solid rgba(0, 0, 0, .10) !important;
  box-shadow: none !important;
}

.top-news-btn:hover,
.top-owner-link:hover,
.top-user-menu .top-user-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(-1px);
}

html.dark .top-news-btn,
html.dark .top-owner-link,
html.dark .top-user-menu .top-user-btn,
body.nightmode .top-news-btn,
body.nightmode .top-owner-link,
body.nightmode .top-user-menu .top-user-btn,
body.dashboard.nightmode .top-news-btn,
body.dashboard.nightmode .top-owner-link,
body.dashboard.nightmode .top-user-menu .top-user-btn {
  background: rgba(255, 255, 255, .07) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

html.dark .top-news-btn:hover,
html.dark .top-owner-link:hover,
html.dark .top-user-menu .top-user-btn:hover,
body.nightmode .top-news-btn:hover,
body.nightmode .top-owner-link:hover,
body.nightmode .top-user-menu .top-user-btn:hover,
body.dashboard.nightmode .top-news-btn:hover,
body.dashboard.nightmode .top-owner-link:hover,
body.dashboard.nightmode .top-user-menu .top-user-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* Notification count: monochrome but still highly visible */
.top-news-icon-wrap em {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .88) !important;
}

html.dark .top-news-icon-wrap em,
body.nightmode .top-news-icon-wrap em,
body.dashboard.nightmode .top-news-icon-wrap em {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .88) !important;
}

/* ---------- USER AVATARS & DROPDOWN ---------- */
.top-user-menu .top-user-avatar,
.top-user-dropdown-avatar {
  background: linear-gradient(135deg, #000000 0%, #3d3d3d 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .28);
}

.top-user-menu .toggle-body {
  background: var(--color-1, #ffffff) !important;
  border: 1px solid rgba(0, 0, 0, .10) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18) !important;
}

.top-user-dropdown-divider {
  background: rgba(0, 0, 0, .12) !important;
}

.top-user-balance-card {
  background: rgba(0, 0, 0, .05) !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
}

.top-user-dropdown-link:hover {
  background: rgba(0, 0, 0, .07) !important;
  color: #000000 !important;
}

/* Even danger/logout states remain monochrome */
.top-user-dropdown-link.text-danger,
.top-user-dropdown-link.text-danger:hover {
  color: #111111 !important;
}

.top-user-dropdown-link.text-danger:hover {
  background: rgba(0, 0, 0, .10) !important;
}

html.dark .top-user-menu .toggle-body,
body.nightmode .top-user-menu .toggle-body,
body.dashboard.nightmode .top-user-menu .toggle-body {
  background: var(--color-1, #0b0b0b) !important;
  border-color: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .50) !important;
}

html.dark .top-user-dropdown-divider,
body.nightmode .top-user-dropdown-divider,
body.dashboard.nightmode .top-user-dropdown-divider {
  background: rgba(255, 255, 255, .12) !important;
}

html.dark .top-user-balance-card,
body.nightmode .top-user-balance-card,
body.dashboard.nightmode .top-user-balance-card {
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(255, 255, 255, .09) !important;
}

html.dark .top-user-dropdown-link:hover,
body.nightmode .top-user-dropdown-link:hover,
body.dashboard.nightmode .top-user-dropdown-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
}

html.dark .top-user-dropdown-link.text-danger,
html.dark .top-user-dropdown-link.text-danger:hover,
body.nightmode .top-user-dropdown-link.text-danger,
body.nightmode .top-user-dropdown-link.text-danger:hover,
body.dashboard.nightmode .top-user-dropdown-link.text-danger,
body.dashboard.nightmode .top-user-dropdown-link.text-danger:hover {
  color: #ffffff !important;
}

/* ---------- SITE NEWS MODAL ---------- */
.site-news-backdrop {
  background: rgba(0, 0, 0, .78) !important;
}

.site-news-dialog {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d7d7d7 !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42) !important;
}

.site-news-head {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, .18) !important;
}

.site-news-close {
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
}

.site-news-close:hover {
  background: #ffffff !important;
  color: #000000 !important;
}

.site-news-item {
  background: #f6f6f6 !important;
  border: 1px solid #dddddd !important;
  color: #111111 !important;
}

.site-news-icon {
  background: #000000 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html.dark .site-news-dialog,
body.nightmode .site-news-dialog,
body.dashboard.nightmode .site-news-dialog {
  background: #0b0b0b !important;
  color: #ffffff !important;
  border-color: #2c2c2c !important;
}

html.dark .site-news-head,
body.nightmode .site-news-head,
body.dashboard.nightmode .site-news-head {
  background: #ffffff !important;
  color: #000000 !important;
  border-bottom-color: rgba(0, 0, 0, .16) !important;
}

html.dark .site-news-close,
body.nightmode .site-news-close,
body.dashboard.nightmode .site-news-close {
  background: rgba(0, 0, 0, .08) !important;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, .12) !important;
}

html.dark .site-news-close:hover,
body.nightmode .site-news-close:hover,
body.dashboard.nightmode .site-news-close:hover {
  background: #000000 !important;
  color: #ffffff !important;
}

html.dark .site-news-item,
body.nightmode .site-news-item,
body.dashboard.nightmode .site-news-item {
  background: #151515 !important;
  border-color: #2b2b2b !important;
  color: #ffffff !important;
}

html.dark .site-news-icon,
body.nightmode .site-news-icon,
body.dashboard.nightmode .site-news-icon {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* ---------- PREMIUM SIDEBAR MENU ---------- */
.sidebar .menu-box {
  background: var(--color-2, #f3f3f3) !important;
  border: 1px solid rgba(0, 0, 0, .10) !important;
  box-shadow: none !important;
}

.sidebar .menu-box .nav-link {
  background: rgba(0, 0, 0, .035) !important;
  color: var(--color-5, #111111) !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
}

.sidebar .menu-box .nav-link i {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

.sidebar .menu-box .nav-link:hover {
  transform: translateX(2px);
  background: rgba(0, 0, 0, .08) !important;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, .16) !important;
  box-shadow: none !important;
}

.sidebar .menu-box .nav-link.active {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .20) !important;
}

.sidebar .menu-box .nav-link.active i {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

html.dark .sidebar .menu-box,
body.nightmode .sidebar .menu-box,
body.dashboard.nightmode .sidebar .menu-box {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, .10) !important;
}

html.dark .sidebar .menu-box .nav-link,
body.nightmode .sidebar .menu-box .nav-link,
body.dashboard.nightmode .sidebar .menu-box .nav-link {
  background: rgba(255, 255, 255, .045) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .07) !important;
}

html.dark .sidebar .menu-box .nav-link i,
body.nightmode .sidebar .menu-box .nav-link i,
body.dashboard.nightmode .sidebar .menu-box .nav-link i {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

html.dark .sidebar .menu-box .nav-link:hover,
body.nightmode .sidebar .menu-box .nav-link:hover,
body.dashboard.nightmode .sidebar .menu-box .nav-link:hover {
  background: rgba(255, 255, 255, .09) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

html.dark .sidebar .menu-box .nav-link.active,
body.nightmode .sidebar .menu-box .nav-link.active,
body.dashboard.nightmode .sidebar .menu-box .nav-link.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(255, 255, 255, .10) !important;
}

html.dark .sidebar .menu-box .nav-link.active i,
body.nightmode .sidebar .menu-box .nav-link.active i,
body.dashboard.nightmode .sidebar .menu-box .nav-link.active i {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* ---------- PROFILE AREA ---------- */
.sidebar .profile-box .profile-avatar {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: rgba(0, 0, 0, .18) !important;
  box-shadow: none !important;
}

html.dark .sidebar .profile-box .profile-avatar,
body.nightmode .sidebar .profile-box .profile-avatar,
body.dashboard.nightmode .sidebar .profile-box .profile-avatar {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, .25) !important;
}

/* ---------- GENERIC MONOCHROME CLEANUP WITHIN THIS HEADER/SIDEBAR SCOPE ---------- */
header .text-purple,
.sidebar .text-purple,
.top-user-menu .text-purple,
.site-news-dialog .text-purple {
  color: #111111 !important;
}

html.dark header .text-purple,
html.dark .sidebar .text-purple,
html.dark .top-user-menu .text-purple,
html.dark .site-news-dialog .text-purple,
body.nightmode header .text-purple,
body.nightmode .sidebar .text-purple,
body.nightmode .top-user-menu .text-purple,
body.nightmode .site-news-dialog .text-purple,
body.dashboard.nightmode header .text-purple,
body.dashboard.nightmode .sidebar .text-purple,
body.dashboard.nightmode .top-user-menu .text-purple,
body.dashboard.nightmode .site-news-dialog .text-purple {
  color: #ffffff !important;
}

/* Keep image icons visible without forcing photos/logos to grayscale. */
.site-news-icon img {
  filter: grayscale(1) contrast(1.05);
}

/* ---------- ACCESSIBILITY / FOCUS ---------- */
.top-news-btn:focus-visible,
.top-owner-link:focus-visible,
.top-user-menu .top-user-btn:focus-visible,
.site-news-close:focus-visible,
.sidebar .menu-box .nav-link:focus-visible {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

html.dark .top-news-btn:focus-visible,
html.dark .top-owner-link:focus-visible,
html.dark .top-user-menu .top-user-btn:focus-visible,
html.dark .site-news-close:focus-visible,
html.dark .sidebar .menu-box .nav-link:focus-visible,
body.nightmode .top-news-btn:focus-visible,
body.nightmode .top-owner-link:focus-visible,
body.nightmode .top-user-menu .top-user-btn:focus-visible,
body.nightmode .site-news-close:focus-visible,
body.nightmode .sidebar .menu-box .nav-link:focus-visible,
body.dashboard.nightmode .top-news-btn:focus-visible,
body.dashboard.nightmode .top-owner-link:focus-visible,
body.dashboard.nightmode .top-user-menu .top-user-btn:focus-visible,
body.dashboard.nightmode .site-news-close:focus-visible,
body.dashboard.nightmode .sidebar .menu-box .nav-link:focus-visible {
  outline-color: #ffffff !important;
}

/* ---------- MOBILE POLISH ---------- */
@media (max-width: 576px) {
  .top-news-btn,
  .top-owner-link,
  .top-user-menu .top-user-btn {
    box-shadow: none !important;
  }

  .site-news-dialog {
    border-color: rgba(0, 0, 0, .16) !important;
  }

  html.dark .site-news-dialog,
  body.nightmode .site-news-dialog,
  body.dashboard.nightmode .site-news-dialog {
    border-color: rgba(255, 255, 255, .14) !important;
  }
}

/* =========================================================
   PREMIUM MONOCHROME SIDEBAR
   TSM [ BETA ]
   ========================================================= */

body.dashboard .sidebar {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--color-1)!important;
  border-right: 1px solid #1f1f1f61 !important;
  box-shadow: 18px 0 50px rgba(0, 0, 0, .24);
  color: #f5f5f5;
  padding-top: 18px !important;
}

body.dashboard .sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(255,255,255,.16) .65px, transparent .65px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 42%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 42%);
}

body.dashboard .sidebar > * {
  position: relative;
  z-index: 1;
}

body.dashboard .sidebar .sidebar-top {
  min-height: 58px;
  margin-bottom: 10px !important;
  padding: 0 20px;
}

body.dashboard .sidebar .sidebar-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  color: #fff !important;
  text-decoration: none;
}

body.dashboard .sidebar .sidebar-top img {
  max-width: 148px !important;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
}

body.dashboard .sidebar .sidebar-top strong {
  color: #fff !important;
  font-size: 20px !important;
  letter-spacing: -.35px !important;
}

body.dashboard .sidebar .menu {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 4px !important;
  padding: 4px 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff transparent;
}

body.dashboard .sidebar .menu::-webkit-scrollbar {
  width: 5px;
}
body.dashboard .sidebar .menu::-webkit-scrollbar-track {
  background: transparent;
}
body.dashboard .sidebar .menu::-webkit-scrollbar-thumb {
  background: #2d2d2d;
  border-radius: 999px;
}

body.dashboard .sidebar .menu-box {
  width: 100%;
}

body.dashboard .sidebar .menu-box-title {
  margin: 4px 10px 9px;
  color: #696969 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}

body.dashboard .sidebar .nav-item {
  margin: 2px 0;
}

body.dashboard .sidebar .nav-link {
  position: relative;
  display: flex !important;
  min-height: 44px;
  gap: 11px;
  padding: 0 12px !important;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8e8e8e !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

body.dashboard .sidebar .nav-link i {
  width: 21px;
  flex: 0 0 21px;
  color: #727272 !important;
  font-size: 19px;
  text-align: center;
  transition: color .18s ease;
}

body.dashboard .sidebar .nav-link:hover {
  color: #fff !important;
  background: #111 !important;
  border-color: #222;
  transform: translateX(2px);
}

body.dashboard .sidebar .nav-link:hover i {
  color: #fff !important;
}

body.dashboard .sidebar .nav-link.active {
  color: #050505 !important;
  background: #f5f5f5 !important;
  border-color: #fff !important;
  box-shadow: 0 7px 24px rgba(255,255,255,.09);
}

body.dashboard .sidebar .nav-link.active::after {
  content: "";
  position: absolute;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #050505;
}

body.dashboard .sidebar .nav-link.active i {
  color: #050505 !important;
}

/* Fixed account area at the bottom of the sidebar */
body.dashboard .mono-sidebar-footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 10px 12px 12px;
  border-top: 1px solid #1b1b1b;
  background: linear-gradient(180deg, rgba(4,4,4,.88), #030303 24%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.dashboard .mono-sidebar-footer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

body.dashboard .mono-sidebar-support-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #737373 !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25px;
  text-decoration: none !important;
  transition: color .18s ease;
}

body.dashboard .mono-sidebar-support-link i {
  font-size: 15px;
}

body.dashboard .mono-sidebar-support-link:hover {
  color: #fff !important;
}

body.dashboard .mono-sidebar-mini-actions {
  display: inline-flex;
  gap: 5px;
}

body.dashboard .mono-sidebar-mini-actions button {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #0b0b0b;
  color: #737373;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

body.dashboard .mono-sidebar-mini-actions button:hover {
  color: #fff;
  background: #141414;
  border-color: #333;
}

body.dashboard .mono-sidebar-user-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #202020;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 44%),
    #0a0a0a;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

body.dashboard .mono-sidebar-user-card:hover {
  border-color: #3a3a3a;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), transparent 46%),
    #0c0c0c;
  transform: translateY(-1px);
}

body.dashboard .mono-sidebar-avatar {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border: 1px solid #2c2c2c;
  border-radius: 11px;
  background: #f3f3f3;
  color: #050505;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

body.dashboard .mono-sidebar-user-content {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
}

body.dashboard .mono-sidebar-user-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #f7f7f7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard .mono-sidebar-user-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 6px;
}

body.dashboard .mono-sidebar-badge,
body.dashboard .mono-sidebar-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 19px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body.dashboard .mono-sidebar-badge {
  max-width: 100px;
  overflow: hidden;
  background: #f2f2f2;
  color: #050505;
  text-overflow: ellipsis;
}

body.dashboard .mono-sidebar-discount {
  border: 1px solid #292929;
  background: #101010;
  color: #aaa;
}

body.dashboard .mono-sidebar-badge i,
body.dashboard .mono-sidebar-discount i {
  font-size: 10px;
}

body.dashboard .mono-sidebar-user-arrow {
  flex: 0 0 auto;
  color: #5e5e5e;
  font-size: 18px;
  transition: color .18s ease, transform .18s ease;
}

body.dashboard .mono-sidebar-user-card:hover .mono-sidebar-user-arrow {
  color: #fff;
  transform: translateX(2px);
}

@media (max-height: 700px) {
  body.dashboard .sidebar .nav-link {
    min-height: 39px;
  }
  body.dashboard .sidebar .menu {
    padding-top: 0;
    padding-bottom: 8px;
  }
  body.dashboard .mono-sidebar-footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  body.dashboard .mono-sidebar-footer-tools {
    margin-bottom: 6px;
  }
  body.dashboard .mono-sidebar-user-card {
    padding: 9px;
  }
}

@media (max-width: 767.98px) {
  body.dashboard .sidebar {
    box-shadow: 22px 0 70px rgba(0,0,0,.52);
  }
}

