/* ==========================================================================
   Magnesium Site-Wide Dark Theme
   Activated when <html class="dark-theme"> / <body class="dark-theme"> is set
   ========================================================================== */

html.dark-theme {
  color-scheme: dark;
  --mag-bg: #191b1d;
  --mag-bg-deep: #111214;
  --mag-surface: #232527;
  --mag-surface-2: #2b2d30;
  --mag-surface-hover: #323539;
  --mag-border: #393b3d;
  --mag-border-strong: #4f5256;
  --mag-text: #f2f4f5;
  --mag-text-secondary: #bdbebe;
  --mag-text-muted: #8d9093;
  --mag-accent: #00a2ff;
  --mag-accent-hover: #32b5ff;
  --mag-green: #02b757;
  --mag-red: #e27676;
  --mag-orange: #f68802;
}

/* ---- Base page & containers -------------------------------------------- */
html.dark-theme,
html.dark-theme body,
html.dark-theme #MasterContainer,
html.dark-theme #Container,
html.dark-theme .nav-container,
html.dark-theme .nav-content,
html.dark-theme #navContent,
html.dark-theme .container-main,
html.dark-theme .content,
html.dark-theme #BodyWrapper,
html.dark-theme #RepositionBody {
  background-color: var(--mag-bg) !important;
  color: var(--mag-text);
}

html.dark-theme #Body,
html.dark-theme #Body.body-width {
  background-color: var(--mag-bg) !important;
  color: var(--mag-text);
}

/* Headings & general text */
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6,
html.dark-theme .container-header h1,
html.dark-theme .container-header h2,
html.dark-theme .container-header h3,
html.dark-theme .section-header h3,
html.dark-theme .font-header-1,
html.dark-theme .font-header-2,
html.dark-theme .font-bold,
html.dark-theme .text-lead,
html.dark-theme .text-emphasis,
html.dark-theme label {
  color: var(--mag-text);
}

html.dark-theme p,
html.dark-theme .text-description,
html.dark-theme .text-secondary,
html.dark-theme .text-label,
html.dark-theme .rbx-text-notes,
html.dark-theme .text-date-hint,
html.dark-theme .text-pastname,
html.dark-theme .small,
html.dark-theme small {
  color: var(--mag-text-secondary);
}

html.dark-theme .text-name,
html.dark-theme a.text-name,
html.dark-theme .text-link,
html.dark-theme a.text-link {
  color: var(--mag-accent);
}

html.dark-theme a.text-name:hover,
html.dark-theme a.text-link:hover {
  color: var(--mag-accent-hover);
}

html.dark-theme .text-robux {
  color: #02b757 !important;
}

html.dark-theme .text-error {
  color: #ff7a7a !important;
}

html.dark-theme hr,
html.dark-theme .rbx-divider {
  border-color: var(--mag-border) !important;
  background-color: var(--mag-border) !important;
}

/* ---- Top Navigation Header --------------------------------------------- */
html.dark-theme #header.rbx-header,
html.dark-theme .rbx-header {
  background-color: #191b1d !important;
  border-bottom: 1px solid var(--mag-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

html.dark-theme .rbx-header .rbx-navbar li a,
html.dark-theme .rbx-header .rbx-navbar-icon-group a,
html.dark-theme .rbx-header .rbx-text-navbar-right,
html.dark-theme .rbx-header .age-bracket-label-username,
html.dark-theme .rbx-header .age-bracket-label-age {
  color: #f2f4f5 !important;
}

html.dark-theme .rbx-header .rbx-navbar li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .rbx-header .rbx-navbar-search .input-field,
html.dark-theme #navbar-universal-search .input-field {
  background-color: #2b2d30 !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .rbx-header .rbx-navbar-search .input-field::placeholder {
  color: var(--mag-text-muted) !important;
}

html.dark-theme .rbx-header .rbx-navbar-search .input-addon-btn {
  background-color: #2b2d30 !important;
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border-strong) !important;
}

/* ---- Left Navigation Sidebar ------------------------------------------- */
html.dark-theme #navigation,
html.dark-theme .rbx-left-col {
  background-color: #1e2022 !important;
  border-right: 1px solid var(--mag-border);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45) !important;
}

html.dark-theme .rbx-left-col ul li a,
html.dark-theme .rbx-left-col .text-nav,
html.dark-theme .rbx-left-col .font-header-2 {
  color: var(--mag-text) !important;
}

html.dark-theme .rbx-left-col ul li a:hover {
  background-color: var(--mag-surface-2);
}

html.dark-theme .rbx-left-col .rbx-divider {
  background-color: var(--mag-border) !important;
}

/* ---- Footer ------------------------------------------------------------ */
html.dark-theme footer.container-footer,
html.dark-theme .container-footer,
html.dark-theme #footer-container {
  background-color: #191b1d !important;
  border-top: 1px solid var(--mag-border);
  color: var(--mag-text-muted) !important;
}

html.dark-theme footer.container-footer .text-footer,
html.dark-theme .container-footer .text-footer {
  color: var(--mag-text-muted) !important;
}

html.dark-theme footer.container-footer .text-footer-nav,
html.dark-theme .container-footer .text-footer-nav {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme footer.container-footer .text-footer-nav:hover,
html.dark-theme .container-footer .text-footer-nav:hover {
  color: #ffffff !important;
}

/* ---- Cards, Sections, Stacks, Panels ----------------------------------- */
html.dark-theme .section-content,
html.dark-theme .section-content-off,
html.dark-theme .stack .stack-list .stack-row,
html.dark-theme .game-card-container,
html.dark-theme .item-card-container,
html.dark-theme .avatar-card-container,
html.dark-theme .badge-card,
html.dark-theme .group-details-container,
html.dark-theme .profile-container .section-content,
html.dark-theme .rbx-tabs-horizontal .nav-tabs,
html.dark-theme .rbx-tabs-vertical .category-tabs,
html.dark-theme .rbx-tabs-vertical .menu-vertical,
html.dark-theme .menu-vertical,
html.dark-theme .white-bg,
html.dark-theme .StandardBox,
html.dark-theme .StandardBoxWhite,
html.dark-theme .roblox-message-row,
html.dark-theme .message-summary,
html.dark-theme .message-detail,
html.dark-theme .trade-row,
html.dark-theme .CatalogItemInner,
html.dark-theme .GroupWallPane,
html.dark-theme .PlaceLauncherModal {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

html.dark-theme .section-content-off {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text-secondary) !important;
}

html.dark-theme .game-card-name,
html.dark-theme .item-card-name,
html.dark-theme .avatar-card-label,
html.dark-theme .avatar-name,
html.dark-theme .game-card-link,
html.dark-theme .item-card-link {
  color: var(--mag-text) !important;
}

html.dark-theme .game-card-info,
html.dark-theme .item-card-caption,
html.dark-theme .item-card-creator,
html.dark-theme .avatar-card-caption,
html.dark-theme .game-card-footer {
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .game-card-thumb-container,
html.dark-theme .item-card-thumb-container,
html.dark-theme .avatar-card-image,
html.dark-theme .thumbnail-2d-container {
  background-color: var(--mag-surface-2) !important;
}

html.dark-theme .vlist .list-item,
html.dark-theme .list-item {
  border-color: var(--mag-border) !important;
}

html.dark-theme .section-left {
  border-right-color: var(--mag-border) !important;
}

/* ---- Tabs (Horizontal & Vertical) -------------------------------------- */
html.dark-theme .rbx-tabs-horizontal .rbx-tab .rbx-tab-heading,
html.dark-theme .nav-tabs > li > a {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .rbx-tabs-horizontal .rbx-tab .rbx-tab-heading:hover,
html.dark-theme .nav-tabs > li > a:hover {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
}

html.dark-theme .rbx-tabs-horizontal .rbx-tab.active .rbx-tab-heading,
html.dark-theme .nav-tabs > li.active > a,
html.dark-theme .nav-tabs > li.active > a:hover,
html.dark-theme .nav-tabs > li.active > a:focus {
  background-color: var(--mag-surface-2) !important;
  color: #ffffff !important;
  box-shadow: inset 0 -4px 0 0 var(--mag-accent) !important;
}

html.dark-theme .menu-vertical .menu-option,
html.dark-theme .menu-vertical .menu-option-content {
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .menu-vertical .menu-option:hover,
html.dark-theme .menu-vertical .menu-option.active {
  background-color: var(--mag-surface-2) !important;
  color: #ffffff !important;
}

/* ---- My Settings (/my/account) ----------------------------------------- */
html.dark-theme .my-settings-page .account-settings-label {
  color: var(--mag-text-muted) !important;
}

html.dark-theme .my-settings-page .text-name {
  color: var(--mag-text) !important;
}

html.dark-theme .my-settings-page .account-more-info,
html.dark-theme .my-settings-page .personal-field-note,
html.dark-theme .my-settings-page .settings-newsletter label {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme .my-settings-page .fake-input-lg {
  background-color: var(--mag-bg) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .my-settings-page .fake-input-lg label {
  color: var(--mag-text) !important;
}

html.dark-theme .my-settings-page .fake-input-lg .rbx-select,
html.dark-theme .my-settings-page .country-container .rbx-select {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .my-settings-page .gender-container .gender-button {
  background-color: var(--mag-surface-2) !important;
  border-left-color: var(--mag-border-strong) !important;
}

html.dark-theme .my-settings-page .gender-container .gender-button:hover,
html.dark-theme .my-settings-page .gender-container .gender-button:focus,
html.dark-theme .my-settings-page .gender-container .gender-button.selected {
  background-color: var(--mag-surface-hover) !important;
}

html.dark-theme .my-settings-page .settings-session {
  border-color: var(--mag-border) !important;
}

html.dark-theme .my-settings-page .settings-session-meta {
  color: var(--mag-text-muted) !important;
}

/* ---- Inputs, Selects, Textareas, Forms --------------------------------- */
html.dark-theme input[type="text"],
html.dark-theme input[type="password"],
html.dark-theme input[type="email"],
html.dark-theme input[type="search"],
html.dark-theme input[type="number"],
html.dark-theme input[type="url"],
html.dark-theme textarea,
html.dark-theme select,
html.dark-theme .form-control,
html.dark-theme .input-field,
html.dark-theme .rbx-select,
html.dark-theme .text-box {
  background-color: #191b1d !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme input:focus,
html.dark-theme textarea:focus,
html.dark-theme select:focus,
html.dark-theme .form-control:focus,
html.dark-theme .input-field:focus {
  border-color: var(--mag-accent) !important;
  box-shadow: 0 0 0 1px rgba(0, 162, 255, 0.35) !important;
}

html.dark-theme select option {
  background-color: #232527;
  color: #f2f4f5;
}

html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder {
  color: var(--mag-text-muted) !important;
}

/* ---- Secondary / Control / Neutral Buttons ----------------------------- */
html.dark-theme .btn-control-xs,
html.dark-theme .btn-control-sm,
html.dark-theme .btn-control-md,
html.dark-theme .btn-control-lg,
html.dark-theme .btn-secondary-xs,
html.dark-theme .btn-secondary-sm,
html.dark-theme .btn-secondary-md,
html.dark-theme .btn-secondary-lg,
html.dark-theme .btn-neutral,
html.dark-theme .btn-more,
html.dark-theme .rbx-btn-control-xs,
html.dark-theme .rbx-btn-control-sm,
html.dark-theme .rbx-btn-control-md,
html.dark-theme .rbx-btn-secondary-xs,
html.dark-theme .rbx-btn-secondary-sm,
html.dark-theme .rbx-btn-secondary-md,
html.dark-theme .btn-default {
  background-color: #393b3d !important;
  background-image: none !important;
  color: #f2f4f5 !important;
  border-color: #55585c !important;
}

html.dark-theme .btn-control-xs:hover,
html.dark-theme .btn-control-sm:hover,
html.dark-theme .btn-control-md:hover,
html.dark-theme .btn-control-lg:hover,
html.dark-theme .btn-secondary-xs:hover,
html.dark-theme .btn-secondary-sm:hover,
html.dark-theme .btn-secondary-md:hover,
html.dark-theme .btn-secondary-lg:hover,
html.dark-theme .btn-neutral:hover,
html.dark-theme .btn-more:hover,
html.dark-theme .btn-default:hover {
  background-color: #4a4d50 !important;
  color: #ffffff !important;
  border-color: #6b6f74 !important;
}

html.dark-theme button:disabled,
html.dark-theme .btn-control-xs[disabled],
html.dark-theme .btn-control-sm[disabled] {
  opacity: 0.5;
}

/* ---- Popovers, Dropdowns, Modals --------------------------------------- */
html.dark-theme .dropdown-menu,
html.dark-theme .popover,
html.dark-theme .rbx-popover-content,
html.dark-theme .rbx-dropdown-menu {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55) !important;
}

html.dark-theme .dropdown-menu li a,
html.dark-theme .dropdown-menu .rbx-navbar-search-option,
html.dark-theme .popover .dropdown-menu li a {
  color: var(--mag-text) !important;
}

html.dark-theme .dropdown-menu li a:hover,
html.dark-theme .dropdown-menu li.selected,
html.dark-theme .dropdown-menu .rbx-navbar-search-option.selected,
html.dark-theme .dropdown-menu .rbx-navbar-search-option:hover {
  background-color: var(--mag-surface-hover) !important;
  color: #ffffff !important;
}

html.dark-theme .popover.bottom > .arrow::after {
  border-bottom-color: var(--mag-surface) !important;
}

html.dark-theme .popover.top > .arrow::after {
  border-top-color: var(--mag-surface) !important;
}

html.dark-theme .modal-content,
html.dark-theme .GenericModal .GenericModalBody,
html.dark-theme .ConfirmationModal .GenericModalBody,
html.dark-theme .simplemodal-container,
html.dark-theme .rbx-modal-dialog .modal-content {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border: 1px solid var(--mag-border-strong) !important;
}

html.dark-theme .modal-header,
html.dark-theme .modal-footer,
html.dark-theme .GenericModal .Title {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .modal-header .close,
html.dark-theme button.close {
  color: var(--mag-text) !important;
  text-shadow: none !important;
  opacity: 0.8;
}

/* ---- Tables (Develop, Money, Transactions, Forum, Groups) -------------- */
html.dark-theme table,
html.dark-theme .table,
html.dark-theme .item-table,
html.dark-theme #forum-container table {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme table th,
html.dark-theme .table th,
html.dark-theme .table-header {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme table td,
html.dark-theme .table td,
html.dark-theme table tr {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme table tr:hover td,
html.dark-theme .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--mag-surface-2) !important;
}

/* ---- Chat Widget & Notification Stream --------------------------------- */
html.dark-theme #chat-container .chat-main,
html.dark-theme #chat-container .dialog-container,
html.dark-theme #chat-container .dialog-body,
html.dark-theme #chat-container .chat-friend-list,
html.dark-theme #chat-container .chat-search,
html.dark-theme #chat-container .dialog-input-container,
html.dark-theme .notification-stream-base,
html.dark-theme .notification-stream-list {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme #chat-container .chat-windows-header {
  background-color: #191b1d !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--mag-border);
}

html.dark-theme #chat-container .chat-friend-container:hover,
html.dark-theme .notification-stream-item:hover {
  background-color: var(--mag-surface-2) !important;
}

html.dark-theme #chat-container .dialog-message {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

/* ---- Games, Catalog, Profile, Develop, Avatar, Mobile Site ------------- */
html.dark-theme #GamesPageLeftColumn,
html.dark-theme #GamesPageRightColumn,
html.dark-theme .games-list-container,
html.dark-theme .catalog-container,
html.dark-theme .catalog-results-container,
html.dark-theme #catalog-content,
html.dark-theme #LeftGutterAdContainer,
html.dark-theme #RightGutterAdContainer,
html.dark-theme .item-details-container,
html.dark-theme .game-detail-page,
html.dark-theme .game-main-content,
html.dark-theme .profile-header,
html.dark-theme .profile-about-content,
html.dark-theme .develop-page,
html.dark-theme #MyCreationsTab,
html.dark-theme .BuildPageContent {
  background-color: var(--mag-bg) !important;
  color: var(--mag-text) !important;
}

html.dark-theme .game-main-content,
html.dark-theme .profile-header-content,
html.dark-theme .item-details-container .section-content,
html.dark-theme .game-stat-container,
html.dark-theme .game-calls-to-action {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

/* Mobile site bottom bar & drawer */
html.dark-theme .msite-bar,
html.dark-theme .msite-drawer {
  background-color: #1e2022 !important;
  border-color: var(--mag-border) !important;
  color: var(--mag-text) !important;
}

html.dark-theme .msite-tab,
html.dark-theme .msite-drawer a {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme .msite-tab.active,
html.dark-theme .msite-drawer a:hover {
  color: #ffffff !important;
  background-color: var(--mag-surface-2) !important;
}

/* Pagination */
html.dark-theme .pager li > a,
html.dark-theme .pager li > span,
html.dark-theme .pagination > li > a,
html.dark-theme .pagination > li > span {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .pager li > a:hover,
html.dark-theme .pagination > li > a:hover {
  background-color: var(--mag-surface-hover) !important;
}

/* Alerts & Banners */
html.dark-theme .alert-info,
html.dark-theme .status-confirm {
  background-color: #1c3144 !important;
  color: #cce8ff !important;
  border-color: #2b5478 !important;
}

html.dark-theme .alert-warning {
  background-color: #3d2c14 !important;
  color: #ffd9a0 !important;
  border-color: #6b4b1e !important;
}

html.dark-theme .alert-danger,
html.dark-theme .alert-error {
  background-color: #3f1d20 !important;
  color: #ffb8be !important;
  border-color: #6e2d33 !important;
}

/* Scrollbar polish */
html.dark-theme ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html.dark-theme ::-webkit-scrollbar-track {
  background: #191b1d;
}

html.dark-theme ::-webkit-scrollbar-thumb {
  background: #424549;
  border-radius: 5px;
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: #575b60;
}

/* ==========================================================================
   v2 Refinements: Light Navbar SVGs, Home/Games/Profile overrides, White Fixes
   ========================================================================== */

/* ---- Light-variant Navbar SVG Sprites ---------------------------------- */
html.dark-theme .icon-default-navigation,
html.dark-theme .icon-nav-menu,
html.dark-theme .icon-nav-robux,
html.dark-theme .icon-nav-tix,
html.dark-theme .icon-nav-settings,
html.dark-theme .icon-nav-search,
html.dark-theme .icon-nav-home,
html.dark-theme .icon-nav-profile,
html.dark-theme .icon-nav-message,
html.dark-theme .icon-nav-friends,
html.dark-theme .icon-nav-charactercustomizer,
html.dark-theme .icon-nav-inventory,
html.dark-theme .icon-nav-trade,
html.dark-theme .icon-nav-group,
html.dark-theme .icon-nav-forum,
html.dark-theme .icon-nav-blog,
html.dark-theme .icon-nav-search-white,
html.dark-theme .icon-nav-shop {
  background-image: url(/images/NextStyleGuide/navigation_02012016_light.svg) !important;
}

html.dark-theme .icon-nav-notification-stream {
  background-image: url(/images/Shared/navigation_06282017_light.svg) !important;
}

/* ---- Override inline body <style> backgrounds (Home, Games, Profile) --- */
html.dark-theme,
html.dark-theme body.dark-theme,
html.dark-theme body.dark-theme #container-main,
html.dark-theme body.dark-theme .container-main,
html.dark-theme body.dark-theme .content,
html.dark-theme body.dark-theme #BodyWrapper,
html.dark-theme body.dark-theme #RepositionBody,
html.dark-theme body.dark-theme #Body,
html.dark-theme body.dark-theme #Body.body-width,
html.dark-theme body.dark-theme #Body.games-page-body,
html.dark-theme body.dark-theme #Body.catalog-item-body {
  background-color: var(--mag-bg) !important;
  color: var(--mag-text) !important;
}

/* ---- Home Page: "Hello, Username", headings, friends, game names ------- */
html.dark-theme body.dark-theme #HomeContainer,
html.dark-theme body.dark-theme #HomeContainer .home-header,
html.dark-theme body.dark-theme #HomeContainer .home-header-content {
  background-color: transparent !important;
  color: var(--mag-text) !important;
}

html.dark-theme body.dark-theme #HomeContainer h1,
html.dark-theme body.dark-theme #HomeContainer h2,
html.dark-theme body.dark-theme #HomeContainer h3,
html.dark-theme body.dark-theme #HomeContainer .home-header-content h1,
html.dark-theme body.dark-theme #HomeContainer .home-header-content h1 a,
html.dark-theme body.dark-theme #HomeContainer .container-header h2,
html.dark-theme body.dark-theme #HomeContainer .container-header h3,
html.dark-theme body.dark-theme #HomeContainer .section-header h2,
html.dark-theme body.dark-theme #HomeContainer .section-header h3 {
  color: #ffffff !important;
}

html.dark-theme body.dark-theme #HomeContainer a:not([class*="btn"]):not(.home-left-col a):not(.home-right-col a),
html.dark-theme body.dark-theme #HomeContainer a:not([class*="btn"]):not(.home-left-col a):not(.home-right-col a) *,
html.dark-theme body.dark-theme #HomeContainer .friend-name,
html.dark-theme body.dark-theme #HomeContainer .friend .text-overflow {
  color: #f2f4f5 !important;
}

html.dark-theme body.dark-theme #HomeContainer a:not([class*="btn"]):not(.home-left-col a):not(.home-right-col a):hover,
html.dark-theme body.dark-theme #HomeContainer a:not([class*="btn"]):not(.home-left-col a):not(.home-right-col a):hover * {
  color: #32b5ff !important;
}

/* Keep secondary/vote/robux colors crisp inside HomeContainer */
html.dark-theme body.dark-theme #HomeContainer .game-card-name-secondary,
html.dark-theme body.dark-theme #HomeContainer a:not([class*="btn"]):not(.home-left-col a):not(.home-right-col a) .game-card-name-secondary {
  color: #bdbebe !important;
}

html.dark-theme body.dark-theme #HomeContainer .vote-counts .vote-up-count {
  color: #02b757 !important;
}

html.dark-theme body.dark-theme #HomeContainer .vote-counts .vote-down-count {
  color: #e27676 !important;
}

/* ---- Game Names & Game Cards (Home, Games, Profile, Search) ------------ */
html.dark-theme body.dark-theme #HomeContainer .game-card-name,
html.dark-theme body.dark-theme #HomeContainer a:hover .game-card-name,
html.dark-theme body.dark-theme #HomeContainer .game-card-container:hover .game-card-name,
html.dark-theme body.dark-theme .game-card-name,
html.dark-theme body.dark-theme .game-card-link .game-card-name,
html.dark-theme body.dark-theme a .game-card-name,
html.dark-theme body.dark-theme a:hover .game-card-name,
html.dark-theme body.dark-theme .game-card-container:hover .game-card-name {
  color: #ffffff !important;
}

html.dark-theme body.dark-theme .game-card-container,
html.dark-theme body.dark-theme .game-card .game-card-container,
html.dark-theme body.dark-theme #HomeContainer .game-card-container {
  background-color: var(--mag-surface) !important;
  border-color: var(--mag-border) !important;
}

/* Vote bar divider segments on game cards (were #fff) */
html.dark-theme .vote-mask .segment {
  background-color: var(--mag-surface) !important;
}

/* ---- Profile & Games Page white/dark text fixes ------------------------ */
html.dark-theme body.dark-theme .profile-container .item-name,
html.dark-theme body.dark-theme .profile-container .friend-name,
html.dark-theme body.dark-theme .profile-container .btn-control-md {
  color: #f2f4f5 !important;
}

html.dark-theme body.dark-theme .profile-container a:hover .item-name,
html.dark-theme body.dark-theme .profile-container a:hover .friend-name {
  color: #32b5ff !important;
}

html.dark-theme body.dark-theme .profile-container .rbx-tab-heading {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme body.dark-theme .games-page-hide-overflow,
html.dark-theme body.dark-theme .games-list-container,
html.dark-theme body.dark-theme .scroller,
html.dark-theme body.dark-theme .scroller:focus {
  background-color: var(--mag-bg) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme body.dark-theme .scroller:hover {
  background-color: var(--mag-surface-2) !important;
}

/* ---- Remaining white widgets (Chat, Avatars, Feeds, Ads) --------------- */
html.dark-theme .dialogs-minimize-container,
html.dark-theme .dialog-container .dialog-member-header,
html.dark-theme .dialog-container .dialog-report-container,
html.dark-theme .chat-main-empty .chat-disconnect,
html.dark-theme .minimize-item:hover,
html.dark-theme .avatar-headshot-lg,
html.dark-theme .avatar-card-fullbody,
html.dark-theme .home-friends .friend .avatar-card-image,
html.dark-theme .rbx-left-col .rbx-scrollbar {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .home-header .avatar,
html.dark-theme .home-header .avatar img {
  background-color: var(--mag-surface-2) !important;
  border-color: var(--mag-border-strong) !important;
}

/* ==========================================================================
   v3 Refinements: Profile Page (Groups/Creations Slideshows, Currently Wearing)
   ========================================================================== */

html.dark-theme .slide-switcher,
html.dark-theme .slide-switcher.groups,
html.dark-theme .slide-switcher.games {
  background-color: #1e2022 !important;
  border: 1px solid var(--mag-border) !important;
}

html.dark-theme .slide-switcher .slide-item-container .slide-item-container-left {
  background-color: #1e2022 !important;
}

html.dark-theme .slide-switcher .slide-item-container .slide-item-container-right {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-left: 1px solid var(--mag-border) !important;
}

html.dark-theme .slide-switcher .slide-item-container .slide-item-name,
html.dark-theme .slide-switcher .slide-item-container .slide-item-my-rank,
html.dark-theme .slide-switcher .slide-item-container .slide-item-members-count,
html.dark-theme .slide-switcher .slide-item-container .slide-item-stat-title,
html.dark-theme .slide-switcher .slide-item-container .text-lead {
  color: #f2f4f5 !important;
}

html.dark-theme .slide-switcher .slide-item-container .slide-item-description,
html.dark-theme .slide-switcher .slide-item-container .text-label {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme .slide-switcher .slide-item-container .slide-item-info,
html.dark-theme .slide-switcher .slide-item-container .slide-item-stats {
  border-color: var(--mag-border) !important;
}

/* Profile Currently Wearing & 2D/3D Avatar Panel */
html.dark-theme .profile-avatar-left {
  background-color: var(--mag-surface) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .profile-avatar-right {
  background-color: #1e2022 !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .profile-avatar-left .enable-three-dee,
html.dark-theme .profile-avatar-left .enable-three-dee:hover,
html.dark-theme .profile-avatar-left .enable-three-dee:focus,
html.dark-theme .profile-avatar-left .enable-three-dee:active,
html.dark-theme .profile-avatar-left .enable-three-dee.active {
  background-color: #393b3d !important;
  color: #f2f4f5 !important;
  border-color: #55585c !important;
}

html.dark-theme .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item a {
  background-color: var(--mag-surface-2) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item a:hover {
  background-color: var(--mag-surface-hover) !important;
}

/* Profile slideshow/grid view switcher buttons */
html.dark-theme .container-buttons .btn-toggle-off,
html.dark-theme .container-buttons .btn-toggle-on {
  background-color: #393b3d !important;
  border-color: #55585c !important;
}

html.dark-theme .container-buttons .btn-toggle-on {
  background-color: #4f5256 !important;
}

/* ==========================================================================
   v4 Refinements: /my/money, Trades, Unified Modals, Legacy StyleGuide Tabs
   ========================================================================== */

/* /my/money summary columns & loading overlays */
html.dark-theme #Summary_tab .loading,
html.dark-theme #MyTransactions_tab .loading,
html.dark-theme #TradeItems_tab .loading,
html.dark-theme #Promotion_tab .loading {
  background-color: var(--mag-surface) !important;
}

html.dark-theme #Summary_tab .RobuxColumn,
html.dark-theme #Summary_tab .TicketsColumn,
html.dark-theme #Summary_tab .total,
html.dark-theme #Summary_tab .total td,
html.dark-theme #MyMoneyContainer {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

/* Legacy StyleGuide tabs & containers (/my/money, /develop, /groups, /catalog) */
html.dark-theme .tab,
html.dark-theme .tab-container > div,
html.dark-theme .redesign .tab_white_31h_container .ajax__tab_inner {
  background-color: var(--mag-surface-2) !important;
  background-image: none !important;
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .tab:hover,
html.dark-theme .tab-container > div:hover,
html.dark-theme .redesign .tab_white_31h_container .ajax__tab_hover .ajax__tab_inner {
  background-color: var(--mag-surface-hover) !important;
  color: #ffffff !important;
}

html.dark-theme .tab.active,
html.dark-theme .tab-container > .tab-active,
html.dark-theme .tab-container > .tab-active:hover,
html.dark-theme .redesign .tab_white_31h_container .ajax__tab_active .ajax__tab_inner {
  background-color: var(--mag-surface) !important;
  color: #ffffff !important;
  border-color: var(--mag-border-strong) !important;
  border-bottom-color: var(--mag-surface) !important;
}

html.dark-theme .tab-content,
html.dark-theme .tab-container + div > div,
html.dark-theme .dark-box {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .verticaltab {
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .verticaltab:hover,
html.dark-theme .verticaltab.selected {
  background-color: var(--mag-surface-2) !important;
  color: #ffffff !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .dropdown .dropdown-list {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

/* Unified Modals & Trade Window overlays */
html.dark-theme .unifiedModal,
html.dark-theme .unifiedModalContent,
html.dark-theme .GenericModalBody,
html.dark-theme #TradeRequest.trade-loading .unifiedModalContent {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .Offer,
html.dark-theme .InventoryItemContainerInner,
html.dark-theme .InventoryItemContainerInner:hover,
html.dark-theme .SmallInventoryItem,
html.dark-theme .LargeInventoryItem,
html.dark-theme .RobuxTradeRequestItem,
html.dark-theme .BlankItem,
html.dark-theme .BlankItem.LargeInventoryItem {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

/* ==========================================================================
   v5 Refinements: /my/money StandardPanelWhite, SquareTabGray, Table Links
   ========================================================================== */

html.dark-theme .StandardPanelContainer,
html.dark-theme .StandardPanelWhite,
html.dark-theme #TabsContentContainer,
html.dark-theme .MyMoneyPage .TabContent,
html.dark-theme .MyMoneyPage .SortsAndFilters,
html.dark-theme .MyMoneyPage .TransactionsContainer,
html.dark-theme .MyMoneyPage .SummaryContainer {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .WhiteSquareTabsContainer,
html.dark-theme .SquareTabsContainer {
  background-color: transparent !important;
  background-image: none !important;
  border-bottom-color: var(--mag-border) !important;
}

html.dark-theme .SquareTabGray {
  background-color: var(--mag-surface-2) !important;
  background-image: none !important;
  border-color: var(--mag-border) !important;
  color: var(--mag-text-secondary) !important;
}

html.dark-theme .SquareTabGray:hover {
  background-color: var(--mag-surface-hover) !important;
}

html.dark-theme .SquareTabGray a,
html.dark-theme .SquareTabGray span {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme .SquareTabGray.selected {
  background-color: var(--mag-surface) !important;
  background-image: none !important;
  border-color: var(--mag-border-strong) !important;
  border-bottom-color: var(--mag-surface) !important;
}

html.dark-theme .SquareTabGray.selected a,
html.dark-theme .SquareTabGray.selected span,
html.dark-theme .SquareTabGray:hover a {
  color: #ffffff !important;
}

html.dark-theme .MyMoneyPage .form-label,
html.dark-theme .MyMoneyPage .text,
html.dark-theme .MyMoneyPage span,
html.dark-theme .MyMoneyPage td {
  color: var(--mag-text) !important;
}

html.dark-theme .MyMoneyPage table a,
html.dark-theme .MyMoneyPage a.text-link {
  color: #4db8ff !important;
}

html.dark-theme .MyMoneyPage table a:hover {
  color: #80ccff !important;
}

html.dark-theme .MyMoneyPage .Amount,
html.dark-theme .MyMoneyPage .robux {
  color: #02b757 !important;
}

/* ==========================================================================
   v6 Refinements: Fix SquareTabGray a:hover white background (Roblox.css)
   ========================================================================== */

html.dark-theme .SquareTabGray a,
html.dark-theme .SquareTabGray a:hover,
html.dark-theme .SquareTabGray.selected a,
html.dark-theme .SquareTabGray.selected a:hover,
html.dark-theme .SquareTabGray.ui-tabs-selected a,
html.dark-theme .SquareTabGray.ui-tabs-selected a:hover {
  background-color: transparent !important;
  text-decoration: none !important;
}

html.dark-theme .SquareTabGray.selected,
html.dark-theme .SquareTabGray.selected:hover,
html.dark-theme .SquareTabGray.ui-tabs-selected,
html.dark-theme .SquareTabGray.ui-tabs-selected:hover {
  background-color: var(--mag-surface) !important;
  border-color: var(--mag-border-strong) !important;
  border-bottom-color: var(--mag-surface) !important;
}

/* ==========================================================================
   v7 Refinements: /develop Page (DevelopTabs, BuildPage, Dropdowns, UGC, API)
   ========================================================================== */

/* Top Develop tabs */
html.dark-theme #DevelopTabs > div {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text-secondary) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme #DevelopTabs > div:hover {
  background-color: var(--mag-surface-hover) !important;
  color: #ffffff !important;
}

html.dark-theme #DevelopTabs > div.tab-active,
html.dark-theme #DevelopTabs > div.tab-active:hover {
  background-color: var(--mag-surface) !important;
  color: #ffffff !important;
  border-color: var(--mag-border-strong) !important;
  border-bottom-color: var(--mag-surface) !important;
}

/* Main Creations / Group Creations / Library panels */
html.dark-theme #MyCreationsTab,
html.dark-theme #GroupCreationsTab .BuildPageContent,
html.dark-theme #LibraryTab,
html.dark-theme #build-page,
html.dark-theme #build-page .BuildPageContent {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

/* Left menu tabs inside #build-page */
html.dark-theme #build-page td.menu-area {
  background-color: var(--mag-surface) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme #build-page td.menu-area a.tab-item {
  color: var(--mag-text-secondary) !important;
  background-color: transparent !important;
}

html.dark-theme #build-page td.menu-area a.tab-item:hover {
  background-color: var(--mag-surface-2) !important;
  color: #ffffff !important;
}

html.dark-theme #build-page td.menu-area a.tab-item-selected,
html.dark-theme #build-page td.menu-area a.tab-item-selected:hover {
  background-color: var(--mag-surface-2) !important;
  color: #ffffff !important;
  border-color: var(--mag-border-strong) !important;
}

/* Separators, headers, labels, item links & stats */
html.dark-theme #build-page .separator {
  background-color: var(--mag-border) !important;
}

html.dark-theme #build-page table.section-header label.checkbox-label,
html.dark-theme #build-page .item-table .totals-label span,
html.dark-theme #build-page .details-table .api-value,
html.dark-theme #build-page .item-table .name-col .api-key-label,
html.dark-theme .api-keys-tab .api-keys-no-access p {
  color: var(--mag-text) !important;
}

html.dark-theme #build-page .item-table .details-table td.ad-stat,
html.dark-theme .item-table .details-table td.ad-stat,
html.dark-theme .item-table .ad-bid-note,
html.dark-theme .group-creations-selector label,
html.dark-theme .group-cannot-create,
html.dark-theme #GroupMoveDialog .group-move-picker label,
html.dark-theme .api-key-created-hint {
  color: var(--mag-text-secondary) !important;
}

html.dark-theme #build-page .item-table a,
html.dark-theme #build-page .name-col a {
  color: #4db8ff !important;
}

html.dark-theme #build-page .item-table a:hover,
html.dark-theme #build-page .name-col a:hover {
  color: #80ccff !important;
}

/* Gear button & Build dropdown menus */
html.dark-theme #build-page .gear-button-wrapper {
  background-color: var(--mag-surface) !important;
  border-color: var(--mag-surface) !important;
}

html.dark-theme #build-page .gear-button-wrapper:hover,
html.dark-theme #build-page .gear-button-wrapper.gear-open {
  background-color: var(--mag-surface-2) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme #build-dropdown-menu,
html.dark-theme #build-new-dropdown-menu {
  background-color: var(--mag-surface-2) !important;
  border-color: var(--mag-border-strong) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html.dark-theme #build-dropdown-menu a,
html.dark-theme #build-new-dropdown-menu a {
  color: var(--mag-text) !important;
}

html.dark-theme #build-dropdown-menu a:hover,
html.dark-theme #build-new-dropdown-menu a:hover {
  background-color: var(--mag-surface-hover) !important;
  color: #ffffff !important;
}

/* Ad Bid dialog, UGC tab, API Keys tab, Studio widget */
html.dark-theme #AdBidDialog,
html.dark-theme .api-key-created {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border: 1px solid var(--mag-border-strong) !important;
}

html.dark-theme #AdBidDialog .Title {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
}

html.dark-theme #AdBidDialog .ad-bid-message,
html.dark-theme #AdBidDialog .ad-bid-estimate {
  color: var(--mag-text) !important;
}

html.dark-theme .ugc-currency-choice,
html.dark-theme .ugc-tab .ugc-filter-bar,
html.dark-theme .ugc-tab .ugc-file-preview,
html.dark-theme .ugc-tab .ugc-pager-current,
html.dark-theme .api-key-created-value input,
html.dark-theme .api-key-created-example,
html.dark-theme .widget-name {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .ugc-currency-choice.is-on {
  background-color: #1c3144 !important;
  border-color: var(--mag-accent) !important;
  color: #ffffff !important;
}

html.dark-theme .ugc-tab .ugc-error {
  background-color: #3f1d20 !important;
  border-color: #6e2d33 !important;
  color: #ffb8be !important;
}

html.dark-theme .api-key-created-warning {
  background-color: #3d2c14 !important;
  border-color: #6b4b1e !important;
  color: #ffd9a0 !important;
}

html.dark-theme #build-page .item-table .api-key-glyph {
  background-color: #1c3144 !important;
  border-color: #2b5478 !important;
  color: #4db8ff !important;
}

html.dark-theme #build-page .item-table.api-key-revoked .api-key-glyph {
  background-color: var(--mag-surface-2) !important;
  border-color: var(--mag-border) !important;
  color: var(--mag-text-muted) !important;
}

/* ==========================================================================
   v8 Refinements: /My/Groups.aspx, Group Search, Group Admin
   ========================================================================== */

html.dark-theme #left-column .StandardBox,
html.dark-theme #mid-column .StandardBox,
html.dark-theme .GroupControlsBox,
html.dark-theme .StandardBox:has(> .robux):has(> .tickets),
html.dark-theme #SearchControls,
html.dark-theme .GroupSearchBar,
html.dark-theme .GroupSearchResults {
  background: var(--mag-surface) !important;
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

/* Left sidebar My Groups list */
html.dark-theme .GroupListItemContainer {
  background-color: transparent !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .GroupListItemContainer:hover,
html.dark-theme .GroupListItemContainer.selected,
html.dark-theme .GroupListItemContainer.selected:hover {
  background-color: var(--mag-surface-2) !important;
}

html.dark-theme .GroupListName a,
html.dark-theme .GroupListName a:link,
html.dark-theme .GroupListName a:visited,
html.dark-theme .GroupListName a:hover,
html.dark-theme #left-column .GroupListName a,
html.dark-theme #left-column .GroupListName a:link,
html.dark-theme #left-column .GroupListName a:visited,
html.dark-theme #left-column .GroupListName a:hover,
html.dark-theme .MyRank span {
  color: var(--mag-text) !important;
}

html.dark-theme .GroupListImageContainer img,
html.dark-theme .GroupSearchRowIcon img {
  background-color: var(--mag-surface-2) !important;
  border-color: var(--mag-border) !important;
}

/* Group Wall, Shout, Search inputs, Pager */
html.dark-theme .GroupWallPane .AlternatingItemTemplateEven {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
}

html.dark-theme .GroupWallPane .AlternatingItemTemplateOdd {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
}

html.dark-theme .GroupWallPane .loading .background {
  background: var(--mag-surface) !important;
}

html.dark-theme #SearchControls .SearchKeyword,
html.dark-theme .StatusPostControls #GroupShoutText {
  background: #191b1d !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme #mid-column .FooterPager span a:hover,
html.dark-theme .GroupAdmin .FooterPager span a:hover {
  background-color: var(--mag-surface-hover) !important;
  color: #ffffff !important;
}

/* Group Search results & metadata */
html.dark-theme .GroupSearchRow,
html.dark-theme .GroupSearchRow:link,
html.dark-theme .GroupSearchRow:visited,
html.dark-theme .GroupSearchRow:hover,
html.dark-theme .GroupSearchRow:active,
html.dark-theme .GroupSearchRowMembers {
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .GroupSearchRow:hover {
  background: var(--mag-surface-2) !important;
}

html.dark-theme .GroupPlace .PlayersOnline,
html.dark-theme .GroupSearchEmpty,
html.dark-theme .GroupSearchPageNumber,
html.dark-theme .GroupAdmin #rolesetTable .roleset-membercount {
  color: var(--mag-text-secondary) !important;
}

/* Group Admin & RoleSet modals */
html.dark-theme .GroupAdmin #rolesetTable input.role-locked-field {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text-muted) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .ConfirmationModal .accordion,
html.dark-theme .ConfirmationModal .CreateRoleSetBody,
html.dark-theme .ConfirmationModal .CreateRoleSetFooter {
  color: var(--mag-text) !important;
}

html.dark-theme .ConfirmationModal .accord-header {
  background: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
}

html.dark-theme .ConfirmationModal .accord-header:hover {
  background: var(--mag-surface-hover) !important;
}

html.dark-theme .ConfirmationModal .accord-content {
  background: var(--mag-bg) !important;
  color: var(--mag-text) !important;
}

/* ==========================================================================
   v9 Refinements: Group Shout Bubble (.StatusView) & Group Links
   ========================================================================== */

html.dark-theme .StatusView .top {
  background: #332c1e !important;
  border: 1px solid #c9922b !important;
  border-radius: 3px;
  color: #f2f4f5 !important;
  padding: 6px 8px !important;
}

html.dark-theme .StatusView .top .StatusTextField {
  color: #f2f4f5 !important;
}

html.dark-theme .StatusView .bottom {
  background: none !important;
  position: relative;
  padding-top: 8px !important;
}

html.dark-theme .StatusView .bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  border-width: 8px 8px 0 0;
  border-style: solid;
  border-color: #c9922b transparent transparent transparent;
}

html.dark-theme .StatusView .bottom::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 17px;
  border-width: 6px 6px 0 0;
  border-style: solid;
  border-color: #332c1e transparent transparent transparent;
}

html.dark-theme .StatusView .bottom .content {
  background-color: transparent !important;
}

html.dark-theme .StatusView .bottom .content a,
html.dark-theme .GroupOwner a,
html.dark-theme .GroupWallPane a,
html.dark-theme #mid-column a {
  color: #4db8ff !important;
}

html.dark-theme .StatusView .bottom .content a:hover,
html.dark-theme .GroupOwner a:hover,
html.dark-theme .GroupWallPane a:hover,
html.dark-theme #mid-column a:hover {
  color: #80ccff !important;
}

html.dark-theme #GroupDescP pre {
  background-color: transparent !important;
  color: var(--mag-text) !important;
  border: none !important;
}

/* ==========================================================================
   v10 Refinements: Catalog Browse (/catalog) & Item Page (/catalog/<id>)
   ========================================================================== */

/* Catalog loading overlay */
html.dark-theme #catalog .loading {
  background-color: rgba(25, 27, 29, 0.88) !important;
}

/* Catalog item cards & hover info */
html.dark-theme .SmallCatalogItemView,
html.dark-theme .CatalogItemOuter,
html.dark-theme .CatalogItemInner,
html.dark-theme .CatalogItemInner:hover {
  background: var(--mag-surface) !important;
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .CatalogItemInner:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65) !important;
  border: 1px solid var(--mag-border-strong) !important;
}

html.dark-theme .CatalogItemInner a,
html.dark-theme #catalog .CatalogItemName a,
html.dark-theme #catalog .item-name a {
  color: #4db8ff !important;
}

html.dark-theme .CatalogItemInner a:hover,
html.dark-theme #catalog .CatalogItemName a:hover {
  color: #80ccff !important;
}

html.dark-theme .HoverInfo,
html.dark-theme .CatalogItemInner:hover .HoverInfo,
html.dark-theme .CatalogInventoryItemName,
html.dark-theme .CatalogItemInner span.NotAPrice,
html.dark-theme div#catalog .selected {
  color: var(--mag-text) !important;
}

html.dark-theme .CatalogItemInfoLabel,
html.dark-theme .CatalogItemInner:hover .CatalogItemInfoLabel,
html.dark-theme span.NoPrivateSellersText {
  color: var(--mag-text-secondary) !important;
}

/* Catalog left sidebar & category dropdowns */
html.dark-theme div#catalog div#dropdown ul#dropdownUl,
html.dark-theme div#catalog div#dropdown ul li ul,
html.dark-theme div#catalog #dropdown li.slideHeader:hover {
  background: var(--mag-surface) !important;
  border-color: var(--mag-border-strong) !important;
  color: var(--mag-text) !important;
}

html.dark-theme div#catalog div#dropdown ul li a,
html.dark-theme div#catalog div#dropdown ul li span,
html.dark-theme #catalog .left-nav-menu a {
  color: var(--mag-text) !important;
}

html.dark-theme div#catalog div#dropdown ul li:hover,
html.dark-theme div#catalog div#dropdown ul li.subcategories:hover,
html.dark-theme .selectedAssetTypeFilter {
  background-color: var(--mag-surface-hover) !important;
  color: #ffffff !important;
}

html.dark-theme #categoriesForKeyword {
  background-color: #191b1d !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

/* Catalog Item Page (/catalog/<id>), Purchase & Sell Modals */
html.dark-theme .limited-quantity,
html.dark-theme #EditItemContainer .StandardBoxHeader {
  color: var(--mag-text) !important;
}

html.dark-theme .content-overflow-toggle:after,
html.dark-theme .content-overflow-toggle .toggle-content {
  background: var(--mag-surface) !important;
  background-color: var(--mag-surface) !important;
  color: var(--mag-accent) !important;
}

html.dark-theme .social-media-share .share-container-inner .catchy-title-tooltip-hover,
html.dark-theme #sell-item-modal,
html.dark-theme .PurchaseModal,
html.dark-theme .PurchaseModalBody {
  background-color: var(--mag-surface) !important;
  color: var(--mag-text) !important;
  border-color: var(--mag-border-strong) !important;
}

html.dark-theme .PurchaseModal .titleBar {
  background-color: var(--mag-surface-2) !important;
  color: var(--mag-text) !important;
  border-bottom: 1px solid var(--mag-border) !important;
}

/* ==========================================================================
   v11 Refinements: Asset/Library/Game Descriptions (<pre> & .description-content)
   ========================================================================== */

html.dark-theme pre,
html.dark-theme pre.description-content,
html.dark-theme .description-content,
html.dark-theme #item-details-description,
html.dark-theme .item-details-container .description-content,
html.dark-theme .item-details-container .field-content,
html.dark-theme .item-details-container .item-name-container h2,
html.dark-theme .item-details-container .item-name-container .text-label,
html.dark-theme .game-description,
html.dark-theme .game-about-tab-container pre {
  background-color: transparent !important;
  color: #f2f4f5 !important;
  border-color: var(--mag-border) !important;
}

html.dark-theme .item-details-container .field-label,
html.dark-theme .item-details-container .text-label {
  color: var(--mag-text-secondary) !important;
}
