.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: hsl(var(--base));
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

.cookies-card {
  width: 500px;
  padding: 24px;
  color: hsl(var(--white));
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: hsl(var(--bg-color));
  border-radius: 12px;
  border: 1px solid hsl(var(--white) / 0.1);
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  border-radius: 50%;
  color: hsl(var(--white));
  font-size: 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
  margin-top: 16px;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }

  .cookies-card__icon {
    font-size: 48px;
  }
}

.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #313131;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: "";
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #313131 transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: "";
  font-family: "Line Awesome Free";
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

.table--header {
  padding: 24px;
  border-bottom: 1px solid hsl(var(--white) / 0.1);
}

.select2-dropdown {
  margin-top: 8px !important;
  border-radius: 5px !important;
  background-color: hsl(var(--bg-color)) !important;
  border: 1px solid hsl(var(--white) / 0.1) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid hsl(var(--white) / 0.1) !important;
  color: hsl(var(--white));
  padding: 6px 16px !important;
}

.select2-container:has(.select2-selection--single, .select2-selection--multiple) {
  width: 100% !important;
}

.select2-search--dropdown {
  padding: 10px 10px !important;
  border-color: #ced4da !important;
}

.select2-container--default .select2-selection--multiple {
  background-color: transparent !important;
  border: 1px solid hsl(var(--white) / 0.1) !important;

}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: hsl(var(--white) / 0.1) !important;
  padding: 10px 20px;
  background: transparent;
  border-radius: 4px;
}

.select2-container .select2-search--inline .select2-search__field {
  color: hsl(var(--white)) !important;
  margin-top: 10px !important;
}

.select2-results__option.select2-results__option--selected,
.select2-results__option--selectable,
.select2-container--default .select2-results__option--disabled {
  padding: 8px 12px !important;
  border-bottom: 1px solid hsl(var(--white) / 0.03);
  font-size: 14px !important;
}

.select2-results__option.select2-results__message {
  text-align: center !important;
  padding: 12px 14px !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar {
  width: 8px;
  border-radius: 5px;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-track {
  background: transparent !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb {
  background: hsl(var(--white) / 0.2);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: hsl(var(--card-two-bg)) !important;
  border: 1px solid hsl(var(--white) / 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border-right: 0 !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--white) / 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  color: hsl(var(--text-color)) !important;
  line-height: 41px !important;
  font-size: 14px !important;
}

.select2-container .select2-selection--single {
  line-height: 41px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow:after {
  position: absolute;
  right: 10px;
  top: 0px !important;
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  transition: 0.3s;
}

.select2-container--default .select2-selection--single {
  color: hsl(var(--white)) !important;
  background-color: transparent !important;
  border: 1px solid hsl(var(--white) / 0.1) !important;
  border-radius: 5px !important;
  height: 41px !important;
}

.select2 .dropdown-wrapper {
  display: none;
}

.select2-container .selection {
  width: 100% !important;
  display: block;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0px !important;
  height: 41px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:after {
  transform: rotate(-180deg);
}

.select2-results__option:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.select2-results__option.select2-results__option--selected,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: hsl(var(--white) / 0.4) !important;
  box-shadow: 0 0 25px rgba(115, 103, 240 0.071) !important;
  outline: 0 !important;
}

.select2-dropdown .country-flag {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.select2-dropdown .gateway-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px !important;
}

.select2-dropdown .gateway-subtitle {
  font-size: 12px;
  margin-bottom: 0px !important;
}

.select2-container--open .select2-selection.select2-selection--single,
.select2-container--open .select2-selection.select2-selection--multiple {
  border-color: hsl(var(--white) / 0.1) !important;
  border-radius: 5px !important;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: hsl(var(--white));
}

.payment-system-list {
  --thumb-width: 80px;
  --thumb-height: 32px;
  --border-color: hsl(var(--white) / 0.1);
  --hover-border-color: hsl(var(--base));
  background-color: hsl(var(--bg-color));
  border-radius: 10px;
  padding-block: 24px;
  padding-inline: 16px;
  height: 100%;
}

.payment-system-list.border-style {
  border-left: 1px solid hsl(var(--white) / 0.1);
  border-radius: 0;
}

@media (max-width: 991px) {
  .payment-system-list.border-style {
    border-left: 0;
    border-top: 1px solid hsl(var(--white) / 0.1);
  }
}

hr {
  border-top: 1px solid hsl(var(--white) / 0.1);
  opacity: 1;
}

.payment-system-list.is-scrollable {
  max-height: min(600px, 70vh);
  overflow-x: auto;
}

.modal .payment-system-list.is-scrollable {
  max-height: min(452px, 70vh);
  overflow-x: auto;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--white) / 0.2);
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all linear 0.3s;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid hsl(var(--white) / 0.1);
  border-radius: 8px;
  cursor: pointer;
}

.payment-item:has(.payment-item__radio:checked) {
  border-color: hsl(var(--white) / 0.2);
  background-color: hsl(var(--white) / 0.05);
}

.payment-item:has(.payment-item__radio:checked) .payment-item__name {
  color: hsl(var(--white));
}

.payment-item:has(.payment-item__radio:checked) .check-type-icon {
  border-color: hsl(var(--white));
}

.payment-item:has(.payment-item__radio:checked) .check-circle {
  display: block;
  --color: hsl(var(--white));
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width));
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base));
  display: inline-block;
  border-radius: 100%;
}

.payment-item__name {
  transition: all 0.3s;
  text-align: end;
}

.payment-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.payment-item__thumb {
  padding: 3px 12px;
  border-radius: 8px;
  flex-shrink: 0;
  background-color: hsl(var(--white) / 0.1);
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
  mix-blend-mode: difference;
  filter: brightness(0.5) invert(1);
}

[data-theme="light"] .payment-item__thumb img {
  filter: unset;
  mix-blend-mode: unset;
}

.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 16px;
}

.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
}

.deposit-info__input {
  max-width: 50%;
  text-align: right;
  width: 100%;
}

.deposit-info__input .text {
  color: hsl(var(--white));
  font-weight: 500;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group {
  border: 1px solid hsl(var(--white) / 0.1);
  border-radius: 5px;
}

.deposit-info__input-group-text {
  align-self: center;
  padding-inline: 16px;
  border: 0;
  background: transparent;
}

.deposit-info__input-group:has(.form--control:disabled),
.deposit-info__input-group:has(.form--control:read-only) {
  background: hsl(var(--white) / 0.05);
}

.deposit-info__input-group:has(.form--control:disabled) .form--control,
.deposit-info__input-group:has(.form--control:read-only) .form--control {
  background: transparent;
  border: 0 !important;
}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 14px;
}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.total-amount {
  border-top: 1px solid var(--border-color);
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-item__btn-text,
.payment-item__btn__icon {
  color: hsl(var(--success));
  font-size: 14px;
  font-weight: 600;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

.adjust-height .payment-system-list.is-scrollable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.plyr__control--overlaid {
  background: hsl(var(--base)) !important;
}

.plyr--video .plyr__control:focus-visible,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded="true"] {
  background: hsl(var(--base)) !important;
}

.plyr--full-ui input[type="range"] {
  color: hsl(var(--base)) !important;
}

.plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]:before {
  background: hsl(var(--base)) !important;

  background: hsl(var(--base)) !important;
}

.responsive-filter-card {
  position: relative;
}

.responsive-filter-form {
  width: 350px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid hsl(var(--white) / 0.1);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  background-color: hsl(var(--bg-color));
  transition: all linear 0.3s;
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 767px) {
  .responsive-filter-form {
    width: 280px;
  }
}

@media (max-width: 575px) {
  .responsive-filter-form {
    width: 250px;
  }

  .payment-item {
    gap: 10px;
  }

  .payment-item__name {
    font-size: 14px;
  }
}

.responsive-filter-form.show {
  opacity: 1;
  visibility: visible;
}

.responsive-filter-body {
  padding: 20px 16px;
  background-color: hsl(var(--white) / 0.01);
}

.responsive-filter-footer {
  padding: 16px;
  background-color: hsl(var(--bg-color));
  box-shadow: 14px -7px 17px rgb(255 255 255 / 5%);
}

.responsive-filter-title {
  padding: 16px;
  background-color: hsl(var(--bg-color));
  box-shadow: -11px 4px 17px rgb(255 255 255 / 5%);
}

.responsive-filter-item:not(:last-child) {
  margin-bottom: 12px;
}

.close-filter-btn {
  font-size: 20px;
  cursor: pointer;
  color: hsl(var(--white));
}

/* Native Select Styling */
select.form--control, 
select.form-control {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid hsl(var(--white) / 0.1) !important;
}

select.form--control option, 
select.form-control option {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

/* Ensure focus state also looks good */
select.form--control:focus, 
select.form-control:focus {
    background-color: #1a1a1a !important;
    border-color: hsl(var(--base)) !important;
}

/* ==========================================================================
   Brand & Business Tools — Supplemental Utility Classes
   bg--dark is used for inner panels inside custom--card containers.
   transition-card is used for sponsorship marketplace card hover effects.
   ========================================================================== */

/* --- bg--dark  (inner panels inside cards) --- */
.bg--dark {
    background-color: hsl(var(--dark)) !important;
}

/* --- Transition card hover effect (sponsorship marketplace cards) --- */
.transition-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* ===== LIGHT THEME COMPLETE OVERRIDES ===== */

/* Cards and backgrounds */
[data-theme="light"] .bg--dark {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .bg--dark-2 {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .custom--card {
    background-color: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .card {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .card-header {
    background-color: hsl(var(--dark)) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

/* Text colors */
[data-theme="light"] .text-white {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .text--dark {
    color: hsl(var(--light)) !important;
}

/* Borders */
[data-theme="light"] .border--1 {
    border-color: var(--border-color) !important;
}

/* Tables */
[data-theme="light"] table thead th {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] table tbody tr {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}
[data-theme="light"] table tbody tr:hover {
    background-color: hsl(var(--dark-two)) !important;
}

/* Chat area */
[data-theme="light"] .chat-area,
[data-theme="light"] .chat-messages,
[data-theme="light"] .group-chat-area {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Store/Product cards */
[data-theme="light"] .product-card,
[data-theme="light"] .store-card {
    background-color: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

/* Badges and labels */
[data-theme="light"] .badge--dark {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}

/* Input fields */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: hsl(var(--card-bg)) !important;
    border-color: var(--form-border) !important;
    color: hsl(var(--light)) !important;
}

/* Sidebar inner panels */
[data-theme="light"] .dashboard-sidebar .sidebar-menu li a {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .dashboard-sidebar .sidebar-menu li a:hover,
[data-theme="light"] .dashboard-sidebar .sidebar-menu li.active a {
    background-color: hsl(var(--dark-two)) !important;
    color: var(--base) !important;
}

/* --- ADDITIONAL THEME-AWARE UI FIXES --- */

/* Select fields hardcoded backgrounds */
[data-theme="light"] select.form--control, 
[data-theme="light"] select.form-control,
[data-theme="light"] select.form--control option, 
[data-theme="light"] select.form-control option {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] select.form--control:focus, 
[data-theme="light"] select.form-control:focus {
    background-color: hsl(var(--card-bg)) !important;
}

/* Leaderboard inline style overrides */
[data-theme="light"] .custom--tab {
    border-bottom: 1px solid var(--border-color) !important;
}
[data-theme="light"] .custom--tab .nav-link {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .custom--tab .nav-link.active {
    color: hsl(var(--base)) !important;
    border-bottom: 2px solid hsl(var(--base)) !important;
}
[data-theme="light"] .table--light.style--two thead th {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .table--light.style--two tbody td {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Fan Rooms / List Groups / General Boxes */
[data-theme="light"] .list-group-item {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}

/* Extended Chat box classes */
[data-theme="light"] .chat-box,
[data-theme="light"] .chat-list,
[data-theme="light"] .chat-body {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Utility classes often used for black/dark backgrounds */
[data-theme="light"] .bg-black,
[data-theme="light"] .bg--black,
[data-theme="light"] .bg-dark {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}

/* ===== COMPREHENSIVE LIGHT THEME FIX ===== */

/* Inline style attribute overrides — targets Blade views with hardcoded backgrounds */
[data-theme="light"] [style*="background-color: #111"],
[data-theme="light"] [style*="background-color:#111"],
[data-theme="light"] [style*="background-color: #1a1a1a"],
[data-theme="light"] [style*="background-color:#1a1a1a"],
[data-theme="light"] [style*="background-color: #000"],
[data-theme="light"] [style*="background-color:#000"],
[data-theme="light"] [style*="background: #111"],
[data-theme="light"] [style*="background:#111"],
[data-theme="light"] [style*="background: #1a1a1a"],
[data-theme="light"] [style*="background:#1a1a1a"],
[data-theme="light"] [style*="background: #000"],
[data-theme="light"] [style*="background:#000"] {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] [style*="background: rgba(0,0,0"],
[data-theme="light"] [style*="background:rgba(0,0,0"],
[data-theme="light"] [style*="background-color: rgba(0,0,0"],
[data-theme="light"] [style*="background-color:rgba(0,0,0"] {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}

/* Table rows — all dark-style variants */
[data-theme="light"] .table--light.style--two tbody td {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}
[data-theme="light"] .table--light.style--two thead th {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}

/* Nav tabs border fix */
[data-theme="light"] .custom--tab {
    border-bottom-color: var(--border-color) !important;
}
[data-theme="light"] .custom--tab .nav-link {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .custom--tab .nav-link.active {
    color: hsl(var(--base)) !important;
    border-bottom-color: hsl(var(--base)) !important;
}

/* Extended Chat / Message areas */
[data-theme="light"] .group-chat-messages,
[data-theme="light"] .group-chat-body,
[data-theme="light"] .message-area,
[data-theme="light"] .direct-message-area,
[data-theme="light"] .message-wrapper,
[data-theme="light"] .msg-box {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Chart / Analytics containers */
[data-theme="light"] .chart-container,
[data-theme="light"] .analytics-card,
[data-theme="light"] .heatmap-container {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .apexcharts-canvas {
    background-color: hsl(var(--card-bg)) !important;
}

/* Dashboard stat cards */
[data-theme="light"] .dashboard-widget,
[data-theme="light"] .stat-card,
[data-theme="light"] .info-card {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Hardcoded text colors */
[data-theme="light"] [style*="color: #ddd"],
[data-theme="light"] [style*="color:#ddd"],
[data-theme="light"] [style*="color: #ccc"],
[data-theme="light"] [style*="color:#ccc"] {
    color: hsl(var(--light)) !important;
}

/* Border colors */
[data-theme="light"] [style*="border-color: #222"],
[data-theme="light"] [style*="border-color:#222"],
[data-theme="light"] [style*="border-color: #333"],
[data-theme="light"] [style*="border-color:#333"],
[data-theme="light"] [style*="border-bottom: 1px solid #222"],
[data-theme="light"] [style*="border-bottom: 1px solid #333"] {
    border-color: var(--border-color) !important;
}

/* ===== CHAT & DROPDOWN LIGHT THEME FIX ===== */

/* Replace CLASSNAME with actual class found in blade files */
[data-theme="light"] .chat-wrapper,
[data-theme="light"] .chat-input-area,
[data-theme="light"] .message-bubble.received {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Native select dropdown options */
[data-theme="light"] select option {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Select2 dropdowns if used */
[data-theme="light"] .select2-dropdown,
[data-theme="light"] .select2-results__option {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* ===== REMAINING ANALYTICS & DASHBOARDS LIGHT THEME FIX ===== */

/* Glass Cards and Stat Cards Background & Border Fix */
[data-theme="light"] .glass-card,
[data-theme="light"] .stat-card {
    background: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1) !important;
    border-color: var(--border-color) !important;
}

/* Specific colored Stat Cards Background Gradients Overrides */
[data-theme="light"] .stat-card.blue,
[data-theme="light"] .stat-card.orange,
[data-theme="light"] .stat-card.crimson,
[data-theme="light"] .stat-card.emerald {
    background: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
}

/* Stat & Header Text and Border Overrides */
[data-theme="light"] .card-header-premium {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] .premium-title {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .stat-card__title {
    color: hsl(var(--light) / 0.7) !important;
}

[data-theme="light"] .stat-card__number {
    color: hsl(var(--light)) !important;
}

/* Tables and Ledgers */
[data-theme="light"] .table-premium thead th {
    color: hsl(var(--light) / 0.6) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

[data-theme="light"] .table-premium tbody tr {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .table-premium tbody tr:hover {
    background: hsl(var(--dark-two)) !important;
}

[data-theme="light"] .table-premium td,
[data-theme="light"] .table-premium td span,
[data-theme="light"] .table-premium td div {
    color: hsl(var(--light)) !important;
}

/* Cohort Heatmap Overrides */
[data-theme="light"] .table-cohort th {
    color: hsl(var(--light) / 0.6) !important;
}

[data-theme="light"] .table-cohort td[style*="color: #fff"],
[data-theme="light"] .table-cohort td[style*="color:#fff"] {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .table-cohort td[style*="color: rgba(255,255,255"],
[data-theme="light"] .table-cohort td[style*="color:rgba(255,255,255"] {
    color: hsl(var(--light) / 0.85) !important;
}

[data-theme="light"] .cohort-cell.empty {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light) / 0.3) !important;
}

[data-theme="light"] .cohort-averages-row td {
    border-top: 2px solid var(--border-color) !important;
}

/* AB Testing Variant Boxes and Modals */
[data-theme="light"] .variant-box {
    background: hsl(var(--dark)) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="light"] .variant-box.winner-glow {
    background: hsla(38, 92%, 50%, 0.05) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

[data-theme="light"] .variant-thumb-container {
    background: hsl(var(--dark-two)) !important;
}

[data-theme="light"] .glass-modal {
    background: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

/* Creator Recommendations Heatmap Legend, Slots & CTR Warnings */
[data-theme="light"] .prime-summary-card {
    background: hsl(var(--card-bg)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .prime-slot-badge {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .prime-slot-badge:hover {
    background: hsl(var(--dark-two)) !important;
}

[data-theme="light"] .slot-day {
    color: hsl(var(--light) / 0.5) !important;
}

[data-theme="light"] .slot-time {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .legend-color-scale {
    border-color: var(--border-color) !important;
}

[data-theme="light"] .heatmap-header-cell {
    color: hsl(var(--light) / 0.5) !important;
}

[data-theme="light"] .heatmap-day-label {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .ctr-issue-item {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ctr-issue-item:hover {
    background: hsl(var(--dark-two)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ctr-thumb-wrapper {
    background: hsl(var(--dark-two)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ctr-advice {
    background: hsl(var(--dark-two)) !important;
    color: hsl(var(--light) / 0.85) !important;
}

[data-theme="light"] .ctr-label {
    color: hsl(var(--light) / 0.5) !important;
}

[data-theme="light"] .rec-card-item {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .rec-card-item:hover {
    background: hsl(var(--dark-two)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .rec-icon-box {
    background: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .rec-type-badge {
    background: hsl(var(--dark-two)) !important;
    color: hsl(var(--light) / 0.7) !important;
}

/* Growth Dashboard Demographics & Churn Prediction Avatars */
[data-theme="light"] .demographic-header {
    color: hsl(var(--light) / 0.85) !important;
}

[data-theme="light"] .demographic-bar-wrapper {
    background: hsl(var(--dark)) !important;
}

[data-theme="light"] .growth-indicator.neutral {
    background: hsl(var(--dark)) !important;
    color: hsl(var(--light) / 0.6) !important;
}

[data-theme="light"] .supporter-avatar-container {
    background: hsl(var(--dark)) !important;
}

/* ===== VIDEO MANAGER ROW STYLE ===== */

.video-row-thumb {
    width: 100px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid hsl(var(--white) / 0.1);
    display: block;
}

.video-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-row-details {
    flex: 1;
}

.video-row-details .hover-success {
    transition: color 0.3s ease;
}

.video-row-details .hover-success:hover {
    color: hsl(var(--success)) !important;
}

/* Meta items icons */
.video-row-details .meta-item {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Pillar status badges */
.video-status-badge .badge {
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    text-transform: uppercase;
}

.video-status-badge .badge--success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.video-status-badge .badge--warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.video-status-badge .badge--primary {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.video-status-badge .badge--danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Visibility badging */
.video-visibility-badge .text--success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    text-transform: uppercase;
    display: inline-block;
}

.video-visibility-badge .text--danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    text-transform: uppercase;
    display: inline-block;
}

/* Light Theme overrides for list rows */
[data-theme="light"] .video-row-thumb {
    border-color: var(--border-color) !important;
}

[data-theme="light"] .video-row-details .hover-success:hover {
    color: hsl(var(--success)) !important;
}

[data-theme="light"] .notification-card {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] .notification-read-card {
    border-bottom: 1px solid var(--border-color) !important;
    background-color: rgba(46, 202, 139, 0.05) !important;
}

[data-theme="light"] .notification-card-title {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .notification-read-card .notification-card-title {
    color: hsl(var(--success)) !important;
}

[data-theme="light"] .notification-btn {
    border-color: var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .notification-btn:hover {
    background-color: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .select-all-wrapper label {
    color: hsl(var(--light)) !important;
}

/* Fix white container behind bulk action buttons */
.bulk-action-bar,
.bulk-action-wrapper,
.video-bulk-action,
.action-bar {
    background-color: hsl(var(--dark-two)) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix video card hover stretch — constrain thumb so Plyr init doesn't grow card */
.video-item__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden !important;
}

.video-item__thumb .plyr,
.video-item__thumb .plyr--video,
.video-item__thumb .plyr__video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.video-item__thumb video,
.video-item__thumb iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ==========================================================================
   Channel Tab Content: Community & Discussions Styling
   ========================================================================== */

/* ── Community Tab ── */
.community-post-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.community-vote-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 14px;
    transition: all 0.2s;
}
.community-vote-btn:hover,
.community-vote-btn.active {
    border-color: hsl(var(--base));
    color: hsl(var(--base));
    background: hsl(var(--base) / 0.1);
}
.community-vote-btn.dislike-active {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}
.toggle-comments-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 14px;
    padding: 4px 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.toggle-comments-btn:hover {
    color: #fff;
}
.comment-item {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Default Theme (Dark Mode) Community section rules */
.community-section .create-post-card,
.community-section .community-post-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
.community-section .create-post-card .prompt-post-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #aaa !important;
    border-radius: 20px;
}
.community-section .post-header h6,
.community-section .post-body h5,
.community-section .locked-content h6,
.community-section .comment-item strong {
    color: #ffffff !important;
}
.community-section .post-body p,
.community-section .comment-item p {
    color: rgba(255, 255, 255, 0.75) !important;
}
.community-section .toggle-comments-btn,
.community-section .community-vote-btn {
    color: #aaa !important;
}
.community-section .community-vote-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.community-section .post-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding-top: 12px;
}
.community-section .dropdown .btn {
    color: #aaa !important;
}
.community-section .comment-section hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.community-section .comment-item > div {
    background: rgba(255, 255, 255, 0.05) !important;
}
.community-section .comment-input-wrap input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 13px;
}
.community-section .comment-input-wrap input::placeholder {
    color: #666 !important;
}
.community-post-card .dropdown-menu {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.community-post-card .dropdown-menu .dropdown-item {
    color: #e0e0e0 !important;
    background-color: transparent !important;
    transition: background 0.15s;
}
.community-post-card .dropdown-menu .dropdown-item:hover,
.community-post-card .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
.community-post-card .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ff6b6b !important;
}
.community-section .locked-content {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px dashed rgba(255, 255, 255, 0.10) !important;
}
.community-section .community-poll-option {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s;
}
.community-section .community-poll-option:hover {
    border-color: hsl(var(--base)) !important;
}
.community-section .poll-vote-btn {
    color: inherit;
    min-height: 42px;
}
.community-section .poll-vote-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Light Theme overrides for Community section */
[data-theme="light"] .community-section .create-post-card,
[data-theme="light"] .community-section .community-post-card {
    background: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
    box-shadow: 0 8px 22px rgba(33, 37, 41, 0.03) !important;
}
[data-theme="light"] .community-section .create-post-card .prompt-post-btn {
    background: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .post-header h6,
[data-theme="light"] .community-section .post-body h5,
[data-theme="light"] .community-section .locked-content h6,
[data-theme="light"] .community-section .comment-item strong {
    color: #111827 !important;
}
[data-theme="light"] .community-section .post-body p,
[data-theme="light"] .community-section .comment-item p {
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .toggle-comments-btn,
[data-theme="light"] .community-section .community-vote-btn {
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .community-vote-btn {
    background: transparent !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-section .post-footer {
    border-top: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-section .dropdown .btn {
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .comment-section hr {
    border-color: rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-section .comment-item > div {
    background: rgba(33, 37, 41, 0.05) !important;
}
[data-theme="light"] .community-section .comment-input-wrap input {
    background: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.16) !important;
    color: #111827 !important;
}
[data-theme="light"] .community-section .comment-input-wrap input::placeholder {
    color: #9ca3af !important;
}
[data-theme="light"] .community-post-card .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item {
    color: #111827 !important;
}
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item:hover,
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item:focus {
    background-color: rgba(33, 37, 41, 0.05) !important;
    color: #111827 !important;
}
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ff6b6b !important;
}
[data-theme="light"] .community-section .locked-content {
    background: #ffffff !important;
    border: 1px dashed rgba(33, 37, 41, 0.2) !important;
}
[data-theme="light"] .community-section .community-poll-option {
    background: #f8f9fa !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
    color: #111827 !important;
}
[data-theme="light"] .community-section .poll-vote-btn {
    color: #111827;
}

/* ── Discussions Tab ── */
.discussion-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.discussion-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.discussion-filter-btn.active {
    background: hsl(var(--base)) !important;
    border-color: hsl(var(--base)) !important;
    color: #fff !important;
}
.thread-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: border-color 0.2s;
}
.thread-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.thread-card .thread-title {
    color: #fff !important;
}

/* Default Theme (Dark Mode) Discussions overrides */
.discussions-section .thread-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.discussions-section .thread-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.discussions-section .thread-content .thread-title {
    color: #fff !important;
}
.discussions-section .discussion-filter-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #aaa !important;
}
.discussions-section .discussion-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Light Theme overrides for Discussions section */
[data-theme="light"] .discussions-section .thread-card {
    background: #ffffff !important;
    border-color: rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussions-section .thread-card:hover {
    border-color: rgba(33, 37, 41, 0.25) !important;
}
[data-theme="light"] .discussions-section .thread-content .thread-title {
    color: #111827 !important;
}
[data-theme="light"] .discussions-section .discussion-filter-btn {
    border-color: rgba(33, 37, 41, 0.15) !important;
    color: #4b5563 !important;
}
[data-theme="light"] .discussions-section .discussion-filter-btn:hover {
    border-color: rgba(33, 37, 41, 0.35) !important;
    color: #111827 !important;
    background: rgba(33, 37, 41, 0.05) !important;
}
[data-theme="light"] .discussions-section .discussion-filter-btn.active,
.discussions-section .discussion-filter-btn.active {
    color: #ffffff !important;
}

/* ── Discussion View ── */
.discussion-view .thread-main {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.discussion-view .thread-main-body {
    background: rgba(255, 255, 255, 0.03) !important;
}
.discussion-view .thread-author {
    color: #ccc !important;
}
.discussion-view .thread-body {
    color: rgba(255, 255, 255, 0.8) !important;
}
.discussion-view .reply-content {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.discussion-view .reply-username {
    color: #ddd !important;
}
.discussion-view .reply-text {
    color: rgba(255, 255, 255, 0.75) !important;
}
.discussion-view .nested-reply-username {
    color: #bbb !important;
}
.discussion-view .nested-reply-text {
    color: rgba(255, 255, 255, 0.65) !important;
}
.discussion-view .text-muted {
    color: #aaa !important;
}
.discussion-view hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.discussion-view .back-to-disc-link:hover {
    color: #fff !important;
}

/* Light Theme overrides for Discussion View */
[data-theme="light"] .discussion-view .thread-main {
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussion-view .thread-main-body {
    background: #ffffff !important;
}
[data-theme="light"] .discussion-view .thread-author {
    color: #111827 !important;
}
[data-theme="light"] .discussion-view .thread-body {
    color: #4b5563 !important;
}
[data-theme="light"] .discussion-view .reply-content {
    background: rgba(33, 37, 41, 0.05) !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussion-view .reply-username {
    color: #111827 !important;
}
[data-theme="light"] .discussion-view .reply-text {
    color: #4b5563 !important;
}
[data-theme="light"] .discussion-view .nested-reply-username {
    color: #111827 !important;
}
[data-theme="light"] .discussion-view .nested-reply-text {
    color: #4b5563 !important;
}
[data-theme="light"] .discussion-view .text-muted {
    color: #6b7280 !important;
}
[data-theme="light"] .discussion-view hr {
    border-color: rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussion-view .back-to-disc-link:hover {
    color: #111827 !important;
}
[data-theme="light"] .nicEdit-main {
    color: #111827 !important;
}

/* Remove CSS filter inversion since we created a custom logo specifically for light theme */
[data-theme="light"] .sidebar-logo__link.light img,
[data-theme="light"] .account-section__logo img.dark-logo {
    filter: none !important;
}

/* ── Preloader: theme-aware background & text ── */
[data-theme="light"] .preloader {
    background-color: #ffffff !important;
}
[data-theme="light"] .loader::before {
    border-color: #e5e7eb !important;
}
[data-theme="light"] .loading06 span {
    color: rgba(17, 24, 39, 0.25) !important;
}
[data-theme="light"] .loading06 span::after {
    color: #111827 !important;
}

/* ── Filter Wrapper theme adjustment ── */
.filter-wrapper {
    background-color: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="light"] .filter-wrapper {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

/* ── Active Tab Text Visibility Fix ── */
.custom--tab .nav-link.active,
.custom--tab .nav-item .nav-link.active,
[data-theme="light"] .custom--tab .nav-link.active,
[data-theme="light"] .custom--tab .nav-item .nav-link.active {
    color: #ffffff !important;
}

/* ── Premium Hero Theme adjustment ── */
.premium-hero {
    background: radial-gradient(circle at center, rgba(234, 84, 85, 0.12) 0%, #111111 80%) !important;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

[data-theme="light"] .premium-hero {
    background: radial-gradient(circle at center, rgba(234, 84, 85, 0.04) 0%, #fcfbfa 100%) !important;
}

[data-theme="light"] .premium-hero h1,
[data-theme="light"] .premium-hero p.lead,
[data-theme="light"] .premium-hero .text-light,
[data-theme="light"] .premium-hero .text-white {
    color: #333333 !important;
}

[data-theme="light"] .premium-hero .custom--card {
    background: #ffffff !important;
    border: 1px solid rgba(234, 84, 85, 0.4) !important;
    box-shadow: 0 10px 30px rgba(234, 84, 85, 0.15) !important;
}

[data-theme="light"] .premium-hero .custom--card .card-title,
[data-theme="light"] .premium-hero .custom--card h1,
[data-theme="light"] .premium-hero .custom--card h3,
[data-theme="light"] .premium-hero .custom--card h6,
[data-theme="light"] .premium-hero .custom--card li,
[data-theme="light"] .premium-hero .custom--card .item-name,
[data-theme="light"] .premium-hero .custom--card .item-price {
    color: #333333 !important;
}

[data-theme="light"] .premium-hero .custom--card .text-muted {
    color: #666666 !important;
}

/* ── Inbox & Chat Thread Theme Adjustment ── */
[data-theme="light"] .message-list {
    background: #ffffff !important;
}

[data-theme="light"] .message-list p {
    color: #333333 !important;
}

[data-theme="light"] .message-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #555555 !important;
}

[data-theme="light"] .message-item:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .message-item.unread {
    background: rgba(250, 133, 0, 0.04) !important;
}

[data-theme="light"] .message-item .message-content .name {
    color: #222222 !important;
}

[data-theme="light"] .message-item .message-content .text {
    color: #666666 !important;
}

[data-theme="light"] .message-item .message-content .time {
    color: #888888 !important;
}

/* Chat thread/conversation screen overrides */
[data-theme="light"] .chat-wrapper {
    background: #ffffff !important;
}

[data-theme="light"] .message-bubble.received {
    background: #f1f1f1 !important;
    color: #333333 !important;
}

[data-theme="light"] .message-bubble.received .time {
    color: #777777 !important;
}

[data-theme="light"] .chat-input-area {
    background: #f9f9f9 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .chat-input-area textarea {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .chat-input-area textarea::placeholder {
    color: #888888 !important;
}

/* ── Playlist Card Layout & Spacing Fixes ── */
.playlist-card-wrapper {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px 20px !important;
}

.playlist-card {
    margin-bottom: 15px !important;
}

/* Playlist Count Image Badge (overlay) */
.playlist-count {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

/* Light Theme Playlist Card Typography & Card Stack Effects */
[data-theme="light"] .playlist-card__content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .playlist-card__name {
    color: #888888 !important;
}

[data-theme="light"] .playlist-card__title {
    color: #222222 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .playlist-card__desc {
    color: #555555 !important;
}

[data-theme="light"] .playlist-card::after {
    background: #e0e0e0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .playlist-card::before {
    background: #f0f0f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* ── Smart Downloads Premium Badge Fix ── */
.custom-badge-premium,
#downloadCount,
#badgeCountText,
[data-theme="light"] .custom-badge-premium,
[data-theme="light"] #downloadCount,
[data-theme="light"] #badgeCountText {
    background-color: hsl(var(--base)) !important;
    color: #ffffff !important;
    border: 1px solid hsl(var(--base)) !important;
}

.custom-badge-premium i,
#downloadCount i,
[data-theme="light"] .custom-badge-premium i,
[data-theme="light"] #downloadCount i {
    color: #ffffff !important;
}

/* ── Clear History / Remove All Button (Dark & Light Theme) ── */
.wh-search-clear .clear-history-btn {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important; /* Premium rounded capsule shape */
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: capitalize !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-left: auto !important; /* Align to the right side beautifully */
}

/* Dark Theme (Default) styling */
.wh-search-clear .clear-history-btn {
    background-color: rgba(220, 53, 69, 0.05) !important;
    border: 1.5px solid rgba(220, 53, 69, 0.4) !important;
    color: #ff4d5e !important;
}

.wh-search-clear .clear-history-btn i {
    color: #ff4d5e !important;
    font-size: 1rem !important;
}

.wh-search-clear .clear-history-btn:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

.wh-search-clear .clear-history-btn:hover i {
    color: #ffffff !important;
}

/* Light Theme overrides */
[data-theme="light"] .wh-search-clear .clear-history-btn {
    background-color: rgba(220, 53, 69, 0.03) !important;
    border: 1.5px solid rgba(220, 53, 69, 0.5) !important;
    color: #d93025 !important;
}

[data-theme="light"] .wh-search-clear .clear-history-btn i {
    color: #d93025 !important;
    font-size: 1rem !important;
}

[data-theme="light"] .wh-search-clear .clear-history-btn:hover {
    background-color: #d93025 !important;
    border-color: #d93025 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.3) !important;
}

[data-theme="light"] .wh-search-clear .clear-history-btn:hover i {
    color: #ffffff !important;
}

/* ── Premium Compact Dashboard Cards ── */
.dashboard-card {
    padding: 16px 20px !important; /* Make it significantly shorter vertically */
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* Force all text, numbers, subtexts, and streak badges inside the dashboard cards to remain crisp white */
.dashboard-card,
.dashboard-card__title,
.dashboard-card__number,
.dashboard-card p,
.dashboard-card span,
.dashboard-card h5,
.dashboard-card h3 {
    color: #ffffff !important;
}

/* Light Theme Card overrides: force dark charcoal text ONLY for the small, dynamic-background cards (.sm) which are white in light theme */
[data-theme="light"] .dashboard-card.sm,
[data-theme="light"] .dashboard-card.sm .dashboard-card__title,
[data-theme="light"] .dashboard-card.sm .dashboard-card__number,
[data-theme="light"] .dashboard-card.sm p,
[data-theme="light"] .dashboard-card.sm span,
[data-theme="light"] .dashboard-card.sm h5,
[data-theme="light"] .dashboard-card.sm h3 {
    color: #1f2937 !important;
}

/* Force all text-white elements inside standard dashboard cards to remain crisp white in both themes */
.dashboard-card .text-white,
[data-theme="light"] .dashboard-card .text-white,
[data-theme="light"] .dashboard-card .dashboard-card__title.text-white,
[data-theme="light"] .dashboard-card .dashboard-card__number.text-white,
[data-theme="light"] .dashboard-card p.text-white,
[data-theme="light"] .dashboard-card span.text-white,
[data-theme="light"] .dashboard-card h5.text-white,
[data-theme="light"] .dashboard-card h3.text-white {
    color: #ffffff !important;
}

.dashboard-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-card__title {
    font-size: 0.82rem !important; /* Smaller, cleaner title */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    opacity: 0.85 !important;
}

.dashboard-card__number {
    font-size: 1.5rem !important; /* Elegant smaller size */
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.dashboard-card__icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 15px !important;
    max-width: 50px !important; /* Smaller, subtler icon */
    opacity: 0.18 !important; /* Make it blend beautifully into the card background */
}

/* Specific styling for the Current Streak Badge inside the card */
.dashboard-card__icon img,
.dashboard-card__icon i {
    max-width: 50px !important;
}

/* Ensure info text (like longest streak) is compact and fits perfectly */
.dashboard-card p {
    font-size: 0.78rem !important;
    margin-top: 4px !important;
    opacity: 0.8 !important;
}

/* ── Form Controls (Double Dash) Light Theme Override ── */
[data-theme="light"] .form--control {
    background-color: #f7f8fa !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #222222 !important;
}

[data-theme="light"] .form--control::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

[data-theme="light"] .form--control:focus {
    border-color: hsl(var(--base)) !important;
    box-shadow: 0 0 0 0.15rem hsla(var(--base), 0.2) !important;
    background-color: #ffffff !important;
}

/* Light Theme Comment Box bottom line style fix */
[data-theme="light"] .play-video .primary__comment .comment-form .form-group .form--control,
[data-theme="light"] .reply-form .form--control,
[data-theme="light"] .edit-form .form--control {
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    padding-right: 40px !important;
    box-shadow: none !important;
}

[data-theme="light"] .play-video .primary__comment .comment-form .form-group .form--control:focus,
[data-theme="light"] .reply-form .form--control:focus,
[data-theme="light"] .edit-form .form--control:focus {
    background-color: transparent !important;
    border-bottom: 1px solid hsl(var(--base)) !important;
    box-shadow: none !important;
}

[data-theme="light"] .play-video .primary__comment .comment-form .form-group .comment-btn,
[data-theme="light"] .reply-form__btn,
[data-theme="light"] .edit-form__btn {
    color: rgba(0, 0, 0, 0.4) !important;
    right: 0 !important;
}

[data-theme="light"] .play-video .primary__comment .comment-form .form-group .form--control:focus ~ .comment-btn,
[data-theme="light"] .reply-form .form--control:focus ~ .reply-form__btn,
[data-theme="light"] .edit-form .form--control:focus ~ .edit-form__btn {
    color: hsl(var(--base)) !important;
}

/* Group Search Input — Always visible, not just on hover */
.group-search-input {
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
}

/* Dark theme — always visible with a solid border */
.group-search-input {
    background-color: hsl(var(--dark-two)) !important;
    border: 1px solid hsl(var(--white) / 0.2) !important;
    color: hsl(var(--heading-color)) !important;
}

.group-search-input::placeholder {
    color: hsl(var(--light-two)) !important;
    opacity: 1 !important;
}

/* Light theme — visible solid border, always shown */
[data-theme="light"] .group-search-input {
    background-color: #ffffff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
    color: #222222 !important;
}

[data-theme="light"] .group-search-input::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

[data-theme="light"] .group-search-input:focus {
    background-color: #ffffff !important;
    border-color: hsl(var(--base)) !important;
    box-shadow: 0 0 0 3px hsla(var(--base), 0.12) !important;
}

/* Group Search Button — filled style */
.group-search-btn {
    background-color: hsl(var(--base)) !important;
    color: #ffffff !important;
    border: 1px solid hsl(var(--base)) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.group-search-btn:hover {
    background-color: hsl(var(--base-d-100)) !important;
    border-color: hsl(var(--base-d-100)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px hsla(var(--base), 0.35) !important;
}

[data-theme="light"] .group-search-btn {
    background-color: hsl(var(--base)) !important;
    color: #ffffff !important;
    border-color: hsl(var(--base)) !important;
}

/* Outline Base Button — transparent bg, colored border/text, fills on hover */
.btn--outline-base {
    background: transparent !important;
    color: hsl(var(--base)) !important;
    border: 1px solid hsl(var(--base)) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn--outline-base:hover {
    background-color: hsl(var(--base)) !important;
    border-color: hsl(var(--base)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px hsla(var(--base), 0.35) !important;
}

[data-theme="light"] .btn--outline-base {
    background: transparent !important;
    color: hsl(var(--base)) !important;
    border-color: hsl(var(--base)) !important;
}

[data-theme="light"] .btn--outline-base:hover {
    background-color: hsl(var(--base)) !important;
    color: #ffffff !important;
}

/* ===== VIDEO PLAYER PAGE — LIGHT THEME FIX ===== */
/* Meta action buttons (Like, Dislike, Share, Embed, etc.) */
[data-theme="light"] .meta-buttons__button {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}
[data-theme="light"] .meta-buttons__button:hover {
    background: #e4e4e4 !important;
    border-color: #ccc !important;
}

/* Like/Dislike joined pill wrapper */
[data-theme="light"] .meta-react-inner {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
}
[data-theme="light"] .meta-react-inner .meta-buttons__button {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
}
[data-theme="light"] .meta-react-inner .meta-buttons__button:first-child {
    border-right: 1px solid #ddd !important;
}

/* Channel/Author subscriber count area */
[data-theme="light"] .play-video .primary__channel .author__subscriber {
    color: #666 !important;
}
[data-theme="light"] .play-video .primary__channel .author__content .channel-name {
    color: #111 !important;
}

/* Video title */
[data-theme="light"] .play-video .primary__vtitle {
    color: #111 !important;
}

/* Video meta: views, date */
[data-theme="light"] .play-video .primary__videometa .items span {
    color: #555 !important;
}

/* Fan Goal / Donation bar */
[data-theme="light"] .fan-goal-container {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .fan-goal-container h6 {
    color: #111 !important;
}

/* Video description area */
[data-theme="light"] .primary__desc {
    color: #333 !important;
}
[data-theme="light"] .primary__desc-text {
    color: #333 !important;
}

/* Comment section */
[data-theme="light"] .comment-number {
    color: #111 !important;
}

/* Live chat card */
[data-theme="light"] .live-chat-card {
    border-color: #e5e7eb !important;
}
[data-theme="light"] .live-chat-card .card-header {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}
[data-theme="light"] .live-chat-card .card-header .card-title {
    color: #111 !important;
}
[data-theme="light"] .live-chat-card .live-chat-body {
    background: #ffffff !important;
}
[data-theme="light"] .live-chat-card .card-footer {
    background: #f9fafb !important;
    border-top-color: #e5e7eb !important;
}

/* Live chat input */
[data-theme="light"] #liveChatInput {
    background: #f7f8fa !important;
    border-color: #ddd !important;
    color: #333 !important;
}

/* Viewer Interactions panel */
[data-theme="light"] #viewerInteractions {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] #viewerInteractions h5 {
    color: #111 !important;
}

/* Live watch banner */
[data-theme="light"] .live-watch-banner {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] .live-watch-banner .text-white {
    color: #111 !important;
}

/* Sponsorship info box in details form */
[data-theme="light"] .sponsorship-info {
    background: #f7f8fa !important;
    border-color: #ddd !important;
}

/* Super Chat ticker */
[data-theme="light"] #superChatTicker {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}

/* Shopping tag overlay on video */
[data-theme="light"] #liveShoppingOverlay {
    background: rgba(255,255,255,0.96) !important;
    border-color: #ffd700 !important;
    color: #333 !important;
}
[data-theme="light"] #liveShoppingOverlay h6 {
    color: #111 !important;
}

/* Premium stock / purchase bar */
[data-theme="light"] .premium-stock {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] .premium-stock-price {
    color: #111 !important;
}

/* Hidden content warning */
[data-theme="light"] .hidden-content {
    background: #f7f8fa !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] .hidden-content h4,
[data-theme="light"] .hidden-content p {
    color: #333 !important;
}

/* Related video cards / sidebar playlist */
[data-theme="light"] .secondary .card.custom--card {
    border-color: #e5e7eb !important;
}
[data-theme="light"] .secondary .card-header {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}

/* Embed modal and share overlay */
[data-theme="light"] .embed-code-box {
    background: #f7f8fa !important;
    border-color: #ddd !important;
    color: #333 !important;
}

/* Premium Sidebar: Cap height and allow independent scrolling if there are many items */
@media (min-width: 1200px) {
    .dashboard-menu {
        position: sticky !important;
        top: calc(var(--header-h) + 24px) !important;
        overflow-y: auto !important;
        align-self: flex-start !important;
    }
}

/* Hide scrollbar for a cleaner premium look in the sidebar, but allow scrolling */
.dashboard-menu::-webkit-scrollbar {
    width: 4px;
}
.dashboard-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
[data-theme="light"] .dashboard-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
}

/* Search channel card styling */
.channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.channel-card:hover {
    background: rgba(255, 255, 255, 0.05);
}
.channel-card .channel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}
.channel-card .channel-avatar img {
    object-fit: cover;
}
.channel-card h6 a {
    color: #fff !important;
    text-decoration: none;
}
.channel-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 30px 0;
    opacity: 1;
}

[data-theme="light"] .channel-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
[data-theme="light"] .channel-card:hover {
    background: #f8f9fa !important;
}
[data-theme="light"] .channel-card h6 a {
    color: #111827 !important;
}
[data-theme="light"] .channel-divider {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* YouTube style search filter modal */
#searchFilterModal .modal-content,
#homeFilterModal .modal-content {
    background-color: hsl(var(--bg-color)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
}
#searchFilterModal .video-search-filter,
#homeFilterModal .video-search-filter {
    background-color: transparent !important;
    padding: 0 !important;
}
#searchFilterModal .modal-header,
#searchFilterModal .modal-footer,
#homeFilterModal .modal-header,
#homeFilterModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
#searchFilterModal .modal-header h5,
#homeFilterModal .modal-header h5 {
    color: #fff !important;
    font-weight: 600;
}
#searchFilterModal .modal-header .btn-close,
#homeFilterModal .modal-header .btn-close {
    filter: none !important;
    color: #fff !important;
    opacity: 0.8;
}
#searchFilterModal .modal-header .btn-close:hover,
#homeFilterModal .modal-header .btn-close:hover {
    opacity: 1;
}
#searchFilterModal h6,
#homeFilterModal h6 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#searchFilterModal .form--radio,
#searchFilterModal .form--check,
#homeFilterModal .form--radio,
#homeFilterModal .form--check {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500;
    transition: color 0.15s ease;
}
#searchFilterModal .form--radio:hover,
#searchFilterModal .form--check:hover,
#homeFilterModal .form--radio:hover,
#homeFilterModal .form--check:hover {
    color: #fff !important;
}
#searchFilterModal .form--radio:has(.form-check-input:checked),
#searchFilterModal .form--check:has(.form-check-input:checked),
#homeFilterModal .form--radio:has(.form-check-input:checked),
#homeFilterModal .form--check:has(.form-check-input:checked) {
    color: hsl(var(--base)) !important;
    font-weight: 700;
}

[data-theme="light"] #searchFilterModal .modal-content,
[data-theme="light"] #homeFilterModal .modal-content {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .video-search-filter {
    background-color: transparent !important;
}
[data-theme="light"] #searchFilterModal .modal-header,
[data-theme="light"] #searchFilterModal .modal-footer,
[data-theme="light"] #homeFilterModal .modal-header,
[data-theme="light"] #homeFilterModal .modal-footer {
    border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] #searchFilterModal .modal-header h5,
[data-theme="light"] #homeFilterModal .modal-header h5 {
    color: #111827 !important;
}
[data-theme="light"] #searchFilterModal .modal-header .btn-close,
[data-theme="light"] #homeFilterModal .modal-header .btn-close {
    filter: none;
    color: #333 !important;
}
[data-theme="light"] #searchFilterModal h6,
[data-theme="light"] #homeFilterModal h6 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4b5563 !important;
}
[data-theme="light"] #searchFilterModal .form--radio,
[data-theme="light"] #searchFilterModal .form--check,
[data-theme="light"] #homeFilterModal .form--radio,
[data-theme="light"] #homeFilterModal .form--check {
    color: #4b5563 !important;
}
[data-theme="light"] #searchFilterModal .form--radio:hover,
[data-theme="light"] #searchFilterModal .form--check:hover,
[data-theme="light"] #homeFilterModal .form--radio:hover,
[data-theme="light"] #homeFilterModal .form--check:hover {
    color: #111827 !important;
}
[data-theme="light"] #searchFilterModal .form--radio:has(.form-check-input:checked),
[data-theme="light"] #searchFilterModal .form--check:has(.form-check-input:checked),
[data-theme="light"] #homeFilterModal .form--radio:has(.form-check-input:checked),
[data-theme="light"] #homeFilterModal .form--check:has(.form-check-input:checked) {
    color: hsl(var(--base)) !important;
}

/* ===== PREMIUM ONLY CONTENT PAYWALL CARD ===== */
.premium-paywall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(234, 84, 85, 0.3);
    z-index: 5;
}

.premium-paywall__thumb {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    border-radius: 8px;
    filter: blur(4px);
    top: 0;
    left: 0;
    z-index: 1;
}

.premium-paywall__content {
    position: relative;
    z-index: 2;
    padding: 30px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.premium-paywall__icon {
    font-size: 60px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    animation: pulse-glow 2s infinite;
    line-height: 1;
    margin-bottom: 10px;
}

.premium-paywall__title {
    color: #ffd700 !important;
    margin: 15px 0;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-size: 2rem;
}

.premium-paywall__desc {
    color: #ccc !important;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.premium-paywall__btn {
    background: linear-gradient(90deg, #ea5455 0%, #b83233 100%) !important;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(234, 84, 85, 0.4);
    border: none;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.premium-paywall__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 84, 85, 0.6);
    color: #fff !important;
}

/* Light Theme Overrides */
[data-theme="light"] .premium-paywall {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(234, 84, 85, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .premium-paywall__thumb {
    opacity: 0.12;
}

[data-theme="light"] .premium-paywall__title {
    color: #c59000 !important; /* Premium dark gold/amber */
    text-shadow: 0 2px 4px rgba(197, 144, 0, 0.1);
}

[data-theme="light"] .premium-paywall__desc {
    color: #4b5563 !important; /* Higher contrast dark-gray text for readability in light mode */
}

[data-theme="light"] .premium-paywall__btn {
    box-shadow: 0 4px 15px rgba(170, 0, 255, 0.3);
}

[data-theme="light"] .premium-paywall__btn:hover {
    box-shadow: 0 6px 20px rgba(170, 0, 255, 0.5);
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    }
}

/* ===== AGE RESTRICTION OVERLAY ===== */
.age-restriction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    border-radius: 8px;
    padding: 60px 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-restriction-overlay__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}

.age-restriction-overlay__title {
    color: #fff !important;
    margin-bottom: 8px;
}

.age-restriction-overlay__desc {
    color: #999 !important;
    margin-bottom: 24px;
}

/* Light Theme Overrides */
[data-theme="light"] .age-restriction-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .age-restriction-overlay__title {
    color: #111827 !important;
}

[data-theme="light"] .age-restriction-overlay__desc {
    color: #4b5563 !important;
}

/* ===== MEMBERS-ONLY / PAID CONTENT LOCK SCREEN ===== */
.members-only-lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a2230 0%, #0d1117 100%);
    border: 2px solid #ff9f43;
    min-height: 400px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 159, 67, 0.15);
    z-index: 5;
}

.members-only-lock-screen__title {
    color: #fff !important;
}

.members-only-lock-screen__desc {
    color: #aaa !important;
}

.members-only-lock-screen__support {
    color: #888 !important;
}

/* Light Theme Overrides */
[data-theme="light"] .members-only-lock-screen {
    background: radial-gradient(circle, #f9fafb 0%, #f3f4f6 100%);
    border-color: #ff9f43;
    box-shadow: 0 8px 32px rgba(255, 159, 67, 0.08);
}

[data-theme="light"] .members-only-lock-screen__title {
    color: #111827 !important;
}

[data-theme="light"] .members-only-lock-screen__desc {
    color: #4b5563 !important;
}

[data-theme="light"] .members-only-lock-screen__support {
    color: #6b7280 !important;
}

/* ===== SEARCH CHANNEL CARD ===== */
.search-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-channel-card__left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.search-channel-card__avatar-wrapper {
    flex-shrink: 0;
    width: 136px;
    height: 136px;
    display: flex;
    justify-content: center;
}

.search-channel-card__avatar {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-channel-card__info {
    flex: 1;
}

.search-channel-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-channel-card__title a {
    color: hsl(var(--white)) !important;
    text-decoration: none;
}

.search-channel-card__title a:hover {
    color: hsl(var(--base)) !important;
}

.search-channel-card__meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-channel-card__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5) !important;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 600px;
}

.search-channel-card__right {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Subscribe Button Styling */
.search-channel-card .subcriberBtn {
    background-color: #fff !important;
    color: #0f0f0f !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    transition: background-color 0.2s;
}

.search-channel-card .subcriberBtn:hover {
    background-color: #e6e6e6 !important;
}

.search-channel-card .unSubcriberBtn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    transition: background-color 0.2s;
}

.search-channel-card .unSubcriberBtn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Light Theme Overrides */
[data-theme="light"] .search-channel-card {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-channel-card__title a {
    color: #0f0f0f !important;
}

[data-theme="light"] .search-channel-card__meta {
    color: #606060 !important;
}

[data-theme="light"] .search-channel-card__desc {
    color: #606060 !important;
}

[data-theme="light"] .search-channel-card__avatar {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Mode Overrides for Subscribe Button */
[data-theme="light"] .search-channel-card .subcriberBtn {
    background-color: #0f0f0f !important;
    color: #fff !important;
}

[data-theme="light"] .search-channel-card .subcriberBtn:hover {
    background-color: #272727 !important;
}

[data-theme="light"] .search-channel-card .unSubcriberBtn {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #0f0f0f !important;
}

[data-theme="light"] .search-channel-card .unSubcriberBtn:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Adjustments for mobile viewports */
@media (max-width: 768px) {
    .search-channel-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 0;
    }
    
    .search-channel-card__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .search-channel-card__avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .search-channel-card__avatar {
        width: 80px;
        height: 80px;
    }
    
    .search-channel-card__right {
        margin-left: 0;
        width: 100%;
    }
}

/* ==========================================================================
   Light Theme Overrides for Monthly Plan Preview Page
   ========================================================================== */

/* 1. Page Title and Description */
[data-theme="light"] .channel-body h3,
[data-theme="light"] .channel-body p {
    color: #111827 !important;
}
[data-theme="light"] .channel-body p.text-muted {
    color: #6b7280 !important;
}

/* 2. Cards layout and container background */
[data-theme="light"] .channel-body .card.custom--card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .channel-body .card-header {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 3. Text and headers within plans cards */
[data-theme="light"] .channel-body .card-header h4.card-title,
[data-theme="light"] .channel-body .card-body h2.display-8,
[data-theme="light"] .channel-body .card-body h2,
[data-theme="light"] .channel-body .card-body h6 {
    color: #111827 !important;
}

[data-theme="light"] .channel-body .card-body p.text-muted,
[data-theme="light"] .channel-body .card-body span.text-muted {
    color: #6b7280 !important;
}

/* 4. Lists of content and perks within plans cards */
[data-theme="light"] .channel-body .card-body .list--group .list-group-item,
[data-theme="light"] .channel-body .card-body .list--group .list--group-item {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .channel-body .card-body .list--group .text-light,
[data-theme="light"] .channel-body .card-body .perks-container .text-light {
    color: #374151 !important;
}

[data-theme="light"] .channel-body .card-body .border-top {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* 5. Modals (Gift Membership and Plan Gateway Modal) in Light Theme */
[data-theme="light"] #giftMembershipModal .modal-content,
[data-theme="light"] #planGatewayModal .modal-content,
[data-theme="light"] #viewVideosModal .modal-content,
[data-theme="light"] #viewPlaylistsModal .modal-content,
[data-theme="light"] #playlistVideosModal .modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #giftMembershipModal .modal-header,
[data-theme="light"] #planGatewayModal .modal-header,
[data-theme="light"] #viewVideosModal .modal-header,
[data-theme="light"] #viewPlaylistsModal .modal-header,
[data-theme="light"] #playlistVideosModal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #giftMembershipModal .modal-header h5,
[data-theme="light"] #planGatewayModal .modal-header h5,
[data-theme="light"] #viewVideosModal .modal-header h5,
[data-theme="light"] #viewPlaylistsModal .modal-header h5,
[data-theme="light"] #playlistVideosModal .modal-header h5 {
    color: #111827 !important;
}

[data-theme="light"] #giftMembershipModal .modal-body label,
[data-theme="light"] #giftMembershipModal .modal-body select option {
    color: #111827 !important;
}

[data-theme="light"] #giftMembershipModal .gift-summary {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #giftMembershipModal .gift-summary .text-white {
    color: #111827 !important;
}

[data-theme="light"] #giftMembershipModal .gift-summary .text-muted {
    color: #4b5563 !important;
}

[data-theme="light"] #giftMembershipModal .gift-summary h4.text-warning {
    color: #d97706 !important;
}

/* 6. Purchase modal payment info */
[data-theme="light"] #planGatewayModal .deposit-info__title p,
[data-theme="light"] #planGatewayModal .deposit-info__input p,
[data-theme="light"] #planGatewayModal .deposit-info__input span,
[data-theme="light"] #planGatewayModal .deposit-info .text,
[data-theme="light"] #planGatewayModal .deposit-info .item-name,
[data-theme="light"] #planGatewayModal .deposit-info .item-price,
[data-theme="light"] #planGatewayModal .deposit-info .processing-fee,
[data-theme="light"] #planGatewayModal .deposit-info .final-amount {
    color: #111827 !important;
}

[data-theme="light"] #planGatewayModal hr {
    border-color: rgba(0, 0, 0, 0.08) !important;
    opacity: 1;
}

/* 7. View List Modals list items */
[data-theme="light"] .videos-list .plans-video,
[data-theme="light"] .videos-list .playlist-item {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .videos-list .plans-video h5,
[data-theme="light"] .videos-list .playlist-item h5 {
    color: #111827 !important;
}

[data-theme="light"] .videos-list .playlist-item .text-muted {
    color: #6b7280 !important;
}

/* 8. Alert Banner for Gift Memberships */
[data-theme="light"] .channel-body .alert.alert-warning p.text-white {
    color: #856404 !important;
}
[data-theme="light"] .channel-body .alert.alert-warning h5.text-warning {
    color: #856404 !important;
}



/* ===== DASHBOARD MENU: badge & arrow clearance from border ===== */
/* Add right padding to .dashboard-menu so overflow:hidden border-radius doesn't clip badge/arrow */
.dashboard-menu {
    padding-right: 12px !important;
}

.dashboard-menu__link {
    padding-right: 20px !important;
}

.dashboard-menu .dashboard-menu__item.has-dropdown > a:before {
    right: 16px !important;
}

.dashboard-menu .dashboard-menu__item.has-dropdown.active > a:before {
    right: 16px !important;
}
/* ===== DASHBOARD MENU: prevent icon/text wrapping on smaller screens ===== */
.dashboard-menu__link {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-menu__link .text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: hsl(var(--base));
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

.cookies-card {
  width: 500px;
  padding: 24px;
  color: hsl(var(--white));
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: hsl(var(--bg-color));
  border-radius: 12px;
  border: 1px solid hsl(var(--white) / 0.1);
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  border-radius: 50%;
  color: hsl(var(--white));
  font-size: 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
  margin-top: 16px;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }

  .cookies-card__icon {
    font-size: 48px;
  }
}

.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #313131;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: "";
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #313131 transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: "";
  font-family: "Line Awesome Free";
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

.table--header {
  padding: 24px;
  border-bottom: 1px solid hsl(var(--white) / 0.1);
}

.select2-dropdown {
  margin-top: 8px !important;
  border-radius: 5px !important;
  background-color: hsl(var(--bg-color)) !important;
  border: 1px solid hsl(var(--white) / 0.1) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid hsl(var(--white) / 0.1) !important;
  color: hsl(var(--white));
  padding: 6px 16px !important;
}

.select2-container:has(.select2-selection--single, .select2-selection--multiple) {
  width: 100% !important;
}

.select2-search--dropdown {
  padding: 10px 10px !important;
  border-color: #ced4da !important;
}

.select2-container--default .select2-selection--multiple {
  background-color: transparent !important;
  border: 1px solid hsl(var(--white) / 0.1) !important;

}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: hsl(var(--white) / 0.1) !important;
  padding: 10px 20px;
  background: transparent;
  border-radius: 4px;
}

.select2-container .select2-search--inline .select2-search__field {
  color: hsl(var(--white)) !important;
  margin-top: 10px !important;
}

.select2-results__option.select2-results__option--selected,
.select2-results__option--selectable,
.select2-container--default .select2-results__option--disabled {
  padding: 8px 12px !important;
  border-bottom: 1px solid hsl(var(--white) / 0.03);
  font-size: 14px !important;
}

.select2-results__option.select2-results__message {
  text-align: center !important;
  padding: 12px 14px !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar {
  width: 8px;
  border-radius: 5px;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-track {
  background: transparent !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb {
  background: hsl(var(--white) / 0.2);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: hsl(var(--card-two-bg)) !important;
  border: 1px solid hsl(var(--white) / 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border-right: 0 !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--white) / 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  color: hsl(var(--text-color)) !important;
  line-height: 41px !important;
  font-size: 14px !important;
}

.select2-container .select2-selection--single {
  line-height: 41px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow:after {
  position: absolute;
  right: 10px;
  top: 0px !important;
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  transition: 0.3s;
}

.select2-container--default .select2-selection--single {
  color: hsl(var(--white)) !important;
  background-color: transparent !important;
  border: 1px solid hsl(var(--white) / 0.1) !important;
  border-radius: 5px !important;
  height: 41px !important;
}

.select2 .dropdown-wrapper {
  display: none;
}

.select2-container .selection {
  width: 100% !important;
  display: block;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0px !important;
  height: 41px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:after {
  transform: rotate(-180deg);
}

.select2-results__option:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.select2-results__option.select2-results__option--selected,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: hsl(var(--base)) !important;
  color: hsl(var(--static-white));
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: hsl(var(--white) / 0.4) !important;
  box-shadow: 0 0 25px rgba(115, 103, 240 0.071) !important;
  outline: 0 !important;
}

.select2-dropdown .country-flag {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.select2-dropdown .gateway-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px !important;
}

.select2-dropdown .gateway-subtitle {
  font-size: 12px;
  margin-bottom: 0px !important;
}

.select2-container--open .select2-selection.select2-selection--single,
.select2-container--open .select2-selection.select2-selection--multiple {
  border-color: hsl(var(--white) / 0.1) !important;
  border-radius: 5px !important;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: hsl(var(--white));
}

.payment-system-list {
  --thumb-width: 80px;
  --thumb-height: 32px;
  --border-color: hsl(var(--white) / 0.1);
  --hover-border-color: hsl(var(--base));
  background-color: hsl(var(--bg-color));
  border-radius: 10px;
  padding-block: 24px;
  padding-inline: 16px;
  height: 100%;
}

.payment-system-list.border-style {
  border-left: 1px solid hsl(var(--white) / 0.1);
  border-radius: 0;
}

@media (max-width: 991px) {
  .payment-system-list.border-style {
    border-left: 0;
    border-top: 1px solid hsl(var(--white) / 0.1);
  }
}

hr {
  border-top: 1px solid hsl(var(--white) / 0.1);
  opacity: 1;
}

.payment-system-list.is-scrollable {
  max-height: min(600px, 70vh);
  overflow-x: auto;
}

.modal .payment-system-list.is-scrollable {
  max-height: min(452px, 70vh);
  overflow-x: auto;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--white) / 0.2);
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all linear 0.3s;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid hsl(var(--white) / 0.1);
  border-radius: 8px;
  cursor: pointer;
}

.payment-item:has(.payment-item__radio:checked) {
  border-color: hsl(var(--white) / 0.2);
  background-color: hsl(var(--white) / 0.05);
}

.payment-item:has(.payment-item__radio:checked) .payment-item__name {
  color: hsl(var(--white));
}

.payment-item:has(.payment-item__radio:checked) .check-type-icon {
  border-color: hsl(var(--white));
}

.payment-item:has(.payment-item__radio:checked) .check-circle {
  display: block;
  --color: hsl(var(--white));
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width));
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base));
  display: inline-block;
  border-radius: 100%;
}

.payment-item__name {
  transition: all 0.3s;
  text-align: end;
}

.payment-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.payment-item__thumb {
  padding: 3px 12px;
  border-radius: 8px;
  flex-shrink: 0;
  background-color: hsl(var(--white) / 0.1);
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
  mix-blend-mode: difference;
  filter: brightness(0.5) invert(1);
}

[data-theme="light"] .payment-item__thumb img {
  filter: unset;
  mix-blend-mode: unset;
}

.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 16px;
}

.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
}

.deposit-info__input {
  max-width: 50%;
  text-align: right;
  width: 100%;
}

.deposit-info__input .text {
  color: hsl(var(--white));
  font-weight: 500;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group {
  border: 1px solid hsl(var(--white) / 0.1);
  border-radius: 5px;
}

.deposit-info__input-group-text {
  align-self: center;
  padding-inline: 16px;
  border: 0;
  background: transparent;
}

.deposit-info__input-group:has(.form--control:disabled),
.deposit-info__input-group:has(.form--control:read-only) {
  background: hsl(var(--white) / 0.05);
}

.deposit-info__input-group:has(.form--control:disabled) .form--control,
.deposit-info__input-group:has(.form--control:read-only) .form--control {
  background: transparent;
  border: 0 !important;
}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 14px;
}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.total-amount {
  border-top: 1px solid var(--border-color);
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-item__btn-text,
.payment-item__btn__icon {
  color: hsl(var(--success));
  font-size: 14px;
  font-weight: 600;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

.adjust-height .payment-system-list.is-scrollable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.plyr__control--overlaid {
  background: hsl(var(--base)) !important;
}

.plyr--video .plyr__control:focus-visible,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded="true"] {
  background: hsl(var(--base)) !important;
}

.plyr--full-ui input[type="range"] {
  color: hsl(var(--base)) !important;
}

.plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]:before {
  background: hsl(var(--base)) !important;

  background: hsl(var(--base)) !important;
}

.responsive-filter-card {
  position: relative;
}

.responsive-filter-form {
  width: 350px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid hsl(var(--white) / 0.1);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  background-color: hsl(var(--bg-color));
  transition: all linear 0.3s;
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 767px) {
  .responsive-filter-form {
    width: 280px;
  }
}

@media (max-width: 575px) {
  .responsive-filter-form {
    width: 250px;
  }

  .payment-item {
    gap: 10px;
  }

  .payment-item__name {
    font-size: 14px;
  }
}

.responsive-filter-form.show {
  opacity: 1;
  visibility: visible;
}

.responsive-filter-body {
  padding: 20px 16px;
  background-color: hsl(var(--white) / 0.01);
}

.responsive-filter-footer {
  padding: 16px;
  background-color: hsl(var(--bg-color));
  box-shadow: 14px -7px 17px rgb(255 255 255 / 5%);
}

.responsive-filter-title {
  padding: 16px;
  background-color: hsl(var(--bg-color));
  box-shadow: -11px 4px 17px rgb(255 255 255 / 5%);
}

.responsive-filter-item:not(:last-child) {
  margin-bottom: 12px;
}

.close-filter-btn {
  font-size: 20px;
  cursor: pointer;
  color: hsl(var(--white));
}

/* Native Select Styling */
select.form--control, 
select.form-control {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid hsl(var(--white) / 0.1) !important;
}

select.form--control option, 
select.form-control option {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

/* Ensure focus state also looks good */
select.form--control:focus, 
select.form-control:focus {
    background-color: #1a1a1a !important;
    border-color: hsl(var(--base)) !important;
}

/* ==========================================================================
   Brand & Business Tools — Supplemental Utility Classes
   bg--dark is used for inner panels inside custom--card containers.
   transition-card is used for sponsorship marketplace card hover effects.
   ========================================================================== */

/* --- bg--dark  (inner panels inside cards) --- */
.bg--dark {
    background-color: hsl(var(--dark)) !important;
}

/* --- Transition card hover effect (sponsorship marketplace cards) --- */
.transition-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* ===== LIGHT THEME COMPLETE OVERRIDES ===== */

/* Cards and backgrounds */
[data-theme="light"] .bg--dark {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .bg--dark-2 {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .custom--card {
    background-color: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .card {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .card-header {
    background-color: hsl(var(--dark)) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

/* Text colors */
[data-theme="light"] .text-white {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .text--dark {
    color: hsl(var(--light)) !important;
}

/* Borders */
[data-theme="light"] .border--1 {
    border-color: var(--border-color) !important;
}

/* Tables */
[data-theme="light"] table thead th {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] table tbody tr {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}
[data-theme="light"] table tbody tr:hover {
    background-color: hsl(var(--dark-two)) !important;
}

/* Chat area */
[data-theme="light"] .chat-area,
[data-theme="light"] .chat-messages,
[data-theme="light"] .group-chat-area {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Store/Product cards */
[data-theme="light"] .product-card,
[data-theme="light"] .store-card {
    background-color: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

/* Badges and labels */
[data-theme="light"] .badge--dark {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}

/* Input fields */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: hsl(var(--card-bg)) !important;
    border-color: var(--form-border) !important;
    color: hsl(var(--light)) !important;
}

/* Sidebar inner panels */
[data-theme="light"] .dashboard-sidebar .sidebar-menu li a {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .dashboard-sidebar .sidebar-menu li a:hover,
[data-theme="light"] .dashboard-sidebar .sidebar-menu li.active a {
    background-color: hsl(var(--dark-two)) !important;
    color: var(--base) !important;
}

/* --- ADDITIONAL THEME-AWARE UI FIXES --- */

/* Select fields hardcoded backgrounds */
[data-theme="light"] select.form--control, 
[data-theme="light"] select.form-control,
[data-theme="light"] select.form--control option, 
[data-theme="light"] select.form-control option {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] select.form--control:focus, 
[data-theme="light"] select.form-control:focus {
    background-color: hsl(var(--card-bg)) !important;
}

/* Leaderboard inline style overrides */
[data-theme="light"] .custom--tab {
    border-bottom: 1px solid var(--border-color) !important;
}
[data-theme="light"] .custom--tab .nav-link {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .custom--tab .nav-link.active {
    color: hsl(var(--base)) !important;
    border-bottom: 2px solid hsl(var(--base)) !important;
}
[data-theme="light"] .table--light.style--two thead th {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .table--light.style--two tbody td {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Fan Rooms / List Groups / General Boxes */
[data-theme="light"] .list-group-item {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}

/* Extended Chat box classes */
[data-theme="light"] .chat-box,
[data-theme="light"] .chat-list,
[data-theme="light"] .chat-body {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Utility classes often used for black/dark backgrounds */
[data-theme="light"] .bg-black,
[data-theme="light"] .bg--black,
[data-theme="light"] .bg-dark {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}

/* ===== COMPREHENSIVE LIGHT THEME FIX ===== */

/* Inline style attribute overrides — targets Blade views with hardcoded backgrounds */
[data-theme="light"] [style*="background-color: #111"],
[data-theme="light"] [style*="background-color:#111"],
[data-theme="light"] [style*="background-color: #1a1a1a"],
[data-theme="light"] [style*="background-color:#1a1a1a"],
[data-theme="light"] [style*="background-color: #000"],
[data-theme="light"] [style*="background-color:#000"],
[data-theme="light"] [style*="background: #111"],
[data-theme="light"] [style*="background:#111"],
[data-theme="light"] [style*="background: #1a1a1a"],
[data-theme="light"] [style*="background:#1a1a1a"],
[data-theme="light"] [style*="background: #000"],
[data-theme="light"] [style*="background:#000"] {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] [style*="background: rgba(0,0,0"],
[data-theme="light"] [style*="background:rgba(0,0,0"],
[data-theme="light"] [style*="background-color: rgba(0,0,0"],
[data-theme="light"] [style*="background-color:rgba(0,0,0"] {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
}

/* Table rows — all dark-style variants */
[data-theme="light"] .table--light.style--two tbody td {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}
[data-theme="light"] .table--light.style--two thead th {
    background-color: hsl(var(--dark)) !important;
    color: hsl(var(--light)) !important;
    border-color: var(--border-color) !important;
}

/* Nav tabs border fix */
[data-theme="light"] .custom--tab {
    border-bottom-color: var(--border-color) !important;
}
[data-theme="light"] .custom--tab .nav-link {
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .custom--tab .nav-link.active {
    color: hsl(var(--base)) !important;
    border-bottom-color: hsl(var(--base)) !important;
}

/* Extended Chat / Message areas */
[data-theme="light"] .group-chat-messages,
[data-theme="light"] .group-chat-body,
[data-theme="light"] .message-area,
[data-theme="light"] .direct-message-area,
[data-theme="light"] .message-wrapper,
[data-theme="light"] .msg-box {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Chart / Analytics containers */
[data-theme="light"] .chart-container,
[data-theme="light"] .analytics-card,
[data-theme="light"] .heatmap-container {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}
[data-theme="light"] .apexcharts-canvas {
    background-color: hsl(var(--card-bg)) !important;
}

/* Dashboard stat cards */
[data-theme="light"] .dashboard-widget,
[data-theme="light"] .stat-card,
[data-theme="light"] .info-card {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Hardcoded text colors */
[data-theme="light"] [style*="color: #ddd"],
[data-theme="light"] [style*="color:#ddd"],
[data-theme="light"] [style*="color: #ccc"],
[data-theme="light"] [style*="color:#ccc"] {
    color: hsl(var(--light)) !important;
}

/* Border colors */
[data-theme="light"] [style*="border-color: #222"],
[data-theme="light"] [style*="border-color:#222"],
[data-theme="light"] [style*="border-color: #333"],
[data-theme="light"] [style*="border-color:#333"],
[data-theme="light"] [style*="border-bottom: 1px solid #222"],
[data-theme="light"] [style*="border-bottom: 1px solid #333"] {
    border-color: var(--border-color) !important;
}

/* ===== CHAT & DROPDOWN LIGHT THEME FIX ===== */

/* Replace CLASSNAME with actual class found in blade files */
[data-theme="light"] .chat-wrapper,
[data-theme="light"] .chat-input-area,
[data-theme="light"] .message-bubble.received {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Native select dropdown options */
[data-theme="light"] select option {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* Select2 dropdowns if used */
[data-theme="light"] .select2-dropdown,
[data-theme="light"] .select2-results__option {
    background-color: hsl(var(--card-bg)) !important;
    color: hsl(var(--light)) !important;
}

/* ===== REMAINING ANALYTICS & DASHBOARDS LIGHT THEME FIX ===== */

/* Glass Cards and Stat Cards Background & Border Fix */
[data-theme="light"] .glass-card,
[data-theme="light"] .stat-card {
    background: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1) !important;
    border-color: var(--border-color) !important;
}

/* Specific colored Stat Cards Background Gradients Overrides */
[data-theme="light"] .stat-card.blue,
[data-theme="light"] .stat-card.orange,
[data-theme="light"] .stat-card.crimson,
[data-theme="light"] .stat-card.emerald {
    background: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
}

/* Stat & Header Text and Border Overrides */
[data-theme="light"] .card-header-premium {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] .premium-title {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .stat-card__title {
    color: hsl(var(--light) / 0.7) !important;
}

[data-theme="light"] .stat-card__number {
    color: hsl(var(--light)) !important;
}

/* Tables and Ledgers */
[data-theme="light"] .table-premium thead th {
    color: hsl(var(--light) / 0.6) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

[data-theme="light"] .table-premium tbody tr {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .table-premium tbody tr:hover {
    background: hsl(var(--dark-two)) !important;
}

[data-theme="light"] .table-premium td,
[data-theme="light"] .table-premium td span,
[data-theme="light"] .table-premium td div {
    color: hsl(var(--light)) !important;
}

/* Cohort Heatmap Overrides */
[data-theme="light"] .table-cohort th {
    color: hsl(var(--light) / 0.6) !important;
}

[data-theme="light"] .table-cohort td[style*="color: #fff"],
[data-theme="light"] .table-cohort td[style*="color:#fff"] {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .table-cohort td[style*="color: rgba(255,255,255"],
[data-theme="light"] .table-cohort td[style*="color:rgba(255,255,255"] {
    color: hsl(var(--light) / 0.85) !important;
}

[data-theme="light"] .cohort-cell.empty {
    background-color: hsl(var(--dark-two)) !important;
    color: hsl(var(--light) / 0.3) !important;
}

[data-theme="light"] .cohort-averages-row td {
    border-top: 2px solid var(--border-color) !important;
}

/* AB Testing Variant Boxes and Modals */
[data-theme="light"] .variant-box {
    background: hsl(var(--dark)) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="light"] .variant-box.winner-glow {
    background: hsla(38, 92%, 50%, 0.05) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

[data-theme="light"] .variant-thumb-container {
    background: hsl(var(--dark-two)) !important;
}

[data-theme="light"] .glass-modal {
    background: hsl(var(--card-bg)) !important;
    border: 1px solid var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

/* Creator Recommendations Heatmap Legend, Slots & CTR Warnings */
[data-theme="light"] .prime-summary-card {
    background: hsl(var(--card-bg)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .prime-slot-badge {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .prime-slot-badge:hover {
    background: hsl(var(--dark-two)) !important;
}

[data-theme="light"] .slot-day {
    color: hsl(var(--light) / 0.5) !important;
}

[data-theme="light"] .slot-time {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .legend-color-scale {
    border-color: var(--border-color) !important;
}

[data-theme="light"] .heatmap-header-cell {
    color: hsl(var(--light) / 0.5) !important;
}

[data-theme="light"] .heatmap-day-label {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .ctr-issue-item {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ctr-issue-item:hover {
    background: hsl(var(--dark-two)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ctr-thumb-wrapper {
    background: hsl(var(--dark-two)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ctr-advice {
    background: hsl(var(--dark-two)) !important;
    color: hsl(var(--light) / 0.85) !important;
}

[data-theme="light"] .ctr-label {
    color: hsl(var(--light) / 0.5) !important;
}

[data-theme="light"] .rec-card-item {
    background: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .rec-card-item:hover {
    background: hsl(var(--dark-two)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .rec-icon-box {
    background: hsl(var(--dark-two)) !important;
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .rec-type-badge {
    background: hsl(var(--dark-two)) !important;
    color: hsl(var(--light) / 0.7) !important;
}

/* Growth Dashboard Demographics & Churn Prediction Avatars */
[data-theme="light"] .demographic-header {
    color: hsl(var(--light) / 0.85) !important;
}

[data-theme="light"] .demographic-bar-wrapper {
    background: hsl(var(--dark)) !important;
}

[data-theme="light"] .growth-indicator.neutral {
    background: hsl(var(--dark)) !important;
    color: hsl(var(--light) / 0.6) !important;
}

[data-theme="light"] .supporter-avatar-container {
    background: hsl(var(--dark)) !important;
}

/* ===== VIDEO MANAGER ROW STYLE ===== */

.video-row-thumb {
    width: 100px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid hsl(var(--white) / 0.1);
    display: block;
}

.video-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-row-details {
    flex: 1;
}

.video-row-details .hover-success {
    transition: color 0.3s ease;
}

.video-row-details .hover-success:hover {
    color: hsl(var(--success)) !important;
}

/* Meta items icons */
.video-row-details .meta-item {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Pillar status badges */
.video-status-badge .badge {
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    text-transform: uppercase;
}

.video-status-badge .badge--success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.video-status-badge .badge--warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.video-status-badge .badge--primary {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.video-status-badge .badge--danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Visibility badging */
.video-visibility-badge .text--success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    text-transform: uppercase;
    display: inline-block;
}

.video-visibility-badge .text--danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    text-transform: uppercase;
    display: inline-block;
}

/* Light Theme overrides for list rows */
[data-theme="light"] .video-row-thumb {
    border-color: var(--border-color) !important;
}

[data-theme="light"] .video-row-details .hover-success:hover {
    color: hsl(var(--success)) !important;
}

[data-theme="light"] .notification-card {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] .notification-read-card {
    border-bottom: 1px solid var(--border-color) !important;
    background-color: rgba(46, 202, 139, 0.05) !important;
}

[data-theme="light"] .notification-card-title {
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .notification-read-card .notification-card-title {
    color: hsl(var(--success)) !important;
}

[data-theme="light"] .notification-btn {
    border-color: var(--border-color) !important;
    color: hsl(var(--light)) !important;
}

[data-theme="light"] .notification-btn:hover {
    background-color: hsl(var(--dark)) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .select-all-wrapper label {
    color: hsl(var(--light)) !important;
}

/* Fix white container behind bulk action buttons */
.bulk-action-bar,
.bulk-action-wrapper,
.video-bulk-action,
.action-bar {
    background-color: hsl(var(--dark-two)) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix video card hover stretch — constrain thumb so Plyr init doesn't grow card */
.video-item__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden !important;
}

.video-item__thumb .plyr,
.video-item__thumb .plyr--video,
.video-item__thumb .plyr__video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.video-item__thumb video,
.video-item__thumb iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ==========================================================================
   Channel Tab Content: Community & Discussions Styling
   ========================================================================== */

/* ── Community Tab ── */
.community-post-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.community-vote-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 14px;
    transition: all 0.2s;
}
.community-vote-btn:hover,
.community-vote-btn.active {
    border-color: hsl(var(--base));
    color: hsl(var(--base));
    background: hsl(var(--base) / 0.1);
}
.community-vote-btn.dislike-active {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}
.toggle-comments-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 14px;
    padding: 4px 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.toggle-comments-btn:hover {
    color: #fff;
}
.comment-item {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Default Theme (Dark Mode) Community section rules */
.community-section .create-post-card,
.community-section .community-post-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
.community-section .create-post-card .prompt-post-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #aaa !important;
    border-radius: 20px;
}
.community-section .post-header h6,
.community-section .post-body h5,
.community-section .locked-content h6,
.community-section .comment-item strong {
    color: #ffffff !important;
}
.community-section .post-body p,
.community-section .comment-item p {
    color: rgba(255, 255, 255, 0.75) !important;
}
.community-section .toggle-comments-btn,
.community-section .community-vote-btn {
    color: #aaa !important;
}
.community-section .community-vote-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.community-section .post-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding-top: 12px;
}
.community-section .dropdown .btn {
    color: #aaa !important;
}
.community-section .comment-section hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.community-section .comment-item > div {
    background: rgba(255, 255, 255, 0.05) !important;
}
.community-section .comment-input-wrap input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 13px;
}
.community-section .comment-input-wrap input::placeholder {
    color: #666 !important;
}
.community-post-card .dropdown-menu {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.community-post-card .dropdown-menu .dropdown-item {
    color: #e0e0e0 !important;
    background-color: transparent !important;
    transition: background 0.15s;
}
.community-post-card .dropdown-menu .dropdown-item:hover,
.community-post-card .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
.community-post-card .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ff6b6b !important;
}
.community-section .locked-content {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px dashed rgba(255, 255, 255, 0.10) !important;
}
.community-section .community-poll-option {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s;
}
.community-section .community-poll-option:hover {
    border-color: hsl(var(--base)) !important;
}
.community-section .poll-vote-btn {
    color: inherit;
    min-height: 42px;
}
.community-section .poll-vote-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Light Theme overrides for Community section */
[data-theme="light"] .community-section .create-post-card,
[data-theme="light"] .community-section .community-post-card {
    background: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
    box-shadow: 0 8px 22px rgba(33, 37, 41, 0.03) !important;
}
[data-theme="light"] .community-section .create-post-card .prompt-post-btn {
    background: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .post-header h6,
[data-theme="light"] .community-section .post-body h5,
[data-theme="light"] .community-section .locked-content h6,
[data-theme="light"] .community-section .comment-item strong {
    color: #111827 !important;
}
[data-theme="light"] .community-section .post-body p,
[data-theme="light"] .community-section .comment-item p {
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .toggle-comments-btn,
[data-theme="light"] .community-section .community-vote-btn {
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .community-vote-btn {
    background: transparent !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-section .post-footer {
    border-top: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-section .dropdown .btn {
    color: #4b5563 !important;
}
[data-theme="light"] .community-section .comment-section hr {
    border-color: rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-section .comment-item > div {
    background: rgba(33, 37, 41, 0.05) !important;
}
[data-theme="light"] .community-section .comment-input-wrap input {
    background: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.16) !important;
    color: #111827 !important;
}
[data-theme="light"] .community-section .comment-input-wrap input::placeholder {
    color: #9ca3af !important;
}
[data-theme="light"] .community-post-card .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item {
    color: #111827 !important;
}
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item:hover,
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item:focus {
    background-color: rgba(33, 37, 41, 0.05) !important;
    color: #111827 !important;
}
[data-theme="light"] .community-post-card .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ff6b6b !important;
}
[data-theme="light"] .community-section .locked-content {
    background: #ffffff !important;
    border: 1px dashed rgba(33, 37, 41, 0.2) !important;
}
[data-theme="light"] .community-section .community-poll-option {
    background: #f8f9fa !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
    color: #111827 !important;
}
[data-theme="light"] .community-section .poll-vote-btn {
    color: #111827;
}

/* ── Discussions Tab ── */
.discussion-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.discussion-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.discussion-filter-btn.active {
    background: hsl(var(--base)) !important;
    border-color: hsl(var(--base)) !important;
    color: #fff !important;
}
.thread-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: border-color 0.2s;
}
.thread-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.thread-card .thread-title {
    color: #fff !important;
}

/* Default Theme (Dark Mode) Discussions overrides */
.discussions-section .thread-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.discussions-section .thread-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.discussions-section .thread-content .thread-title {
    color: #fff !important;
}
.discussions-section .discussion-filter-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #aaa !important;
}
.discussions-section .discussion-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Light Theme overrides for Discussions section */
[data-theme="light"] .discussions-section .thread-card {
    background: #ffffff !important;
    border-color: rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussions-section .thread-card:hover {
    border-color: rgba(33, 37, 41, 0.25) !important;
}
[data-theme="light"] .discussions-section .thread-content .thread-title {
    color: #111827 !important;
}
[data-theme="light"] .discussions-section .discussion-filter-btn {
    border-color: rgba(33, 37, 41, 0.15) !important;
    color: #4b5563 !important;
}
[data-theme="light"] .discussions-section .discussion-filter-btn:hover {
    border-color: rgba(33, 37, 41, 0.35) !important;
    color: #111827 !important;
    background: rgba(33, 37, 41, 0.05) !important;
}
[data-theme="light"] .discussions-section .discussion-filter-btn.active,
.discussions-section .discussion-filter-btn.active {
    color: #ffffff !important;
}

/* ── Discussion View ── */
.discussion-view .thread-main {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.discussion-view .thread-main-body {
    background: rgba(255, 255, 255, 0.03) !important;
}
.discussion-view .thread-author {
    color: #ccc !important;
}
.discussion-view .thread-body {
    color: rgba(255, 255, 255, 0.8) !important;
}
.discussion-view .reply-content {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.discussion-view .reply-username {
    color: #ddd !important;
}
.discussion-view .reply-text {
    color: rgba(255, 255, 255, 0.75) !important;
}
.discussion-view .nested-reply-username {
    color: #bbb !important;
}
.discussion-view .nested-reply-text {
    color: rgba(255, 255, 255, 0.65) !important;
}
.discussion-view .text-muted {
    color: #aaa !important;
}
.discussion-view hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.discussion-view .back-to-disc-link:hover {
    color: #fff !important;
}

/* Light Theme overrides for Discussion View */
[data-theme="light"] .discussion-view .thread-main {
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussion-view .thread-main-body {
    background: #ffffff !important;
}
[data-theme="light"] .discussion-view .thread-author {
    color: #111827 !important;
}
[data-theme="light"] .discussion-view .thread-body {
    color: #4b5563 !important;
}
[data-theme="light"] .discussion-view .reply-content {
    background: rgba(33, 37, 41, 0.05) !important;
    border: 1px solid rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussion-view .reply-username {
    color: #111827 !important;
}
[data-theme="light"] .discussion-view .reply-text {
    color: #4b5563 !important;
}
[data-theme="light"] .discussion-view .nested-reply-username {
    color: #111827 !important;
}
[data-theme="light"] .discussion-view .nested-reply-text {
    color: #4b5563 !important;
}
[data-theme="light"] .discussion-view .text-muted {
    color: #6b7280 !important;
}
[data-theme="light"] .discussion-view hr {
    border-color: rgba(33, 37, 41, 0.12) !important;
}
[data-theme="light"] .discussion-view .back-to-disc-link:hover {
    color: #111827 !important;
}
[data-theme="light"] .nicEdit-main {
    color: #111827 !important;
}

/* Fix white logo visibility in light theme by inverting white text to black while keeping red play icon intact */
[data-theme="light"] .sidebar-logo__link.light img,
[data-theme="light"] .account-section__logo img.dark-logo {
    filter: invert(1) hue-rotate(180deg) !important;
}

/* ── Preloader: theme-aware background & text ── */
[data-theme="light"] .preloader {
    background-color: #ffffff !important;
}
[data-theme="light"] .loader::before {
    border-color: #e5e7eb !important;
}
[data-theme="light"] .loading06 span {
    color: rgba(17, 24, 39, 0.25) !important;
}
[data-theme="light"] .loading06 span::after {
    color: #111827 !important;
}

/* ── Filter Wrapper theme adjustment ── */
.filter-wrapper {
    background-color: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="light"] .filter-wrapper {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

/* ── Active Tab Text Visibility Fix ── */
.custom--tab .nav-link.active,
.custom--tab .nav-item .nav-link.active,
[data-theme="light"] .custom--tab .nav-link.active,
[data-theme="light"] .custom--tab .nav-item .nav-link.active {
    color: #ffffff !important;
}

/* ── Premium Hero Theme adjustment ── */
.premium-hero {
    background: radial-gradient(circle at center, rgba(234, 84, 85, 0.12) 0%, #111111 80%) !important;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

[data-theme="light"] .premium-hero {
    background: radial-gradient(circle at center, rgba(234, 84, 85, 0.04) 0%, #fcfbfa 100%) !important;
}

[data-theme="light"] .premium-hero h1,
[data-theme="light"] .premium-hero p.lead,
[data-theme="light"] .premium-hero .text-light,
[data-theme="light"] .premium-hero .text-white {
    color: #333333 !important;
}

[data-theme="light"] .premium-hero .custom--card {
    background: #ffffff !important;
    border: 1px solid rgba(234, 84, 85, 0.4) !important;
    box-shadow: 0 10px 30px rgba(234, 84, 85, 0.15) !important;
}

[data-theme="light"] .premium-hero .custom--card .card-title,
[data-theme="light"] .premium-hero .custom--card h1,
[data-theme="light"] .premium-hero .custom--card h3,
[data-theme="light"] .premium-hero .custom--card h6,
[data-theme="light"] .premium-hero .custom--card li,
[data-theme="light"] .premium-hero .custom--card .item-name,
[data-theme="light"] .premium-hero .custom--card .item-price {
    color: #333333 !important;
}

[data-theme="light"] .premium-hero .custom--card .text-muted {
    color: #666666 !important;
}

/* ── Inbox & Chat Thread Theme Adjustment ── */
[data-theme="light"] .message-list {
    background: #ffffff !important;
}

[data-theme="light"] .message-list p {
    color: #333333 !important;
}

[data-theme="light"] .message-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #555555 !important;
}

[data-theme="light"] .message-item:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .message-item.unread {
    background: rgba(250, 133, 0, 0.04) !important;
}

[data-theme="light"] .message-item .message-content .name {
    color: #222222 !important;
}

[data-theme="light"] .message-item .message-content .text {
    color: #666666 !important;
}

[data-theme="light"] .message-item .message-content .time {
    color: #888888 !important;
}

/* Chat thread/conversation screen overrides */
[data-theme="light"] .chat-wrapper {
    background: #ffffff !important;
}

[data-theme="light"] .message-bubble.received {
    background: #f1f1f1 !important;
    color: #333333 !important;
}

[data-theme="light"] .message-bubble.received .time {
    color: #777777 !important;
}

[data-theme="light"] .chat-input-area {
    background: #f9f9f9 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .chat-input-area textarea {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .chat-input-area textarea::placeholder {
    color: #888888 !important;
}

/* ── Playlist Card Layout & Spacing Fixes ── */
.playlist-card-wrapper {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px 20px !important;
}

.playlist-card {
    margin-bottom: 15px !important;
}

/* Playlist Count Image Badge (overlay) */
.playlist-count {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

[data-theme="light"] .channel-body .playlist-count,
[data-theme="light"] .playlist-count {
    color: #ffffff !important;
}

/* Light Theme Playlist Card Typography & Card Stack Effects */
[data-theme="light"] .playlist-card__content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .playlist-card__name {
    color: #888888 !important;
}

[data-theme="light"] .playlist-card__title {
    color: #222222 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .playlist-card__desc {
    color: #555555 !important;
}

[data-theme="light"] .playlist-card::after {
    background: #e0e0e0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .playlist-card::before {
    background: #f0f0f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* ── Smart Downloads Premium Badge Fix ── */
.custom-badge-premium,
#downloadCount,
#badgeCountText,
[data-theme="light"] .custom-badge-premium,
[data-theme="light"] #downloadCount,
[data-theme="light"] #badgeCountText {
    background-color: hsl(var(--base)) !important;
    color: #ffffff !important;
    border: 1px solid hsl(var(--base)) !important;
}

.custom-badge-premium i,
#downloadCount i,
[data-theme="light"] .custom-badge-premium i,
[data-theme="light"] #downloadCount i {
    color: #ffffff !important;
}

/* ── Clear History / Remove All Button (Dark & Light Theme) ── */
.wh-search-clear .clear-history-btn {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important; /* Premium rounded capsule shape */
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: capitalize !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-left: auto !important; /* Align to the right side beautifully */
}

/* Dark Theme (Default) styling */
.wh-search-clear .clear-history-btn {
    background-color: rgba(220, 53, 69, 0.05) !important;
    border: 1.5px solid rgba(220, 53, 69, 0.4) !important;
    color: #ff4d5e !important;
}

.wh-search-clear .clear-history-btn i {
    color: #ff4d5e !important;
    font-size: 1rem !important;
}

.wh-search-clear .clear-history-btn:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

.wh-search-clear .clear-history-btn:hover i {
    color: #ffffff !important;
}

/* Light Theme overrides */
[data-theme="light"] .wh-search-clear .clear-history-btn {
    background-color: rgba(220, 53, 69, 0.03) !important;
    border: 1.5px solid rgba(220, 53, 69, 0.5) !important;
    color: #d93025 !important;
}

[data-theme="light"] .wh-search-clear .clear-history-btn i {
    color: #d93025 !important;
    font-size: 1rem !important;
}

[data-theme="light"] .wh-search-clear .clear-history-btn:hover {
    background-color: #d93025 !important;
    border-color: #d93025 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.3) !important;
}

[data-theme="light"] .wh-search-clear .clear-history-btn:hover i {
    color: #ffffff !important;
}

/* ── Premium Compact Dashboard Cards ── */
.dashboard-card {
    padding: 16px 20px !important; /* Make it significantly shorter vertically */
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* Force all text, numbers, subtexts, and streak badges inside the dashboard cards to remain crisp white */
.dashboard-card,
.dashboard-card__title,
.dashboard-card__number,
.dashboard-card p,
.dashboard-card span,
.dashboard-card h5,
.dashboard-card h3 {
    color: #ffffff !important;
}

/* Light Theme Card overrides: force dark charcoal text ONLY for the small, dynamic-background cards (.sm) which are white in light theme */
[data-theme="light"] .dashboard-card.sm,
[data-theme="light"] .dashboard-card.sm .dashboard-card__title,
[data-theme="light"] .dashboard-card.sm .dashboard-card__number,
[data-theme="light"] .dashboard-card.sm p,
[data-theme="light"] .dashboard-card.sm span,
[data-theme="light"] .dashboard-card.sm h5,
[data-theme="light"] .dashboard-card.sm h3 {
    color: #1f2937 !important;
}

/* Force all text-white elements inside standard dashboard cards to remain crisp white in both themes */
.dashboard-card .text-white,
[data-theme="light"] .dashboard-card .text-white,
[data-theme="light"] .dashboard-card .dashboard-card__title.text-white,
[data-theme="light"] .dashboard-card .dashboard-card__number.text-white,
[data-theme="light"] .dashboard-card p.text-white,
[data-theme="light"] .dashboard-card span.text-white,
[data-theme="light"] .dashboard-card h5.text-white,
[data-theme="light"] .dashboard-card h3.text-white {
    color: #ffffff !important;
}

.dashboard-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-card__title {
    font-size: 0.82rem !important; /* Smaller, cleaner title */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    opacity: 0.85 !important;
}

.dashboard-card__number {
    font-size: 1.5rem !important; /* Elegant smaller size */
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.dashboard-card__icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 15px !important;
    max-width: 50px !important; /* Smaller, subtler icon */
    opacity: 0.18 !important; /* Make it blend beautifully into the card background */
}

/* Specific styling for the Current Streak Badge inside the card */
.dashboard-card__icon img,
.dashboard-card__icon i {
    max-width: 50px !important;
}

/* Ensure info text (like longest streak) is compact and fits perfectly */
.dashboard-card p {
    font-size: 0.78rem !important;
    margin-top: 4px !important;
    opacity: 0.8 !important;
}

/* ── Form Controls (Double Dash) Light Theme Override ── */
[data-theme="light"] .form--control {
    background-color: #f7f8fa !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #222222 !important;
}

[data-theme="light"] .form--control::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

[data-theme="light"] .form--control:focus {
    border-color: hsl(var(--base)) !important;
    box-shadow: 0 0 0 0.15rem hsla(var(--base), 0.2) !important;
    background-color: #ffffff !important;
}

/* Light Theme Comment Box bottom line style fix */
[data-theme="light"] .play-video .primary__comment .comment-form .form-group .form--control,
[data-theme="light"] .reply-form .form--control,
[data-theme="light"] .edit-form .form--control {
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    padding-right: 40px !important;
    box-shadow: none !important;
}

[data-theme="light"] .play-video .primary__comment .comment-form .form-group .form--control:focus,
[data-theme="light"] .reply-form .form--control:focus,
[data-theme="light"] .edit-form .form--control:focus {
    background-color: transparent !important;
    border-bottom: 1px solid hsl(var(--base)) !important;
    box-shadow: none !important;
}

[data-theme="light"] .play-video .primary__comment .comment-form .form-group .comment-btn,
[data-theme="light"] .reply-form__btn,
[data-theme="light"] .edit-form__btn {
    color: rgba(0, 0, 0, 0.4) !important;
    right: 0 !important;
}

[data-theme="light"] .play-video .primary__comment .comment-form .form-group .form--control:focus ~ .comment-btn,
[data-theme="light"] .reply-form .form--control:focus ~ .reply-form__btn,
[data-theme="light"] .edit-form .form--control:focus ~ .edit-form__btn {
    color: hsl(var(--base)) !important;
}

/* Group Search Input — Always visible, not just on hover */
.group-search-input {
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
}

/* Dark theme — always visible with a solid border */
.group-search-input {
    background-color: hsl(var(--dark-two)) !important;
    border: 1px solid hsl(var(--white) / 0.2) !important;
    color: hsl(var(--heading-color)) !important;
}

.group-search-input::placeholder {
    color: hsl(var(--light-two)) !important;
    opacity: 1 !important;
}

/* Light theme — visible solid border, always shown */
[data-theme="light"] .group-search-input {
    background-color: #ffffff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
    color: #222222 !important;
}

[data-theme="light"] .group-search-input::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

[data-theme="light"] .group-search-input:focus {
    background-color: #ffffff !important;
    border-color: hsl(var(--base)) !important;
    box-shadow: 0 0 0 3px hsla(var(--base), 0.12) !important;
}

/* Group Search Button — filled style (duplicate removed, see earlier definition) */
/* .btn--outline-base is defined above with correct outline styles */

/* ===== VIDEO PLAYER PAGE — LIGHT THEME FIX ===== */
/* Meta action buttons (Like, Dislike, Share, Embed, etc.) */
[data-theme="light"] .meta-buttons__button {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}
[data-theme="light"] .meta-buttons__button:hover {
    background: #e4e4e4 !important;
    border-color: #ccc !important;
}

/* Like/Dislike joined pill wrapper */
[data-theme="light"] .meta-react-inner {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
}
[data-theme="light"] .meta-react-inner .meta-buttons__button {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
}
[data-theme="light"] .meta-react-inner .meta-buttons__button:first-child {
    border-right: 1px solid #ddd !important;
}

/* Channel/Author subscriber count area */
[data-theme="light"] .play-video .primary__channel .author__subscriber {
    color: #666 !important;
}
[data-theme="light"] .play-video .primary__channel .author__content .channel-name {
    color: #111 !important;
}

/* Video title */
[data-theme="light"] .play-video .primary__vtitle {
    color: #111 !important;
}

/* Video meta: views, date */
[data-theme="light"] .play-video .primary__videometa .items span {
    color: #555 !important;
}

/* Fan Goal / Donation bar */
[data-theme="light"] .fan-goal-container {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .fan-goal-container h6 {
    color: #111 !important;
}

/* Video description area */
[data-theme="light"] .primary__desc {
    color: #333 !important;
}
[data-theme="light"] .primary__desc-text {
    color: #333 !important;
}

/* Comment section */
[data-theme="light"] .comment-number {
    color: #111 !important;
}

/* Live chat card */
[data-theme="light"] .live-chat-card {
    border-color: #e5e7eb !important;
}
[data-theme="light"] .live-chat-card .card-header {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}
[data-theme="light"] .live-chat-card .card-header .card-title {
    color: #111 !important;
}
[data-theme="light"] .live-chat-card .live-chat-body {
    background: #ffffff !important;
}
[data-theme="light"] .live-chat-card .card-footer {
    background: #f9fafb !important;
    border-top-color: #e5e7eb !important;
}

/* Live chat input */
[data-theme="light"] #liveChatInput {
    background: #f7f8fa !important;
    border-color: #ddd !important;
    color: #333 !important;
}

/* Viewer Interactions panel */
[data-theme="light"] #viewerInteractions {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] #viewerInteractions h5 {
    color: #111 !important;
}

/* Live watch banner */
[data-theme="light"] .live-watch-banner {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] .live-watch-banner .text-white {
    color: #111 !important;
}

/* Sponsorship info box in details form */
[data-theme="light"] .sponsorship-info {
    background: #f7f8fa !important;
    border-color: #ddd !important;
}

/* Super Chat ticker */
[data-theme="light"] #superChatTicker {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}

/* Shopping tag overlay on video */
[data-theme="light"] #liveShoppingOverlay {
    background: rgba(255,255,255,0.96) !important;
    border-color: #ffd700 !important;
    color: #333 !important;
}
[data-theme="light"] #liveShoppingOverlay h6 {
    color: #111 !important;
}

/* Premium stock / purchase bar */
[data-theme="light"] .premium-stock {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] .premium-stock-price {
    color: #111 !important;
}

/* Hidden content warning */
[data-theme="light"] .hidden-content {
    background: #f7f8fa !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] .hidden-content h4,
[data-theme="light"] .hidden-content p {
    color: #333 !important;
}

/* Related video cards / sidebar playlist */
[data-theme="light"] .secondary .card.custom--card {
    border-color: #e5e7eb !important;
}
[data-theme="light"] .secondary .card-header {
    background: #f9fafb !important;
    border-bottom-color: #e5e7eb !important;
}

/* Embed modal and share overlay */
[data-theme="light"] .embed-code-box {
    background: #f7f8fa !important;
    border-color: #ddd !important;
    color: #333 !important;
}

/* Premium Sidebar: Cap height and allow independent scrolling if there are many items */
.dashboard-menu {
    max-height: calc(100vh - var(--header-h) - 48px) !important;
    overflow-y: auto !important;
}

/* Hide scrollbar for a cleaner premium look in the sidebar, but allow scrolling */
.dashboard-menu::-webkit-scrollbar {
    width: 4px;
}
.dashboard-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
[data-theme="light"] .dashboard-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
}

/* --- Light Theme Dashboard Card bg--dark fix --- */
[data-theme="light"] .dashboard-card.bg--dark,
[data-theme="light"] .dashboard-card.bg--dark .dashboard-card__title,
[data-theme="light"] .dashboard-card.bg--dark .dashboard-card__number,
[data-theme="light"] .dashboard-card.bg--dark p,
[data-theme="light"] .dashboard-card.bg--dark span,
[data-theme="light"] .dashboard-card.bg--dark h5,
[data-theme="light"] .dashboard-card.bg--dark h3,
[data-theme="light"] .dashboard-card.bg--dark i,
[data-theme="light"] .dashboard-card.bg--dark .text-white,
[data-theme="light"] .dashboard-card.bg--dark .dashboard-card__title.text-white,
[data-theme="light"] .dashboard-card.bg--dark .dashboard-card__number.text-white {
    color: #1f2937 !important;
}

[data-theme="light"] .dashboard-card.bg--dark {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

/* Ensure solid-colored buttons always maintain readable white text in all states across both themes */
.btn--danger,
.btn--danger:hover,
.btn--danger:focus,
.btn--danger:active,
.btn--success,
.btn--success:hover,
.btn--success:focus,
.btn--success:active,
.btn--warning,
.btn--warning:hover,
.btn--warning:focus,
.btn--warning:active,
.btn--info,
.btn--info:hover,
.btn--info:focus,
.btn--info:active,
.btn--primary,
.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active,
.btn--secondary,
.btn--secondary:hover,
.btn--secondary:focus,
.btn--secondary:active {
    color: hsl(var(--static-white)) !important;
}

/* Ensure outline buttons maintain bold white text and correct background color on hover under both themes */
.btn--danger.outline:hover,
.btn--danger.outline:focus,
.btn--danger.outline:active,
.btn-outline--danger:hover,
.btn-outline--danger:focus,
.btn-outline--danger:active {
    color: #ffffff !important;
    background-color: #ea5455 !important;
    border-color: #ea5455 !important;
}

.btn--primary.outline:hover,
.btn--primary.outline:focus,
.btn--primary.outline:active,
.btn-outline--primary:hover,
.btn-outline--primary:focus,
.btn-outline--primary:active {
    color: #ffffff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.btn--success.outline:hover,
.btn--success.outline:focus,
.btn--success.outline:active,
.btn-outline--success:hover,
.btn-outline--success:focus,
.btn-outline--success:active {
    color: #ffffff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Comment Section Options: Reply Button, Submit Icons, 3 Dots & Scrollbar Fixes */
.reaction-btn__reply button.reply,
.reaction-btn__reply button.reply i,
.reaction-btn__reply button.reply span {
    color: #ea5455 !important;
}

.reply-form__btn,
.edit-form__btn {
    color: #ea5455 !important;
}

[data-theme="light"] .comment-box .reply-form__btn {
    color: #ea5455 !important;
}

[data-theme="light"] .reaction-btn__reply button.reply {
    color: #ea5455 !important;
}

.comment-options-dropdown .comment-manage-btn i {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .comment-options-dropdown .comment-manage-btn i,
[data-theme="light"] .comment-manage-btn i {
    color: #000000 !important;
}

/* Hide scrollbar track for compact reply textareas to prevent overlapping with container scrollbars */
.reply-form .commentBox::-webkit-scrollbar,
.edit-form .commentBox::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    background: transparent !important;
}
.reply-form .commentBox,
.edit-form .commentBox {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Share modal copy button styling (Red background, white text) */
.share-embed .copyBtn,
.share-embed .share-embed-btn,
#shareModal .copyBtn,
#shareModal .share-embed-btn {
    background-color: #ea5455 !important;
    background: #ea5455 !important;
    color: #ffffff !important;
    border: 1px solid #ea5455 !important;
}

.share-embed .copyBtn:hover,
.share-embed .share-embed-btn:hover,
#shareModal .copyBtn:hover,
#shareModal .share-embed-btn:hover {
    background-color: #d43f40 !important;
    background: #d43f40 !important;
    color: #ffffff !important;
}

/* Confirmation Alert Yes button styling */
#confirmationModal .modal-footer button[type="submit"],
#confirmationModal .modal-footer .btn--base {
    background-color: #ea5455 !important;
    background: #ea5455 !important;
    color: #ffffff !important;
    border: 1px solid #ea5455 !important;
}

#confirmationModal .modal-footer button[type="submit"]:hover,
#confirmationModal .modal-footer .btn--base:hover {
    background-color: #d43f40 !important;
    background: #d43f40 !important;
    color: #ffffff !important;
    border-color: #d43f40 !important;
}

/* Mobile sidebar gap fix */
@media (max-width: 768px) {
    .sidebar-menu, .sidebar, .offcanvas, .mobile-sidebar {
        top: var(--header-h) !important;
        margin-top: 0 !important;
    }
}

/* Discussion Vote Hover Fix (Theme adaptive) */
.discussion-vote,
.discussion-vote i {
    color: #888888 !important;
    transition: color 0.2s ease-in-out !important;
}
.discussion-vote:hover,
.discussion-vote:hover i {
    color: hsl(var(--base)) !important;
}

.vote-up, .vote-down {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dashboard Card Wrapper Uniform Grid Layout Fix */
.dashboard-card-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 30px !important;
}

.dashboard-card-wrapper.sm {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 30px !important;
}

/* Ensure consistent card height & clean styling */
.dashboard-card {
    height: 100% !important;
    min-height: 120px !important;
}

/* Responsive queries to automatically wrap and maintain alignment */
@media screen and (max-width: 1400px) {
    .dashboard-card-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .dashboard-card-wrapper.sm {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media screen and (max-width: 991px) {
    .dashboard-card-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .dashboard-card-wrapper.sm {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 575px) {
    .dashboard-card-wrapper {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px !important;
    }
    .dashboard-card-wrapper.sm {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px !important;
    }
}
/* Mobile sidebar gap fix - corrected */
@media (max-width: 1399px) {
    .sidebar-menu {
        top: var(--header-h) !important;
        height: calc(100vh - var(--header-h)) !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Bug #117 Fix: Video page two-column layout */
.play-video {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.play-video .primary {
    flex: 0 0 calc(66.66% - 10px);
    max-width: calc(66.66% - 10px);
}
.play-video .secondary {
    flex: 0 0 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
    position: sticky;
    top: 80px;
}
@media (max-width: 991px) {
    .play-video .primary,
    .play-video .secondary {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
