/* Cashback V36.7.95 — Put the single rounded glass frame on the Admin card itself.
   The previous patch cleared the parent .admin-card and painted the subnav,
   which left a broad square-looking translucent plane behind the rounded menu.
   This patch moves the surface to the actual outer wrapper and makes the
   subnav transparent, so there is only one visible rounded shell. */

/* ONE outer rounded panel, equivalent to the rounded Admin surface shown in
   the reference screenshot. It wraps the nav and the selected Admin pane. */
html body #tab-admin > .admin-card {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 18px !important;
  margin: 0 0 24px !important;
  border: 1px solid rgba(148, 163, 184, .38) !important;
  border-radius: 30px !important;
  outline: 0 !important;
  background: rgba(255, 255, 255, .18) !important;
  background-image: none !important;
  background-clip: padding-box !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255,255,255,.18) !important;
  -webkit-backdrop-filter: blur(16px) saturate(128%) !important;
  backdrop-filter: blur(16px) saturate(128%) !important;
  overflow: visible !important;
}
html body #tab-admin > .admin-card::before,
html body #tab-admin > .admin-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* The nav is only a layout group. It must not paint a second rectangular
   translucent background underneath the rounded parent shell. */
html body #tab-admin > .admin-card > .admin-subnav {
  position: relative !important;
  isolation: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}
html body #tab-admin > .admin-card > .admin-subnav::before,
html body #tab-admin > .admin-card > .admin-subnav::after {
  content: none !important;
  display: none !important;
  position: static !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Theme tint is applied to the same parent shell; no second surface is added. */
html body.default-light-mode #tab-admin > .admin-card {
  color: #26364c !important;
  background: rgba(255, 255, 255, .76) !important;
  border-color: rgba(148, 163, 184, .42) !important;
  box-shadow: 0 12px 30px rgba(51, 65, 85, .09), inset 0 1px 0 rgba(255,255,255,.88) !important;
}
html body.theme-halloween:not(.default-light-mode) #tab-admin > .admin-card {
  color: #f5edff !important;
  background: linear-gradient(145deg, rgba(53, 34, 75, .48), rgba(24, 18, 43, .58)) !important;
  border-color: rgba(205, 174, 245, .38) !important;
  box-shadow: 0 16px 38px rgba(8, 5, 20, .24), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
html body.theme-winter:not(.default-light-mode) #tab-admin > .admin-card {
  color: #edf6ff !important;
  background: linear-gradient(145deg, rgba(30, 68, 108, .48), rgba(9, 34, 65, .58)) !important;
  border-color: rgba(160, 205, 245, .38) !important;
  box-shadow: 0 16px 38px rgba(3, 15, 35, .24), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
html body.theme-ocean:not(.default-light-mode) #tab-admin > .admin-card {
  color: #e9fbff !important;
  background: linear-gradient(145deg, rgba(8, 67, 84, .48), rgba(3, 39, 58, .58)) !important;
  border-color: rgba(132, 225, 228, .40) !important;
  box-shadow: 0 16px 38px rgba(0, 16, 29, .24), inset 0 1px 0 rgba(255,255,255,.10) !important;
}

@media (max-width: 700px) {
  html body #tab-admin > .admin-card {
    padding: 12px !important;
    border-radius: 26px !important;
  }
}
@media (max-width: 380px) {
  html body #tab-admin > .admin-card {
    padding: 10px !important;
    border-radius: 23px !important;
  }
}
